https://www.mediawiki.org/wiki/Special:Code/MediaWiki/112477

Revision: 112477
Author:   jdlrobson
Date:     2012-02-27 10:43:38 +0000 (Mon, 27 Feb 2012)
Log Message:
-----------
cleanup stylesheets

move each selector in a rule on to a new line
merge duplicate selectors for readability

Modified Paths:
--------------
    trunk/extensions/MobileFrontend/stylesheets/beta_common.css
    trunk/extensions/MobileFrontend/stylesheets/common.css

Modified: trunk/extensions/MobileFrontend/stylesheets/beta_common.css
===================================================================
--- trunk/extensions/MobileFrontend/stylesheets/beta_common.css 2012-02-27 
10:29:57 UTC (rev 112476)
+++ trunk/extensions/MobileFrontend/stylesheets/beta_common.css 2012-02-27 
10:43:38 UTC (rev 112477)
@@ -1,9 +1,22 @@
-html, body { 
-       margin: 0px; 
-       padding: 0px; 
+html,
+body { 
+       margin: 0; 
+       padding: 0; 
        height: 100%; 
 }
 
+html {
+       font-size: 0.8em;
+}
+
+body {
+       line-height: 1;
+       color: black;
+       background: white;
+       font-family: sans-serif;
+       -webkit-text-size-adjust: none;
+}
+
 .clearlink {
        background: url(images/close-button.png?v=1) no-repeat scroll 0 0 
transparent;
        background-position: center center;
@@ -208,7 +221,10 @@
        position: relative;
 }
 
-#userloginForm table, #userloginForm .user-login tr, #userloginForm 
.user-login th, #userloginForm .user-login td {
+#userloginForm table,
+#userloginForm .user-login tr,
+#userloginForm .user-login th,
+#userloginForm .user-login td {
        width: 200px;
        border: 0px;
 }
@@ -229,7 +245,8 @@
        margin: 0 auto;
 }
 
-table.geography[style] td[style*="text-align"], table.geography[style] 
td[colspan="2"] {
+table.geography[style] td[style*="text-align"],
+table.geography[style] td[colspan="2"] {
        text-align: left !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
@@ -241,7 +258,8 @@
        margin-top: 5px;
 }
 
-table.gallery th, table.gallery td {
+table.gallery th,
+table.gallery td {
        display: block;
        border: 0;
        border-bottom: 1px solid #cccccc;
@@ -288,7 +306,8 @@
        margin-bottom: -16px;
 }
 
-table td, table th {
+table td,
+table th {
        border: 1px solid #cccccc;
        padding: 3px;
        word-break: break-word;
@@ -405,19 +424,9 @@
        width: 300px;
 }
 
-html {
-       font-size: 0.8em;
-}
-
-body {
-       line-height: 1;
-       color: black;
-       background: white;
-       font-family: sans-serif;
-       -webkit-text-size-adjust: none;
-}
-
-p, li, dl,
+p,
+li,
+dl,
 #featured_article {
        line-height: 1.65;
 }
@@ -429,6 +438,7 @@
 h2 {
        border-bottom: 1px solid #aaaaaa;
        padding-top: 0.3em;
+       font-size: 1.3em;
 }
 
 a {
@@ -474,10 +484,6 @@
        font-size: 1.7em;
 }
 
-h2 {
-       font-size: 1.3em;
-}
-
 .section_anchors a {
        display: block;
 }
@@ -529,10 +535,6 @@
        display: none;
 }
 
-body {
-       margin: 0;
-}
-
 #header {
        margin: 8px 8px 0 8px;
 }
@@ -661,7 +663,8 @@
 
 ol.references > li:target,
 sup.reference:target,
-span.citation:target, cite:target {
+span.citation:target,
+cite:target {
        background-color: #ddeeff;
 }
 

Modified: trunk/extensions/MobileFrontend/stylesheets/common.css
===================================================================
--- trunk/extensions/MobileFrontend/stylesheets/common.css      2012-02-27 
10:29:57 UTC (rev 112476)
+++ trunk/extensions/MobileFrontend/stylesheets/common.css      2012-02-27 
10:43:38 UTC (rev 112477)
@@ -207,7 +207,10 @@
        position: relative;
 }
 
-#userloginForm table, #userloginForm .user-login tr, #userloginForm 
.user-login th, #userloginForm .user-login td {
+#userloginForm table,
+#userloginForm .user-login tr,
+#userloginForm .user-login th,
+#userloginForm .user-login td {
        width: 200px;
        border: 0px;
 }
@@ -228,7 +231,8 @@
        margin: 0 auto;
 }
 
-table.geography[style] td[style*="text-align"], table.geography[style] 
td[colspan="2"] {
+table.geography[style] td[style*="text-align"],
+table.geography[style] td[colspan="2"] {
        text-align: left !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
@@ -240,7 +244,8 @@
        margin-top: 5px;
 }
 
-table.gallery th, table.gallery td {
+table.gallery th,
+table.gallery td {
        display: block;
        border: 0;
        border-bottom: 1px solid #cccccc;
@@ -287,7 +292,8 @@
        margin-bottom: -16px;
 }
 
-table td, table th {
+table td,
+table th {
        border: 1px solid #cccccc;
        padding: 3px;
        word-break: break-word;
@@ -409,6 +415,7 @@
 }
 
 body {
+       margin: 0;
        line-height: 1;
        color: black;
        background: white;
@@ -416,7 +423,9 @@
        -webkit-text-size-adjust: none;
 }
 
-p, li, dl,
+p,
+li,
+dl,
 #featured_article {
        line-height: 1.65;
 }
@@ -425,11 +434,6 @@
        white-space: pre-wrap;
 }
 
-h2 {
-       border-bottom: 1px solid #aaaaaa;
-       padding-top: 0.3em;
-}
-
 a {
        text-decoration: none;
        color: #002bb8;
@@ -475,6 +479,8 @@
 
 h2 {
        font-size: 1.3em;
+       border-bottom: 1px solid #aaaaaa;
+       padding-top: 0.3em;
 }
 
 .section_anchors a {
@@ -528,10 +534,6 @@
        display: none;
 }
 
-body {
-       margin: 0;
-}
-
 #header {
        margin: 8px 8px 0 8px;
 }
@@ -660,7 +662,8 @@
 
 ol.references > li:target,
 sup.reference:target,
-span.citation:target, cite:target {
+span.citation:target,
+cite:target {
        background-color: #ddeeff;
 }
 


_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs

Reply via email to