KNACSS/sass/_07-responsive.scss

372 lines
6.9 KiB
SCSS
Raw Permalink 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 */
.#{$kna-namespace}large-hidden {
display: none !important;
2014-05-07 11:12:14 +02:00
}
2015-03-07 14:53:44 +01:00
.#{$kna-namespace}large-visible {
display: block !important;
2014-05-07 11:12:14 +02:00
}
2015-03-07 14:53:44 +01:00
.#{$kna-namespace}large-no-float {
float: none;
2014-05-07 11:12:14 +02:00
}
2015-03-07 14:53:44 +01:00
.#{$kna-namespace}large-inbl {
2014-05-04 15:48:00 +02:00
display: inline-block;
float: none;
vertical-align: top;
}
.#{$kna-namespace}large-row {
2014-05-04 15:48:00 +02:00
display: table;
table-layout: fixed;
width: 100% !important;
}
.#{$kna-namespace}large-col {
2014-05-04 15:48:00 +02:00
display: table-cell;
vertical-align: top;
}
/* widths for large screens */
.#{$kna-namespace}large-w25 {
width: 25% !important;
2014-05-07 11:12:14 +02:00
}
2015-03-07 14:53:44 +01:00
.#{$kna-namespace}large-w33 {
width: 33.3333% !important;
2014-05-07 11:12:14 +02:00
}
2015-03-07 14:53:44 +01:00
.#{$kna-namespace}large-w50 {
width: 50% !important;
2014-05-07 11:12:14 +02:00
}
2015-03-07 14:53:44 +01:00
.#{$kna-namespace}large-w66 {
width: 66.6666% !important;
2014-05-07 11:12:14 +02:00
}
2015-03-07 14:53:44 +01:00
.#{$kna-namespace}large-w75 {
width: 75% !important;
2014-05-07 11:12:14 +02:00
}
2015-03-07 14:53:44 +01:00
.#{$kna-namespace}large-w100,
.#{$kna-namespace}large-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
}
/* margins for large screens */
.#{$kna-namespace}large-man,
.#{$kna-namespace}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 */
.#{$kna-namespace}medium-hidden {
display: none !important;
}
2015-03-07 14:53:44 +01:00
.#{$kna-namespace}medium-visible {
display: block !important;
}
2015-03-07 14:53:44 +01:00
.#{$kna-namespace}medium-no-float {
float: none;
}
2015-03-07 14:53:44 +01:00
.#{$kna-namespace}medium-inbl {
display: inline-block;
float: none;
vertical-align: top;
}
2015-03-07 14:53:44 +01:00
.#{$kna-namespace}medium-row {
display: table;
table-layout: fixed;
width: 100% !important;
}
2015-03-07 14:53:44 +01:00
.#{$kna-namespace}medium-col {
display: table-cell;
vertical-align: top;
}
/* widths for medium screens */
.#{$kna-namespace}medium-w25 {
width: 25% !important;
}
2015-03-07 14:53:44 +01:00
.#{$kna-namespace}medium-w33 {
width: 33.3333% !important;
}
2015-03-07 14:53:44 +01:00
.#{$kna-namespace}medium-w50 {
width: 50% !important;
}
2015-03-07 14:53:44 +01:00
.#{$kna-namespace}medium-w66 {
width: 66.6666% !important;
}
2015-03-07 14:53:44 +01:00
.#{$kna-namespace}medium-w75 {
width: 75% !important;
}
2015-03-07 14:53:44 +01:00
.#{$kna-namespace}medium-w100,
.#{$kna-namespace}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 */
.#{$kna-namespace}medium-man,
.#{$kna-namespace}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 */
.#{$kna-namespace}w600p,
.#{$kna-namespace}w700p,
.#{$kna-namespace}w800p,
.#{$kna-namespace}w960p,
.#{$kna-namespace}mw960p {
2014-05-04 15:48:00 +02:00
width: auto;
float: none;
}
2014-05-04 15:48:00 +02:00
/* layouts for small screens */
.#{$kna-namespace}small-hidden {
display: none !important;
2014-05-07 11:12:14 +02:00
}
2015-03-07 14:53:44 +01:00
.#{$kna-namespace}small-visible {
display: block !important;
2014-05-07 11:12:14 +02:00
}
2015-03-07 14:53:44 +01:00
.#{$kna-namespace}small-no-float {
float: none;
2014-05-07 11:12:14 +02:00
}
2015-03-07 14:53:44 +01:00
.#{$kna-namespace}small-inbl {
2014-05-04 15:48:00 +02:00
display: inline-block;
float: none;
vertical-align: top;
}
2015-03-07 14:53:44 +01:00
.#{$kna-namespace}small-row {
2014-05-04 15:48:00 +02:00
display: table !important;
table-layout: fixed !important;
width: 100% !important;
}
2015-03-07 14:53:44 +01:00
.#{$kna-namespace}small-col {
2014-05-04 15:48:00 +02:00
display: table-cell !important;
vertical-align: top !important;
}
/* widths for small screens */
.#{$kna-namespace}small-w25 {
width: 25% !important;
2014-05-07 11:12:14 +02:00
}
2015-03-07 14:53:44 +01:00
.#{$kna-namespace}small-w33 {
width: 33.3333% !important;
2014-05-07 11:12:14 +02:00
}
2015-03-07 14:53:44 +01:00
.#{$kna-namespace}small-w50 {
width: 50% !important;
2014-05-07 11:12:14 +02:00
}
2015-03-07 14:53:44 +01:00
.#{$kna-namespace}small-w66 {
width: 66.6666% !important;
2014-05-07 11:12:14 +02:00
}
2015-03-07 14:53:44 +01:00
.#{$kna-namespace}small-w75 {
width: 75% !important;
2014-05-07 11:12:14 +02:00
}
2015-03-07 14:53:44 +01:00
.#{$kna-namespace}small-w100,
.#{$kna-namespace}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 */
.#{$kna-namespace}small-man,
.#{$kna-namespace}small-ma0 {
margin: 0 !important;
2014-05-07 11:12:14 +02:00
}
2015-03-07 14:53:44 +01:00
.#{$kna-namespace}small-pan,
.#{$kna-namespace}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 */
.#{$kna-namespace}mod,
.#{$kna-namespace}col,
2015-03-07 14:53:44 +01:00
fieldset {
display: block !important;
float: none !important;
clear: none !important;
width: auto !important;
margin-left: 0 !important;
margin-right: 0 !important;
border: 0;
}
.#{$kna-namespace}flex-container {
flex-direction: column;
}
2015-03-07 14:53:44 +01:00
.#{$kna-namespace}w300p,
.#{$kna-namespace}w400p,
.#{$kna-namespace}w500p {
2014-05-04 15:48:00 +02:00
width: auto;
float: none;
}
2015-03-07 14:53:44 +01:00
.#{$kna-namespace}row {
2014-05-04 15:48:00 +02:00
display: block !important;
width: 100% !important;
}
/* layouts for tiny screens */
.#{$kna-namespace}tiny-hidden {
display: none !important;
2014-05-07 11:12:14 +02:00
}
2015-03-07 14:53:44 +01:00
.#{$kna-namespace}tiny-visible {
display: block !important;
2014-05-07 11:12:14 +02:00
}
2015-03-07 14:53:44 +01:00
.#{$kna-namespace}tiny-no-float {
2014-05-07 11:12:14 +02:00
float: none;
}
2015-03-07 14:53:44 +01:00
.#{$kna-namespace}tiny-inbl {
2014-05-04 15:48:00 +02:00
display: inline-block;
float: none;
vertical-align: top;
}
2015-03-07 14:53:44 +01:00
.#{$kna-namespace}tiny-row {
2014-05-04 15:48:00 +02:00
display: table !important;
table-layout: fixed !important;
width: 100% !important;
}
2015-03-07 14:53:44 +01:00
.#{$kna-namespace}tiny-col {
2014-05-04 15:48:00 +02:00
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 {
2015-05-07 09:32:46 +02:00
display: block;
width: auto;
text-align: left;
2014-05-04 15:48:00 +02:00
}
2015-03-07 14:53:44 +01:00
thead {
display: none;
}
2014-05-04 15:48:00 +02:00
/* widths for tiny screens */
.#{$kna-namespace}tiny-w25 {
width: 25% !important;
2014-05-07 11:12:14 +02:00
}
2015-03-07 14:53:44 +01:00
.#{$kna-namespace}tiny-w33 {
width: 33.3333% !important;
2014-05-07 11:12:14 +02:00
}
2015-03-07 14:53:44 +01:00
.#{$kna-namespace}tiny-w50 {
width: 50% !important;
2014-05-07 11:12:14 +02:00
}
2015-03-07 14:53:44 +01:00
.#{$kna-namespace}tiny-w66 {
width: 66.6666% !important;
2014-05-07 11:12:14 +02:00
}
2015-03-07 14:53:44 +01:00
.#{$kna-namespace}tiny-w75 {
width: 75% !important;
2014-05-07 11:12:14 +02:00
}
2015-03-07 14:53:44 +01:00
.#{$kna-namespace}tiny-w100,
.#{$kna-namespace}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 */
.#{$kna-namespace}tiny-man,
.#{$kna-namespace}tiny-ma0 {
margin: 0 !important;
2014-05-07 11:12:14 +02:00
}
2015-03-07 14:53:44 +01:00
.#{$kna-namespace}tiny-pan,
.#{$kna-namespace}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
}