Permalink
Browse files

Clean up the stylesheets.

This does some cleanup on our stylesheets:

* Changed ".6em" to "0.6em" in admin.less
* Made use of definitions in defs.less
* Imported defs.less into common.less
* Added -webkit rule to .border-radius definition
* Added .border-shadow definition
* Made use of .border-radius where applicable

Reviewed at http://reviews.reviewboard.org/r/3027/
  • Loading branch information...
1 parent 25cab1c commit 8158dd95f4db92f1a7c35b0fff0ac0a20dbc9821 @medanat medanat committed with chipx86 Mar 29, 2012
@@ -44,7 +44,7 @@
#admin-widgets {
float: left;
- margin: 0px;
+ margin: 0;
}
.admin-sidebar {
@@ -69,7 +69,7 @@
.widget-content .no-result {
border: none;
font-size: 13px;
- margin: 0px;
+ margin: 0;
}
}
}
@@ -117,7 +117,7 @@
img {
float: left;
- margin: 1px 4px 0px 0px;
+ margin: 1px 4px 0 0;
overflow: hidden;
}
@@ -268,7 +268,7 @@
#recent-actions-widget {
li {
background-position: 7px 11px;
- padding: 2px 0px 0px 25px;
+ padding: 2px 0 0 25px;
span {
display: block;
@@ -301,7 +301,7 @@
/* Review Board Activity widget */
#activity-graph-widget {
.widget-content {
- margin: 10px 0px 10px 10px;
+ margin: 10px 0 10px 10px;
.legendLabel {
font-size: 10px;
@@ -61,7 +61,7 @@ td, th {
a {
display: block;
- padding-right: .6em;
+ padding-right: 0.6em;
}
}
}
@@ -1,3 +1,6 @@
+@import "defs.less";
+
+
body {
background-color: white;
color: black;
@@ -111,7 +114,7 @@ ul.errorlist {
background-color: #fdf2a0;
background-image: url('../images/gold_box_top_bg.png');
border: 1px #b7a93e solid;
- padding: 0px 10px;
+ padding: 0 10px;
.box-inner {
background: url("../images/important.png") no-repeat top left;
@@ -123,7 +126,7 @@ ul.errorlist {
background-color: #fdf2a0;
background-image: url('../images/gold_box_top_bg.png');
border: 1px #b7a93e solid;
- padding: 0px 10px;
+ padding: 0 10px;
.box-inner {
background: transparent;
@@ -138,7 +141,7 @@ ul.errorlist {
background-color: #fdf2a0;
background-image: url('../images/gold_box_top_bg.png');
border: 1px #b7a93e solid;
- padding: 0px 10px;
+ padding: 0 10px;
.box-inner {
background: transparent;
@@ -567,9 +570,7 @@ form table td {
-moz-border-radius: 10px;
-webkit-border-radius: 8px; /* WebKit bug */
border-radius: 10px;
- -moz-box-shadow: 0px 0px 4px #000;
- -webkit-box-shadow: 0px 0px 4px #000;
- box-shadow: 0px 0px 4px #000;
+ .box-shadow (0px 0px 4px #000);
&.loading {
background-image: url("../images/spinner.gif");
@@ -9,9 +9,16 @@
.border-radius () {
-moz-border-radius: @arguments;
+ -webkit-border-radius: @arguments;
border-radius: @arguments;
}
+.box-shadow () {
+ -moz-box-shadow: @arguments;
+ -webkit-box-shadow: @arguments;
+ box-shadow: @arguments;
+}
+
.opacity (@value) {
opacity: @value / 100;
filter:alpha(opacity=@value);
@@ -114,7 +114,7 @@
background-position: top left;
background-repeat: repeat-x;
border: 1px #b7a93e solid;
- padding: 0px 10px;
+ padding: 0 10px;
}
#docpage .contents {
@@ -11,7 +11,7 @@
}
.buttons input[type='button'] {
- margin-left: 0px;
+ margin-left: 0;
margin-right: 6px;
}
@@ -88,7 +88,7 @@
.controls {
list-style: none;
margin: 0;
- padding: 0px 8px 4px 8px;
+ padding: 0 8px 4px 8px;
text-align: right;
a {
@@ -124,7 +124,7 @@
border-spacing: 8px;
border-top: 1px #c2c1b0 solid;
margin-top: 5px;
- padding: 5px 0px;
+ padding: 5px 0;
width: 100%;
.caption {
@@ -169,7 +169,7 @@
#summary_wrapper {
margin-right: 10em;
- padding: 0px;
+ padding: 0;
label {
font-size: 130%;
@@ -190,7 +190,7 @@
float: right;
list-style: none;
margin: -1px -1px 0 0;
- padding: 0px;
+ padding: 0;
white-space: nowrap;
a {
@@ -268,9 +268,7 @@
}
.actions>li:first-child {
- -moz-border-radius: 0 0 0 8px;
- -webkit-border-radius: 0 0 0 8px;
- border-radius: 0 0 0 8px;
+ .border-radius(0 0 0 8px);
}
#updated_time, #created_time {
@@ -338,7 +336,7 @@
}
.body_top, .body_bottom {
- margin: 0px;
+ margin: 0;
}
}
@@ -349,7 +347,7 @@
.controls {
list-style: none;
margin: 0;
- padding: 0px 8px 4px 8px;
+ padding: 0 8px 4px 8px;
text-align: right;
a {
@@ -449,8 +447,8 @@
}
.reply-comments {
- margin: 20px 0px 0px 0px;
- padding: 0px;
+ margin: 20px 0 0 0;
+ padding: 0;
.reply-comment {
display: inline;
@@ -470,7 +468,7 @@
* border-left size for every following item.
*/
border-bottom: 1px #FAFAFA solid;
- margin: 0px;
+ margin: 0;
padding: 5px;
dt {
@@ -660,9 +658,7 @@
height: 6em;
position: relative;
margin: 0 2em 2em 0;
- -moz-border-radius: 0 0 8px 8px;
- -webkit-border-radius: 0 0 8px 8px;
- border-radius: 0 0 8px 8px;
+ .border-radius(0 0 8px 8px);
.file-header {
background: white;
@@ -687,9 +683,7 @@
line-height: 2.5em;
padding: 0 0.5em;
text-align: center;
- -moz-border-radius: 0 0 7px 7px;
- -webkit-border-radius: 0 0 7px 7px;
- border-radius: 0 0 7px 7px;
+ .border-radius(0 0 7px 7px);
a {
color: black;
@@ -711,9 +705,7 @@
border: 1px #999999 solid;
border-top: 1px #CCCCCC solid;
padding: 2px 8px;
- -moz-border-radius: 0 0 8px 8px;
- -webkit-border-radius: 0 0 8px 8px;
- border-radius: 0 0 8px 8px;
+ .border-radius(0 0 8px 8px);
img {
vertical-align: bottom;
@@ -1098,9 +1090,7 @@
position: absolute;
white-space: nowrap;
z-index: 999;
- -moz-border-radius: 8px;
- -webkit-border-radius: 8px;
- border-radius: 8px;
+ .border-radius(8px);
}
/* !(*%!(&^ (see http://www.positioniseverything.net/easyclearing.html) */

0 comments on commit 8158dd9

Please sign in to comment.