Update sass
This commit is contained in:
@ -1,5 +0,0 @@
|
||||
# Base
|
||||
|
||||
The `base/` folder holds what we might call the boilerplate code for the project. In there, you might find some typographic rules, and probably a stylesheet (that I’m used to calling `_base.scss`), defining some standard styles for commonly used HTML elements.
|
||||
|
||||
Reference: [Sass Guidelines](http://sass-guidelin.es/) > [Architecture](http://sass-guidelin.es/#architecture) > [Base folder](http://sass-guidelin.es/#base-folder)
|
@ -4,32 +4,25 @@
|
||||
|
||||
/**
|
||||
* Set up a decent box model on the root element
|
||||
*/
|
||||
html {
|
||||
box-sizing: border-box;
|
||||
}
|
||||
html
|
||||
box-sizing: border-box
|
||||
|
||||
/**
|
||||
* Make all elements from the DOM inherit from the parent box-sizing
|
||||
* Since `*` has a specificity of 0, it does not override the `html` value
|
||||
* making all elements inheriting from the root box-sizing value
|
||||
* See: https://css-tricks.com/inheriting-box-sizing-probably-slightly-better-best-practice/
|
||||
*/
|
||||
*,
|
||||
*::before,
|
||||
*::after {
|
||||
box-sizing: inherit;
|
||||
}
|
||||
*::after
|
||||
box-sizing: inherit
|
||||
|
||||
/**
|
||||
* Basic styles for links
|
||||
*/
|
||||
a {
|
||||
color: $brand-color;
|
||||
text-decoration: none;
|
||||
a
|
||||
color: $brand-color
|
||||
text-decoration: none
|
||||
|
||||
@include on-event {
|
||||
color: $text-color;
|
||||
text-decoration: underline;
|
||||
}
|
||||
}
|
||||
+on-event
|
||||
color: $text-color
|
||||
text-decoration: underline
|
||||
|
@ -1,35 +0,0 @@
|
||||
// -----------------------------------------------------------------------------
|
||||
// This file contains very basic styles.
|
||||
// -----------------------------------------------------------------------------
|
||||
|
||||
/**
|
||||
* Set up a decent box model on the root element
|
||||
*/
|
||||
html {
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
/**
|
||||
* Make all elements from the DOM inherit from the parent box-sizing
|
||||
* Since `*` has a specificity of 0, it does not override the `html` value
|
||||
* making all elements inheriting from the root box-sizing value
|
||||
* See: https://css-tricks.com/inheriting-box-sizing-probably-slightly-better-best-practice/
|
||||
*/
|
||||
*,
|
||||
*::before,
|
||||
*::after {
|
||||
box-sizing: inherit;
|
||||
}
|
||||
|
||||
/**
|
||||
* Basic styles for links
|
||||
*/
|
||||
a {
|
||||
color: $brand-color;
|
||||
text-decoration: none;
|
||||
|
||||
@include on-event {
|
||||
color: $text-color;
|
||||
text-decoration: underline;
|
||||
}
|
||||
}
|
@ -1,3 +0,0 @@
|
||||
// -----------------------------------------------------------------------------
|
||||
// This file contains all @font-face declarations, if any.
|
||||
// -----------------------------------------------------------------------------
|
@ -4,52 +4,58 @@
|
||||
|
||||
/**
|
||||
* Clear inner floats
|
||||
*/
|
||||
.clearfix::after {
|
||||
clear: both;
|
||||
content: '';
|
||||
display: table;
|
||||
}
|
||||
.clearfix::after
|
||||
clear: both
|
||||
content: ''
|
||||
display: table
|
||||
|
||||
/**
|
||||
* Main content containers
|
||||
* 1. Make the container full-width with a maximum width
|
||||
* 2. Center it in the viewport
|
||||
* 3. Leave some space on the edges, especially valuable on small screens
|
||||
*/
|
||||
.container {
|
||||
max-width: $max-width; /* 1 */
|
||||
margin-left: auto; /* 2 */
|
||||
margin-right: auto; /* 2 */
|
||||
padding-left: 20px; /* 3 */
|
||||
padding-right: 20px; /* 3 */
|
||||
width: 100%; /* 1 */
|
||||
}
|
||||
.container
|
||||
max-width: $max-width
|
||||
|
||||
/* 1
|
||||
margin-left: auto
|
||||
|
||||
/* 2
|
||||
margin-right: auto
|
||||
|
||||
/* 2
|
||||
padding-left: 20px
|
||||
|
||||
/* 3
|
||||
padding-right: 20px
|
||||
|
||||
/* 3
|
||||
width: 100%
|
||||
|
||||
/* 1
|
||||
|
||||
/**
|
||||
* Hide text while making it readable for screen readers
|
||||
* 1. Needed in WebKit-based browsers because of an implementation bug;
|
||||
* See: https://code.google.com/p/chromium/issues/detail?id=457146
|
||||
*/
|
||||
.hide-text {
|
||||
overflow: hidden;
|
||||
padding: 0; /* 1 */
|
||||
text-indent: 101%;
|
||||
white-space: nowrap;
|
||||
}
|
||||
.hide-text
|
||||
overflow: hidden
|
||||
padding: 0
|
||||
|
||||
/* 1
|
||||
text-indent: 101%
|
||||
white-space: nowrap
|
||||
|
||||
/**
|
||||
* Hide element while making it readable for screen readers
|
||||
* Shamelessly borrowed from HTML5Boilerplate:
|
||||
* https://github.com/h5bp/html5-boilerplate/blob/master/src/css/main.css#L119-L133
|
||||
*/
|
||||
.visually-hidden {
|
||||
border: 0;
|
||||
clip: rect(0 0 0 0);
|
||||
height: 1px;
|
||||
margin: -1px;
|
||||
overflow: hidden;
|
||||
padding: 0;
|
||||
position: absolute;
|
||||
width: 1px;
|
||||
}
|
||||
.visually-hidden
|
||||
border: 0
|
||||
clip: rect(0 0 0 0)
|
||||
height: 1px
|
||||
margin: -1px
|
||||
overflow: hidden
|
||||
padding: 0
|
||||
position: absolute
|
||||
width: 1px
|
||||
|
@ -1,55 +0,0 @@
|
||||
// -----------------------------------------------------------------------------
|
||||
// This file contains CSS helper classes.
|
||||
// -----------------------------------------------------------------------------
|
||||
|
||||
/**
|
||||
* Clear inner floats
|
||||
*/
|
||||
.clearfix::after {
|
||||
clear: both;
|
||||
content: '';
|
||||
display: table;
|
||||
}
|
||||
|
||||
/**
|
||||
* Main content containers
|
||||
* 1. Make the container full-width with a maximum width
|
||||
* 2. Center it in the viewport
|
||||
* 3. Leave some space on the edges, especially valuable on small screens
|
||||
*/
|
||||
.container {
|
||||
max-width: $max-width; /* 1 */
|
||||
margin-left: auto; /* 2 */
|
||||
margin-right: auto; /* 2 */
|
||||
padding-left: 20px; /* 3 */
|
||||
padding-right: 20px; /* 3 */
|
||||
width: 100%; /* 1 */
|
||||
}
|
||||
|
||||
/**
|
||||
* Hide text while making it readable for screen readers
|
||||
* 1. Needed in WebKit-based browsers because of an implementation bug;
|
||||
* See: https://code.google.com/p/chromium/issues/detail?id=457146
|
||||
*/
|
||||
.hide-text {
|
||||
overflow: hidden;
|
||||
padding: 0; /* 1 */
|
||||
text-indent: 101%;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
/**
|
||||
* Hide element while making it readable for screen readers
|
||||
* Shamelessly borrowed from HTML5Boilerplate:
|
||||
* https://github.com/h5bp/html5-boilerplate/blob/master/src/css/main.css#L119-L133
|
||||
*/
|
||||
.visually-hidden {
|
||||
border: 0;
|
||||
clip: rect(0 0 0 0);
|
||||
height: 1px;
|
||||
margin: -1px;
|
||||
overflow: hidden;
|
||||
padding: 0;
|
||||
position: absolute;
|
||||
width: 1px;
|
||||
}
|
@ -1,7 +1,5 @@
|
||||
/**
|
||||
* Basic typography style for copy text
|
||||
*/
|
||||
body {
|
||||
color: $text-color;
|
||||
font: normal 125% / 1.4 $text-font-stack;
|
||||
}
|
||||
body
|
||||
color: $text-color
|
||||
font: normal 125% / 1.4 $text-font-stack
|
||||
|
@ -1,7 +0,0 @@
|
||||
/**
|
||||
* Basic typography style for copy text
|
||||
*/
|
||||
body {
|
||||
color: $text-color;
|
||||
font: normal 125% / 1.4 $text-font-stack;
|
||||
}
|
Reference in New Issue
Block a user