1
Fork 0

Start fixing scss linting

This commit is contained in:
Jake Howard 2017-05-01 22:17:46 +01:00
parent a447870c6f
commit 2c7c34ada0
2 changed files with 1500 additions and 1596 deletions

View file

@ -8,38 +8,38 @@
html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup, menu, nav, output, ruby, section, summary, time, mark, audio, video { html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup, menu, nav, output, ruby, section, summary, time, mark, audio, video {
margin: 0; margin: 0;
padding: 0;
border: 0; border: 0;
font-size: 100%; padding: 0;
font: inherit;
vertical-align: baseline; vertical-align: baseline;
font: inherit;
font-size: 100%;
} }
/* Basic */ /* Basic */
body { body {
background: #f5f5f5; background: #F5F5F5;
} }
body, input, select, textarea { body, input, select, textarea {
line-height: 1.65em;
letter-spacing: -0.015em;
color: #777; color: #777;
font-family: "Source Sans Pro", sans-serif; font-family: "Source Sans Pro", sans-serif;
font-size: 16pt; font-size: 16pt;
font-weight: 300; font-weight: 300;
line-height: 1.65em;
letter-spacing: -0.015em;
} }
a { a {
transition: color 0.2s ease-in-out, border-bottom-color 0.2s ease-in-out; transition: color 0.2s ease-in-out, border-bottom-color 0.2s ease-in-out;
border-bottom: dotted 1px; border-bottom: dotted 1px;
color: #e89980;
text-decoration: none; text-decoration: none;
} color: #E89980;
a:hover { &:hover {
border-bottom-color: transparent; border-bottom-color: transparent;
} }
}
strong, b { strong, b {
color: #646464; color: #646464;
@ -59,12 +59,12 @@ html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockq
font-weight: 300; font-weight: 300;
line-height: 1em; line-height: 1em;
margin: 0 0 0.5em 0; margin: 0 0 0.5em 0;
}
h1 a, h2 a, h3 a, h4 a, h5 a, h6 a { & a {
color: inherit; color: inherit;
text-decoration: none; text-decoration: none;
} }
}
h2 { h2 {
font-size: 2.25em; font-size: 2.25em;
@ -112,11 +112,11 @@ html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockq
border: 0; border: 0;
border-bottom: solid 2px #e5e5e5; border-bottom: solid 2px #e5e5e5;
margin: 2em 0; margin: 2em 0;
}
hr.major { &.major {
margin: 3em 0; margin: 3em 0;
} }
}
blockquote { blockquote {
border-left: solid 4px #e5e5e5; border-left: solid 4px #e5e5e5;
@ -161,7 +161,6 @@ html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockq
} }
/* Section/Article */ /* Section/Article */
section.special, article.special { section.special, article.special {
text-align: center; text-align: center;
} }
@ -196,13 +195,12 @@ html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockq
header.major { header.major {
padding: 1em 0; padding: 1em 0;
text-align: center; text-align: center;
}
header.major h2 { h2 {
margin: 0; margin: 0;
} }
header.major p { p {
display: inline-block; display: inline-block;
border-top: solid 2px #e5e5e5; border-top: solid 2px #e5e5e5;
color: #777; color: #777;
@ -210,9 +208,9 @@ html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockq
padding: 1.5em 0 0 0; padding: 1.5em 0 0 0;
font-style: normal; font-style: normal;
} }
}
/* Form */ /* Form */
form { form {
margin: 0 0 2em 0; margin: 0 0 2em 0;
} }
@ -240,41 +238,29 @@ html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockq
padding: 0 1em; padding: 0 1em;
text-decoration: none; text-decoration: none;
width: 100%; width: 100%;
}
input[type="text"]:invalid, &:invalid {
input[type="password"]:invalid,
input[type="email"]:invalid,
select:invalid,
textarea:invalid {
box-shadow: none; box-shadow: none;
} }
input[type="text"]:focus, &:focus {
input[type="password"]:focus,
input[type="email"]:focus,
select:focus,
textarea:focus {
border-color: #e89980; border-color: #e89980;
box-shadow: 0 0 0 2px #e89980; box-shadow: 0 0 0 2px #e89980;
} }
}
.select-wrapper { .select-wrapper {
text-decoration: none; text-decoration: none;
display: block; display: block;
position: relative; position: relative;
}
.select-wrapper:before { &:before {
-moz-osx-font-smoothing: grayscale; -moz-osx-font-smoothing: grayscale;
-webkit-font-smoothing: antialiased; -webkit-font-smoothing: antialiased;
font-family: FontAwesome; font-family: FontAwesome;
font-style: normal; font-style: normal;
font-weight: normal; font-weight: normal;
text-transform: none !important; text-transform: none !important;
}
.select-wrapper:before {
color: #e5e5e5; color: #e5e5e5;
content: '\f078'; content: '\f078';
display: block; display: block;
@ -288,9 +274,10 @@ html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockq
width: 3em; width: 3em;
} }
.select-wrapper select::-ms-expand { select::-ms-expand {
display: none; display: none;
} }
}
input[type="text"], input[type="text"],
input[type="password"], input[type="password"],
@ -312,10 +299,8 @@ html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockq
opacity: 0; opacity: 0;
width: 1em; width: 1em;
z-index: -1; z-index: -1;
}
input[type="checkbox"] + label, & + label {
input[type="radio"] + label {
text-decoration: none; text-decoration: none;
color: #777; color: #777;
cursor: pointer; cursor: pointer;
@ -325,20 +310,14 @@ html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockq
padding-left: 2.55em; padding-left: 2.55em;
padding-right: 0.75em; padding-right: 0.75em;
position: relative; position: relative;
}
input[type="checkbox"] + label:before, &:before {
input[type="radio"] + label:before {
-moz-osx-font-smoothing: grayscale; -moz-osx-font-smoothing: grayscale;
-webkit-font-smoothing: antialiased; -webkit-font-smoothing: antialiased;
font-family: FontAwesome; font-family: FontAwesome;
font-style: normal; font-style: normal;
font-weight: normal; font-weight: normal;
text-transform: none !important; text-transform: none !important;
}
input[type="checkbox"] + label:before,
input[type="radio"] + label:before {
background: #f8f8f8; background: #f8f8f8;
border-radius: 6px; border-radius: 6px;
border: solid 1px #e5e5e5; border: solid 1px #e5e5e5;
@ -352,20 +331,20 @@ html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockq
top: 0; top: 0;
width: 1.8em; width: 1.8em;
} }
}
input[type="checkbox"]:checked + label:before, &:checked + label:before {
input[type="radio"]:checked + label:before {
background: #666; background: #666;
border-color: #666; border-color: #666;
color: #ffffff; color: #ffffff;
content: '\f00c'; content: '\f00c';
} }
input[type="checkbox"]:focus + label:before, &:checked + label:before {
input[type="radio"]:focus + label:before {
border-color: #e89980; border-color: #e89980;
box-shadow: 0 0 0 1px #e89980; box-shadow: 0 0 0 1px #e89980;
} }
}
input[type="checkbox"] + label:before { input[type="checkbox"] + label:before {
border-radius: 6px; border-radius: 6px;
@ -401,7 +380,6 @@ html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockq
} }
/* Box */ /* Box */
.box { .box {
background: #fff; background: #fff;
border-radius: 6px; border-radius: 6px;
@ -517,7 +495,6 @@ html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockq
} }
/* Icon */ /* Icon */
.icon { .icon {
text-decoration: none; text-decoration: none;
border-bottom: none; border-bottom: none;
@ -616,7 +593,6 @@ html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockq
} }
/* List */ /* List */
ol { ol {
list-style: decimal; list-style: decimal;
margin: 0 0 2em 0; margin: 0 0 2em 0;
@ -747,7 +723,6 @@ html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockq
} }
/* Table */ /* Table */
.table-wrapper { .table-wrapper {
-webkit-overflow-scrolling: touch; -webkit-overflow-scrolling: touch;
overflow-x: auto; overflow-x: auto;
@ -815,7 +790,6 @@ html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockq
} }
/* Button */ /* Button */
input[type="submit"], input[type="submit"],
input[type="reset"], input[type="reset"],
input[type="button"], input[type="button"],
@ -959,7 +933,6 @@ html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockq
} }
/* Header */ /* Header */
#page-wrapper { #page-wrapper {
padding-top: 3em; padding-top: 3em;
} }
@ -968,36 +941,6 @@ html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockq
padding-top: 0; padding-top: 0;
} }
@-moz-keyframes reveal-header {
0% {
top: -5em;
}
100% {
top: 0;
}
}
@-webkit-keyframes reveal-header {
0% {
top: -5em;
}
100% {
top: 0;
}
}
@-ms-keyframes reveal-header {
0% {
top: -5em;
}
100% {
top: 0;
}
}
@keyframes reveal-header { @keyframes reveal-header {
0% { 0% {
top: -5em; top: -5em;
@ -1225,7 +1168,6 @@ html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockq
} }
/* Banner */ /* Banner */
#banner { #banner {
background-attachment: scroll, fixed; background-attachment: scroll, fixed;
background-color: #666; background-color: #666;
@ -1291,7 +1233,6 @@ html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockq
} }
/* Main */ /* Main */
#main { #main {
padding: 4em 0; padding: 4em 0;
} }
@ -1364,7 +1305,6 @@ html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockq
} }
/* CTA */ /* CTA */
#cta { #cta {
background: #e89980; background: #e89980;
color: #f9e5df; color: #f9e5df;
@ -1430,41 +1370,33 @@ html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockq
} }
/* Wide */ /* Wide */
@media screen and (max-width: 1680px) { @media screen and (max-width: 1680px) {
/* Basic */ /* Basic */
body, input, select, textarea { body, input, select, textarea {
font-size: 13pt; font-size: 13pt;
} }
/* Banner */ /* Banner */
#banner { #banner {
padding: 10em 0 18em 0; padding: 10em 0 18em 0;
} }
} }
/* Normal */ /* Normal */
@media screen and (max-width: 1280px) { @media screen and (max-width: 1280px) {
/* Basic */ /* Basic */
body, input, select, textarea { body, input, select, textarea {
font-size: 11pt; font-size: 11pt;
} }
/* Header */ /* Header */
.dropotron.level-0 { .dropotron.level-0 {
font-size: 1em; font-size: 1em;
} }
/* Banner */ /* Banner */
#banner { #banner {
background-attachment: scroll; background-attachment: scroll;
} }
@ -1472,23 +1404,18 @@ html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockq
#banner h2 { #banner h2 {
font-size: 3.5em; font-size: 3.5em;
} }
} }
/* Narrow */ /* Narrow */
@media screen and (max-width: 980px) { @media screen and (max-width: 980px) {
/* Basic */ /* Basic */
body, input, select, textarea { body, input, select, textarea {
font-size: 11pt; font-size: 11pt;
} }
} }
/* Narrower */ /* Narrower */
#navPanel, #navButton { #navPanel, #navButton {
display: none; display: none;
} }
@ -1496,7 +1423,6 @@ html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockq
@media screen and (max-width: 840px) { @media screen and (max-width: 840px) {
/* Basic */ /* Basic */
html, body { html, body {
overflow-x: hidden; overflow-x: hidden;
} }
@ -1510,7 +1436,6 @@ html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockq
} }
/* Section/Article */ /* Section/Article */
header br { header br {
display: none; display: none;
} }
@ -1520,7 +1445,6 @@ html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockq
} }
/* Box */ /* Box */
.box { .box {
padding: 3em 2em; padding: 3em 2em;
} }
@ -1545,7 +1469,6 @@ html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockq
} }
/* Header */ /* Header */
#page-wrapper { #page-wrapper {
padding-top: 0; padding-top: 0;
} }
@ -1557,7 +1480,6 @@ html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockq
/* Banner */ /* Banner */
/* Off-Canvas Navigation */ /* Off-Canvas Navigation */
#page-wrapper { #page-wrapper {
backface-visibility: hidden; backface-visibility: hidden;
transition: transform 0.5s ease; transition: transform 0.5s ease;
@ -1683,15 +1605,12 @@ html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockq
body.navPanel-visible #navPanel { body.navPanel-visible #navPanel {
transform: translateX(0); transform: translateX(0);
} }
} }
/* Mobile */ /* Mobile */
@media screen and (max-width: 736px) { @media screen and (max-width: 736px) {
/* Basic */ /* Basic */
body, input, select, textarea { body, input, select, textarea {
font-size: 11pt; font-size: 11pt;
} }
@ -1711,7 +1630,6 @@ html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockq
} }
/* Section/Article */ /* Section/Article */
header.major { header.major {
padding: 1em; padding: 1em;
} }
@ -1722,7 +1640,6 @@ html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockq
} }
/* Box */ /* Box */
.box { .box {
margin: 1em; margin: 1em;
overflow-x: hidden; overflow-x: hidden;
@ -1765,7 +1682,6 @@ html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockq
} }
/* Banner */ /* Banner */
#banner { #banner {
padding: 4em 0; padding: 4em 0;
} }
@ -1779,7 +1695,6 @@ html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockq
} }
/* Main */ /* Main */
#main { #main {
padding: 4em 0 0 0; padding: 4em 0 0 0;
} }
@ -1803,7 +1718,6 @@ html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockq
} }
/* Footer */ /* Footer */
#footer { #footer {
padding: 4em 0; padding: 4em 0;
} }
@ -1815,15 +1729,12 @@ html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockq
margin-left: 0; margin-left: 0;
padding-left: 0; padding-left: 0;
} }
} }
/* Mobile (Portrait) */ /* Mobile (Portrait) */
@media screen and (max-width: 480px) { @media screen and (max-width: 480px) {
/* Basic */ /* Basic */
html, body { html, body {
min-width: 320px; min-width: 320px;
} }
@ -1833,13 +1744,11 @@ html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockq
} }
/* Section/Article */ /* Section/Article */
header.major { header.major {
padding: 0; padding: 0;
} }
/* List */ /* List */
ul.actions { ul.actions {
margin: 0 0 2em 0; margin: 0 0 2em 0;
} }
@ -1873,7 +1782,6 @@ html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockq
} }
/* Box */ /* Box */
.box { .box {
border-radius: 0; border-radius: 0;
box-shadow: none; box-shadow: none;
@ -1887,8 +1795,8 @@ html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockq
} }
.box .image.featured { .box .image.featured {
border-radius: 0;
margin-left: -1em; margin-left: -1em;
border-radius: 0;
width: calc(100% + 2em); width: calc(100% + 2em);
} }
@ -1897,31 +1805,27 @@ html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockq
} }
.box .image.featured:first-child { .box .image.featured:first-child {
margin-bottom: 3em;
margin-top: -3em; margin-top: -3em;
margin-bottom: 3em;
} }
.box .image.featured:last-child { .box .image.featured:last-child {
margin-bottom: -3em;
margin-top: 3em; margin-top: 3em;
margin-bottom: -3em;
} }
/* Banner */ /* Banner */
#banner { #banner {
padding: 5em 1em 4em 1em; padding: 5em 1em 4em;
} }
/* Main */ /* Main */
#main > .box:first-child { #main > .box:first-child {
margin-top: 0; margin-top: 0;
} }
/* CTA */ /* CTA */
#cta { #cta {
padding: 2.5em 1em 3em 1em; padding: 2.5em 1em 3em;
} }
} }

View file

@ -4,9 +4,9 @@ $fa-font-path: "../fonts";
@import "node_modules/bootstrap/scss/bootstrap-grid"; @import "node_modules/bootstrap/scss/bootstrap-grid";
// Import Alpha theme (ish) // Import Alpha theme (ish)
@import 'alpha'; @import "alpha";
.box .box { .box .box {
border-radius: 0px; border-radius: 0;
} }