[TASK] Move breakpoints to twitter bootstrap grid

This commit is contained in:
Xaver Maierhofer 2016-06-25 01:09:13 +02:00
parent a112b8f8af
commit 303bde3851
3 changed files with 23 additions and 8 deletions

View File

@ -14,14 +14,15 @@
button {
margin-left: $button-distance;
}
@media screen and (max-width: $min-screen-width) {
@media screen and (max-width: map-get($grid-breakpoints, lg) - 1) {
right: -1rem;
top: 0;
transform: scale(.8);
}
}
@media screen and (max-width: $min-screen-width) {
@media screen and (max-width: map-get($grid-breakpoints, lg) - 1) {
height: calc(100vh - 150px);
min-height: 240px;
position: relative;

View File

@ -12,7 +12,7 @@
left: $button-distance;
transform: scale(-1, 1);
}
@media screen and (max-width: $min-screen-width) {
@media screen and (max-width: map-get($grid-breakpoints, lg) - 1) {
width: auto;
}
}
@ -69,7 +69,7 @@
}
}
@media screen and (max-width: 80em) {
@media screen and (max-width: map-get($grid-breakpoints, xl) - 1) {
background: $color-white;
font-size: .8em;
margin: 0;
@ -88,7 +88,7 @@
}
}
@media screen and (max-width: $min-screen-width) {
@media screen and (max-width: map-get($grid-breakpoints, lg) - 1) {
height: auto;
min-height: 0;
position: static;

View File

@ -20,9 +20,23 @@ $font-size-small: 11px !default;
$button-font-size: 1.6rem !default;
$button-distance: 16px !default;
$min-screen-width: 840px !default;
$sidebar-width: 560px !default;
$sidebar-width-small: 426px !default;
// Bootstrap breakpoints
$grid-breakpoints: (
// Extra small screen / phone
xs: 0,
// Small screen / phone
sm: 544px,
// Medium screen / tablet
md: 768px,
// Large screen / desktop
lg: 992px,
// Extra large screen / wide desktop
xl: 1200px
) !default;
// 45% sidebar - based on viewport
$sidebar-width: map-get($grid-breakpoints, xl) * .45 !default;
$sidebar-width-small: map-get($grid-breakpoints, lg) * .45 !default;
// En/disable box-shadows
$shadows: 1 !default;