Permalink
Browse files

Optimize CSS. (i.e. more efficent selectors)

  • Loading branch information...
1 parent fa57e58 commit 471f6c40fcf570a1495498fa765642dbb48dc150 @realityking realityking committed Aug 29, 2011
Showing with 17 additions and 21 deletions.
  1. +17 −21 media/system/css/system.css
View
38 media/system/css/system.css
@@ -9,65 +9,61 @@
padding: 0;
}
-#system-message dt {
+#system-message > dt {
font-weight: bold;
display: none;
}
-#system-message dd {
+#system-message > dd {
margin: 0;
font-weight: bold;
text-indent: 30px;
}
-#system-message dd ul {
+#system-message > dd > ul {
color: #0055BB;
background-position: 4px top;
background-repeat: no-repeat;
margin-bottom: 10px;
list-style: none;
padding: 10px;
border-top: 3px solid #84A7DB;
- border-bottom: 3px solid #84A7DB;}
+ border-bottom: 3px solid #84A7DB;
+}
-#system-message dd ul li {
- line-height:1.5em
+#system-message > dd > ul > li {
+ line-height: 1.5em
}
/* System Standard Messages */
-#system-message dd.message ul {
+#system-message > .message > ul {
background-color: #C3D2E5;
background-image: url(../images/notice-info.png);
}
/* System Error Messages */
-#system-message dd.error ul,
-#system-message dd.warning ul,
-#system-message dd.notice ul {
+#system-message > .error > ul,
+#system-message > .warning > ul,
+#system-message > .notice > ul {
color: #c00;
}
-#system-message dd.error ul {
+#system-message > .error > ul {
background-color: #E6C0C0;
background-image: url(../images/notice-alert.png);
- border-top-color: #DE7A7B;
- border-bottom-color: #DE7A7B;
+ border-color: #DE7A7B;
}
/* System Warning Messages */
-#system-message dd.warning ul {
- color: #c00;
+#system-message > .warning > ul {
background-color: #E6C8A6;
background-image: url(../images/notice-note.png);
- border-top-color: #FFBB00;
- border-bottom-color: #FFBB00;
+ border-color: #FFBB00;
}
/* System Notice Messages */
-#system-message dd.notice ul {
- color: #c00;
+#system-message > .notice > ul {
background-color: #EFE7B8;
background-image: url(../images/notice-note.png);
- border-top-color: #F0DC7E;
- border-bottom-color: #F0DC7E;
+ border-color: #F0DC7E;
}

0 comments on commit 471f6c4

Please sign in to comment.