SamanthaNguyen has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/340256 )

Change subject: Separate preferences CSS into it's own module and file
......................................................................

Separate preferences CSS into it's own module and file

Change-Id: Ieaf108ca24550b2740cafd9926e639730cd9dc30
---
M skin.json
M truglass/main.css
A truglass/special.preferences.css
3 files changed, 105 insertions(+), 101 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/skins/Truglass 
refs/changes/56/340256/1

diff --git a/skin.json b/skin.json
index f1d68fa..8bf29ab 100644
--- a/skin.json
+++ b/skin.json
@@ -1,6 +1,6 @@
 {
        "name": "Truglass",
-       "version": "4.1.3",
+       "version": "4.1.4",
        "author": [
                "Elliott Franklin Cable",
                "Jack Phoenix"
@@ -41,6 +41,11 @@
                        "position": "top"
                }
        },
+       "ResourceModuleSkinStyles": {
+               "truglass": {
+                       "+mediawiki.special.preferences": 
"truglass/special.preferences.css"
+               }
+       },
        "config": {
                "TruglassSidebarLinks": []
        },
diff --git a/truglass/main.css b/truglass/main.css
index 98c3b4e..834b9eb 100644
--- a/truglass/main.css
+++ b/truglass/main.css
@@ -1517,106 +1517,6 @@
        font-weight: bold;
 }
 
-/* js pref toc */
-#preftoc {
-       margin: 0;
-       padding: 0;
-       width: 100%;
-       clear: both;
-}
-#preftoc li {
-       margin: 1px -2px 1px 2px;
-       float: left;
-       padding: 2px 0 3px 0;
-       background-color: #f0f0f0;
-       color: #000;
-       border: 1px solid #fff;
-       border-right-color: #716f64;
-       border-bottom: 0;
-       position: relative;
-       white-space: nowrap;
-       list-style-type: none;
-       list-style-image: none;
-       z-index: 3;
-}
-#preftoc li.selected {
-       font-weight: bold;
-       background-color: #f9f9f9;
-       border: 1px solid #aaa;
-       border-bottom: none;
-       cursor: default;
-       top: 1px;
-       padding-top: 2px;
-       margin-right: -3px;
-}
-#preftoc > li.selected {
-       top: 2px;
-}
-#preftoc a,
-#preftoc a:active {
-       display: block;
-       color: #000;
-       padding: 0 .7em;
-       position: relative;
-       text-decoration: none;
-}
-#preftoc li.selected a {
-       cursor: default;
-       text-decoration: none;
-}
-#prefcontrol {
-       padding-top: 2em;
-       clear: both;
-}
-#preferences {
-       margin: 0;
-       border: 1px solid #aaa;
-       clear: both;
-       padding: 1.5em;
-       background-color: #F9F9F9;
-}
-.prefsection {
-       border: none;
-       padding: 0;
-       margin: 0;
-}
-.prefsection fieldset {
-       border: 1px solid #aaa;
-       float: left;
-       margin-right: 2em;
-}
-.prefsection legend {
-       font-weight: bold;
-}
-.prefsection table, .prefsection legend {
-       background-color: #F9F9F9;
-}
-.mainLegend {
-       display: none;
-}
-div.prefsectiontip {
-       font-size: 95%;
-       margin-top: 0;
-       background-color: #FFC1C1;
-       padding: .2em .7em;
-       clear: both;
-}
-.btnSavePrefs {
-       font-weight: bold;
-       padding-left: .3em;
-       padding-right: .3em;
-}
-
-.preferences-login {
-       clear: both;
-       margin-bottom: 1.5em;
-}
-
-.prefcache {
-       font-size: 90%;
-       margin-top: 2em;
-}
-
 div#userloginForm form,
 div#userlogin form#userlogin2 {
        margin: 0 3em 1em 0;
diff --git a/truglass/special.preferences.css b/truglass/special.preferences.css
new file mode 100644
index 0000000..f7da475
--- /dev/null
+++ b/truglass/special.preferences.css
@@ -0,0 +1,99 @@
+/* js pref toc */
+#preftoc {
+       margin: 0;
+       padding: 0;
+       width: 100%;
+       clear: both;
+}
+#preftoc li {
+       margin: 1px -2px 1px 2px;
+       float: left;
+       padding: 2px 0 3px 0;
+       background-color: #f0f0f0;
+       color: #000;
+       border: 1px solid #fff;
+       border-right-color: #716f64;
+       border-bottom: 0;
+       position: relative;
+       white-space: nowrap;
+       list-style-type: none;
+       list-style-image: none;
+       z-index: 3;
+}
+#preftoc li.selected {
+       font-weight: bold;
+       background-color: #f9f9f9;
+       border: 1px solid #aaa;
+       border-bottom: none;
+       cursor: default;
+       top: 1px;
+       padding-top: 2px;
+       margin-right: -3px;
+}
+#preftoc > li.selected {
+       top: 2px;
+}
+#preftoc a,
+#preftoc a:active {
+       display: block;
+       color: #000;
+       padding: 0 .7em;
+       position: relative;
+       text-decoration: none;
+}
+#preftoc li.selected a {
+       cursor: default;
+       text-decoration: none;
+}
+#prefcontrol {
+       padding-top: 2em;
+       clear: both;
+}
+#preferences {
+       margin: 0;
+       border: 1px solid #aaa;
+       clear: both;
+       padding: 1.5em;
+       background-color: #F9F9F9;
+}
+.prefsection {
+       border: none;
+       padding: 0;
+       margin: 0;
+}
+.prefsection fieldset {
+       border: 1px solid #aaa;
+       float: left;
+       margin-right: 2em;
+}
+.prefsection legend {
+       font-weight: bold;
+}
+.prefsection table, .prefsection legend {
+       background-color: #F9F9F9;
+}
+.mainLegend {
+       display: none;
+}
+div.prefsectiontip {
+       font-size: 95%;
+       margin-top: 0;
+       background-color: #FFC1C1;
+       padding: .2em .7em;
+       clear: both;
+}
+.btnSavePrefs {
+       font-weight: bold;
+       padding-left: .3em;
+       padding-right: .3em;
+}
+
+.preferences-login {
+       clear: both;
+       margin-bottom: 1.5em;
+}
+
+.prefcache {
+       font-size: 90%;
+       margin-top: 2em;
+}

-- 
To view, visit https://gerrit.wikimedia.org/r/340256
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ieaf108ca24550b2740cafd9926e639730cd9dc30
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/skins/Truglass
Gerrit-Branch: master
Gerrit-Owner: SamanthaNguyen <samanthanguyen1...@gmail.com>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to