2013-08-20 01:34:28 +02:00
|
|
|
/**
|
|
|
|
* www.KNACSS.com V2.6n (2013-07) @author: Raphael Goetter, Alsacreations
|
|
|
|
* Licence CC-BY http://creativecommons.org/licenses/by/3.0/fr/
|
|
|
|
*/
|
2013-03-31 10:19:51 +02:00
|
|
|
|
|
|
|
// LESS values : adapt them to your design
|
|
|
|
@basefont : 14; // if "14" then 1em = 14px
|
|
|
|
@l-h : 1.5; // equiv line-height 1.5em
|
|
|
|
@smallvalue : 10px; // small value for margins / paddings
|
|
|
|
@mediumvalue : 20px; // medium value for margins / paddings
|
|
|
|
@largevalue : 30px; // large value for margins / paddings
|
2013-08-04 21:17:36 +02:00
|
|
|
@tinyscreen : 480px; // tiny screens media query
|
|
|
|
@smallscreen : 768px; // small screens media query
|
2013-03-31 10:19:51 +02:00
|
|
|
@largescreen : 1280px; // large screens media query
|
|
|
|
@gutter : 1.5%; // gutter value (%) for grid layouts
|
|
|
|
|
|
|
|
// LESS functions : don't touch ;)
|
2013-07-07 18:56:43 +02:00
|
|
|
.pxtoem (@fontsize) {font-size: ((@fontsize / @basefont) + 0em);}
|
|
|
|
.line (@fontsize) {line-height: (@l-h *2 / (@fontsize / @basefont) + 0em)}
|
|
|
|
.mtop (@fontsize) {margin: (@l-h / (@fontsize / @basefont) + 0em) 0 0}
|
|
|
|
.grid (@number) {width: ((100%-(@gutter*(@number - 1))) / @number);}
|
2013-08-20 01:34:28 +02:00
|
|
|
|
2013-03-31 10:19:51 +02:00
|
|
|
.flow(@font-size, @base-font: @basefont, @base-height: @l-h) {
|
2013-08-20 01:34:28 +02:00
|
|
|
@coef: ceil((1 / (@base-height * @base-font / @font-size)));
|
|
|
|
@size: ((@font-size / @base-font) + 0em);
|
|
|
|
@height: ((@base-font * @base-height / @font-size) + 0em);
|
|
|
|
font-size: @size;
|
|
|
|
line-height: (@height * @coef);
|
|
|
|
margin-top: @height;
|
|
|
|
margin-bottom: 0;
|
2013-03-31 10:19:51 +02:00
|
|
|
}
|
|
|
|
|
2013-08-20 01:34:28 +02:00
|
|
|
|
|
|
|
/* -----------------------------
|
|
|
|
reset
|
|
|
|
----------------------------- */
|
2013-03-31 10:19:51 +02:00
|
|
|
|
|
|
|
/* base font-size corresponds to 10px and is adapted to rem unit */
|
|
|
|
html {
|
2013-08-20 01:34:28 +02:00
|
|
|
font-size: 62.5%;
|
2013-03-31 10:19:51 +02:00
|
|
|
}
|
|
|
|
body {
|
2013-08-20 01:34:28 +02:00
|
|
|
background-color: #fff;
|
|
|
|
color: #000;
|
|
|
|
font-family: helvetica, arial, sans-serif;
|
|
|
|
font-size: ((@basefont / 10) + 0em);
|
|
|
|
line-height: @l-h; // adapt to your design
|
2013-03-31 10:19:51 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
/* font-sizing for content */
|
|
|
|
/* preserve vertical-rythm, thanks to http://soqr.fr/vertical-rhythm/ */
|
|
|
|
p,
|
|
|
|
ul,
|
|
|
|
ol,
|
|
|
|
dl,
|
|
|
|
blockquote,
|
|
|
|
pre,
|
|
|
|
td,
|
|
|
|
th,
|
|
|
|
label,
|
|
|
|
textarea,
|
|
|
|
caption,
|
2013-08-20 01:34:28 +02:00
|
|
|
details,
|
|
|
|
figure,
|
2013-03-31 10:19:51 +02:00
|
|
|
hgroup {
|
2013-08-20 01:34:28 +02:00
|
|
|
.flow(@basefont);
|
2013-03-31 10:19:51 +02:00
|
|
|
}
|
|
|
|
h1, .h1-like {
|
2013-08-20 01:34:28 +02:00
|
|
|
.flow(32); // equiv 32px
|
2013-03-31 10:19:51 +02:00
|
|
|
}
|
|
|
|
h2, .h2-like {
|
2013-08-20 01:34:28 +02:00
|
|
|
.flow(28); // equiv 28px
|
2013-03-31 10:19:51 +02:00
|
|
|
}
|
|
|
|
h3, .h3-like {
|
2013-08-20 01:34:28 +02:00
|
|
|
.flow(24); // equiv 24px
|
2013-03-31 10:19:51 +02:00
|
|
|
}
|
|
|
|
h4, .h4-like {
|
2013-08-20 01:34:28 +02:00
|
|
|
.flow(20); // equiv 20px
|
2013-03-31 10:19:51 +02:00
|
|
|
}
|
|
|
|
h5, .h5-like {
|
2013-08-20 01:34:28 +02:00
|
|
|
.flow(18); // equiv 18px
|
2013-03-31 10:19:51 +02:00
|
|
|
}
|
|
|
|
h6, .h6-like {
|
2013-08-20 01:34:28 +02:00
|
|
|
.flow(16); // equiv 16px
|
2013-03-31 10:19:51 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
/* alternate font-sizing */
|
|
|
|
.smaller {
|
2013-08-20 01:34:28 +02:00
|
|
|
.pxtoem (10); /* equiv 10px */
|
2013-03-31 10:19:51 +02:00
|
|
|
}
|
|
|
|
.small {
|
2013-08-20 01:34:28 +02:00
|
|
|
.pxtoem (12); /* equiv 12px */
|
2013-03-31 10:19:51 +02:00
|
|
|
}
|
|
|
|
.big {
|
2013-08-20 01:34:28 +02:00
|
|
|
.pxtoem (16); /* equiv 16px */
|
2013-03-31 10:19:51 +02:00
|
|
|
}
|
|
|
|
.bigger {
|
2013-08-20 01:34:28 +02:00
|
|
|
.pxtoem (18); /* equiv 18px */
|
2013-03-31 10:19:51 +02:00
|
|
|
}
|
|
|
|
.biggest {
|
2013-08-20 01:34:28 +02:00
|
|
|
.pxtoem (20); /* equiv 20px */
|
2013-03-31 10:19:51 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
/* soft reset */
|
|
|
|
html,
|
|
|
|
body,
|
|
|
|
textarea,
|
|
|
|
figure,
|
|
|
|
label {
|
2013-08-20 01:34:28 +02:00
|
|
|
margin: 0;
|
|
|
|
padding: 0;
|
2013-03-31 10:19:51 +02:00
|
|
|
}
|
|
|
|
ul,
|
|
|
|
ol {
|
2013-08-20 01:34:28 +02:00
|
|
|
padding-left: 2em;
|
2013-03-31 10:19:51 +02:00
|
|
|
}
|
2013-04-06 20:36:25 +02:00
|
|
|
ul.unstyled {
|
2013-08-20 01:34:28 +02:00
|
|
|
list-style: none;
|
2013-04-06 20:36:25 +02:00
|
|
|
}
|
2013-08-20 01:34:28 +02:00
|
|
|
code,
|
2013-03-31 10:19:51 +02:00
|
|
|
pre,
|
|
|
|
samp,
|
|
|
|
kbd {
|
2013-08-20 01:34:28 +02:00
|
|
|
white-space: pre-wrap;
|
|
|
|
font-family: consolas, 'DejaVu Sans Mono', courier, monospace;
|
|
|
|
line-height: 1em;
|
2013-03-31 10:19:51 +02:00
|
|
|
}
|
|
|
|
code, kbd, mark {
|
2013-08-20 01:34:28 +02:00
|
|
|
border-radius: 2px;
|
2013-03-31 10:19:51 +02:00
|
|
|
}
|
|
|
|
em {
|
2013-08-20 01:34:28 +02:00
|
|
|
font-style: italic;
|
2013-03-31 10:19:51 +02:00
|
|
|
}
|
|
|
|
strong {
|
2013-08-20 01:34:28 +02:00
|
|
|
font-weight: bold;
|
2013-03-31 10:19:51 +02:00
|
|
|
}
|
2013-08-01 08:56:52 +02:00
|
|
|
i,
|
|
|
|
b {
|
2013-08-20 01:34:28 +02:00
|
|
|
font-style: normal;
|
|
|
|
font-weight: normal;
|
2013-08-01 08:56:52 +02:00
|
|
|
}
|
2013-03-31 10:19:51 +02:00
|
|
|
kbd {
|
2013-08-20 01:34:28 +02:00
|
|
|
padding: 0 2px;
|
|
|
|
border: 1px solid #999;
|
2013-03-31 10:19:51 +02:00
|
|
|
}
|
|
|
|
code {
|
2013-08-20 01:34:28 +02:00
|
|
|
padding: 2px 4px;
|
|
|
|
background: rgba(0,0,0,.04);
|
|
|
|
color: #b11;
|
2013-03-31 10:19:51 +02:00
|
|
|
}
|
|
|
|
mark {
|
2013-08-20 01:34:28 +02:00
|
|
|
padding:2px 4px;
|
|
|
|
background: #ff0;
|
2013-03-31 10:19:51 +02:00
|
|
|
}
|
|
|
|
table { margin-bottom: 1.5em; }
|
|
|
|
|
|
|
|
/* avoid top margins on first content element */
|
2013-08-13 07:51:27 +02:00
|
|
|
p, ul, ol, dl,
|
2013-03-31 10:19:51 +02:00
|
|
|
blockquote, pre,
|
|
|
|
h1, h2, h3, h4, h5, h6 {
|
2013-08-20 01:34:28 +02:00
|
|
|
&:first-child {
|
|
|
|
margin-top: 0;
|
|
|
|
}
|
2013-03-31 10:19:51 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
/* avoid margins on nested elements */
|
|
|
|
li p,
|
|
|
|
li ul,
|
|
|
|
li ol {
|
2013-08-20 01:34:28 +02:00
|
|
|
margin-top: 0;
|
|
|
|
margin-bottom: 0;
|
2013-03-31 10:19:51 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
/* max values */
|
|
|
|
img, table, td, blockquote, code, pre, textarea, input, video {
|
2013-08-20 01:34:28 +02:00
|
|
|
max-width: 100%;
|
2013-03-31 10:19:51 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
/* pictures */
|
|
|
|
img {
|
2013-08-20 01:34:28 +02:00
|
|
|
height: auto;
|
|
|
|
vertical-align: middle;
|
2013-03-31 10:19:51 +02:00
|
|
|
}
|
|
|
|
/* Gmap3 max-width bug fix on images */
|
2013-07-29 11:54:20 +02:00
|
|
|
.gmnoscreen img,
|
|
|
|
.gmnoprint img {max-width: none !important;}
|
2013-03-31 10:19:51 +02:00
|
|
|
|
|
|
|
a img { border: 0; }
|
|
|
|
|
|
|
|
/* scripts */
|
|
|
|
body > script {display: none !important;}
|
|
|
|
|
|
|
|
/* skip-links */
|
|
|
|
.skip-links {
|
2013-08-20 01:34:28 +02:00
|
|
|
position: absolute;
|
|
|
|
|
|
|
|
a {
|
|
|
|
position: absolute;
|
|
|
|
left: -7000px;
|
|
|
|
padding: 0.5em;
|
|
|
|
background: black;
|
|
|
|
color: white;
|
|
|
|
text-decoration: none;
|
|
|
|
|
|
|
|
&:focus {
|
|
|
|
position: static;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/* -----------------------------
|
|
|
|
layout and modules
|
|
|
|
----------------------------- */
|
2013-03-31 10:19:51 +02:00
|
|
|
|
|
|
|
/* switching box model for all elements */
|
|
|
|
* {
|
2013-08-20 01:34:28 +02:00
|
|
|
-webkit-box-sizing: border-box;
|
|
|
|
-moz-box-sizing: border-box;
|
|
|
|
box-sizing: border-box;
|
2013-03-31 10:19:51 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
/* float layout */
|
2013-08-01 08:56:52 +02:00
|
|
|
/* module, gains superpower "BFC" Block Formating Context */
|
2013-08-20 01:34:28 +02:00
|
|
|
.mod {
|
|
|
|
overflow: hidden;
|
2013-03-31 10:19:51 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
/* blocks that needs to be placed under floats */
|
|
|
|
.clear,
|
|
|
|
.line,
|
|
|
|
.row {
|
2013-08-20 01:34:28 +02:00
|
|
|
clear: both;
|
2013-03-31 10:19:51 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
/* blocks that must contain floats */
|
|
|
|
.clearfix:after,
|
|
|
|
.line:after,
|
|
|
|
.mod:after {
|
2013-08-20 01:34:28 +02:00
|
|
|
content: "";
|
|
|
|
display: table;
|
|
|
|
clear: both;
|
2013-03-31 10:19:51 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
/* table layout */
|
|
|
|
.row {
|
2013-08-20 01:34:28 +02:00
|
|
|
display: table;
|
|
|
|
table-layout: fixed;
|
|
|
|
width: 100%;
|
2013-03-31 10:19:51 +02:00
|
|
|
}
|
|
|
|
.row > *,
|
|
|
|
.col {
|
2013-08-20 01:34:28 +02:00
|
|
|
display: table-cell;
|
|
|
|
vertical-align: top;
|
2013-03-31 10:19:51 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
/* inline-block */
|
|
|
|
.inbl {
|
2013-08-20 01:34:28 +02:00
|
|
|
display: inline-block;
|
|
|
|
vertical-align: top;
|
2013-03-31 10:19:51 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
/* flexbox layout */
|
|
|
|
.flex {
|
2013-08-20 01:34:28 +02:00
|
|
|
display : -webkit-box;
|
|
|
|
display : -moz-box;
|
|
|
|
display: -ms-flexbox;
|
|
|
|
display : -webkit-flex;
|
|
|
|
display : flex;
|
2013-03-31 10:19:51 +02:00
|
|
|
}
|
|
|
|
.flex-h {
|
2013-08-20 01:34:28 +02:00
|
|
|
-webkit-box-orient: horizontal;
|
|
|
|
-moz-box-orient: horizontal;
|
|
|
|
-webkit-flex-direction: row;
|
|
|
|
-ms-flex-direction: row;
|
|
|
|
flex-direction: row;
|
2013-03-31 10:19:51 +02:00
|
|
|
}
|
|
|
|
.flex-v {
|
2013-08-20 01:34:28 +02:00
|
|
|
-webkit-box-orient: vertical;
|
|
|
|
-moz-box-orient: vertical;
|
|
|
|
-webkit-flex-direction: column;
|
|
|
|
-ms-flex-direction: column;
|
|
|
|
flex-direction: column;
|
2013-03-31 10:19:51 +02:00
|
|
|
}
|
|
|
|
.flex-fluid {
|
2013-08-20 01:34:28 +02:00
|
|
|
-moz-box-flex: 1;
|
|
|
|
-webkit-flex: 1;
|
|
|
|
-moz-flex: 1;
|
|
|
|
-ms-flex: 1;
|
|
|
|
flex: 1;
|
2013-03-31 10:19:51 +02:00
|
|
|
}
|
|
|
|
.flex-start {
|
2013-08-20 01:34:28 +02:00
|
|
|
-webkit-box-ordinal-group: -1;
|
|
|
|
-moz-box-ordinal-group: 0;
|
|
|
|
-ms-flex-order : -1;
|
|
|
|
-webkit-order : -1;
|
|
|
|
-moz-order : -1;
|
|
|
|
order : -1;
|
2013-03-31 10:19:51 +02:00
|
|
|
}
|
|
|
|
.flex-mid {
|
2013-08-20 01:34:28 +02:00
|
|
|
-webkit-box-ordinal-group: 1;
|
|
|
|
-moz-box-ordinal-group: 1;
|
|
|
|
-ms-flex-order : 1;
|
|
|
|
-webkit-order : 1;
|
|
|
|
-moz-order : 1;
|
|
|
|
order : 1;
|
2013-03-31 10:19:51 +02:00
|
|
|
}
|
|
|
|
.flex-end {
|
2013-08-20 01:34:28 +02:00
|
|
|
-webkit-box-ordinal-group: 42;
|
|
|
|
-moz-box-ordinal-group: 42;
|
|
|
|
-ms-flex-order : 42;
|
|
|
|
-webkit-order : 42;
|
|
|
|
-moz-order : 42;
|
|
|
|
order : 42;
|
2013-03-31 10:19:51 +02:00
|
|
|
}
|
|
|
|
|
2013-08-20 01:34:28 +02:00
|
|
|
|
|
|
|
/* ------------------------------
|
|
|
|
alignments
|
|
|
|
------------------------------ */
|
2013-03-31 10:19:51 +02:00
|
|
|
|
|
|
|
/* left elements */
|
|
|
|
.left {
|
2013-08-20 01:34:28 +02:00
|
|
|
float: left;
|
2013-03-31 10:19:51 +02:00
|
|
|
}
|
|
|
|
img.left {
|
2013-08-20 01:34:28 +02:00
|
|
|
margin-right: 1em;
|
2013-03-31 10:19:51 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
/* right elements */
|
|
|
|
.right {
|
2013-08-20 01:34:28 +02:00
|
|
|
float: right;
|
2013-03-31 10:19:51 +02:00
|
|
|
}
|
|
|
|
img.right {
|
2013-08-20 01:34:28 +02:00
|
|
|
margin-left: 1em;
|
2013-03-31 10:19:51 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
img.left, img.right {
|
2013-08-20 01:34:28 +02:00
|
|
|
margin-bottom: 5px;
|
2013-03-31 10:19:51 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.center { margin-left: auto; margin-right: auto; }
|
|
|
|
.txtleft { text-align: left; }
|
|
|
|
.txtright { text-align: right; }
|
|
|
|
.txtcenter { text-align: center; }
|
|
|
|
|
2013-08-20 01:34:28 +02:00
|
|
|
|
|
|
|
/* ------------------------------
|
|
|
|
grids
|
|
|
|
------------------------------ */
|
|
|
|
|
2013-08-02 11:21:25 +02:00
|
|
|
[class^=grid]:after {
|
2013-08-20 01:34:28 +02:00
|
|
|
content: "";
|
|
|
|
display: table;
|
|
|
|
clear: both;
|
2013-08-02 11:21:25 +02:00
|
|
|
}
|
2013-08-01 08:56:52 +02:00
|
|
|
[class^=grid] > * {float: left; } /* direct childrens are floating */
|
2013-03-31 10:19:51 +02:00
|
|
|
|
|
|
|
.grid2 > * {.grid(2);}
|
|
|
|
.grid3 > * {.grid(3);}
|
|
|
|
.grid4 > * {.grid(4);}
|
|
|
|
.grid5 > * {.grid(5);}
|
|
|
|
.grid6 > * {.grid(6);}
|
|
|
|
|
|
|
|
.grid2 > * + *,
|
|
|
|
.grid3 > * + *,
|
|
|
|
.grid4 > * + *,
|
|
|
|
.grid5 > * + *,
|
|
|
|
.grid6 > * + *,
|
|
|
|
.grid2-1 > * + *,
|
|
|
|
.grid1-2 > * + *,
|
|
|
|
.grid3-1 > * + *,
|
|
|
|
.grid1-3 > * + * {
|
2013-08-20 01:34:28 +02:00
|
|
|
margin-left: @gutter;
|
2013-03-31 10:19:51 +02:00
|
|
|
}
|
|
|
|
.grid2-1 > *,
|
|
|
|
.grid1-2 > * {
|
2013-08-20 01:34:28 +02:00
|
|
|
width: (100%-@gutter) / 3;
|
2013-03-31 10:19:51 +02:00
|
|
|
}
|
|
|
|
.grid2-1 > :first-child,
|
|
|
|
.grid1-2 > * + * {
|
2013-08-20 01:34:28 +02:00
|
|
|
width: (100%-@gutter) * 2 / 3;
|
2013-03-31 10:19:51 +02:00
|
|
|
}
|
|
|
|
.grid3-1 > *,
|
|
|
|
.grid1-3 > * {
|
2013-08-20 01:34:28 +02:00
|
|
|
width: (100%-@gutter) / 4;
|
2013-03-31 10:19:51 +02:00
|
|
|
}
|
|
|
|
.grid3-1 > :first-child,
|
|
|
|
.grid1-3 > * + * {
|
2013-08-20 01:34:28 +02:00
|
|
|
width: (100%-@gutter) * 3 / 4;
|
2013-03-31 10:19:51 +02:00
|
|
|
}
|
|
|
|
|
2013-08-20 01:34:28 +02:00
|
|
|
|
|
|
|
/* -----------------------------
|
|
|
|
autogrids
|
|
|
|
----------------------------- */
|
2013-08-01 08:56:52 +02:00
|
|
|
|
|
|
|
/* auto-justified equal grids */
|
|
|
|
|
2013-08-02 11:09:53 +02:00
|
|
|
[class*="autogrid"] {
|
2013-08-20 01:34:28 +02:00
|
|
|
text-align: justify;
|
|
|
|
font-size: 1px; letter-spacing: -1px; /* whitespace fi xpart 1 */
|
2013-08-01 08:56:52 +02:00
|
|
|
}
|
2013-08-02 11:09:53 +02:00
|
|
|
[class*="autogrid"]:after {
|
2013-08-20 01:34:28 +02:00
|
|
|
content: "";
|
|
|
|
display: inline-block;
|
|
|
|
width: 100%;
|
2013-08-01 08:56:52 +02:00
|
|
|
}
|
2013-08-02 11:09:53 +02:00
|
|
|
[class*="autogrid"] > * {
|
2013-08-20 01:34:28 +02:00
|
|
|
display: inline-block;
|
|
|
|
vertical-align: top;
|
|
|
|
text-align: left;
|
|
|
|
font-size: (@basefont + 0em);
|
|
|
|
font-size: ((@basefont / 10) + 0rem);
|
|
|
|
letter-spacing: normal; /* whitespace fix part 2 */
|
|
|
|
*display: inline; *zoom: 1; /* ie6 / ie7 hack */
|
2013-08-01 08:56:52 +02:00
|
|
|
}
|
2013-08-02 11:35:06 +02:00
|
|
|
.autogrid2 > * {width: 49%}
|
|
|
|
.autogrid3 > * {width: 32%}
|
|
|
|
.autogrid4 > * {width: 23.6%}
|
|
|
|
.autogrid5 > * {width: 19%}
|
|
|
|
.autogrid6 > * {width: 15%}
|
|
|
|
.autogrid8 > * {width: 10.8%}
|
|
|
|
.autogrid10 > * {width: 9%}
|
|
|
|
.autogrid12 > * {width: 6.4%}
|
2013-08-01 08:56:52 +02:00
|
|
|
|
|
|
|
/* Responsiv-o-matic */
|
|
|
|
|
|
|
|
@media (max-width: @largescreen) {
|
2013-08-20 01:34:28 +02:00
|
|
|
.autogrid5 > *,
|
|
|
|
.autogrid6 > *,
|
|
|
|
.autogrid8 > *,
|
|
|
|
.autogrid10 > *,
|
|
|
|
.autogrid12 > * {width: 32%}
|
2013-08-01 08:56:52 +02:00
|
|
|
}
|
2013-08-04 21:17:36 +02:00
|
|
|
@media (max-width: @smallscreen) {
|
2013-08-20 01:34:28 +02:00
|
|
|
.autogrid3 > *,
|
|
|
|
.autogrid4 > *,
|
|
|
|
.autogrid5 > *,
|
|
|
|
.autogrid6 > *,
|
|
|
|
.autogrid8 > *,
|
|
|
|
.autogrid10 > *,
|
|
|
|
.autogrid12 > * {width: 49%}
|
2013-08-01 08:56:52 +02:00
|
|
|
}
|
|
|
|
@media (max-width: @tinyscreen) {
|
2013-08-20 01:34:28 +02:00
|
|
|
[class*="autogrid"] > * {width: 100%}
|
2013-08-01 08:56:52 +02:00
|
|
|
}
|
|
|
|
|
2013-03-31 10:19:51 +02:00
|
|
|
/* blocks widths (percentage and pixels) */
|
|
|
|
.w10 { width: 10%; }
|
|
|
|
.w20 { width: 20%; }
|
|
|
|
.w25 { width: 25%; }
|
|
|
|
.w30 { width: 30%; }
|
2013-08-01 08:56:52 +02:00
|
|
|
.w33 { width: 33.3333%; }
|
2013-03-31 10:19:51 +02:00
|
|
|
.w40 { width: 40%; }
|
|
|
|
.w50 { width: 50%; }
|
|
|
|
.w60 { width: 60%; }
|
2013-08-01 08:56:52 +02:00
|
|
|
.w66 { width: 66.6666%; }
|
2013-03-31 10:19:51 +02:00
|
|
|
.w70 { width: 70%; }
|
|
|
|
.w75 { width: 75%; }
|
|
|
|
.w80 { width: 80%; }
|
|
|
|
.w90 { width: 90%; }
|
|
|
|
.w100 { width: 100%; }
|
|
|
|
|
|
|
|
.w50p { width: 50px; }
|
|
|
|
.w100p { width: 100px; }
|
|
|
|
.w150p { width: 150px; }
|
|
|
|
.w200p { width: 200px; }
|
|
|
|
.w300p { width: 300px; }
|
|
|
|
.w400p { width: 400px; }
|
|
|
|
.w500p { width: 500px; }
|
|
|
|
.w600p { width: 600px; }
|
|
|
|
.w700p { width: 700px; }
|
|
|
|
.w800p { width: 800px; }
|
|
|
|
.w960p { width: 960px; }
|
|
|
|
.mw960p { max-width: 960px; }
|
|
|
|
|
|
|
|
/* spacing helpers
|
|
|
|
p,m = padding,margin
|
|
|
|
a,t,r,b,l = all,top,right,bottom,left
|
|
|
|
s,m,l,n = small(10px),medium(20px),large(30px),none(0)
|
|
|
|
source https://github.com/stubbornella/oocss/blob/master/core/spacing/space.css
|
|
|
|
*/
|
2013-07-07 18:56:43 +02:00
|
|
|
.m-reset, .ma0 { margin: 0; }
|
|
|
|
.p-reset, .pa0 { padding: 0; }
|
|
|
|
.ma1, .mas { margin: @smallvalue; }
|
|
|
|
.ma2, .mam { margin: @mediumvalue; }
|
|
|
|
.ma3, .mal { margin: @largevalue; }
|
2013-03-31 10:19:51 +02:00
|
|
|
.pa1, .pas { padding: @smallvalue; }
|
|
|
|
.pa2, .pam { padding: @mediumvalue; }
|
|
|
|
.pa3, .pal { padding: @largevalue; }
|
|
|
|
|
2013-07-07 18:56:43 +02:00
|
|
|
.mt0, .mtn { margin-top: 0; }
|
|
|
|
.mt1, .mts { margin-top: @smallvalue; }
|
|
|
|
.mt2, .mtm { margin-top: @mediumvalue; }
|
|
|
|
.mt3, .mtl { margin-top: @largevalue; }
|
2013-03-31 10:19:51 +02:00
|
|
|
.mr0, .mrn { margin-right: 0; }
|
|
|
|
.mr1, .mrs { margin-right: @smallvalue; }
|
|
|
|
.mr2, .mrm { margin-right: @mediumvalue; }
|
|
|
|
.mr3, .mrl { margin-right: @largevalue; }
|
2013-07-07 18:56:43 +02:00
|
|
|
.mb0, .mbn { margin-bottom: 0; }
|
|
|
|
.mb1, .mbs { margin-bottom: @smallvalue; }
|
|
|
|
.mb2, .mbm { margin-bottom: @mediumvalue; }
|
|
|
|
.mb3, .mbl { margin-bottom: @largevalue; }
|
2013-03-31 10:19:51 +02:00
|
|
|
.ml0, .mln { margin-left: 0; }
|
|
|
|
.ml1, .mls { margin-left: @smallvalue; }
|
|
|
|
.ml2, .mlm { margin-left: @mediumvalue; }
|
|
|
|
.ml3, .mll { margin-left: @largevalue; }
|
|
|
|
|
|
|
|
.pt0, .ptn { padding-top: 0; }
|
|
|
|
.pt1, .pts { padding-top: @smallvalue; }
|
|
|
|
.pt2, .ptm { padding-top: @mediumvalue; }
|
|
|
|
.pt3, .ptl { padding-top: @largevalue; }
|
|
|
|
.pr0, .prn { padding-right: 0; }
|
|
|
|
.pr1, .prs { padding-right: @smallvalue; }
|
|
|
|
.pr2, .prm { padding-right: @mediumvalue; }
|
|
|
|
.pr3, .prl { padding-right: @largevalue; }
|
|
|
|
.pb0, .pbn { padding-bottom: 0; }
|
|
|
|
.pb1, .pbs { padding-bottom: @smallvalue; }
|
|
|
|
.pb2, .pbm { padding-bottom: @mediumvalue; }
|
|
|
|
.pb3, .pbl { padding-bottom: @largevalue; }
|
|
|
|
.pl0, .pln { padding-left: 0; }
|
|
|
|
.pl1, .pls { padding-left: @smallvalue; }
|
|
|
|
.pl2, .plm { padding-left: @mediumvalue; }
|
|
|
|
.pl3, .pll { padding-left: @largevalue; }
|
|
|
|
|
|
|
|
/* hiding content */
|
|
|
|
.visually-hidden {
|
2013-08-20 01:34:28 +02:00
|
|
|
position: absolute;
|
|
|
|
left: -7000px;
|
|
|
|
overflow: hidden;
|
2013-03-31 10:19:51 +02:00
|
|
|
}
|
|
|
|
[dir=rtl] .visually-hidden {
|
2013-08-20 01:34:28 +02:00
|
|
|
left: auto;
|
|
|
|
right: -7000px;
|
2013-03-31 10:19:51 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
/* hidden on desktop */
|
2013-08-20 01:34:28 +02:00
|
|
|
.desktop-hidden { display: none; }
|
2013-03-31 10:19:51 +02:00
|
|
|
/* hidden on mobile */
|
2013-08-20 01:34:28 +02:00
|
|
|
.mobile-hidden { display: block; }
|
|
|
|
|
|
|
|
|
|
|
|
/* -----------------------------
|
|
|
|
forms
|
|
|
|
----------------------------- */
|
2013-03-31 10:19:51 +02:00
|
|
|
|
|
|
|
form,
|
|
|
|
fieldset {
|
2013-08-20 01:34:28 +02:00
|
|
|
border: none;
|
2013-03-31 10:19:51 +02:00
|
|
|
}
|
|
|
|
input,
|
|
|
|
button,
|
|
|
|
select,
|
|
|
|
label,
|
|
|
|
.btn {
|
2013-08-20 01:34:28 +02:00
|
|
|
vertical-align: middle; /* @bugfix alignment */
|
|
|
|
font-family: inherit;
|
|
|
|
font-size: inherit;
|
2013-03-31 10:19:51 +02:00
|
|
|
}
|
|
|
|
textarea {
|
2013-08-20 01:34:28 +02:00
|
|
|
resize: vertical;
|
|
|
|
font-family: inherit;
|
|
|
|
font-size: inherit;
|
2013-03-31 10:19:51 +02:00
|
|
|
}
|
|
|
|
|
2013-08-20 01:34:28 +02:00
|
|
|
|
|
|
|
/* -----------------------------
|
|
|
|
iefix
|
|
|
|
----------------------------- */
|
2013-03-31 10:19:51 +02:00
|
|
|
|
|
|
|
/* haslayout for IE6/IE7 */
|
|
|
|
.ie67 .clearfix,
|
|
|
|
.ie67 .line,
|
|
|
|
.ie67 .mod,
|
|
|
|
.ie67 .row,
|
|
|
|
.ie67 .col {
|
2013-08-20 01:34:28 +02:00
|
|
|
zoom: 1;
|
2013-03-31 10:19:51 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
/* inline-block and table-cell for IE6/IE7 */
|
|
|
|
/* warning: .col needs width on IE6/IE7 */
|
|
|
|
.ie67 .btn,
|
|
|
|
.ie67 .col,
|
|
|
|
.ie67 .inbl {
|
2013-08-20 01:34:28 +02:00
|
|
|
display: inline;
|
|
|
|
zoom: 1;
|
2013-03-31 10:19:51 +02:00
|
|
|
}
|
|
|
|
.ie8 img {
|
2013-08-20 01:34:28 +02:00
|
|
|
width: auto; /* @bugfix for IE8 */
|
2013-03-31 10:19:51 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
/* Active box-sizing for IE6/IE7 */
|
|
|
|
/* @source https://github.com/Schepp/box-sizing-polyfill */
|
|
|
|
/*
|
|
|
|
.ie67 * {
|
2013-08-20 01:34:28 +02:00
|
|
|
behavior: url(/js/boxsizing.htc);
|
2013-03-31 10:19:51 +02:00
|
|
|
}
|
|
|
|
*/
|
|
|
|
|
2013-08-20 01:34:28 +02:00
|
|
|
|
|
|
|
/* -----------------------------
|
|
|
|
print
|
|
|
|
----------------------------- */
|
2013-03-31 10:19:51 +02:00
|
|
|
|
|
|
|
/* quick print reset */
|
|
|
|
@media print {
|
2013-08-20 01:34:28 +02:00
|
|
|
p,
|
|
|
|
blockquote {
|
|
|
|
orphans: 2;
|
|
|
|
widows: 2;
|
|
|
|
}
|
|
|
|
blockquote,
|
|
|
|
ul,
|
|
|
|
ol {
|
|
|
|
page-break-inside: avoid;
|
|
|
|
}
|
|
|
|
h1,
|
|
|
|
h2,
|
|
|
|
h3,
|
|
|
|
caption {
|
|
|
|
page-break-after: avoid;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/* -----------------------------
|
|
|
|
own stylesheet
|
|
|
|
----------------------------- */
|
2013-08-01 09:04:09 +02:00
|
|
|
|
|
|
|
/* Here should go your own CSS styles */
|
|
|
|
/* You can link them with an @import or, better for webperf, just paste them here */
|
|
|
|
|
|
|
|
/* @import url(my-styles.css); */
|
|
|
|
|
|
|
|
|
2013-08-20 01:34:28 +02:00
|
|
|
/* -----------------------------
|
|
|
|
desktop and retina medias
|
|
|
|
----------------------------- */
|
2013-03-31 10:19:51 +02:00
|
|
|
|
2013-08-04 21:17:36 +02:00
|
|
|
@media (min-width: @smallscreen) {
|
2013-08-20 01:34:28 +02:00
|
|
|
/* here go rules for big resources and big screens like: background-images, font-faces, etc. */
|
2013-03-31 10:19:51 +02:00
|
|
|
}
|
|
|
|
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi), (min-resolution: 2dppx) {
|
2013-08-20 01:34:28 +02:00
|
|
|
/* Style adjustments for retina devices */
|
2013-03-31 10:19:51 +02:00
|
|
|
}
|
|
|
|
|
2013-08-20 01:34:28 +02:00
|
|
|
|
|
|
|
/* ----------------------------------
|
|
|
|
Responsive large / medium / tiny
|
|
|
|
---------------------------------- */
|
2013-03-31 10:19:51 +02:00
|
|
|
|
|
|
|
@media (min-width: @largescreen) {
|
|
|
|
|
2013-08-20 01:34:28 +02:00
|
|
|
/* layouts for large (l) screens */
|
|
|
|
.large-hidden,
|
|
|
|
.tablet-hidden { display: none !important; }
|
|
|
|
.large-visible { display: block !important; }
|
|
|
|
.large-no-float {float: none; }
|
|
|
|
.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 (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 { margin: 0 !important; }
|
2013-03-31 10:19:51 +02:00
|
|
|
}
|
|
|
|
|
2013-08-04 21:17:36 +02:00
|
|
|
@media (max-width: @smallscreen) {
|
2013-03-31 10:19:51 +02:00
|
|
|
|
2013-08-20 01:34:28 +02:00
|
|
|
/* quick tablet reset */
|
|
|
|
.w600p,
|
|
|
|
.w700p,
|
|
|
|
.w800p,
|
|
|
|
.w960p,
|
|
|
|
.mw960p,
|
|
|
|
.small-wauto {
|
|
|
|
width: auto;
|
|
|
|
float: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* layouts for medium (m) screens */
|
|
|
|
.small-hidden,
|
|
|
|
.tablet-hidden { display: none !important; }
|
|
|
|
.small-visible { display: block !important; }
|
|
|
|
.small-no-float {float: none; }
|
|
|
|
.small-inbl {
|
|
|
|
display: inline-block;
|
|
|
|
float: none;
|
|
|
|
vertical-align: top;
|
|
|
|
}
|
|
|
|
.small-row {
|
|
|
|
display: table !important;
|
|
|
|
table-layout: fixed !important;
|
|
|
|
width: 100% !important;
|
|
|
|
}
|
|
|
|
.small-col {
|
|
|
|
display: table-cell !important;
|
|
|
|
vertical-align: top !important;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* you shall not pass */
|
|
|
|
div, textarea, table, td, th, code, pre, samp {
|
|
|
|
word-wrap: break-word;
|
|
|
|
-webkit-hyphens: auto;
|
|
|
|
-moz-hyphens: auto;
|
|
|
|
-ms-hyphens: auto;
|
|
|
|
-o-hyphens: auto;
|
|
|
|
hyphens: auto;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* 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; }
|
|
|
|
.small-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 small (s) screens */
|
|
|
|
.small-ma0 { margin: 0 !important; }
|
|
|
|
|
|
|
|
/* Responsive grids */
|
|
|
|
.grid4 > * {.grid(2);}
|
|
|
|
.grid4 > :first-child + * + * {margin-left: 0}
|
|
|
|
|
|
|
|
.grid6 > * {.grid(3);}
|
|
|
|
.grid6 > :first-child + * + * + * {margin-left: 0}
|
2013-03-31 10:19:51 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
@media (max-width: @tinyscreen) {
|
|
|
|
|
2013-08-20 01:34:28 +02:00
|
|
|
/* quick smartphone 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;
|
|
|
|
}
|
|
|
|
.w300p,
|
|
|
|
.w400p,
|
|
|
|
.w500p {
|
|
|
|
width: auto;
|
|
|
|
float: none;
|
|
|
|
}
|
|
|
|
.row {
|
|
|
|
display: block !important;
|
|
|
|
width: 100% !important;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* layouts for tiny (t) screens */
|
|
|
|
.tiny-hidden,
|
|
|
|
.phone-hidden { display: none !important; }
|
|
|
|
.tiny-visible { display: block !important; }
|
|
|
|
.tiny-no-float {float: none;}
|
|
|
|
.tiny-inbl {
|
|
|
|
display: inline-block;
|
|
|
|
float: none;
|
|
|
|
vertical-align: top;
|
|
|
|
}
|
|
|
|
.tiny-row {
|
|
|
|
display: table !important;
|
|
|
|
table-layout: fixed !important;
|
|
|
|
width: 100% !important;
|
|
|
|
}
|
|
|
|
.tiny-col {
|
|
|
|
display: table-cell !important;
|
|
|
|
vertical-align: top !important;
|
|
|
|
}
|
|
|
|
th,
|
|
|
|
td {
|
|
|
|
display: block !important;
|
|
|
|
width: auto !important;
|
|
|
|
text-align: left !important;
|
|
|
|
}
|
|
|
|
thead { display: none; }
|
|
|
|
|
|
|
|
/* 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 { margin: 0 !important; }
|
2013-03-31 10:19:51 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
/* orientation iOS font-size fix */
|
2013-08-04 21:17:36 +02:00
|
|
|
@media (orientation: landscape) and (max-device-width: @smallscreen) {
|
2013-08-20 01:34:28 +02:00
|
|
|
html,
|
|
|
|
body {
|
|
|
|
-webkit-text-size-adjust: 100%;
|
|
|
|
}
|
|
|
|
}
|