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,124 +8,124 @@
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;
padding: 0;
border: 0;
font-size: 100%;
font: inherit;
padding: 0;
vertical-align: baseline;
font: inherit;
font-size: 100%;
}
/* Basic */
body {
background: #f5f5f5;
}
body {
background: #F5F5F5;
}
body, input, select, textarea {
body, input, select, textarea {
line-height: 1.65em;
letter-spacing: -0.015em;
color: #777;
font-family: "Source Sans Pro", sans-serif;
font-size: 16pt;
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;
border-bottom: dotted 1px;
color: #e89980;
text-decoration: none;
}
color: #E89980;
a:hover {
&:hover {
border-bottom-color: transparent;
}
}
strong, b {
strong, b {
color: #646464;
font-weight: 400;
}
}
em, i {
em, i {
font-style: italic;
}
}
p {
p {
margin: 0 0 2em 0;
}
}
h1, h2, h3, h4, h5, h6 {
h1, h2, h3, h4, h5, h6 {
color: #646464;
font-weight: 300;
line-height: 1em;
margin: 0 0 0.5em 0;
}
h1 a, h2 a, h3 a, h4 a, h5 a, h6 a {
& a {
color: inherit;
text-decoration: none;
}
}
h2 {
h2 {
font-size: 2.25em;
line-height: 1.5em;
letter-spacing: -0.035em;
}
}
h3 {
h3 {
font-size: 1.75em;
line-height: 1.5em;
letter-spacing: -0.025em;
}
}
h4 {
h4 {
font-size: 1.1em;
line-height: 1.5em;
letter-spacing: 0;
}
}
h5 {
h5 {
font-size: 0.9em;
line-height: 1.5em;
letter-spacing: 0;
}
}
h6 {
h6 {
font-size: 0.7em;
line-height: 1.5em;
letter-spacing: 0;
}
}
sub {
sub {
font-size: 0.8em;
position: relative;
top: 0.5em;
}
}
sup {
sup {
font-size: 0.8em;
position: relative;
top: -0.5em;
}
}
hr {
hr {
border: 0;
border-bottom: solid 2px #e5e5e5;
margin: 2em 0;
}
hr.major {
&.major {
margin: 3em 0;
}
}
blockquote {
blockquote {
border-left: solid 4px #e5e5e5;
font-style: italic;
margin: 0 0 2em 0;
padding: 0.5em 0 0.5em 2em;
}
}
pre {
pre {
-webkit-overflow-scrolling: touch;
background: #f8f8f8;
border-radius: 6px;
@ -136,9 +136,9 @@ html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockq
margin: 0 0 2em 0;
overflow-x: auto;
padding: 1em 1.5em;
}
}
code {
code {
background: #f8f8f8;
border-radius: 6px;
border: solid 1px #e5e5e5;
@ -146,63 +146,61 @@ html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockq
font-size: 0.9em;
margin: 0 0.25em;
padding: 0.25em 0.65em;
}
}
.align-left {
.align-left {
text-align: left;
}
}
.align-center {
.align-center {
text-align: center;
}
}
.align-right {
.align-right {
text-align: right;
}
}
/* Section/Article */
section.special, article.special {
section.special, article.special {
text-align: center;
}
}
header p {
header p {
color: #999;
position: relative;
margin: 0 0 1.5em 0;
font-style: italic;
}
}
header h2 + p {
header h2 + p {
font-size: 1.25em;
margin-top: -1em;
line-height: 1.5em;
}
}
header h3 + p {
header h3 + p {
font-size: 1.1em;
margin-top: -0.85em;
line-height: 1.5em;
}
}
header h4 + p,
header h5 + p,
header h6 + p {
header h4 + p,
header h5 + p,
header h6 + p {
font-size: 0.8em;
margin-top: -0.5em;
line-height: 1.5em;
}
}
header.major {
header.major {
padding: 1em 0;
text-align: center;
}
header.major h2 {
h2 {
margin: 0;
}
header.major p {
p {
display: inline-block;
border-top: solid 2px #e5e5e5;
color: #777;
@ -210,26 +208,26 @@ html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockq
padding: 1.5em 0 0 0;
font-style: normal;
}
}
/* Form */
form {
form {
margin: 0 0 2em 0;
}
}
label {
label {
color: #646464;
display: block;
font-size: 0.9em;
font-weight: 300;
margin: 0 0 1em 0;
}
}
input[type="text"],
input[type="password"],
input[type="email"],
select,
textarea {
input[type="text"],
input[type="password"],
input[type="email"],
select,
textarea {
appearance: none;
background: #f8f8f8;
border-radius: 6px;
@ -240,41 +238,29 @@ html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockq
padding: 0 1em;
text-decoration: none;
width: 100%;
}
input[type="text"]:invalid,
input[type="password"]:invalid,
input[type="email"]:invalid,
select:invalid,
textarea:invalid {
&:invalid {
box-shadow: none;
}
input[type="text"]:focus,
input[type="password"]:focus,
input[type="email"]:focus,
select:focus,
textarea:focus {
&:focus {
border-color: #e89980;
box-shadow: 0 0 0 2px #e89980;
}
}
.select-wrapper {
.select-wrapper {
text-decoration: none;
display: block;
position: relative;
}
.select-wrapper:before {
&:before {
-moz-osx-font-smoothing: grayscale;
-webkit-font-smoothing: antialiased;
font-family: FontAwesome;
font-style: normal;
font-weight: normal;
text-transform: none !important;
}
.select-wrapper:before {
color: #e5e5e5;
content: '\f078';
display: block;
@ -288,23 +274,24 @@ html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockq
width: 3em;
}
.select-wrapper select::-ms-expand {
select::-ms-expand {
display: none;
}
}
input[type="text"],
input[type="password"],
input[type="email"],
select {
input[type="text"],
input[type="password"],
input[type="email"],
select {
height: 3em;
}
}
textarea {
textarea {
padding: 0.75em 1em;
}
}
input[type="checkbox"],
input[type="radio"] {
input[type="checkbox"],
input[type="radio"] {
appearance: none;
display: block;
float: left;
@ -312,10 +299,8 @@ html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockq
opacity: 0;
width: 1em;
z-index: -1;
}
input[type="checkbox"] + label,
input[type="radio"] + label {
& + label {
text-decoration: none;
color: #777;
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-right: 0.75em;
position: relative;
}
input[type="checkbox"] + label:before,
input[type="radio"] + label:before {
&:before {
-moz-osx-font-smoothing: grayscale;
-webkit-font-smoothing: antialiased;
font-family: FontAwesome;
font-style: normal;
font-weight: normal;
text-transform: none !important;
}
input[type="checkbox"] + label:before,
input[type="radio"] + label:before {
background: #f8f8f8;
border-radius: 6px;
border: solid 1px #e5e5e5;
@ -352,63 +331,62 @@ html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockq
top: 0;
width: 1.8em;
}
}
input[type="checkbox"]:checked + label:before,
input[type="radio"]:checked + label:before {
&:checked + label:before {
background: #666;
border-color: #666;
color: #ffffff;
content: '\f00c';
}
input[type="checkbox"]:focus + label:before,
input[type="radio"]:focus + label:before {
&:checked + label:before {
border-color: #e89980;
box-shadow: 0 0 0 1px #e89980;
}
}
input[type="checkbox"] + label:before {
input[type="checkbox"] + label:before {
border-radius: 6px;
}
}
input[type="radio"] + label:before {
input[type="radio"] + label:before {
border-radius: 100%;
}
}
::-webkit-input-placeholder {
::-webkit-input-placeholder {
color: #999 !important;
opacity: 1.0;
}
}
:-moz-placeholder {
:-moz-placeholder {
color: #999 !important;
opacity: 1.0;
}
}
::-moz-placeholder {
::-moz-placeholder {
color: #999 !important;
opacity: 1.0;
}
}
:-ms-input-placeholder {
:-ms-input-placeholder {
color: #999 !important;
opacity: 1.0;
}
}
.formerize-placeholder {
.formerize-placeholder {
color: #999 !important;
opacity: 1.0;
}
}
/* Box */
.box {
.box {
background: #fff;
border-radius: 6px;
box-shadow: 0 2px 0 0 #e5e5e5;
margin: 0 0 2em 0;
padding: 3em;
}
}
.box > :last-child {
margin-bottom: 0;
@ -517,12 +495,11 @@ html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockq
}
/* Icon */
.icon {
.icon {
text-decoration: none;
border-bottom: none;
position: relative;
}
}
.icon:before {
-moz-osx-font-smoothing: grayscale;
@ -580,12 +557,12 @@ html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockq
/* Image */
.image {
.image {
border-radius: 6px;
border: 0;
display: inline-block;
position: relative;
}
}
.image img {
border-radius: 6px;
@ -616,22 +593,21 @@ html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockq
}
/* List */
ol {
ol {
list-style: decimal;
margin: 0 0 2em 0;
padding-left: 1.25em;
}
}
ol li {
padding-left: 0.25em;
}
ul {
ul {
list-style: disc;
margin: 0 0 2em 0;
padding-left: 1em;
}
}
ul li {
padding-left: 0.5em;
@ -742,21 +718,20 @@ html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockq
padding: 0 0 0 0.5em;
}
dl {
dl {
margin: 0 0 2em 0;
}
}
/* Table */
.table-wrapper {
.table-wrapper {
-webkit-overflow-scrolling: touch;
overflow-x: auto;
}
}
table {
table {
margin: 0 0 2em 0;
width: 100%;
}
}
table tbody tr {
border: solid 1px #e5e5e5;
@ -815,11 +790,10 @@ html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockq
}
/* Button */
input[type="submit"],
input[type="reset"],
input[type="button"],
.button {
input[type="submit"],
input[type="reset"],
input[type="button"],
.button {
appearance: none;
transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
background-color: #666;
@ -835,7 +809,7 @@ html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockq
text-align: center;
text-decoration: none;
white-space: nowrap;
}
}
input[type="submit"]:hover,
input[type="reset"]:hover,
@ -959,16 +933,15 @@ html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockq
}
/* Header */
#page-wrapper {
#page-wrapper {
padding-top: 3em;
}
}
body.landing #page-wrapper {
body.landing #page-wrapper {
padding-top: 0;
}
}
@-moz-keyframes reveal-header {
@keyframes reveal-header {
0% {
top: -5em;
}
@ -976,39 +949,9 @@ html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockq
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 {
0% {
top: -5em;
}
100% {
top: 0;
}
}
#header {
#header {
background: #444;
color: #bbb;
cursor: default;
@ -1019,7 +962,7 @@ html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockq
top: 0;
width: 100%;
z-index: 10000;
}
}
#header h1 {
color: inherit;
@ -1170,7 +1113,7 @@ html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockq
background-color: rgba(255, 255, 255, 0.2);
}
.dropotron {
.dropotron {
background: #fff;
border-radius: 6px;
box-shadow: 0 2px 0 0 rgba(0, 0, 0, 0.065), inset 0 -1px 0 0 #fff, inset 0 0 0 1px rgba(229, 229, 229, 0.5);
@ -1178,7 +1121,7 @@ html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockq
margin: calc(-0.5em + 1px) 0 0 1px;
padding: 0.5em 0;
width: 11em;
}
}
.dropotron li {
padding: 0;
@ -1225,8 +1168,7 @@ html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockq
}
/* Banner */
#banner {
#banner {
background-attachment: scroll, fixed;
background-color: #666;
background-image: url("images/overlay.png"), url("../../images/banner.jpg");
@ -1236,7 +1178,7 @@ html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockq
color: #fff;
padding: 12em 0 20em 0;
text-align: center;
}
}
#banner :last-child {
margin-bottom: 0;
@ -1291,10 +1233,9 @@ html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockq
}
/* Main */
#main {
#main {
padding: 4em 0;
}
}
#main > header {
text-align: center;
@ -1315,17 +1256,17 @@ html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockq
padding: 1em 0 1.25em 0;
}
body.landing #main {
body.landing #main {
margin-top: -14em;
}
}
/* Footer */
#footer {
#footer {
background: #f0f0f0;
padding: 4em 0 6em 0;
text-align: center;
}
}
#footer .icons a {
transition: opacity 0.2s ease-in-out;
@ -1364,13 +1305,12 @@ html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockq
}
/* CTA */
#cta {
#cta {
background: #e89980;
color: #f9e5df;
padding: 3.5em 0 4em 0;
text-align: center;
}
}
#cta h2, #cta h3, #cta h4, #cta h5, #cta h6 {
color: inherit;
@ -1430,41 +1370,33 @@ html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockq
}
/* Wide */
@media screen and (max-width: 1680px) {
@media screen and (max-width: 1680px) {
/* Basic */
body, input, select, textarea {
font-size: 13pt;
}
/* Banner */
#banner {
padding: 10em 0 18em 0;
}
}
}
/* Normal */
@media screen and (max-width: 1280px) {
@media screen and (max-width: 1280px) {
/* Basic */
body, input, select, textarea {
font-size: 11pt;
}
/* Header */
.dropotron.level-0 {
font-size: 1em;
}
/* Banner */
#banner {
background-attachment: scroll;
}
@ -1472,31 +1404,25 @@ html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockq
#banner h2 {
font-size: 3.5em;
}
}
}
/* Narrow */
@media screen and (max-width: 980px) {
@media screen and (max-width: 980px) {
/* Basic */
body, input, select, textarea {
font-size: 11pt;
}
}
}
/* Narrower */
#navPanel, #navButton {
#navPanel, #navButton {
display: none;
}
}
@media screen and (max-width: 840px) {
@media screen and (max-width: 840px) {
/* Basic */
html, body {
overflow-x: hidden;
}
@ -1510,7 +1436,6 @@ html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockq
}
/* Section/Article */
header br {
display: none;
}
@ -1520,7 +1445,6 @@ html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockq
}
/* Box */
.box {
padding: 3em 2em;
}
@ -1545,7 +1469,6 @@ html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockq
}
/* Header */
#page-wrapper {
padding-top: 0;
}
@ -1557,7 +1480,6 @@ html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockq
/* Banner */
/* Off-Canvas Navigation */
#page-wrapper {
backface-visibility: hidden;
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 {
transform: translateX(0);
}
}
}
/* Mobile */
@media screen and (max-width: 736px) {
@media screen and (max-width: 736px) {
/* Basic */
body, input, select, textarea {
font-size: 11pt;
}
@ -1711,7 +1630,6 @@ html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockq
}
/* Section/Article */
header.major {
padding: 1em;
}
@ -1722,7 +1640,6 @@ html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockq
}
/* Box */
.box {
margin: 1em;
overflow-x: hidden;
@ -1765,7 +1682,6 @@ html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockq
}
/* Banner */
#banner {
padding: 4em 0;
}
@ -1779,7 +1695,6 @@ html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockq
}
/* Main */
#main {
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 {
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;
padding-left: 0;
}
}
}
/* Mobile (Portrait) */
@media screen and (max-width: 480px) {
@media screen and (max-width: 480px) {
/* Basic */
html, body {
min-width: 320px;
}
@ -1833,13 +1744,11 @@ html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockq
}
/* Section/Article */
header.major {
padding: 0;
}
/* List */
ul.actions {
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 {
border-radius: 0;
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 {
border-radius: 0;
margin-left: -1em;
border-radius: 0;
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 {
margin-bottom: 3em;
margin-top: -3em;
margin-bottom: 3em;
}
.box .image.featured:last-child {
margin-bottom: -3em;
margin-top: 3em;
margin-bottom: -3em;
}
/* Banner */
#banner {
padding: 5em 1em 4em 1em;
padding: 5em 1em 4em;
}
/* Main */
#main > .box:first-child {
margin-top: 0;
}
/* 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 Alpha theme (ish)
@import 'alpha';
@import "alpha";
.box .box {
border-radius: 0px;
border-radius: 0;
}