KNACSS/sass/_07-responsive.scss

372 lines
5.7 KiB
SCSS
Raw Normal View History

2014-05-04 15:48:00 +02:00
/* ----------------------------- */
/* ==desktop and HD devices */
/* ----------------------------- */
@media (min-width: ($medium-screen + 1)) {
2014-05-19 10:46:39 +02:00
/* rules for big resources and big screens like: background-images, font-faces, etc. */
2014-05-04 15:48:00 +02:00
}
2014-05-07 11:12:14 +02:00
2014-05-04 15:48:00 +02:00
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi), (min-resolution: 2dppx) {
2014-05-19 10:46:39 +02:00
/* style adjustments for high density devices */
2014-05-04 15:48:00 +02:00
}
/* ---------------------------------- */
/* ==Responsive large */
2014-05-04 15:48:00 +02:00
/* ---------------------------------- */
@media (min-width: ($medium-screen + 1)) {
2014-05-04 15:48:00 +02:00
/* layouts for large screens */
.large-hidden {
display: none !important;
2014-05-07 11:12:14 +02:00
}
2015-03-07 14:53:44 +01:00
.large-visible {
display: block !important;
2014-05-07 11:12:14 +02:00
}
2015-03-07 14:53:44 +01:00
2014-05-07 11:12:14 +02:00
.large-no-float {
float: none;
2014-05-07 11:12:14 +02:00
}
2015-03-07 14:53:44 +01:00
2014-05-04 15:48:00 +02:00
.large-inbl {
display: inline-block;
float: none;
vertical-align: top;
}
.large-row {
display: table;
table-layout: fixed;
width: 100% !important;
}
.large-col {
display: table-cell;
vertical-align: top;
}
/* widths for large screens */
.large-w25 {
width: 25% !important;
2014-05-07 11:12:14 +02:00
}
2015-03-07 14:53:44 +01:00
.large-w33 {
width: 33.3333% !important;
2014-05-07 11:12:14 +02:00
}
2015-03-07 14:53:44 +01:00
.large-w50 {
width: 50% !important;
2014-05-07 11:12:14 +02:00
}
2015-03-07 14:53:44 +01:00
.large-w66 {
width: 66.6666% !important;
2014-05-07 11:12:14 +02:00
}
2015-03-07 14:53:44 +01:00
.large-w75 {
width: 75% !important;
2014-05-07 11:12:14 +02:00
}
2015-03-07 14:53:44 +01:00
2014-05-04 15:48:00 +02:00
.large-w100,
.large-wauto {
display: block !important;
float: none !important;
clear: none !important;
width: auto !important;
margin-left: 0 !important;
margin-right: 0 !important;
border: 0;
2014-05-04 15:48:00 +02:00
}
/* margins for large screens */
.large-man,
.large-ma0 {
margin: 0 !important;
2014-08-19 13:19:37 +02:00
}
2014-05-04 15:48:00 +02:00
}
/* ---------------------------------- */
/* ==Responsive medium */
/* ---------------------------------- */
@media (min-width: ($small-screen + 1)) and (max-width: $medium-screen) {
/* layouts for medium screens */
.medium-hidden {
display: none !important;
}
2015-03-07 14:53:44 +01:00
.medium-visible {
display: block !important;
}
2015-03-07 14:53:44 +01:00
.medium-no-float {
float: none;
}
2015-03-07 14:53:44 +01:00
.medium-inbl {
display: inline-block;
float: none;
vertical-align: top;
}
2015-03-07 14:53:44 +01:00
.medium-row {
display: table;
table-layout: fixed;
width: 100% !important;
}
2015-03-07 14:53:44 +01:00
.medium-col {
display: table-cell;
vertical-align: top;
}
/* widths for medium screens */
.medium-w25 {
width: 25% !important;
}
2015-03-07 14:53:44 +01:00
.medium-w33 {
width: 33.3333% !important;
}
2015-03-07 14:53:44 +01:00
.medium-w50 {
width: 50% !important;
}
2015-03-07 14:53:44 +01:00
.medium-w66 {
width: 66.6666% !important;
}
2015-03-07 14:53:44 +01:00
.medium-w75 {
width: 75% !important;
}
2015-03-07 14:53:44 +01:00
.medium-w100,
.medium-wauto {
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 */
.medium-man,
.medium-ma0 {
margin: 0 !important;
}
}
/* ---------------------------------- */
/* ==Responsive small */
/* ---------------------------------- */
@media (min-width: ($tiny-screen + 1)) and (max-width: $small-screen) {
2014-05-04 15:48:00 +02:00
/* quick reset in small resolution and less */
.w600p,
.w700p,
.w800p,
.w960p,
.mw960p {
width: auto;
float: none;
}
2014-05-04 15:48:00 +02:00
/* layouts for small screens */
.small-hidden {
display: none !important;
2014-05-07 11:12:14 +02:00
}
2015-03-07 14:53:44 +01:00
.small-visible {
display: block !important;
2014-05-07 11:12:14 +02:00
}
2015-03-07 14:53:44 +01:00
2014-05-07 11:12:14 +02:00
.small-no-float {
float: none;
2014-05-07 11:12:14 +02:00
}
2015-03-07 14:53:44 +01:00
2014-05-04 15:48:00 +02:00
.small-inbl {
display: inline-block;
float: none;
vertical-align: top;
}
2015-03-07 14:53:44 +01:00
2014-05-04 15:48:00 +02:00
.small-row {
display: table !important;
table-layout: fixed !important;
width: 100% !important;
}
2015-03-07 14:53:44 +01:00
2014-05-04 15:48:00 +02:00
.small-col {
display: table-cell !important;
vertical-align: top !important;
}
/* widths for small screens */
.small-w25 {
width: 25% !important;
2014-05-07 11:12:14 +02:00
}
2015-03-07 14:53:44 +01:00
.small-w33 {
width: 33.3333% !important;
2014-05-07 11:12:14 +02:00
}
2015-03-07 14:53:44 +01:00
.small-w50 {
width: 50% !important;
2014-05-07 11:12:14 +02:00
}
2015-03-07 14:53:44 +01:00
.small-w66 {
width: 66.6666% !important;
2014-05-07 11:12:14 +02:00
}
2015-03-07 14:53:44 +01:00
.small-w75 {
width: 75% !important;
2014-05-07 11:12:14 +02:00
}
2015-03-07 14:53:44 +01:00
2014-05-04 15:48:00 +02:00
.small-w100,
.small-wauto {
2014-05-04 15:48:00 +02:00
display: block !important;
float: none !important;
clear: none !important;
width: auto !important;
margin-left: 0 !important;
margin-right: 0 !important;
border: 0;
2014-05-04 15:48:00 +02:00
}
2015-03-07 14:53:44 +01:00
2014-05-04 15:48:00 +02:00
/* margins for small screens */
.small-man,
.small-ma0 {
margin: 0 !important;
2014-05-07 11:12:14 +02:00
}
2015-03-07 14:53:44 +01:00
.small-pan,
.small-pa0 {
padding: 0 !important;
2014-05-07 11:12:14 +02:00
}
2015-03-07 14:53:44 +01:00
2014-05-04 15:48:00 +02:00
}
/* ---------------------------------- */
/* ==Responsive tiny */
/* ---------------------------------- */
@media (max-width: $tiny-screen) {
2015-03-07 14:53:44 +01:00
/* quick small resolution reset */
.mod,
.col,
fieldset {
display: block !important;
float: none !important;
clear: none !important;
width: auto !important;
margin-left: 0 !important;
margin-right: 0 !important;
border: 0;
}
2015-04-13 16:10:55 +02:00
.flex-container {
flex-direction: column;
}
2015-03-07 14:53:44 +01:00
2014-05-04 15:48:00 +02:00
.w300p,
.w400p,
.w500p {
width: auto;
float: none;
}
2015-03-07 14:53:44 +01:00
.row {
2014-05-04 15:48:00 +02:00
display: block !important;
width: 100% !important;
}
/* layouts for tiny screens */
.tiny-hidden {
display: none !important;
2014-05-07 11:12:14 +02:00
}
2015-03-07 14:53:44 +01:00
.tiny-visible {
display: block !important;
2014-05-07 11:12:14 +02:00
}
2015-03-07 14:53:44 +01:00
2014-05-07 11:12:14 +02:00
.tiny-no-float {
float: none;
}
2015-03-07 14:53:44 +01:00
2014-05-04 15:48:00 +02:00
.tiny-inbl {
display: inline-block;
float: none;
vertical-align: top;
}
2015-03-07 14:53:44 +01:00
2014-05-04 15:48:00 +02:00
.tiny-row {
display: table !important;
table-layout: fixed !important;
width: 100% !important;
}
2015-03-07 14:53:44 +01:00
2014-05-04 15:48:00 +02:00
.tiny-col {
display: table-cell !important;
vertical-align: top !important;
}
2015-03-07 14:53:44 +01:00
2014-05-04 15:48:00 +02:00
th,
td {
display: block !important;
width: auto !important;
text-align: left !important;
}
2015-03-07 14:53:44 +01:00
thead {
display: none;
}
2014-05-04 15:48:00 +02:00
/* widths for tiny screens */
.tiny-w25 {
width: 25% !important;
2014-05-07 11:12:14 +02:00
}
2015-03-07 14:53:44 +01:00
.tiny-w33 {
width: 33.3333% !important;
2014-05-07 11:12:14 +02:00
}
2015-03-07 14:53:44 +01:00
.tiny-w50 {
width: 50% !important;
2014-05-07 11:12:14 +02:00
}
2015-03-07 14:53:44 +01:00
.tiny-w66 {
width: 66.6666% !important;
2014-05-07 11:12:14 +02:00
}
2015-03-07 14:53:44 +01:00
.tiny-w75 {
width: 75% !important;
2014-05-07 11:12:14 +02:00
}
2015-03-07 14:53:44 +01:00
2014-05-04 15:48:00 +02:00
.tiny-w100,
.tiny-wauto {
2014-05-04 15:48:00 +02:00
display: block !important;
float: none !important;
clear: none !important;
width: auto !important;
margin-left: 0 !important;
margin-right: 0 !important;
border: 0;
}
2015-03-07 14:53:44 +01:00
2014-05-04 15:48:00 +02:00
/* margins for tiny screens */
.tiny-man,
.tiny-ma0 {
margin: 0 !important;
2014-05-07 11:12:14 +02:00
}
2015-03-07 14:53:44 +01:00
.tiny-pan,
.tiny-pa0 {
padding: 0 !important;
2014-05-07 11:12:14 +02:00
}
2015-03-07 14:53:44 +01:00
2014-05-04 15:48:00 +02:00
}