58 lines
1.1 KiB
CSS
58 lines
1.1 KiB
CSS
$content-max-width: 1000px !default;
|
|
$global-gutter: 30px !default;
|
|
|
|
@mixin .container($max-width: $content-max-width, $gutter: $global-gutter) {
|
|
width: calc(100% - $gutter);
|
|
max-width: $max-width;
|
|
margin: 0 auto;
|
|
}
|
|
|
|
@mixin .grid($direction: row) {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
flex-direction: $direction;
|
|
justify-content: flex-start;
|
|
}
|
|
|
|
@mixin .cell($count: 5, $gutter: $global-gutter) {
|
|
flex: 0 0 auto;
|
|
width: calc(100% / $count ~"-" (($count - 1) * $gutter / $count));
|
|
margin-right: $gutter;
|
|
|
|
&:nth-child($(count)n) {
|
|
margin-right: 0;
|
|
margin-left: auto;
|
|
}
|
|
}
|
|
|
|
@mixin .wipe {
|
|
/*Reset's every elements apperance*/
|
|
background: none repeat scroll 0 0 transparent;
|
|
border: medium none;
|
|
border-spacing: 0;
|
|
border-radius: 0;
|
|
font-family: inherit;
|
|
font-size: inherit;
|
|
font-weight: inherit;
|
|
line-height: inherit;
|
|
margin: 0;
|
|
padding: 0;
|
|
text-align: left;
|
|
text-decoration: none;
|
|
text-transform: inherit;
|
|
text-indent: 0;
|
|
}
|
|
|
|
@mixin .wipe-button {
|
|
@include .wipe;
|
|
|
|
&:focus {
|
|
outline: 0;
|
|
}
|
|
|
|
&::-moz-focus-inner {
|
|
border: 0;
|
|
padding: 0;
|
|
}
|
|
}
|