clean code

This commit is contained in:
Simon Constans 2013-08-20 01:34:28 +02:00
parent 447c3910eb
commit f3b67e8a25
10 changed files with 1076 additions and 1050 deletions

View file

@ -2,7 +2,7 @@ KNACSS
====== ======
http://www.knacss.com http://www.knacss.com
KNACSS is a minimalist, responsive and extensible style sheet to kick-start your HTML / CSS projects. KNACSS is a minimalist, responsive and extensible style sheet to kick-start your HTML / CSS projects.
Designed by [Alsacreations agency](http://alsacreations.fr) and used on a daily basis in production, KNACSS is not only a lightweight documented framework but also a CSS reset, adapted to every project no matter its size. Designed by [Alsacreations agency](http://alsacreations.fr) and used on a daily basis in production, KNACSS is not only a lightweight documented framework but also a CSS reset, adapted to every project no matter its size.

View file

@ -1,65 +1,68 @@
/* -----------------------------
flexbox classes
/* ----------------------------- */ ----------------------------- */
/* ==flexbox classes */
/* ----------------------------- */
/* flexbox layout context on container */ /* flexbox layout context on container */
.flex { .flex {
display: -webkit-box; display: -webkit-box;
display: -moz-box; display: -moz-box;
display: -ms-flexbox; display: -ms-flexbox;
display: -webkit-flex; display: -webkit-flex;
display: flex; display: flex;
} }
/* horizontal alignment */ /* horizontal alignment */
.flex-h { .flex-h {
-webkit-box-orient: horizontal; -webkit-box-orient: horizontal;
-moz-box-orient: horizontal; -moz-box-orient: horizontal;
-webkit-flex-direction: row; -webkit-flex-direction: row;
-ms-flex-direction: row; -ms-flex-direction: row;
flex-direction: row; flex-direction: row;
} }
/* vertical alignment */ /* vertical alignment */
.flex-v { .flex-v {
-webkit-box-orient: vertical; -webkit-box-orient: vertical;
-moz-box-orient: vertical; -moz-box-orient: vertical;
-webkit-flex-direction: column; -webkit-flex-direction: column;
-ms-flex-direction: column; -ms-flex-direction: column;
flex-direction: column; flex-direction: column;
} }
/* for fluid items */ /* for fluid items */
.flex-fluid { .flex-fluid {
-moz-box-flex: 1; -moz-box-flex: 1;
-webkit-flex: 1; -webkit-flex: 1;
-moz-flex: 1; -moz-flex: 1;
-ms-flex: 1; -ms-flex: 1;
flex: 1; flex: 1;
} }
/* for items that must appear first */ /* for items that must appear first */
.flex-start { .flex-start {
-webkit-box-ordinal-group: -1; -webkit-box-ordinal-group: -1;
-moz-box-ordinal-group: 0; -moz-box-ordinal-group: 0;
-ms-flex-order: -1; -ms-flex-order: -1;
-webkit-order: -1; -webkit-order: -1;
-moz-order: -1; -moz-order: -1;
order: -1; order: -1;
} }
/* for items that must appear middle */ /* for items that must appear middle */
.flex-mid { .flex-mid {
-webkit-box-ordinal-group: 1; -webkit-box-ordinal-group: 1;
-moz-box-ordinal-group: 1; -moz-box-ordinal-group: 1;
-ms-flex-order: 1; -ms-flex-order: 1;
-webkit-order: 1; -webkit-order: 1;
-moz-order: 1; -moz-order: 1;
order: 1; order: 1;
} }
/* for items that must appear at the end */ /* for items that must appear at the end */
.flex-end { .flex-end {
-webkit-box-ordinal-group: 42; -webkit-box-ordinal-group: 42;
-moz-box-ordinal-group: 42; -moz-box-ordinal-group: 42;
-ms-flex-order: 42; -ms-flex-order: 42;
-webkit-order: 42; -webkit-order: 42;
-moz-order: 42; -moz-order: 42;
order: 42; order: 42;
} }

View file

@ -1,10 +1,12 @@
/* -----------------------------
Forms
-----------------------------
/* ----------------------------- */ thanks to :
/* ==forms */ * HTML5boilerplate
/* ----------------------------- */ * github.com/nathansmith/formalize
* www.sitepen.com
/* thanks to HTML5boilerplate, github.com/nathansmith/formalize and www.sitepen.com */ */
/* buttons */ /* buttons */
.btn { display: inline-block; } .btn { display: inline-block; }
@ -19,37 +21,37 @@
.success {} .success {}
/* forms items */ /* forms items */
label { label {
display: inline-block; display: inline-block;
vertical-align: middle; vertical-align: middle;
cursor: pointer; cursor: pointer;
} }
legend { legend {
border: 0; border: 0;
white-space: normal; white-space: normal;
} }
button, button,
input, input,
select { select {
margin: 0; margin: 0;
} }
textarea { textarea {
overflow: auto; /* Removes default vertical scrollbar on empty textarea in IE6/7/8/9 */ overflow: auto; /* Removes default vertical scrollbar on empty textarea in IE6/7/8/9 */
min-height: 5em; min-height: 5em;
vertical-align: top; vertical-align: top;
} }
button, button,
input[type="button"], input[type="button"],
input[type="reset"], input[type="reset"],
input[type="submit"] { input[type="submit"] {
cursor: pointer; cursor: pointer;
-webkit-appearance: button; /* clickable input types in iOS */ -webkit-appearance: button; /* clickable input types in iOS */
*overflow: visible; /* Corrects inner spacing displayed oddly in IE7 */ *overflow: visible; /* Corrects inner spacing displayed oddly in IE7 */
} }
input[type="checkbox"], input[type="checkbox"],
input[type="radio"] { input[type="radio"] {
padding: 0; /* Corrects excess space around these inputs in IE8/9 */ padding: 0; /* Corrects excess space around these inputs in IE8/9 */
*width: 13px; *height: 13px; /* Corrects excess space around these inputs in IE7 */ *width: 13px; *height: 13px; /* Corrects excess space around these inputs in IE7 */
} }
input[type="search"] { -webkit-appearance: textfield; } input[type="search"] { -webkit-appearance: textfield; }
@ -61,7 +63,7 @@ input[type="search"]::-webkit-search-decoration,
input[type="search"]::-webkit-search-cancel-button, input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-results-button, input[type="search"]::-webkit-search-results-button,
input[type="search"]::-webkit-search-results-decoration { input[type="search"]::-webkit-search-results-decoration {
display: none; display: none;
} }
::-webkit-input-placeholder { color: #777; } ::-webkit-input-placeholder { color: #777; }
input:-moz-placeholder, input:-moz-placeholder,
@ -72,6 +74,6 @@ button::-moz-focus-inner,
input[type='button']::-moz-focus-inner, input[type='button']::-moz-focus-inner,
input[type='reset']::-moz-focus-inner, input[type='reset']::-moz-focus-inner,
input[type='submit']::-moz-focus-inner { input[type='submit']::-moz-focus-inner {
border: 0; border: 0;
padding: 0; padding: 0;
} }

View file

@ -1,13 +1,12 @@
/* -----------------------------
/* ----------------------------- */ grids
/* ==grids */ ----------------------------- */
/* ----------------------------- */
/* equal grids with 2% gutter */ /* equal grids with 2% gutter */
[class^=grid]:after { [class^=grid]:after {
content: ""; content: "";
display: table; display: table;
clear: both; clear: both;
} }
[class^=grid] > * {float: left; } /* direct childrens are floating */ [class^=grid] > * {float: left; } /* direct childrens are floating */
[class^=grid] > * + * { margin-left: 2%; } /* here's the gutter */ [class^=grid] > * + * { margin-left: 2%; } /* here's the gutter */
@ -27,27 +26,27 @@
.grid3-1 > *:first-child, .grid3-1 > *:first-child,
.grid1-3 > * + * { width: 74.5%; } .grid1-3 > * + * { width: 74.5%; }
/* ----------------------------- */
/* ==autogrids */ /* -----------------------------
/* ----------------------------- */ autogrids
----------------------------- */
/* auto-justified equal grids */ /* auto-justified equal grids */
[class*="autogrid"] { [class*="autogrid"] {
text-align: justify; text-align: justify;
font-size: 1px; letter-spacing: -1px; /* whitespace fi xpart 1 */ font-size: 1px; letter-spacing: -1px; /* whitespace fix part 1 */
} }
[class*="autogrid"]:after { [class*="autogrid"]:after {
content: ""; content: "";
display: inline-block; display: inline-block;
width: 100%; width: 100%;
} }
[class*="autogrid"] > * { [class*="autogrid"] > * {
display: inline-block; display: inline-block;
vertical-align: top; vertical-align: top;
text-align: left; text-align: left;
font-size: 14em; font-size: 1.4rem; letter-spacing: normal; /* whitespace fix part 2 */ font-size: 14em; font-size: 1.4rem; letter-spacing: normal; /* whitespace fix part 2 */
*display: inline; *zoom: 1; /* ie6 / ie7 hack */ *display: inline; *zoom: 1; /* ie6 / ie7 hack */
} }
.autogrid2 > * {width: 49%} .autogrid2 > * {width: 49%}
.autogrid3 > * {width: 32%} .autogrid3 > * {width: 32%}
@ -59,23 +58,22 @@
.autogrid12 > * {width: 6.4%} .autogrid12 > * {width: 6.4%}
/* Responsiv-o-matic */ /* Responsiv-o-matic */
@media (max-width: 1024px) { @media (max-width: 1024px) {
.autogrid5 > *, .autogrid5 > *,
.autogrid6 > *, .autogrid6 > *,
.autogrid8 > *, .autogrid8 > *,
.autogrid10 > *, .autogrid10 > *,
.autogrid12 > * {width: 32%} .autogrid12 > * {width: 32%}
} }
@media (max-width: 768px) { @media (max-width: 768px) {
.autogrid3 > *, .autogrid3 > *,
.autogrid4 > *, .autogrid4 > *,
.autogrid5 > *, .autogrid5 > *,
.autogrid6 > *, .autogrid6 > *,
.autogrid8 > *, .autogrid8 > *,
.autogrid10 > *, .autogrid10 > *,
.autogrid12 > * {width: 49%} .autogrid12 > * {width: 49%}
} }
@media (max-width: 640px) { @media (max-width: 640px) {
[class*="autogrid"] > * {width: 100%} [class*="autogrid"] > * {width: 100%}
} }

View file

@ -1,7 +1,6 @@
/* -----------------------------
/* ----------------------------- */ icons and bullets
/* ==icons and bullets */ ----------------------------- */
/* ----------------------------- */
.icon {display: inline-block;} .icon {display: inline-block;}
@ -9,30 +8,30 @@
.icon > li:before, .icon > li:before,
.icon.after:after, .icon.after:after,
.icon.after > li:after { .icon.after > li:after {
content: ""; content: "";
display: inline-block; display: inline-block;
vertical-align: middle; vertical-align: middle;
position: relative; top: -.1em; position: relative; top: -.1em;
margin: 0 0.3em 0 0; margin: 0 0.3em 0 0;
font: 1.4em/1 sans-serif; font: 1.4em/1 sans-serif;
color: #000; color: #000;
text-shadow: 1px 1px 0 rgba(0,0,0,.1); text-shadow: 1px 1px 0 rgba(0,0,0,.1);
speak: none; speak: none;
} }
@media (min-device-width: 768px) { @media (min-device-width: 768px) {
.icon:before, .icon:before,
.icon > li:before, .icon > li:before,
.icon.after:after, .icon.after:after,
.icon.after > li:after { .icon.after > li:after {
font: 1em/0.6 sans-serif; font: 1em/0.6 sans-serif;
-webkit-transform: rotateZ(0.05deg); -webkit-transform: rotateZ(0.05deg);
} }
} }
.icon.after:after, .icon.after:after,
.icon.after > li:after { .icon.after > li:after {
margin: 0 0 0 8px; margin: 0 0 0 8px;
} }
ul.icon {display: block;} ul.icon {display: block;}
@ -42,159 +41,159 @@ ul.icon.after:after {content:""}
.icon.after:before, .icon.after:before,
.icon.after > li:before {content: "" !important} .icon.after > li:before {content: "" !important}
.icon-rate:before, .icon-rate:before,
.icon-rate > li:before, .icon-rate > li:before,
.icon-rate.after:after, .icon-rate.after:after,
.icon-rate.after > li:after { .icon-rate.after > li:after {
content: "\2605"; content: "\2605";
} }
.icon-unrate:before, .icon-unrate:before,
.icon-unrate > li:before, .icon-unrate > li:before,
.icon-unrate.after:after, .icon-unrate.after:after,
.icon-unrate.after > li:after { .icon-unrate.after > li:after {
content: "\2606"; content: "\2606";
} }
.icon-check:before, .icon-check:before,
.icon-check > li:before, .icon-check > li:before,
.icon-check.after:after, .icon-check.after:after,
.icon-check.after > li:after { .icon-check.after > li:after {
content: "\2713"; content: "\2713";
} }
.icon-uncheck:before, .icon-uncheck:before,
.icon-uncheck > li:before, .icon-uncheck > li:before,
.icon-uncheck.after:after, .icon-uncheck.after:after,
.icon-uncheck.after > li:after { .icon-uncheck.after > li:after {
content: "\2717"; content: "\2717";
} }
.icon-cloud:before, .icon-cloud:before,
.icon-cloud > li:before, .icon-cloud > li:before,
.icon-cloud.after:after, .icon-cloud.after:after,
.icon-cloud.after > li:after { .icon-cloud.after > li:after {
content: "\2601"; content: "\2601";
} }
.icon-dl:before, .icon-dl:before,
.icon-dl > li:before, .icon-dl > li:before,
.icon-dl.after:after, .icon-dl.after:after,
.icon-dl.after > li:after { .icon-dl.after > li:after {
content: "\21E3"; content: "\21E3";
font-weight: bold; font-weight: bold;
} }
.icon-cross:before, .icon-cross:before,
.icon-cross > li:before, .icon-cross > li:before,
.icon-cross.after:after, .icon-cross.after:after,
.icon-cross.after > li:after { .icon-cross.after > li:after {
content: "\2716"; content: "\2716";
font-weight: bold; font-weight: bold;
} }
.icon-arrow1:before, .icon-arrow1:before,
.icon-arrow1 > li:before, .icon-arrow1 > li:before,
.icon-arrow1.after:after, .icon-arrow1.after:after,
.icon-arrow1.after > li:after { .icon-arrow1.after > li:after {
content: "\2192"; content: "\2192";
position: relative; top: -0.15em; position: relative; top: -0.15em;
} }
.icon-arrow2:before, .icon-arrow2:before,
.icon-arrow2 > li:before, .icon-arrow2 > li:before,
.icon-arrow2.after:after, .icon-arrow2.after:after,
.icon-arrow2.after > li:after { .icon-arrow2.after > li:after {
content: "\279E"; content: "\279E";
} }
.icon-arrow3:before, .icon-arrow3:before,
.icon-arrow3 > li:before, .icon-arrow3 > li:before,
.icon-arrow3.after:after, .icon-arrow3.after:after,
.icon-arrow3.after > li:after { .icon-arrow3.after > li:after {
content: "\279A"; content: "\279A";
} }
.icon-bracket1:before, .icon-bracket1:before,
.icon-bracket1 > li:before, .icon-bracket1 > li:before,
.icon-bracket1.after:after, .icon-bracket1.after:after,
.icon-bracket1.after > li:after { .icon-bracket1.after > li:after {
content: "\2039"; content: "\2039";
font-weight: bold; font-weight: bold;
font-size: 1.6em; font-size: 1.6em;
position: relative; top: -0.15em; position: relative; top: -0.15em;
} }
.icon-bracket2:before, .icon-bracket2:before,
.icon-bracket2 > li:before, .icon-bracket2 > li:before,
.icon-bracket2.after:after, .icon-bracket2.after:after,
.icon-bracket2.after > li:after { .icon-bracket2.after > li:after {
content: "\203A"; content: "\203A";
font-weight: bold; font-weight: bold;
font-size: 1.6em; font-size: 1.6em;
position: relative; top: -0.15em; position: relative; top: -0.15em;
} }
.icon-up:before, .icon-up:before,
.icon-up > li:before, .icon-up > li:before,
.icon-up.after:after, .icon-up.after:after,
.icon-up.after > li:after { .icon-up.after > li:after {
content: "\25B2"; content: "\25B2";
} }
.icon-down:before, .icon-down:before,
.icon-down > li:before, .icon-down > li:before,
.icon-down.after:after, .icon-down.after:after,
.icon-down.after > li:after { .icon-down.after > li:after {
content: "\25BC"; content: "\25BC";
} }
.icon-bull:before, .icon-bull:before,
.icon-bull > li:before, .icon-bull > li:before,
.icon-bull.after:after, .icon-bull.after:after,
.icon-bull.after > li:after { .icon-bull.after > li:after {
content: "\2022"; content: "\2022";
font-size: 1.2em; font-size: 1.2em;
top: -0.05em; top: -0.05em;
} }
.icon-bull2:before, .icon-bull2:before,
.icon-bull2 > li:before, .icon-bull2 > li:before,
.icon-bull2.after:after, .icon-bull2.after:after,
.icon-bull2.after > li:after { .icon-bull2.after > li:after {
content: "\25E6"; content: "\25E6";
top: -0.05em; top: -0.05em;
} }
.icon-bull3:before, .icon-bull3:before,
.icon-bull3 > li:before, .icon-bull3 > li:before,
.icon-bull3.after:after, .icon-bull3.after:after,
.icon-bull3.after > li:after { .icon-bull3.after > li:after {
content: "\2023"; content: "\2023";
font-size: 1.6em; font-size: 1.6em;
top: -0.05em; top: -0.05em;
} }
.icon-nav:before, .icon-nav:before,
.icon-nav > li:before, .icon-nav > li:before,
.icon-nav.after:after, .icon-nav.after:after,
.icon-nav.after > li:after { .icon-nav.after > li:after {
content: "\2261"; content: "\2261";
font-weight: bold; font-weight: bold;
} }
.icon-losange:before, .icon-losange:before,
.icon-losange > li:before, .icon-losange > li:before,
.icon-losange.after:after, .icon-losange.after:after,
.icon-losange.after > li:after { .icon-losange.after > li:after {
content: "\25C6"; content: "\25C6";
} }
.icon-asteri:before, .icon-asteri:before,
.icon-asteri > li:before, .icon-asteri > li:before,
.icon-asteri.after:after, .icon-asteri.after:after,
.icon-asteri.after > li:after { .icon-asteri.after > li:after {
content: "\2731"; content: "\2731";
font-weight: bold; font-weight: bold;
} }
.icon-mail:before, .icon-mail:before,
.icon-mail > li:before, .icon-mail > li:before,
.icon-mail.after:after, .icon-mail.after:after,
.icon-mail.after > li:after { .icon-mail.after > li:after {
content: "\2709"; content: "\2709";
font-size: 1.6em; font-size: 1.6em;
top: -.05em; top: -.05em;
} }
ol.styled {counter-reset: styled;} ol.styled {counter-reset: styled;}
ol.styled > li { ol.styled > li {
list-style-type: none; list-style-type: none;
counter-increment: styled; counter-increment: styled;
margin-bottom: .3em; margin-bottom: .3em;
} }
ol.styled > li:before { ol.styled > li:before {
content: counter(styled); content: counter(styled);
display: inline-block; display: inline-block;
width: 1em; height: 1em; width: 1em; height: 1em;
line-height: 1; line-height: 1;
@ -206,5 +205,5 @@ ol.styled > li:before {
font-size: .9em; font-size: .9em;
text-align: center; text-align: center;
text-indent: -0.1em; text-indent: -0.1em;
color: white; color: white;
} }

View file

@ -1,22 +1,22 @@
/* /**
* www.KNACSS.com V2.6n (2013-07) @author: Raphael Goetter, Alsacreations * www.KNACSS.com V2.6n (2013-07) @author: Raphael Goetter, Alsacreations
* Licence CC-BY http://creativecommons.org/licenses/by/3.0/fr/ * Licence CC-BY http://creativecommons.org/licenses/by/3.0/fr/
*/ */
/* ----------------------------- */ /* -----------------------------
/* ==reset */ reset
/* ----------------------------- */ ----------------------------- */
/* base font-size corresponds to 10px and is adapted to rem unit */ /* base font-size corresponds to 10px and is adapted to rem unit */
html { html {
font-size: 62.5%; font-size: 62.5%;
} }
body { body {
background-color: #fff; background-color: #fff;
color: #000; color: #000;
font-family: helvetica, arial, sans-serif; font-family: helvetica, arial, sans-serif;
font-size: 1.4em; /* equiv 14px */ font-size: 1.4em; /* equiv 14px */
line-height: 1.5; /* adapt to your design */ line-height: 1.5; /* adapt to your design */
} }
/* font-sizing for content */ /* font-sizing for content */
@ -32,58 +32,58 @@ th,
label, label,
textarea, textarea,
caption, caption,
details, details,
figure { figure {
font-size: 1em; /* equiv 14px */ font-size: 1em; /* equiv 14px */
line-height: 1.5; line-height: 1.5;
margin: .75em 0 0; margin: .75em 0 0;
} }
h1, .h1-like { h1, .h1-like {
font-size: 2.286em; /* equiv 32px */ font-size: 2.286em; /* equiv 32px */
line-height: 1.6154em; line-height: 1.6154em;
margin: .8077em 0 0 0; margin: .8077em 0 0 0;
} }
h2, .h2-like { h2, .h2-like {
font-size: 2em; /* equiv 28px */ font-size: 2em; /* equiv 28px */
line-height: 1.75em; line-height: 1.75em;
margin: .875em 0 0 0; margin: .875em 0 0 0;
} }
h3, .h3-like { h3, .h3-like {
font-size: 1.714em; /* equiv 24px */ font-size: 1.714em; /* equiv 24px */
line-height: 1.909em; line-height: 1.909em;
margin: .9545em 0 0 0; margin: .9545em 0 0 0;
} }
h4, .h4-like { h4, .h4-like {
font-size: 1.4286em; /* equiv 20px */ font-size: 1.4286em; /* equiv 20px */
line-height: 1.05em; line-height: 1.05em;
margin: 1.05em 0 0 0; margin: 1.05em 0 0 0;
} }
h5, .h5-like { h5, .h5-like {
font-size: 1.2857em; /* equiv 18px */ font-size: 1.2857em; /* equiv 18px */
line-height: 1.1667em; line-height: 1.1667em;
margin: 1.1667em 0 0 0; margin: 1.1667em 0 0 0;
} }
h6, .h6-like { h6, .h6-like {
font-size: 1.1429em; /* equiv 16px */ font-size: 1.1429em; /* equiv 16px */
line-height: 1.3125em; line-height: 1.3125em;
margin: 1.3125em 0 0 0; margin: 1.3125em 0 0 0;
} }
/* alternate font-sizing */ /* alternate font-sizing */
.smaller { .smaller {
font-size: .7143em; /* equiv 10px */ font-size: .7143em; /* equiv 10px */
} }
.small { .small {
font-size: .8571em; /* equiv 12px */ font-size: .8571em; /* equiv 12px */
} }
.big { .big {
font-size: 1.1429em; /* equiv 16px */ font-size: 1.1429em; /* equiv 16px */
} }
.bigger { .bigger {
font-size: 1.2857em; /* equiv 18px */ font-size: 1.2857em; /* equiv 18px */
} }
.biggest { .biggest {
font-size: 1.4286em; /* equiv 20px */ font-size: 1.4286em; /* equiv 20px */
} }
/* soft reset */ /* soft reset */
@ -92,61 +92,61 @@ body,
textarea, textarea,
figure, figure,
label { label {
margin: 0; margin: 0;
padding: 0; padding: 0;
} }
ul, ul,
ol { ol {
padding-left: 2em; padding-left: 2em;
} }
ul.unstyled { ul.unstyled {
list-style: none; list-style: none;
} }
code, code,
pre, pre,
samp, samp,
kbd { kbd {
white-space: pre-wrap; white-space: pre-wrap;
font-family: consolas, 'DejaVu Sans Mono', courier, monospace; font-family: consolas, 'DejaVu Sans Mono', courier, monospace;
line-height: 1em; line-height: 1em;
} }
code, kbd, mark { code, kbd, mark {
border-radius: 2px; border-radius: 2px;
} }
em { em {
font-style: italic; font-style: italic;
} }
strong { strong {
font-weight: bold; font-weight: bold;
} }
i, i,
b { b {
font-style: normal; font-style: normal;
font-weight: normal; font-weight: normal;
} }
kbd { kbd {
padding: 0 2px; padding: 0 2px;
border: 1px solid #999; border: 1px solid #999;
} }
code { code {
padding: 2px 4px; padding: 2px 4px;
background: rgba(0,0,0,.04); background: rgba(0,0,0,.04);
color: #b11; color: #b11;
} }
mark { mark {
padding:2px 4px; padding:2px 4px;
background: #ff0; background: #ff0;
} }
sup, sup,
sub { sub {
vertical-align: 0; vertical-align: 0;
position: relative; position: relative;
} }
sup { sup {
bottom: 1ex; bottom: 1ex;
} }
sub { sub {
top: .5ex; top: .5ex;
} }
table { margin-bottom: 1.5em; } table { margin-bottom: 1.5em; }
@ -164,25 +164,25 @@ h3:first-child,
h4:first-child, h4:first-child,
h5:first-child, h5:first-child,
h6:first-child { h6:first-child {
margin-top: 0; margin-top: 0;
} }
/* avoid margins on nested elements */ /* avoid margins on nested elements */
li p, li p,
li ul, li ul,
li ol { li ol {
margin-top: 0; margin-top: 0;
margin-bottom: 0; margin-bottom: 0;
} }
/* max values */ /* max values */
img, table, td, blockquote, code, pre, textarea, input, video { img, table, td, blockquote, code, pre, textarea, input, video {
max-width: 100%; max-width: 100%;
} }
/* pictures */ /* pictures */
img { img {
height: auto; height: auto;
vertical-align: middle; vertical-align: middle;
} }
/* Gmap3 max-width bug fix on images */ /* Gmap3 max-width bug fix on images */
.gmnoscreen img, .gmnoscreen img,
@ -195,92 +195,95 @@ body > script {display: none !important;}
/* skip-links */ /* skip-links */
.skip-links { .skip-links {
position: absolute; position: absolute;
} }
.skip-links a { .skip-links a {
position: absolute; position: absolute;
left: -7000px; left: -7000px;
padding: 0.5em; padding: 0.5em;
background: #000; background: #000;
color:#fff; color:#fff;
text-decoration: none; text-decoration: none;
} }
.skip-links a:focus { .skip-links a:focus {
position: static; position: static;
} }
/* ----------------------------- */
/* ==layout and modules */ /* -----------------------------
/* ----------------------------- */ layout and modules
----------------------------- */
/* switching box model for all elements */ /* switching box model for all elements */
* { * {
-webkit-box-sizing: border-box; -webkit-box-sizing: border-box;
-moz-box-sizing: border-box; -moz-box-sizing: border-box;
box-sizing: border-box; box-sizing: border-box;
} }
/* float layout */ /* float layout */
/* module, gains superpower "BFC" Block Formating Context */ /* module, gains superpower "BFC" Block Formating Context */
.mod { .mod {
overflow: hidden; overflow: hidden;
} }
/* blocks that needs to be placed under floats */ /* blocks that needs to be placed under floats */
.clear, .clear,
.line, .line,
.row { .row {
clear: both; clear: both;
} }
/* blocks that must contain floats */ /* blocks that must contain floats */
.clearfix:after, .clearfix:after,
.line:after, .line:after,
.mod:after { .mod:after {
content: ""; content: "";
display: table; display: table;
clear: both; clear: both;
} }
/* table layout */ /* table layout */
.row { .row {
display: table; display: table;
table-layout: fixed; table-layout: fixed;
width: 100%; width: 100%;
} }
.row > *, .row > *,
.col { .col {
display: table-cell; display: table-cell;
vertical-align: top; vertical-align: top;
} }
/* inline-block */ /* inline-block */
.inbl { .inbl {
display: inline-block; display: inline-block;
vertical-align: top; vertical-align: top;
} }
/* alignments (blocks and inline) */
/* ------------------------------ */ /* ------------------------------
alignments
------------------------------ */
/* left elements */ /* left elements */
.left { .left {
float: left; float: left;
} }
img.left { img.left {
margin-right: 1em; margin-right: 1em;
} }
/* right elements */ /* right elements */
.right { .right {
float: right; float: right;
} }
img.right { img.right {
margin-left: 1em; margin-left: 1em;
} }
img.left, img.right { img.left, img.right {
margin-bottom: 5px; margin-bottom: 5px;
} }
.center { margin-left: auto; margin-right: auto; } .center { margin-left: auto; margin-right: auto; }
@ -370,42 +373,45 @@ source https://github.com/stubbornella/oocss/blob/master/core/spacing/space.css
/* hiding content */ /* hiding content */
.visually-hidden { .visually-hidden {
position: absolute; position: absolute;
left: -7000px; left: -7000px;
overflow: hidden; overflow: hidden;
} }
[dir=rtl] .visually-hidden { [dir=rtl] .visually-hidden {
left: auto; left: auto;
right: -7000px; right: -7000px;
} }
.desktop-hidden { display: none; } /* hidden on desktop */ .desktop-hidden { display: none; } /* hidden on desktop */
/* ----------------------------- */
/* ==forms */ /* -----------------------------
/* ----------------------------- */ forms
----------------------------- */
form, form,
fieldset { fieldset {
border: none; border: none;
} }
input, input,
button, button,
select, select,
label, label,
.btn { .btn {
vertical-align: middle; /* @bugfix alignment */ vertical-align: middle; /* @bugfix alignment */
font-family: inherit; font-family: inherit;
font-size: inherit; font-size: inherit;
} }
textarea { textarea {
resize: vertical; resize: vertical;
font-family: inherit; font-family: inherit;
font-size: inherit; font-size: inherit;
} }
/* ----------------------------- */
/* ==iefix */ /* -----------------------------
/* ----------------------------- */ iefix
----------------------------- */
/* hasLayout for IE6/IE7 */ /* hasLayout for IE6/IE7 */
.ie67 .clearfix, .ie67 .clearfix,
@ -413,7 +419,7 @@ textarea {
.ie67 .mod, .ie67 .mod,
.ie67 .row, .ie67 .row,
.ie67 .col { .ie67 .col {
zoom: 1; zoom: 1;
} }
/* inline-block and table-cell for IE6/IE7 */ /* inline-block and table-cell for IE6/IE7 */
@ -421,60 +427,60 @@ textarea {
.ie67 .btn, .ie67 .btn,
.ie67 .col, .ie67 .col,
.ie67 .inbl { .ie67 .inbl {
display: inline; display: inline;
zoom: 1; zoom: 1;
} }
.ie8 img { .ie8 img {
width: auto; /* @bugfix for IE8 */ width: auto; /* @bugfix for IE8 */
} }
/* Active box-sizing for IE6/IE7 */ /* Active box-sizing for IE6/IE7 */
/* @source https://github.com/Schepp/box-sizing-polyfill */ /* @source https://github.com/Schepp/box-sizing-polyfill */
/* /*
.ie67 * { .ie67 * {
behavior: url(/js/boxsizing.htc); behavior: url(/js/boxsizing.htc);
} }
*/ */
/* ----------------------------- */
/* ==print */ /* -----------------------------
/* ----------------------------- */ print
----------------------------- */
/* quick print reset */ /* quick print reset */
@media print { @media print {
p, p,
blockquote { blockquote {
orphans: 2; orphans: 2;
widows: 2; widows: 2;
} }
blockquote, blockquote,
ul, ul,
ol { ol {
page-break-inside: avoid; page-break-inside: avoid;
} }
h1, h1,
h2, h2,
h3, h3,
caption { caption {
page-break-after: avoid; page-break-after: avoid;
} }
} }
/* orientation iOS font-size fix */ /* orientation iOS font-size fix */
@media (orientation: landscape) and (max-device-width: 768px) { @media (orientation: landscape) and (max-device-width: 768px) {
html, html,
body { body {
-webkit-text-size-adjust: 100%; -webkit-text-size-adjust: 100%;
} }
} }
/* ----------------------------- */
/* ==own stylesheet */ /* -----------------------------
/* ----------------------------- */ own stylesheet
----------------------------- */
/* Here should go your own CSS styles */ /* Here should go your own CSS styles */
/* You can link them with an @import or, better for webperf, just paste them here */ /* You can link them with an @import or, better for webperf, just paste them here */
/* @import url(my-styles.css); */ /* @import url(my-styles.css); */

View file

@ -1,69 +1,72 @@
/* quick print reset */ /* -----------------------------
quick print reset
----------------------------- */
@media print { @media print {
* { * {
background: transparent !important; background: transparent !important;
box-shadow: none !important; box-shadow: none !important;
text-shadow: none !important; text-shadow: none !important;
} }
body { body {
width: auto !important; width: auto !important;
margin: auto !important; margin: auto !important;
font-family: serif; font-family: serif;
font-size: 12pt; font-size: 12pt;
background-color: #fff !important; background-color: #fff !important;
color: #333 !important; color: #333 !important;
} }
p, p,
h1, h1,
h2, h2,
h3, h3,
h4, h4,
h5, h5,
h6, h6,
blockquote, blockquote,
ul, ul,
ol { ol {
color: #000 !important; color: #000 !important;
margin: auto !important; margin: auto !important;
} }
.print { .print {
display: block; /* displaying .print elements */ display: block; /* displaying .print elements */
} }
img { img {
-webkit-filter: grayscale(100%); -webkit-filter: grayscale(100%);
-moz-filter: grayscale(100%); -moz-filter: grayscale(100%);
-ms-filter: grayscale(100%); -ms-filter: grayscale(100%);
-o-filter: grayscale(100%); -o-filter: grayscale(100%);
filter: grayscale(100%); filter: grayscale(100%);
} }
p, p,
blockquote { blockquote {
orphans: 3; /* no orphans */ orphans: 3; /* no orphans */
widows: 3; /* no widows */ widows: 3; /* no widows */
} }
blockquote, blockquote,
ul, ul,
ol { ol {
page-break-inside: avoid; /* no breaks inside these elements */ page-break-inside: avoid; /* no breaks inside these elements */
} }
h1 { h1 {
page-break-before: always; /* page break before main headers */ page-break-before: always; /* page break before main headers */
} }
h1, h1,
h2, h2,
h3, h3,
caption { caption {
page-break-after: avoid; /* no breaks after these elements */ page-break-after: avoid; /* no breaks after these elements */
} }
a { a {
color: #000 !important; color: #000 !important;
text-decoration: underline !important; text-decoration: underline !important;
} }
a[href]:after { a[href]:after {
content: " (" attr(href) ")"; /* displaying URLs */ content: " (" attr(href) ")"; /* displaying URLs */
} }
a[href^="javascript:"]:after, a[href^="javascript:"]:after,
a[href^="#"]:after { a[href^="#"]:after {
content: ""; content: "";
} }
} }

View file

@ -1,220 +1,222 @@
/* -----------------------------
viewport fixing for RWD
----------------------------- */
/* ----------------------------- */
/* ==viewport fixing for RWD */
/* ----------------------------- */
@-webkit-viewport { @-webkit-viewport {
width: device-width; width: device-width;
zoom: 1.0; zoom: 1.0;
} }
@-moz-viewport { @-moz-viewport {
width: device-width; width: device-width;
zoom: 1.0; zoom: 1.0;
} }
@-ms-viewport { @-ms-viewport {
width: device-width; width: device-width;
zoom: 1.0; zoom: 1.0;
} }
@-o-viewport { @-o-viewport {
width: device-width; width: device-width;
zoom: 1.0; zoom: 1.0;
} }
@viewport { @viewport {
width: device-width; width: device-width;
zoom: 1.0; zoom: 1.0;
} }
/* ----------------------------- */
/* ==desktop and retina medias */ /* -----------------------------
/* ----------------------------- */ desktop and retina medias
----------------------------- */
@media (min-width: 641px) { @media (min-width: 641px) {
/* here go rules for big resources and big screens like: background-images, font-faces, etc. */ /* here go 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) { @media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi), (min-resolution: 2dppx) {
/* Style adjustments for retina devices */ /* Style adjustments for retina devices */
} }
/* ---------------------------------- */
/* ==Responsive large / small / tiny */ /* ----------------------------------
/* ---------------------------------- */ Responsive large / small / tiny
---------------------------------- */
@media (min-width: 1280px) { @media (min-width: 1280px) {
/* layouts for large (l) screens */ /* layouts for large (l) screens */
.large-hidden, .large-hidden,
.tablet-hidden { display: none !important; } .tablet-hidden { display: none !important; }
.large-visible { display: block !important; } .large-visible { display: block !important; }
.large-no-float {float: none; } .large-no-float {float: none; }
.large-inbl { .large-inbl {
display: inline-block; display: inline-block;
float: none; float: none;
vertical-align: top; vertical-align: top;
} }
.large-row { .large-row {
display: table; display: table;
table-layout: fixed; table-layout: fixed;
width: 100% !important; width: 100% !important;
} }
.large-col { .large-col {
display: table-cell; display: table-cell;
vertical-align: top; vertical-align: top;
} }
/* widths for large (l) screens */ /* widths for large (l) screens */
.large-w25 { width: 25% !important; } .large-w25 { width: 25% !important; }
.large-w33 { width: 33.3333% !important; } .large-w33 { width: 33.3333% !important; }
.large-w50 { width: 50% !important; } .large-w50 { width: 50% !important; }
.large-w66 { width: 66.6666% !important; } .large-w66 { width: 66.6666% !important; }
.large-w75 { width: 75% !important; } .large-w75 { width: 75% !important; }
.large-w100 { .large-w100 {
display: block !important; display: block !important;
float: none !important; float: none !important;
clear: none !important; clear: none !important;
width: auto !important; width: auto !important;
margin-left: 0 !important; margin-left: 0 !important;
margin-right: 0 !important; margin-right: 0 !important;
border: 0; border: 0;
} }
/* margins for large (l) screens */ /* margins for large (l) screens */
.large-ma0 { margin: 0 !important; } .large-ma0 { margin: 0 !important; }
} }
@media (max-width: 768px) { @media (max-width: 768px) {
/* quick tablet reset */ /* quick tablet reset */
.w600p, .w600p,
.w700p, .w700p,
.w800p, .w800p,
.w960p, .w960p,
.mw960p, .mw960p,
.small-wauto { .small-wauto {
width: auto; width: auto;
float: none; float: none;
} }
/* you shall not pass */ /* you shall not pass */
div, textarea, table, td, th, code, pre, samp { div, textarea, table, td, th, code, pre, samp {
word-wrap: break-word; word-wrap: break-word;
-webkit-hyphens: auto; -webkit-hyphens: auto;
-moz-hyphens: auto; -moz-hyphens: auto;
-ms-hyphens: auto; -ms-hyphens: auto;
-o-hyphens: auto; -o-hyphens: auto;
hyphens: auto; hyphens: auto;
} }
/* layouts for small (s) screens */ /* layouts for small (s) screens */
.small-hidden, .small-hidden,
.tablet-hidden { display: none !important; } .tablet-hidden { display: none !important; }
.small-visible { display: block !important; } .small-visible { display: block !important; }
.small-no-float {float: none; } .small-no-float {float: none; }
.small-inbl { .small-inbl {
display: inline-block; display: inline-block;
float: none; float: none;
vertical-align: top; vertical-align: top;
} }
.small-row { .small-row {
display: table !important; display: table !important;
table-layout: fixed !important; table-layout: fixed !important;
width: 100% !important; width: 100% !important;
} }
.small-col { .small-col {
display: table-cell !important; display: table-cell !important;
vertical-align: top !important; vertical-align: top !important;
} }
/* widths for small (s) screens */ /* widths for small (s) screens */
.small-w25 { width: 25% !important; } .small-w25 { width: 25% !important; }
.small-w33 { width: 33.3333% !important; } .small-w33 { width: 33.3333% !important; }
.small-w50 { width: 50% !important; } .small-w50 { width: 50% !important; }
.small-w66 { width: 66.6666% !important; } .small-w66 { width: 66.6666% !important; }
.small-w75 { width: 75% !important; } .small-w75 { width: 75% !important; }
.small-w100 { .small-w100 {
display: block !important; display: block !important;
float: none !important; float: none !important;
clear: none !important; clear: none !important;
width: auto !important; width: auto !important;
margin-left: 0 !important; margin-left: 0 !important;
margin-right: 0 !important; margin-right: 0 !important;
border: 0; border: 0;
} }
/* margins for small (s) screens */ /* margins for small (s) screens */
.small-ma0 { margin: 0 !important; } .small-ma0 { margin: 0 !important; }
/* Responsive grids */ /* Responsive grids */
.grid4 > * {width: 49% !important; } .grid4 > * {width: 49% !important; }
.grid4 > :first-child + * + * {margin-left: 0 !important;} .grid4 > :first-child + * + * {margin-left: 0 !important;}
.grid6 > * {width: 32% !important; } .grid6 > * {width: 32% !important; }
.grid6 > :first-child + * + * + * {margin-left: 0 !important;} .grid6 > :first-child + * + * + * {margin-left: 0 !important;}
} }
@media (max-width: 640px) { @media (max-width: 640px) {
/* quick smartphone reset */ /* quick smartphone reset */
.mod, .mod,
.col, .col,
fieldset { fieldset {
display: block !important; display: block !important;
float: none !important; float: none !important;
clear: none !important; clear: none !important;
width: auto !important; width: auto !important;
margin-left: 0 !important; margin-left: 0 !important;
margin-right: 0 !important; margin-right: 0 !important;
border: 0; border: 0;
} }
.w300p, .w300p,
.w400p, .w400p,
.w500p { .w500p {
width: auto; width: auto;
float: none; float: none;
} }
.row { .row {
display: block !important; display: block !important;
width: 100% !important; width: 100% !important;
} }
/* layouts for tiny (t) screens */ /* layouts for tiny (t) screens */
.tiny-hidden, .tiny-hidden,
.phone-hidden { display: none !important; } .phone-hidden { display: none !important; }
.tiny-visible { display: block !important; } .tiny-visible { display: block !important; }
.tiny-no-float {float: none;} .tiny-no-float {float: none;}
.tiny-inbl { .tiny-inbl {
display: inline-block; display: inline-block;
float: none; float: none;
vertical-align: top; vertical-align: top;
} }
.tiny-row { .tiny-row {
display: table !important; display: table !important;
table-layout: fixed !important; table-layout: fixed !important;
width: 100% !important; width: 100% !important;
} }
.tiny-col { .tiny-col {
display: table-cell !important; display: table-cell !important;
vertical-align: top !important; vertical-align: top !important;
} }
th, th,
td { td {
display: block !important; display: block !important;
width: auto !important; width: auto !important;
text-align: left !important; text-align: left !important;
} }
thead { display: none; } thead { display: none; }
/* widths for tiny (t) screens */ /* widths for tiny (t) screens */
.tiny-w25 { width: 25% !important; } .tiny-w25 { width: 25% !important; }
.tiny-w33 { width: 33.3333% !important; } .tiny-w33 { width: 33.3333% !important; }
.tiny-w50 { width: 50% !important; } .tiny-w50 { width: 50% !important; }
.tiny-w66 { width: 66.6666% !important; } .tiny-w66 { width: 66.6666% !important; }
.tiny-w75 { width: 75% !important; } .tiny-w75 { width: 75% !important; }
.tiny-w100 { .tiny-w100 {
display: block !important; display: block !important;
float: none !important; float: none !important;
clear: none !important; clear: none !important;
width: auto !important; width: auto !important;
margin-left: 0 !important; margin-left: 0 !important;
margin-right: 0 !important; margin-right: 0 !important;
border: 0; border: 0;
} }
/* margins for tiny (t) screens */ /* margins for tiny (t) screens */
.tiny-ma0 { margin: 0 !important; } .tiny-ma0 { margin: 0 !important; }
} }

View file

@ -1,78 +1,77 @@
/* -----------------------------
/* ----------------------------- */ tables
/* ==tables */ ----------------------------- */
/* ----------------------------- */
table, table,
.table { .table {
max-width : 100%; max-width : 100%;
table-layout: fixed; table-layout: fixed;
border-collapse: collapse; border-collapse: collapse;
vertical-align: top; vertical-align: top;
} }
table { table {
width: 100%; width: 100%;
} }
.table { .table {
display: table; display: table;
} }
table#recaptcha_table, table#recaptcha_table,
table.table-auto { table.table-auto {
table-layout:auto; table-layout:auto;
} }
caption { caption {
padding: 10px; padding: 10px;
color: #555; color: #555;
font-style: italic; font-style: italic;
} }
table { table {
border: 1px solid #ccc; border: 1px solid #ccc;
} }
tr > * + * { tr > * + * {
border-left: 1px solid #ccc; border-left: 1px solid #ccc;
} }
th, th,
td { td {
padding: .3em .8em; padding: .3em .8em;
text-align: left; text-align: left;
border-bottom: 1px solid #ccc; border-bottom: 1px solid #ccc;
} }
td { td {
color: #333; color: #333;
} }
/* alternate tables */ /* alternate tables */
.alternate { border: 0; } .alternate { border: 0; }
.alternate tbody { .alternate tbody {
border: 1px solid #ccc; border: 1px solid #ccc;
} }
.alternate thead tr > * + * { .alternate thead tr > * + * {
border-left: 0; border-left: 0;
} }
.alternate tbody tr > * + * { .alternate tbody tr > * + * {
border-left: 1px solid #ccc; border-left: 1px solid #ccc;
} }
/* alternate-vert tables */ /* alternate-vert tables */
.alternate-vert { .alternate-vert {
border: 0; border: 0;
border-right: 1px solid #ccc; border-right: 1px solid #ccc;
} }
.alternate-vert tr > :first-child { .alternate-vert tr > :first-child {
border-bottom: 0; border-bottom: 0;
} }
.alternate-vert tr > * + * { .alternate-vert tr > * + * {
border-top: 1px solid #ccc; border-top: 1px solid #ccc;
} }
/* striped tables */ /* striped tables */
.striped tbody tr:nth-child(odd) { .striped tbody tr:nth-child(odd) {
background: #eee; background: #eee;
background: rgba(0, 0, 0, .05); background: rgba(0, 0, 0, .05);
} }
/* striped-vert tables */ /* striped-vert tables */
.striped-vert tr > :first-child { .striped-vert tr > :first-child {
background: #eee; background: #eee;
background: rgba(0, 0, 0, .05); background: rgba(0, 0, 0, .05);
} }

File diff suppressed because it is too large Load diff