Remove units for zero values

Units are ignored for zero values in CSS except for a few edge cases.
This commit is contained in:
Nick Schonning 2014-03-06 01:14:51 -05:00
parent 15c46af838
commit 4f1a517490
25 changed files with 69 additions and 69 deletions

View File

@ -12,7 +12,7 @@
td {border-bottom: 1px solid $primary_border_color; border-top: 1px solid $primary_border_color;} td {border-bottom: 1px solid $primary_border_color; border-top: 1px solid $primary_border_color;}
tr:hover { background-color: darken($primary_background_color, 2.5%); } tr:hover { background-color: darken($primary_background_color, 2.5%); }
tr.selected { background-color: lighten($tertiary_background_color, 58%); } tr.selected { background-color: lighten($tertiary_background_color, 58%); }
.filters input { margin-bottom: 0px; } .filters input { margin-bottom: 0; }
} }
.content-list li a span.count { .content-list li a span.count {
@ -85,7 +85,7 @@
.admin-controls { .admin-controls {
background-color: darken($primary_background_color, 5%); background-color: darken($primary_background_color, 5%);
padding: 10px 10px 3px 0px; padding: 10px 10px 3px 0;
height: 35px; height: 35px;
.nav.nav-pills { .nav.nav-pills {
li.active { li.active {
@ -222,7 +222,7 @@ section.details {
background-color: lighten($secondary_background_color, 50%); background-color: lighten($secondary_background_color, 50%);
color: $tertiary_text_color; color: $tertiary_text_color;
padding: 0 10px; padding: 0 10px;
margin: 0px 0 5px 0; margin: 0 0 5px 0;
} }
} }
@ -578,9 +578,9 @@ table.api-keys {
} }
&.trust-levels { &.trust-levels {
margin-bottom: 0px; margin-bottom: 0;
table { table {
margin-bottom: 0px; margin-bottom: 0;
} }
td.value { td.value {
width: 45px; width: 45px;

View File

@ -23,14 +23,14 @@
padding-left: 0; padding-left: 0;
li { li {
margin: 5px 0px margin: 5px 0
} }
b { b {
background-color: $nav-stacked-divider-color; background-color: $nav-stacked-divider-color;
color: $nav-stacked-color; color: $nav-stacked-color;
display: inline-block; display: inline-block;
margin: 0px 2px; margin: 0 2px;
padding: 2px 4px; padding: 2px 4px;
} }
} }

View File

@ -14,7 +14,7 @@
color: $tertiary_text_color; color: $tertiary_text_color;
} }
.category-desc { .category-desc {
margin: 6px 0px 0px 3px; margin: 6px 0 0 3px;
font-size: 12px; font-size: 12px;
} }
} }

View File

@ -111,7 +111,7 @@
.toggle-preview, #draft-status, #file-uploading { .toggle-preview, #draft-status, #file-uploading {
position: absolute; position: absolute;
bottom: -31px; bottom: -31px;
margin-top: 0px; margin-top: 0;
} }
.toggle-preview { .toggle-preview {
right: 5px; right: 5px;
@ -132,9 +132,9 @@
@include transition(height 0.4s ease); @include transition(height 0.4s ease);
width: 100%; width: 100%;
z-index: 1039; z-index: 1039;
height: 0px; height: 0;
background-color: rgba($composer_background, 0.96); background-color: rgba($composer_background, 0.96);
bottom: 0px; bottom: 0;
font-size: 14px; font-size: 14px;
position: fixed; position: fixed;
.toggler { .toggler {
@ -175,7 +175,7 @@
} }
} }
&.closed { &.closed {
height: 0px !important; height: 0 !important;
} }
&.draft { &.draft {
height: 40px !important; height: 40px !important;
@ -462,7 +462,7 @@ div.ac-wrap {
// this removes the topmost margin; // this removes the topmost margin;
// if we don't have this, all posts would have extra space at the top // if we don't have this, all posts would have extra space at the top
#wmd-preview > *:first-child { #wmd-preview > *:first-child {
margin-top: 0px !important; margin-top: 0 !important;
} }
#wmd-input, #wmd-preview { #wmd-input, #wmd-preview {

View File

@ -108,7 +108,7 @@ body {
margin-top: 10px; margin-top: 10px;
} }
ul.breadcrumb { ul.breadcrumb {
margin: 0 10px 0px 10px; margin: 0 10px 0 10px;
} }
.boxed { .boxed {
height: 100%; height: 100%;
@ -198,7 +198,7 @@ body {
.grippie { .grippie {
width: 100%; width: 100%;
border: 1px solid $primary_border_color; border: 1px solid $primary_border_color;
border-width: 1px 0px; border-width: 1px 0;
cursor: row-resize; cursor: row-resize;
height: 11px; height: 11px;
overflow: hidden; overflow: hidden;

View File

@ -37,7 +37,7 @@
font-size: 12px; font-size: 12px;
width: 100%; width: 100%;
border-collapse: collapse; border-collapse: collapse;
border-spacing: 0px; border-spacing: 0;
td { td {
width: 50%; width: 50%;
vertical-align: top; vertical-align: top;

View File

@ -139,7 +139,7 @@ border: 1px solid $primary_border_color;
.close { .close {
float: right; float: right;
font-size: 20px; font-size: 20px;
margin: 10px 10px 0px; margin: 10px 10px 0;
text-decoration: none; text-decoration: none;
color: $modal-close-button-color; color: $modal-close-button-color;
cursor: pointer; cursor: pointer;

View File

@ -51,7 +51,7 @@ a.loading-onebox {
margin-right: 10px; margin-right: 10px;
} }
h3, h4 { h3, h4 {
margin: 0px !important; margin: 0 !important;
} }
code { code {
max-height: 400px; max-height: 400px;

View File

@ -20,7 +20,7 @@
margin-right: 5px; margin-right: 5px;
margin-bottom: 5px; margin-bottom: 5px;
margin-top: 5px; margin-top: 5px;
padding: 0px; padding: 0;
height: 20px; height: 20px;
} }
@ -41,8 +41,8 @@
padding-right: 3px; padding-right: 3px;
margin-right: 5px; margin-right: 5px;
background-repeat: no-repeat; background-repeat: no-repeat;
background-position: 0px 0px; background-position: 0 0;
border: 0px; border: 0;
width: 20px; width: 20px;
height: 20px; height: 20px;
position: relative; position: relative;
@ -59,7 +59,7 @@
line-height: normal; line-height: normal;
vertical-align: baseline; vertical-align: baseline;
background-image: none !important; background-image: none !important;
background-position: 0% 0%; background-position: 0 0;
background-repeat: repeat; background-repeat: repeat;
background-color: white; background-color: white;
padding: 4px; padding: 4px;

View File

@ -38,13 +38,13 @@
h3 { h3 {
font-size: 13px; font-size: 13px;
font-weight: normal; font-weight: normal;
margin-top: 0px; margin-top: 0;
color: $secondary_text_color; color: $secondary_text_color;
} }
.groups { .groups {
font-size: 13px; font-size: 13px;
font-weight: normal; font-weight: normal;
margin-top: 0px; margin-top: 0;
color: $secondary_text_color; color: $secondary_text_color;
.group-link { .group-link {

View File

@ -27,7 +27,7 @@
} }
.full-width { .full-width {
margin-left: 0px; margin-left: 0;
} }
h1 .topic-statuses .topic-status i {margin-right: 5px;} h1 .topic-statuses .topic-status i {margin-right: 5px;}
@ -123,7 +123,7 @@ nav.post-controls {
button.show-replies { button.show-replies {
padding: 8px 15px; padding: 8px 15px;
margin-left: 0px; margin-left: 0;
} }
@ -626,7 +626,7 @@ iframe {
.topic-admin-menu { .topic-admin-menu {
h3 {margin-top: 0px;} h3 {margin-top: 0;}
} }

View File

@ -83,7 +83,7 @@
position: fixed; position: fixed;
right: 50%; right: 50%;
width: 0; width: 0;
bottom: 0px; bottom: 0;
z-index: 500; z-index: 500;
outline: 1px solid transparent; outline: 1px solid transparent;
} }
@ -166,9 +166,9 @@ a:hover.reply-new {
} }
.bg { .bg {
position: absolute; position: absolute;
top: 0px; top: 0;
bottom: 0px; bottom: 0;
width: 0px; width: 0;
border-right: 1px solid $primary_border_color; border-right: 1px solid $primary_border_color;
// background-color: #d4eaf4; // background-color: #d4eaf4;
// background-color: #C5E8F7; // background-color: #C5E8F7;

View File

@ -231,18 +231,18 @@
float: left; float: left;
width: 75%; width: 75%;
color: $tertiary_text_color; color: $tertiary_text_color;
text-shadow: rgba(0, 0, 0, 0.5) 0px 1px 1px; text-shadow: rgba(0, 0, 0, 0.5) 0 1px 1px;
h1, h2 {font-weight: bold;} h1, h2 {font-weight: bold;}
.bio { .bio {
color: $tertiary_text_color; color: $tertiary_text_color;
text-shadow: rgba(0, 0, 0, 0.5) 0px 1px 1px; text-shadow: rgba(0, 0, 0, 0.5) 0 1px 1px;
a[href] { a[href] {
color: $tertiary_text_color; color: $tertiary_text_color;
text-decoration: underline; text-decoration: underline;
text-shadow: rgba(0, 0, 0, 0.5) 0px 1px 1px; text-shadow: rgba(0, 0, 0, 0.5) 0 1px 1px;
} }
} }
@ -318,7 +318,7 @@
.user-stream { .user-stream {
.excerpt { .excerpt {
margin: 5px 0px; margin: 5px 0;
font-size: 13px; font-size: 13px;
word-wrap: break-word; word-wrap: break-word;
color: $primary_text_color; color: $primary_text_color;

View File

@ -1,7 +1,7 @@
div.tagsinput { div.tagsinput {
border:1px solid #CCC; border:1px solid #CCC;
background: #FFF; background: #FFF;
padding:5px 5px 0px; padding:5px 5px 0;
width:584px; width:584px;
height:100px; height:100px;
overflow-y: auto; overflow-y: auto;
@ -27,5 +27,5 @@ div.tagsinput span.tag a { font-weight: bold; color: #82ad2b; text-decoration:no
div.tagsinput input { width:80px; margin:0px; font-family: helvetica; font-size: 13px; border:1px solid transparent; div.tagsinput input { width:80px; margin:0px; font-family: helvetica; font-size: 13px; border:1px solid transparent;
padding:2px 5px; background: transparent; color: #000; outline:0px; margin-right:5px; margin-bottom:5px; } padding:2px 5px; background: transparent; color: #000; outline:0px; margin-right:5px; margin-bottom:5px; }
div.tagsinput div { display:block; float: left; } div.tagsinput div { display:block; float: left; }
.tags_clear { clear: both; width: 100%; height: 0px; } .tags_clear { clear: both; width: 100%; height: 0; }
.not_valid {background: #FBD8DB !important; color: #90111A !important;} .not_valid {background: #FBD8DB !important; color: #90111A !important;}

View File

@ -11,7 +11,7 @@
color: white; color: white;
} }
.category-desc { .category-desc {
margin: 6px 0px 0px 3px; margin: 6px 0 0 3px;
font-size: 12px; font-size: 12px;
} }
} }

View File

@ -56,7 +56,7 @@ display: none;
.toggle-preview, #draft-status, #file-uploading { .toggle-preview, #draft-status, #file-uploading {
position: absolute; position: absolute;
bottom: -31px; bottom: -31px;
margin-top: 0px; margin-top: 0;
} }
.toggle-preview { .toggle-preview {
right: 5px; right: 5px;
@ -77,9 +77,9 @@ display: none;
@include transition(height 0.4s ease); @include transition(height 0.4s ease);
width: 100%; width: 100%;
z-index: 1039; z-index: 1039;
height: 0px; height: 0;
background-color: rgba($composer_background, 0.96); background-color: rgba($composer_background, 0.96);
bottom: 0px; bottom: 0;
font-size: 14px; font-size: 14px;
position: fixed; position: fixed;
.toggler { .toggler {
@ -122,7 +122,7 @@ display: none;
} }
} }
&.closed { &.closed {
height: 0px !important; height: 0 !important;
} }
&.draft { &.draft {
height: 60px !important; height: 60px !important;
@ -385,7 +385,7 @@ div.ac-wrap {
// this removes the topmost margin; // this removes the topmost margin;
// if we don't have this, all posts would have extra space at the top // if we don't have this, all posts would have extra space at the top
#wmd-preview > *:first-child { #wmd-preview > *:first-child {
margin-top: 0px !important; margin-top: 0 !important;
} }
#wmd-input, #wmd-preview { #wmd-input, #wmd-preview {

View File

@ -75,7 +75,7 @@ body {
margin-top: 10px; margin-top: 10px;
} }
ul.breadcrumb { ul.breadcrumb {
margin: 0 10px 0px 10px; margin: 0 10px 0 10px;
} }
.boxed { .boxed {
height: 100%; height: 100%;
@ -102,7 +102,7 @@ body {
} }
&.starred { &.starred {
color: #fe1; color: #fe1;
text-shadow: 0px 0px 3px rgba($primary_shadow_color, 0.5); text-shadow: 0 0 3px rgba($primary_shadow_color, 0.5);
@include hover { @include hover {
opacity: 1; opacity: 1;
&:before { &:before {
@ -170,7 +170,7 @@ body {
.grippie { .grippie {
width: 100%; width: 100%;
border: 1px solid $primary_border_color; border: 1px solid $primary_border_color;
border-width: 1px 0px; border-width: 1px 0;
cursor: row-resize; cursor: row-resize;
height: 11px; height: 11px;
overflow: hidden; overflow: hidden;

View File

@ -40,7 +40,7 @@
font-size: 12px; font-size: 12px;
width: 100%; width: 100%;
border-collapse: collapse; border-collapse: collapse;
border-spacing: 0px; border-spacing: 0;
td { td {
width: 50%; width: 50%;
vertical-align: top; vertical-align: top;

View File

@ -45,7 +45,7 @@ a.loading-onebox {
margin-right: 10px; margin-right: 10px;
} }
h3, h4 { h3, h4 {
margin: 0px !important; margin: 0 !important;
} }
img.thumbnail { img.thumbnail {
max-width: 25%; max-width: 25%;

View File

@ -19,7 +19,7 @@
margin-right: 5px; margin-right: 5px;
margin-bottom: 5px; margin-bottom: 5px;
margin-top: 10px; margin-top: 10px;
padding: 0px; padding: 0;
height: 20px; height: 20px;
} }
@ -40,8 +40,8 @@
padding-right: 3px; padding-right: 3px;
margin-right: 5px; margin-right: 5px;
background-repeat: no-repeat; background-repeat: no-repeat;
background-position: 0px 0px; background-position: 0 0;
border: 0px; border: 0;
width: 20px; width: 20px;
height: 20px; height: 20px;
position: relative; position: relative;
@ -58,7 +58,7 @@
line-height: normal; line-height: normal;
vertical-align: baseline; vertical-align: baseline;
background-image: none !important; background-image: none !important;
background-position: 0% 0%; background-position: 0 0;
background-repeat: repeat; background-repeat: repeat;
background-color: white; background-color: white;
padding: 4px; padding: 4px;

View File

@ -458,7 +458,7 @@ ol.category-breadcrumb {
.badge-category { .badge-category {
font-size: 13px; font-size: 13px;
line-height: 26px; line-height: 26px;
padding: 0px 8px; padding: 0 8px;
float: none; float: none;
} }

View File

@ -18,7 +18,7 @@
nav.post-controls { nav.post-controls {
background-color: $primary_background_color; background-color: $primary_background_color;
padding: 0px; padding: 0;
border-right: 1px solid $primary_border_color; border-right: 1px solid $primary_border_color;
margin-top: 10px; margin-top: 10px;
button {color: lighten($primary_text_color, 35%); button {color: lighten($primary_text_color, 35%);
@ -409,7 +409,7 @@ iframe {
#show-topic-admin { #show-topic-admin {
color: lighten($primary_text_color, 35%); color: lighten($primary_text_color, 35%);
right: 0px; right: 0;
border-right: 0; border-right: 0;
padding-right: 4px; padding-right: 4px;
padding-left: 5px; padding-left: 5px;

View File

@ -52,7 +52,7 @@
position: fixed; position: fixed;
width: 0; width: 0;
right: 0; right: 0;
bottom: 0px; bottom: 0;
z-index: 500; z-index: 500;
margin-right: 140px; margin-right: 140px;
outline: 1px solid transparent; outline: 1px solid transparent;
@ -119,9 +119,9 @@
} }
.bg { .bg {
position: absolute; position: absolute;
top: 0px; top: 0;
bottom: 0px; bottom: 0;
width: 0px; width: 0;
border-right: 1px solid $primary_border_color; border-right: 1px solid $primary_border_color;
// background-color: #d4eaf4; // background-color: #d4eaf4;
// background-color: #C5E8F7; // background-color: #C5E8F7;

View File

@ -175,7 +175,7 @@
.controls { .controls {
background-color: lighten($secondary_background_color, 60%); background-color: lighten($secondary_background_color, 60%);
margin-top: 0px; margin-top: 0;
padding: 10px 10px 0 10px; padding: 10px 10px 0 10px;
.btn { .btn {
@ -224,7 +224,7 @@
.user-stream { .user-stream {
.excerpt { .excerpt {
margin: 5px 0px; margin: 5px 0;
font-size: 13px; font-size: 13px;
word-wrap: break-word; word-wrap: break-word;
color: lighten($primary_text_color, 30%); color: lighten($primary_text_color, 30%);

View File

@ -1,7 +1,7 @@
div.tagsinput { div.tagsinput {
border:1px solid #CCC; border:1px solid #CCC;
background: #FFF; background: #FFF;
padding:5px 5px 0px; padding:5px 5px 0;
width:584px; width:584px;
height:100px; height:100px;
overflow-y: auto; overflow-y: auto;
@ -27,5 +27,5 @@ div.tagsinput span.tag a { font-weight: bold; color: #82ad2b; text-decoration:no
div.tagsinput input { width:80px; margin:0px; font-family: helvetica; font-size: 13px; border:1px solid transparent; div.tagsinput input { width:80px; margin:0px; font-family: helvetica; font-size: 13px; border:1px solid transparent;
padding:2px 5px; background: transparent; color: #000; outline:0px; margin-right:5px; margin-bottom:5px; } padding:2px 5px; background: transparent; color: #000; outline:0px; margin-right:5px; margin-bottom:5px; }
div.tagsinput div { display:block; float: left; } div.tagsinput div { display:block; float: left; }
.tags_clear { clear: both; width: 100%; height: 0px; } .tags_clear { clear: both; width: 100%; height: 0; }
.not_valid {background: #FBD8DB !important; color: #90111A !important;} .not_valid {background: #FBD8DB !important; color: #90111A !important;}