KNACSS/sass/_rwd.scss

193 lines
3.6 KiB
SCSS
Raw Normal View History

2013-04-04 21:29:49 +02:00
/* ----------------------------- */
/* ==desktop and retina medias */
/* ----------------------------- */
2013-07-09 14:01:24 +02:00
/* ----------------------------- */
/* ==viewport fixing for RWD */
/* ----------------------------- */
@-webkit-viewport {
width: device-width;
zoom: 1.0;
}
@-moz-viewport {
width: device-width;
zoom: 1.0;
}
@-ms-viewport {
width: device-width;
zoom: 1.0;
}
@-o-viewport {
width: device-width;
zoom: 1.0;
}
@viewport {
width: device-width;
zoom: 1.0;
2013-04-04 21:29:49 +02:00
}
2013-07-09 14:01:24 +02:00
@include mq(medium) {
/* Big resources like background-images, font-faces, etc. */
2013-04-04 21:29:49 +02:00
}
2013-07-09 14:01:24 +02:00
@include mq(retina) {
/* Retina-specific stuff here */
}
2013-04-04 21:29:49 +02:00
/* ---------------------------------- */
2013-05-27 16:52:12 +02:00
/* ==Responsive large / small / tiny */
2013-04-04 21:29:49 +02:00
/* ---------------------------------- */
2013-07-09 14:01:24 +02:00
@include mq(large) {
2013-04-04 21:29:49 +02:00
.large-no-float { float: none; }
.large-inbl {
@include inline-block(top);
float: none;
}
.large-row {
display: table;
table-layout: fixed;
width: 100% !important;
}
.large-col {
display: table-cell;
vertical-align: top;
}
/* Widths for large (l) screens */
.large-w25 { width: 25% !important; }
.large-w33 { width: 33.3333% !important; }
.large-w50 { width: 50% !important; }
.large-w66 { width: 66.6666% !important; }
.large-w75 { width: 75% !important; }
.large-w100 {
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 (l) screens */
.large-ma0,
.large-man { margin: 0 !important; }
}
2013-07-09 14:01:24 +02:00
@include mq(small) {
2013-05-27 16:52:12 +02:00
.small-no-float { float: none; }
2013-04-04 21:29:49 +02:00
2013-05-27 16:52:12 +02:00
.small-inbl {
2013-04-04 21:29:49 +02:00
@include inline-block(top);
float: none;
}
2013-05-27 16:52:12 +02:00
.small-row {
2013-04-04 21:29:49 +02:00
display: table !important;
table-layout: fixed !important;
width: 100% !important;
}
2013-05-27 16:52:12 +02:00
.small-col {
2013-04-04 21:29:49 +02:00
display: table-cell !important;
vertical-align: top !important;
}
2013-05-27 16:52:12 +02:00
/* widths for small (s) screens */
.small-w25 { width: 25% !important; }
.small-w33 { width: 33.3333% !important; }
.small-w50 { width: 50% !important; }
.small-w66 { width: 66.6666% !important; }
.small-w75 { width: 75% !important; }
2013-04-04 21:29:49 +02:00
2013-05-27 16:52:12 +02:00
.small-w100 {
2013-04-04 21:29:49 +02:00
display: block !important;
float: none !important;
clear: none !important;
width: auto !important;
margin-left: 0 !important;
margin-right: 0 !important;
border: 0;
}
2013-05-27 16:52:12 +02:00
/* margins for small (s) screens */
.small-ma0,
.small-man { margin: 0 !important; }
2013-04-04 21:29:49 +02:00
}
2013-07-09 14:01:24 +02:00
@include mq(tiny) {
2013-04-04 21:29:49 +02:00
/* Quick smartphone reset */
.mod,
.item,
.col,
fieldset {
display: block !important;
float: none !important;
clear: none !important;
width: auto !important;
margin-left: 0 !important;
margin-right: 0 !important;
border: 0;
}
.w30,
.w33,
.w40,
.w50,
.w300p,
.w400p,
.w500p {
width: auto;
}
.row {
display: block !important;
width: 100% !important;
}
.tiny-no-float { float: none; }
.tiny-inbl {
@include inline-block(top);
float: none;
}
.tiny-row {
display: table !important;
table-layout: fixed !important;
width: 100% !important;
}
.tiny-col {
display: table-cell !important;
vertical-align: top !important;
}
/* widths for tiny (t) screens */
.tiny-w25 { width: 25% !important; }
.tiny-w33 { width: 33.3333% !important; }
.tiny-w50 { width: 50% !important; }
.tiny-w66 { width: 66.6666% !important; }
.tiny-w75 { width: 75% !important; }
.tiny-w100 {
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 (t) screens */
.tiny-ma0,
.tiny-man { margin: 0 !important; }
}