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

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

Separate preferences CSS into it's own module and file

Change-Id: I4622e87958edf5fa40e1d5a42b7381613bad5ab4
---
M deepsea/screen.css
A deepsea/special.preferences.css
M skin.json
3 files changed, 109 insertions(+), 105 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/skins/DeepSea 
refs/changes/54/340254/1

diff --git a/deepsea/screen.css b/deepsea/screen.css
index eb32404..530b1a0 100644
--- a/deepsea/screen.css
+++ b/deepsea/screen.css
@@ -594,109 +594,6 @@
        text-decoration: none;
 }
 
-/*
- *
- * The following code is highly modified from monobook. It would be nice if the
- * preftoc id was more human readable like preferences-toc for instance,
- * howerver this would require backporting the other skins.
- */
-
-/* Preferences */
-#preftoc {
-       /* Tabs */
-       width: 100%;
-       float: left;
-       clear: both;
-       margin: 0 !important;
-       padding: 0 !important;
-       /* @embed */
-       background-image: url(images/preferences-break.png);
-       background-position: bottom left;
-       background-repeat: no-repeat;
-}
-       #preftoc li {
-               /* Tab */
-               float: left;
-               margin: 0;
-               padding: 0;
-               padding-right: 1px;
-               height: 2.25em;
-               white-space: nowrap;
-               list-style-type: none;
-               list-style-image: none;
-               /* @embed */
-               background-image: url(images/preferences-break.png);
-               background-position: bottom right;
-               background-repeat: no-repeat;
-       }
-       /* Sadly, IE6 won't understand this */
-       #preftoc li:first-child {
-               margin-left: 1px;
-       }
-       #preftoc a,
-       #preftoc a:active {
-               display: inline-block;
-               position: relative;
-               color: #0645ad;
-               padding: 0.5em;
-               text-decoration: none;
-               background-image: none;
-               font-size: 0.9em;
-       }
-       #preftoc a:hover,
-       #preftoc a:focus {
-               text-decoration: underline;
-       }
-       #preftoc li.selected a {
-               /* @embed */
-               background-image: url(images/preferences-fade.png);
-               background-position: bottom;
-               background-repeat: repeat-x;
-               color: #333333;
-               text-decoration: none;
-       }
-#preferences {
-       float: left;
-       width: 100%;
-       margin: 0;
-       margin-top: -2px;
-       clear: both;
-       border: solid 1px #cccccc;
-       background-color: #f9f9f9;
-       /* @embed */
-       background-image: url(images/preferences-base.png);
-}
-#preferences fieldset {
-       border: none;
-       border-top: solid 1px #cccccc;
-}
-#preferences fieldset.prefsection {
-       border: none;
-       padding: 0;
-       margin: 1em;
-}
-#preferences legend {
-       color: #666666;
-}
-#preferences fieldset.prefsection legend.mainLegend {
-       display: none;
-}
-#preferences td {
-       padding-left: 0.5em;
-       padding-right: 0.5em;
-}
-#preferences td.htmlform-tip {
-       font-size: x-small;
-       padding: .2em 2em;
-       color: #666666;
-}
-#preferences div.mw-prefs-buttons {
-       padding: 1em;
-}
-#preferences div.mw-prefs-buttons input {
-       margin-right: 0.25em;
-}
-
 /**
  * The following code is slightly modified from monobook
  */
@@ -824,4 +721,4 @@
 
 h2, h3 {
        font-weight: bold !important;
-}
\ No newline at end of file
+}
diff --git a/deepsea/special.preferences.css b/deepsea/special.preferences.css
new file mode 100644
index 0000000..08d7356
--- /dev/null
+++ b/deepsea/special.preferences.css
@@ -0,0 +1,102 @@
+/*
+ *
+ * The following code is highly modified from monobook. It would be nice if the
+ * preftoc id was more human readable like preferences-toc for instance,
+ * howerver this would require backporting the other skins.
+ */
+
+/* Preferences */
+#preftoc {
+       /* Tabs */
+       width: 100%;
+       float: left;
+       clear: both;
+       margin: 0 !important;
+       padding: 0 !important;
+       /* @embed */
+       background-image: url(images/preferences-break.png);
+       background-position: bottom left;
+       background-repeat: no-repeat;
+}
+       #preftoc li {
+               /* Tab */
+               float: left;
+               margin: 0;
+               padding: 0;
+               padding-right: 1px;
+               height: 2.25em;
+               white-space: nowrap;
+               list-style-type: none;
+               list-style-image: none;
+               /* @embed */
+               background-image: url(images/preferences-break.png);
+               background-position: bottom right;
+               background-repeat: no-repeat;
+       }
+       /* Sadly, IE6 won't understand this */
+       #preftoc li:first-child {
+               margin-left: 1px;
+       }
+       #preftoc a,
+       #preftoc a:active {
+               display: inline-block;
+               position: relative;
+               color: #0645ad;
+               padding: 0.5em;
+               text-decoration: none;
+               background-image: none;
+               font-size: 0.9em;
+       }
+       #preftoc a:hover,
+       #preftoc a:focus {
+               text-decoration: underline;
+       }
+       #preftoc li.selected a {
+               /* @embed */
+               background-image: url(images/preferences-fade.png);
+               background-position: bottom;
+               background-repeat: repeat-x;
+               color: #333333;
+               text-decoration: none;
+       }
+#preferences {
+       float: left;
+       width: 100%;
+       margin: 0;
+       margin-top: -2px;
+       clear: both;
+       border: solid 1px #cccccc;
+       background-color: #f9f9f9;
+       /* @embed */
+       background-image: url(images/preferences-base.png);
+}
+#preferences fieldset {
+       border: none;
+       border-top: solid 1px #cccccc;
+}
+#preferences fieldset.prefsection {
+       border: none;
+       padding: 0;
+       margin: 1em;
+}
+#preferences legend {
+       color: #666666;
+}
+#preferences fieldset.prefsection legend.mainLegend {
+       display: none;
+}
+#preferences td {
+       padding-left: 0.5em;
+       padding-right: 0.5em;
+}
+#preferences td.htmlform-tip {
+       font-size: x-small;
+       padding: .2em 2em;
+       color: #666666;
+}
+#preferences div.mw-prefs-buttons {
+       padding: 1em;
+}
+#preferences div.mw-prefs-buttons input {
+       margin-right: 0.25em;
+}
diff --git a/skin.json b/skin.json
index 8254e9f..d4d23c7 100644
--- a/skin.json
+++ b/skin.json
@@ -1,7 +1,7 @@
 {
        "name": "DeepSea",
        "namemsg": "skinname-deepsea",
-       "version": "1.0.1",
+       "version": "1.0.2",
        "author": [
                "[https://mediawiki.org/wiki/User:UltrasonicNXT Adam Carter]",
                "[https://mediawiki.org/wiki/User:GeorgeBarnick George 
Barnick]",
@@ -52,5 +52,10 @@
                        "position": "bottom"
                }
        },
+       "ResourceModuleSkinStyles": {
+               "deepsea": {
+                       "+mediawiki.special.preferences": 
"deepsea/special.preferences.css"
+               }
+       },
        "manifest_version": 1
 }

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I4622e87958edf5fa40e1d5a42b7381613bad5ab4
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/skins/DeepSea
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