Basic responsive
This commit is contained in:
@ -17,7 +17,11 @@ main,
|
||||
footer {
|
||||
margin-left: 200px;
|
||||
|
||||
@include responsive( 800px ){
|
||||
@include responsive( null, $bp_shallow ){
|
||||
padding-bottom: 60px;
|
||||
}
|
||||
|
||||
@include responsive( $bp_medium ){
|
||||
margin-left: 0;
|
||||
|
||||
.sidebar-open & {
|
||||
|
||||
@ -9,6 +9,11 @@ $red: #cf2d2d;
|
||||
$green: #47af2a;
|
||||
$blue: #32b5f2;
|
||||
|
||||
$bp_wide: 1000px;
|
||||
$bp_medium: 800px;
|
||||
$bp_narrow: 350px;
|
||||
$bp_shallow: 700px;
|
||||
|
||||
@mixin one_line_text {
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
@ -46,9 +51,19 @@ $blue: #32b5f2;
|
||||
filter: blur( $size );
|
||||
}
|
||||
|
||||
@mixin responsive( $width ){
|
||||
@media (max-width: $width){
|
||||
@content;
|
||||
@mixin responsive( $width: null, $height: null ){
|
||||
@if $width && $height {
|
||||
@media( max-width: $width ), ( max-height: $height ){
|
||||
@content;
|
||||
}
|
||||
}@else if $width {
|
||||
@media( max-width: $width ){
|
||||
@content;
|
||||
}
|
||||
}@else if $height {
|
||||
@media( max-height: $height ){
|
||||
@content;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user