KNACSS/sass/_07-responsive.scss
2015-09-17 21:25:28 +02:00

1019 lines
21 KiB
SCSS

/* ----------------------------- */
/* ==desktop and HD devices */
/* ----------------------------- */
@media (min-width: ($medium-screen + 1)) {
/* rules for big resources and big screens like: background-images, font-faces, etc. */
}
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi), (min-resolution: 2dppx) {
/* style adjustments for high density devices */
}
/* ---------------------------------- */
/* ==Responsive large */
/* ---------------------------------- */
@media (min-width: ($medium-screen + 1)) {
/* layouts for large screens */
.#{$kna-namespace}large-hidden {
display: none !important;
}
.#{$kna-namespace}large-visible {
display: block !important;
}
.#{$kna-namespace}large-no-float {
float: none;
}
.#{$kna-namespace}large-inbl {
display: inline-block;
float: none;
vertical-align: top;
}
.#{$kna-namespace}large-row {
display: table;
table-layout: fixed;
width: 100% !important;
}
.#{$kna-namespace}large-col {
display: table-cell;
vertical-align: top;
}
/* widths for large screens */
.#{$kna-namespace}large-w25 {
width: 25% !important;
}
.#{$kna-namespace}large-w33 {
width: 33.3333% !important;
}
.#{$kna-namespace}large-w50 {
width: 50% !important;
}
.#{$kna-namespace}large-w66 {
width: 66.6666% !important;
}
.#{$kna-namespace}large-w75 {
width: 75% !important;
}
.#{$kna-namespace}large-w100,
.#{$kna-namespace}large-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 large screens */
.#{$kna-namespace}large-man,
.#{$kna-namespace}large-ma0 {
margin: 0 !important;
}
.#{$kna-namespace}large-pan,
.#{$kna-namespace}large-pa0 {
padding: 0 !important;
}
.#{$kna-namespace}large-mas {
margin: $small-value !important;
}
.#{$kna-namespace}large-mam {
margin: $medium-value !important;
}
.#{$kna-namespace}large-mal {
margin: $large-value !important;
}
.#{$kna-namespace}large-pas {
padding: $small-value !important;
}
.#{$kna-namespace}large-pam {
padding: $medium-value !important;
}
.#{$kna-namespace}large-pal {
padding: $large-value !important;
}
.#{$kna-namespace}large-mtn,
.#{$kna-namespace}large-mt0 {
margin-top: 0 !important;
}
.#{$kna-namespace}large-mts {
margin-top: $small-value !important;
}
.#{$kna-namespace}large-mtm {
margin-top: $medium-value !important;
}
.#{$kna-namespace}large-mtl {
margin-top: $large-value !important;
}
.#{$kna-namespace}large-mrn,
.#{$kna-namespace}large-mr0 {
margin-right: 0 !important;
}
.#{$kna-namespace}large-mrs {
margin-right: $small-value !important;
}
.#{$kna-namespace}large-mrm {
margin-right: $medium-value !important;
}
.#{$kna-namespace}large-mrl {
margin-right: $large-value !important;
}
.#{$kna-namespace}large-mbn,
.#{$kna-namespace}large-mb0 {
margin-bottom: 0 !important;
}
.#{$kna-namespace}large-mbs {
margin-bottom: $small-value !important;
}
.#{$kna-namespace}large-mbm {
margin-bottom: $medium-value !important;
}
.#{$kna-namespace}large-mbl {
margin-bottom: $large-value !important;
}
.#{$kna-namespace}large-mln,
.#{$kna-namespace}large-ml0 {
margin-left: 0 !important;
}
.#{$kna-namespace}large-mls {
margin-left: $small-value !important;
}
.#{$kna-namespace}large-mlm {
margin-left: $medium-value !important;
}
.#{$kna-namespace}large-mll {
margin-left: $large-value !important;
}
.#{$kna-namespace}large-ptn,
.#{$kna-namespace}large-pt0 {
padding-top: 0 !important;
}
.#{$kna-namespace}large-pts {
padding-top: $small-value !important;
}
.#{$kna-namespace}large-ptm {
padding-top: $medium-value !important;
}
.#{$kna-namespace}large-ptl {
padding-top: $large-value !important;
}
.#{$kna-namespace}large-prn,
.#{$kna-namespace}large-pr0 {
padding-right: 0 !important;
}
.#{$kna-namespace}large-prs {
padding-right: $small-value !important;
}
.#{$kna-namespace}large-prm {
padding-right: $medium-value !important;
}
.#{$kna-namespace}large-prl {
padding-right: $large-value !important;
}
.#{$kna-namespace}large-pbn,
.#{$kna-namespace}large-pb0 {
padding-bottom: 0 !important;
}
.#{$kna-namespace}large-pbs {
padding-bottom: $small-value !important;
}
.#{$kna-namespace}large-pbm {
padding-bottom: $medium-value !important;
}
.#{$kna-namespace}large-pbl {
padding-bottom: $large-value !important;
}
.#{$kna-namespace}large-pln,
.#{$kna-namespace}large-pl0 {
padding-left: 0 !important;
}
.#{$kna-namespace}large-pls {
padding-left: $small-value !important;
}
.#{$kna-namespace}large-plm {
padding-left: $medium-value !important;
}
.#{$kna-namespace}large-pll {
padding-left: $large-value !important;
}
}
/* ---------------------------------- */
/* ==Responsive medium */
/* ---------------------------------- */
@media (min-width: ($small-screen + 1)) and (max-width: $medium-screen) {
/* layouts for medium screens */
.#{$kna-namespace}medium-hidden {
display: none !important;
}
.#{$kna-namespace}medium-visible {
display: block !important;
}
.#{$kna-namespace}medium-no-float {
float: none;
}
.#{$kna-namespace}medium-inbl {
display: inline-block;
float: none;
vertical-align: top;
}
.#{$kna-namespace}medium-row {
display: table;
table-layout: fixed;
width: 100% !important;
}
.#{$kna-namespace}medium-col {
display: table-cell;
vertical-align: top;
}
/* widths for medium screens */
.#{$kna-namespace}medium-w25 {
width: 25% !important;
}
.#{$kna-namespace}medium-w33 {
width: 33.3333% !important;
}
.#{$kna-namespace}medium-w50 {
width: 50% !important;
}
.#{$kna-namespace}medium-w66 {
width: 66.6666% !important;
}
.#{$kna-namespace}medium-w75 {
width: 75% !important;
}
.#{$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;
}
.#{$kna-namespace}medium-pan,
.#{$kna-namespace}medium-pa0 {
padding: 0 !important;
}
.#{$kna-namespace}medium-mas {
margin: $small-value !important;
}
.#{$kna-namespace}medium-mam {
margin: $medium-value !important;
}
.#{$kna-namespace}medium-mal {
margin: $large-value !important;
}
.#{$kna-namespace}medium-pas {
padding: $small-value !important;
}
.#{$kna-namespace}medium-pam {
padding: $medium-value !important;
}
.#{$kna-namespace}medium-pal {
padding: $large-value !important;
}
.#{$kna-namespace}medium-mtn,
.#{$kna-namespace}medium-mt0 {
margin-top: 0 !important;
}
.#{$kna-namespace}medium-mts {
margin-top: $small-value !important;
}
.#{$kna-namespace}medium-mtm {
margin-top: $medium-value !important;
}
.#{$kna-namespace}medium-mtl {
margin-top: $large-value !important;
}
.#{$kna-namespace}medium-mrn,
.#{$kna-namespace}medium-mr0 {
margin-right: 0 !important;
}
.#{$kna-namespace}medium-mrs {
margin-right: $small-value !important;
}
.#{$kna-namespace}medium-mrm {
margin-right: $medium-value !important;
}
.#{$kna-namespace}medium-mrl {
margin-right: $large-value !important;
}
.#{$kna-namespace}medium-mbn,
.#{$kna-namespace}medium-mb0 {
margin-bottom: 0 !important;
}
.#{$kna-namespace}medium-mbs {
margin-bottom: $small-value !important;
}
.#{$kna-namespace}medium-mbm {
margin-bottom: $medium-value !important;
}
.#{$kna-namespace}medium-mbl {
margin-bottom: $large-value !important;
}
.#{$kna-namespace}medium-mln,
.#{$kna-namespace}medium-ml0 {
margin-left: 0 !important;
}
.#{$kna-namespace}medium-mls {
margin-left: $small-value !important;
}
.#{$kna-namespace}medium-mlm {
margin-left: $medium-value !important;
}
.#{$kna-namespace}medium-mll {
margin-left: $large-value !important;
}
.#{$kna-namespace}medium-ptn,
.#{$kna-namespace}medium-pt0 {
padding-top: 0 !important;
}
.#{$kna-namespace}medium-pts {
padding-top: $small-value !important;
}
.#{$kna-namespace}medium-ptm {
padding-top: $medium-value !important;
}
.#{$kna-namespace}medium-ptl {
padding-top: $large-value !important;
}
.#{$kna-namespace}medium-prn,
.#{$kna-namespace}medium-pr0 {
padding-right: 0 !important;
}
.#{$kna-namespace}medium-prs {
padding-right: $small-value !important;
}
.#{$kna-namespace}medium-prm {
padding-right: $medium-value !important;
}
.#{$kna-namespace}medium-prl {
padding-right: $large-value !important;
}
.#{$kna-namespace}medium-pbn,
.#{$kna-namespace}medium-pb0 {
padding-bottom: 0 !important;
}
.#{$kna-namespace}medium-pbs {
padding-bottom: $small-value !important;
}
.#{$kna-namespace}medium-pbm {
padding-bottom: $medium-value !important;
}
.#{$kna-namespace}medium-pbl {
padding-bottom: $large-value !important;
}
.#{$kna-namespace}medium-pln,
.#{$kna-namespace}medium-pl0 {
padding-left: 0 !important;
}
.#{$kna-namespace}medium-pls {
padding-left: $small-value !important;
}
.#{$kna-namespace}medium-plm {
padding-left: $medium-value !important;
}
.#{$kna-namespace}medium-pll {
padding-left: $large-value !important;
}
}
/* ---------------------------------- */
/* ==Responsive small */
/* ---------------------------------- */
@media (min-width: ($tiny-screen + 1)) and (max-width: $small-screen) {
/* quick reset in small resolution and less */
.#{$kna-namespace}w600p,
.#{$kna-namespace}w700p,
.#{$kna-namespace}w800p,
.#{$kna-namespace}w960p,
.#{$kna-namespace}mw960p {
width: auto;
float: none;
}
/* layouts for small screens */
.#{$kna-namespace}small-hidden {
display: none !important;
}
.#{$kna-namespace}small-visible {
display: block !important;
}
.#{$kna-namespace}small-no-float {
float: none;
}
.#{$kna-namespace}small-inbl {
display: inline-block;
float: none;
vertical-align: top;
}
.#{$kna-namespace}small-row {
display: table !important;
table-layout: fixed !important;
width: 100% !important;
}
.#{$kna-namespace}small-col {
display: table-cell !important;
vertical-align: top !important;
}
/* widths for small screens */
.#{$kna-namespace}small-w25 {
width: 25% !important;
}
.#{$kna-namespace}small-w33 {
width: 33.3333% !important;
}
.#{$kna-namespace}small-w50 {
width: 50% !important;
}
.#{$kna-namespace}small-w66 {
width: 66.6666% !important;
}
.#{$kna-namespace}small-w75 {
width: 75% !important;
}
.#{$kna-namespace}small-w100,
.#{$kna-namespace}small-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 small screens */
.#{$kna-namespace}small-man,
.#{$kna-namespace}small-ma0 {
margin: 0 !important;
}
.#{$kna-namespace}small-pan,
.#{$kna-namespace}small-pa0 {
padding: 0 !important;
}
.#{$kna-namespace}small-mas {
margin: $small-value !important;
}
.#{$kna-namespace}small-mam {
margin: $medium-value !important;
}
.#{$kna-namespace}small-mal {
margin: $large-value !important;
}
.#{$kna-namespace}small-pas {
padding: $small-value !important;
}
.#{$kna-namespace}small-pam {
padding: $medium-value !important;
}
.#{$kna-namespace}small-pal {
padding: $large-value !important;
}
.#{$kna-namespace}small-mtn,
.#{$kna-namespace}small-mt0 {
margin-top: 0 !important;
}
.#{$kna-namespace}small-mts {
margin-top: $small-value !important;
}
.#{$kna-namespace}small-mtm {
margin-top: $medium-value !important;
}
.#{$kna-namespace}small-mtl {
margin-top: $large-value !important;
}
.#{$kna-namespace}small-mrn,
.#{$kna-namespace}small-mr0 {
margin-right: 0 !important;
}
.#{$kna-namespace}small-mrs {
margin-right: $small-value !important;
}
.#{$kna-namespace}small-mrm {
margin-right: $medium-value !important;
}
.#{$kna-namespace}small-mrl {
margin-right: $large-value !important;
}
.#{$kna-namespace}small-mbn,
.#{$kna-namespace}small-mb0 {
margin-bottom: 0 !important;
}
.#{$kna-namespace}small-mbs {
margin-bottom: $small-value !important;
}
.#{$kna-namespace}small-mbm {
margin-bottom: $medium-value !important;
}
.#{$kna-namespace}small-mbl {
margin-bottom: $large-value !important;
}
.#{$kna-namespace}small-mln,
.#{$kna-namespace}small-ml0 {
margin-left: 0 !important;
}
.#{$kna-namespace}small-mls {
margin-left: $small-value !important;
}
.#{$kna-namespace}small-mlm {
margin-left: $medium-value !important;
}
.#{$kna-namespace}small-mll {
margin-left: $large-value !important;
}
.#{$kna-namespace}small-ptn,
.#{$kna-namespace}small-pt0 {
padding-top: 0 !important;
}
.#{$kna-namespace}small-pts {
padding-top: $small-value !important;
}
.#{$kna-namespace}small-ptm {
padding-top: $medium-value !important;
}
.#{$kna-namespace}small-ptl {
padding-top: $large-value !important;
}
.#{$kna-namespace}small-prn,
.#{$kna-namespace}small-pr0 {
padding-right: 0 !important;
}
.#{$kna-namespace}small-prs {
padding-right: $small-value !important;
}
.#{$kna-namespace}small-prm {
padding-right: $medium-value !important;
}
.#{$kna-namespace}small-prl {
padding-right: $large-value !important;
}
.#{$kna-namespace}small-pbn,
.#{$kna-namespace}small-pb0 {
padding-bottom: 0 !important;
}
.#{$kna-namespace}small-pbs {
padding-bottom: $small-value !important;
}
.#{$kna-namespace}small-pbm {
padding-bottom: $medium-value !important;
}
.#{$kna-namespace}small-pbl {
padding-bottom: $large-value !important;
}
.#{$kna-namespace}small-pln,
.#{$kna-namespace}small-pl0 {
padding-left: 0 !important;
}
.#{$kna-namespace}small-pls {
padding-left: $small-value !important;
}
.#{$kna-namespace}small-plm {
padding-left: $medium-value !important;
}
.#{$kna-namespace}small-pll {
padding-left: $large-value !important;
}
}
/* ---------------------------------- */
/* ==Responsive tiny */
/* ---------------------------------- */
@media (max-width: $tiny-screen) {
/* quick small resolution reset */
.#{$kna-namespace}mod,
.#{$kna-namespace}col,
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;
}
.#{$kna-namespace}w300p,
.#{$kna-namespace}w400p,
.#{$kna-namespace}w500p {
width: auto;
float: none;
}
.#{$kna-namespace}row {
display: block !important;
width: 100% !important;
}
/* layouts for tiny screens */
.#{$kna-namespace}tiny-hidden {
display: none !important;
}
.#{$kna-namespace}tiny-visible {
display: block !important;
}
.#{$kna-namespace}tiny-no-float {
float: none;
}
.#{$kna-namespace}tiny-inbl {
display: inline-block;
float: none;
vertical-align: top;
}
.#{$kna-namespace}tiny-row {
display: table !important;
table-layout: fixed !important;
width: 100% !important;
}
.#{$kna-namespace}tiny-col {
display: table-cell !important;
vertical-align: top !important;
}
th,
td {
display: block;
width: auto;
text-align: left;
}
thead {
display: none;
}
/* widths for tiny screens */
.#{$kna-namespace}tiny-w25 {
width: 25% !important;
}
.#{$kna-namespace}tiny-w33 {
width: 33.3333% !important;
}
.#{$kna-namespace}tiny-w50 {
width: 50% !important;
}
.#{$kna-namespace}tiny-w66 {
width: 66.6666% !important;
}
.#{$kna-namespace}tiny-w75 {
width: 75% !important;
}
.#{$kna-namespace}tiny-w100,
.#{$kna-namespace}tiny-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 tiny screens */
.#{$kna-namespace}tiny-man,
.#{$kna-namespace}tiny-ma0 {
margin: 0 !important;
}
.#{$kna-namespace}tiny-pan,
.#{$kna-namespace}tiny-pa0 {
padding: 0 !important;
}
.#{$kna-namespace}tiny-mas {
margin: $small-value !important;
}
.#{$kna-namespace}tiny-mam {
margin: $medium-value !important;
}
.#{$kna-namespace}tiny-mal {
margin: $large-value !important;
}
.#{$kna-namespace}tiny-pas {
padding: $small-value !important;
}
.#{$kna-namespace}tiny-pam {
padding: $medium-value !important;
}
.#{$kna-namespace}tiny-pal {
padding: $large-value !important;
}
.#{$kna-namespace}tiny-mtn,
.#{$kna-namespace}tiny-mt0 {
margin-top: 0 !important;
}
.#{$kna-namespace}tiny-mts {
margin-top: $small-value !important;
}
.#{$kna-namespace}tiny-mtm {
margin-top: $medium-value !important;
}
.#{$kna-namespace}tiny-mtl {
margin-top: $large-value !important;
}
.#{$kna-namespace}tiny-mrn,
.#{$kna-namespace}tiny-mr0 {
margin-right: 0 !important;
}
.#{$kna-namespace}tiny-mrs {
margin-right: $small-value !important;
}
.#{$kna-namespace}tiny-mrm {
margin-right: $medium-value !important;
}
.#{$kna-namespace}tiny-mrl {
margin-right: $large-value !important;
}
.#{$kna-namespace}tiny-mbn,
.#{$kna-namespace}tiny-mb0 {
margin-bottom: 0 !important;
}
.#{$kna-namespace}tiny-mbs {
margin-bottom: $small-value !important;
}
.#{$kna-namespace}tiny-mbm {
margin-bottom: $medium-value !important;
}
.#{$kna-namespace}tiny-mbl {
margin-bottom: $large-value !important;
}
.#{$kna-namespace}tiny-mln,
.#{$kna-namespace}tiny-ml0 {
margin-left: 0 !important;
}
.#{$kna-namespace}tiny-mls {
margin-left: $small-value !important;
}
.#{$kna-namespace}tiny-mlm {
margin-left: $medium-value !important;
}
.#{$kna-namespace}tiny-mll {
margin-left: $large-value !important;
}
.#{$kna-namespace}tiny-ptn,
.#{$kna-namespace}tiny-pt0 {
padding-top: 0 !important;
}
.#{$kna-namespace}tiny-pts {
padding-top: $small-value !important;
}
.#{$kna-namespace}tiny-ptm {
padding-top: $medium-value !important;
}
.#{$kna-namespace}tiny-ptl {
padding-top: $large-value !important;
}
.#{$kna-namespace}tiny-prn,
.#{$kna-namespace}tiny-pr0 {
padding-right: 0 !important;
}
.#{$kna-namespace}tiny-prs {
padding-right: $small-value !important;
}
.#{$kna-namespace}tiny-prm {
padding-right: $medium-value !important;
}
.#{$kna-namespace}tiny-prl {
padding-right: $large-value !important;
}
.#{$kna-namespace}tiny-pbn,
.#{$kna-namespace}tiny-pb0 {
padding-bottom: 0 !important;
}
.#{$kna-namespace}tiny-pbs {
padding-bottom: $small-value !important;
}
.#{$kna-namespace}tiny-pbm {
padding-bottom: $medium-value !important;
}
.#{$kna-namespace}tiny-pbl {
padding-bottom: $large-value !important;
}
.#{$kna-namespace}tiny-pln,
.#{$kna-namespace}tiny-pl0 {
padding-left: 0 !important;
}
.#{$kna-namespace}tiny-pls {
padding-left: $small-value !important;
}
.#{$kna-namespace}tiny-plm {
padding-left: $medium-value !important;
}
.#{$kna-namespace}tiny-pll {
padding-left: $large-value !important;
}
}