73 lines
1021 B
SCSS
73 lines
1021 B
SCSS
/**
|
|
* Code formatting
|
|
*/
|
|
pre,
|
|
code {
|
|
border: 1px solid #000;
|
|
background-color: #eef;
|
|
}
|
|
|
|
code {
|
|
padding: 1px 5px;
|
|
}
|
|
|
|
pre {
|
|
padding: 8px 12px;
|
|
overflow-x: auto;
|
|
|
|
> code {
|
|
border: 0;
|
|
padding-right: 0;
|
|
padding-left: 0;
|
|
}
|
|
}
|
|
|
|
/**
|
|
* Set `margin-bottom` to maintain vertical rhythm
|
|
*/
|
|
h1, h2, h3, h4, h5, h6,
|
|
p, blockquote, pre,
|
|
ul, ol, dl, figure,
|
|
%vertical-rhythm {
|
|
margin-bottom: $spacing-unit / 2;
|
|
}
|
|
|
|
/**
|
|
* Wrapper
|
|
*/
|
|
.wrapper {
|
|
margin-right: auto;
|
|
margin-left: auto;
|
|
padding-right: $spacing-unit;
|
|
padding-left: $spacing-unit;
|
|
@extend %clearfix;
|
|
|
|
@include media-query($on-laptop) {
|
|
max-width: -webkit-calc(#{$content-width} - (#{$spacing-unit}));
|
|
max-width: calc(#{$content-width} - (#{$spacing-unit}));
|
|
padding-right: $spacing-unit / 2;
|
|
padding-left: $spacing-unit / 2;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
* Clearfix
|
|
*/
|
|
%clearfix:after {
|
|
content: "";
|
|
display: table;
|
|
clear: both;
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
* Icons
|
|
*/
|
|
.icon > svg {
|
|
display: inline-block;
|
|
vertical-align: middle;
|
|
}
|