KNACSS/sass/_library/_responsive.scss

285 lines
4.3 KiB
SCSS
Raw Normal View History

2016-05-20 08:58:56 +02:00
/* -------------------------- */
/* ==Responsive helpers */
/* -------------------------- */
/* large screens */
/* ------------- */
2014-05-04 15:48:00 +02:00
2017-06-21 10:50:33 +02:00
@media (min-width: $large) {
2014-05-04 15:48:00 +02:00
2015-07-01 13:47:48 +02:00
/* layouts for large screens */
2017-07-31 11:45:22 +02:00
.large-hidden {
2015-07-01 13:47:48 +02:00
display: none !important;
}
2017-07-31 11:45:22 +02:00
.large-visible {
2015-07-01 13:47:48 +02:00
display: block !important;
}
2017-07-31 11:45:22 +02:00
.large-no-float {
2015-07-01 13:47:48 +02:00
float: none;
}
2017-07-31 11:45:22 +02:00
.large-inbl {
2015-07-01 13:47:48 +02:00
display: inline-block;
float: none;
vertical-align: top;
}
/* widths for large screens */
2017-07-31 11:45:22 +02:00
.large-w25 {
2015-07-01 13:47:48 +02:00
width: 25% !important;
}
2017-07-31 11:45:22 +02:00
.large-w33 {
width: 33.333333% !important;
2015-07-01 13:47:48 +02:00
}
2017-07-31 11:45:22 +02:00
.large-w50 {
2015-07-01 13:47:48 +02:00
width: 50% !important;
}
2017-07-31 11:45:22 +02:00
.large-w66 {
width: 66.666666% !important;
2015-07-01 13:47:48 +02:00
}
2017-07-31 11:45:22 +02:00
.large-w75 {
2015-07-01 13:47:48 +02:00
width: 75% !important;
}
2017-07-31 11:45:22 +02:00
.large-w100,
.large-wauto {
2015-07-01 13:47:48 +02:00
display: block !important;
float: none !important;
clear: none !important;
width: auto !important;
margin-left: 0 !important;
margin-right: 0 !important;
border: 0;
}
/* margins for large screens */
2017-07-31 11:45:22 +02:00
.large-man,
.large-ma0 {
2015-07-01 13:47:48 +02:00
margin: 0 !important;
}
2014-05-04 15:48:00 +02:00
}
2016-05-20 08:58:56 +02:00
/* medium screens */
/* -------------- */
2017-06-21 10:50:33 +02:00
@media (min-width: $medium) and (max-width: ($large - 1)) {
2015-07-01 13:47:48 +02:00
/* layouts for medium screens */
2017-07-31 11:45:22 +02:00
.medium-hidden {
2015-07-01 13:47:48 +02:00
display: none !important;
}
2017-07-31 11:45:22 +02:00
.medium-visible {
2015-07-01 13:47:48 +02:00
display: block !important;
}
2017-07-31 11:45:22 +02:00
.medium-no-float {
2015-07-01 13:47:48 +02:00
float: none;
}
2017-07-31 11:45:22 +02:00
.medium-inbl {
2015-07-01 13:47:48 +02:00
display: inline-block;
float: none;
vertical-align: top;
}
/* widths for medium screens */
2017-07-31 11:45:22 +02:00
.medium-w25 {
2015-07-01 13:47:48 +02:00
width: 25% !important;
}
2017-07-31 11:45:22 +02:00
.medium-w33 {
width: 33.333333% !important;
2015-07-01 13:47:48 +02:00
}
2017-07-31 11:45:22 +02:00
.medium-w50 {
2015-07-01 13:47:48 +02:00
width: 50% !important;
}
2017-07-31 11:45:22 +02:00
.medium-w66 {
width: 66.666666% !important;
2015-07-01 13:47:48 +02:00
}
2017-07-31 11:45:22 +02:00
.medium-w75 {
2015-07-01 13:47:48 +02:00
width: 75% !important;
}
2017-07-31 11:45:22 +02:00
.medium-w100,
.medium-wauto {
2015-07-01 13:47:48 +02:00
display: block !important;
float: none !important;
clear: none !important;
width: auto !important;
margin-left: 0 !important;
margin-right: 0 !important;
border: 0;
}
/* margins for medium screens */
2017-07-31 11:45:22 +02:00
.medium-man,
.medium-ma0 {
2015-07-01 13:47:48 +02:00
margin: 0 !important;
}
}
2016-05-20 08:58:56 +02:00
/* small screens */
/* ------------- */
2017-06-21 10:50:33 +02:00
@media (min-width: $small) and (max-width: ($medium - 1)) {
2014-05-04 15:48:00 +02:00
2015-07-01 13:47:48 +02:00
/* layouts for small screens */
2017-07-31 11:45:22 +02:00
.small-hidden {
2015-07-01 13:47:48 +02:00
display: none !important;
}
2017-07-31 11:45:22 +02:00
.small-visible {
2015-07-01 13:47:48 +02:00
display: block !important;
}
2017-07-31 11:45:22 +02:00
.small-no-float {
2015-07-01 13:47:48 +02:00
float: none;
}
2017-07-31 11:45:22 +02:00
.small-inbl {
2015-07-01 13:47:48 +02:00
display: inline-block;
float: none;
vertical-align: top;
}
/* widths for small screens */
2017-07-31 11:45:22 +02:00
.small-w25 {
2015-07-01 13:47:48 +02:00
width: 25% !important;
}
2017-07-31 11:45:22 +02:00
.small-w33 {
width: 33.333333% !important;
2015-07-01 13:47:48 +02:00
}
2017-07-31 11:45:22 +02:00
.small-w50 {
2015-07-01 13:47:48 +02:00
width: 50% !important;
}
2017-07-31 11:45:22 +02:00
.small-w66 {
width: 66.666666% !important;
2015-07-01 13:47:48 +02:00
}
2017-07-31 11:45:22 +02:00
.small-w75 {
2015-07-01 13:47:48 +02:00
width: 75% !important;
}
2017-07-31 11:45:22 +02:00
.small-w100,
.small-wauto {
2015-07-01 13:47:48 +02:00
display: block !important;
float: none !important;
clear: none !important;
width: auto !important;
margin-left: 0 !important;
margin-right: 0 !important;
border: 0;
}
/* margins for small screens */
2017-07-31 11:45:22 +02:00
.small-man,
.small-ma0 {
2015-07-01 13:47:48 +02:00
margin: 0 !important;
}
2017-07-31 11:45:22 +02:00
.small-pan,
.small-pa0 {
2015-07-01 13:47:48 +02:00
padding: 0 !important;
}
2015-03-07 14:53:44 +01:00
2014-05-04 15:48:00 +02:00
}
2016-05-20 08:58:56 +02:00
/* tiny screens */
/* ------------ */
2017-06-21 10:50:33 +02:00
@media (max-width: $small - 1) {
2015-03-07 14:53:44 +01:00
2015-07-01 13:47:48 +02:00
/* quick small resolution reset */
2017-07-31 11:45:22 +02:00
.mod,
.col,
2015-07-01 13:47:48 +02:00
fieldset {
display: block !important;
float: none !important;
clear: none !important;
width: auto !important;
margin-left: 0 !important;
margin-right: 0 !important;
border: 0;
}
2017-07-31 11:45:22 +02:00
.flex-container {
2015-07-01 13:47:48 +02:00
flex-direction: column;
}
/* layouts for tiny screens */
2017-07-31 11:45:22 +02:00
.tiny-hidden {
2015-07-01 13:47:48 +02:00
display: none !important;
}
2017-07-31 11:45:22 +02:00
.tiny-visible {
2015-07-01 13:47:48 +02:00
display: block !important;
}
2017-07-31 11:45:22 +02:00
.tiny-no-float {
2015-07-01 13:47:48 +02:00
float: none;
}
2017-07-31 11:45:22 +02:00
.tiny-inbl {
2015-07-01 13:47:48 +02:00
display: inline-block;
float: none;
vertical-align: top;
}
/* widths for tiny screens */
2017-07-31 11:45:22 +02:00
.tiny-w25 {
2015-07-01 13:47:48 +02:00
width: 25% !important;
}
2017-07-31 11:45:22 +02:00
.tiny-w33 {
width: 33.333333% !important;
2015-07-01 13:47:48 +02:00
}
2017-07-31 11:45:22 +02:00
.tiny-w50 {
2015-07-01 13:47:48 +02:00
width: 50% !important;
}
2017-07-31 11:45:22 +02:00
.tiny-w66 {
width: 66.666666% !important;
2015-07-01 13:47:48 +02:00
}
2017-07-31 11:45:22 +02:00
.tiny-w75 {
2015-07-01 13:47:48 +02:00
width: 75% !important;
}
2017-07-31 11:45:22 +02:00
.tiny-w100,
.tiny-wauto {
2015-07-01 13:47:48 +02:00
display: block !important;
float: none !important;
clear: none !important;
width: auto !important;
margin-left: 0 !important;
margin-right: 0 !important;
border: 0;
}
/* margins for tiny screens */
2017-07-31 11:45:22 +02:00
.tiny-man,
.tiny-ma0 {
2015-07-01 13:47:48 +02:00
margin: 0 !important;
}
2017-07-31 11:45:22 +02:00
.tiny-pan,
.tiny-pa0 {
2015-07-01 13:47:48 +02:00
padding: 0 !important;
}
2015-03-07 14:53:44 +01:00
2014-05-04 15:48:00 +02:00
}