Unnest top level selectors from body

This commit is contained in:
minusfive 2017-08-18 12:36:21 -04:00 committed by Robin Ward
parent 286bc7db33
commit 77469cfb88
1 changed files with 120 additions and 119 deletions

View File

@ -45,63 +45,65 @@ html {
}
body {
h1, h2, h3, h4, h5, h6 {
margin-top: 0;
margin-bottom: .5rem;
}
background-attachment: fixed;
background-size: cover;
min-height: 100%;
@include clearfix;
}
button.ok {
h1, h2, h3, h4, h5, h6 {
margin-top: 0;
margin-bottom: .5rem;
}
button.ok {
background: $success;
color: $secondary;
@include hover {
background: lighten($success, 10%);
color: $secondary;
}
}
button.cancel {
}
button.cancel {
background: $danger;
color: $secondary;
@include hover {
background: lighten($danger, 10%);
color: $secondary;
}
}
}
// the default for table cells in topic list
// is scale-color($primary, $lightness: 50%)
// numbers get dimmer as they get colder
.coldmap-high {
// the default for table cells in topic list
// is scale-color($primary, $lightness: 50%)
// numbers get dimmer as they get colder
.coldmap-high {
color: dark-light-choose(scale-color($primary, $lightness: 70%), scale-color($secondary, $lightness: 30%)) !important;
}
.coldmap-med {
}
.coldmap-med {
color: dark-light-choose(scale-color($primary, $lightness: 60%), scale-color($secondary, $lightness: 40%)) !important;
}
.coldmap-low {
}
.coldmap-low {
color: dark-light-choose(scale-color($primary, $lightness: 50%), scale-color($secondary, $lightness: 50%)) !important;
}
}
#loading-message {
#loading-message {
position: absolute;
font-size: 2.143em;
text-align: center;
top: 120px;
left: 500px;
color: $primary;
}
}
.top-space {
margin-top: 10px;
}
ul.breadcrumb {
}
ul.breadcrumb {
margin: 0 10px 0 10px;
}
}
.message {
.message {
@include border-radius-all(8px);
background-color: $secondary;
padding: 14px;
@ -109,9 +111,9 @@ body {
h2 {
margin-bottom: 20px;
}
}
}
#footer {
#footer {
.container {
height: 50px;
.contents {
@ -121,13 +123,13 @@ body {
}
}
}
}
}
.clear-transitions {
.clear-transitions {
transition:none !important;
}
}
.tip {
.tip {
display: inline-block;
&.good {
color: $success;
@ -135,31 +137,31 @@ body {
&.bad {
color: $danger;
}
}
}
input[type].invalid {
input[type].invalid {
background-color: dark-light-choose(scale-color($danger, $lightness: 80%), scale-color($danger, $lightness: -60%));
}
}
.d-editor-input {
.d-editor-input {
resize: none;
}
}
.avatar-wrapper {
.avatar-wrapper {
background-color: $secondary;
display: inline-block;
border-radius: 50%;
}
}
.profiler-results.profiler-left {
.profiler-results.profiler-left {
top: 60px !important;
}
}
label {
label {
display: block;
margin-bottom: 5px;
}
input {
}
input {
&[type="radio"], &[type="checkbox"] {
margin: 3px 0;
line-height: normal;
@ -168,29 +170,28 @@ body {
&[type="submit"], &[type="reset"], &[type="button"], &[type="radio"], &[type="checkbox"] {
width: auto;
}
}
.radio, .checkbox {
}
.radio, .checkbox {
min-height: 18px;
padding-left: 18px;
}
.radio input[type="radio"], .checkbox input[type="checkbox"] {
}
.radio input[type="radio"], .checkbox input[type="checkbox"] {
float: left;
margin-left: -18px;
}
.controls > {
}
.controls > {
.radio:first-child, .checkbox:first-child {
padding-top: 5px;
}
}
.radio.inline, .checkbox.inline {
}
.radio.inline, .checkbox.inline {
display: inline-block;
padding-top: 5px;
margin-bottom: 0;
vertical-align: middle;
}
.radio.inline .radio.inline, .checkbox.inline .checkbox.inline {
}
.radio.inline .radio.inline, .checkbox.inline .checkbox.inline {
margin-left: 10px;
}
}
.flex-center-align {