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
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.

View File

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

View File

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

View File

@ -1,13 +1,12 @@
/* ----------------------------- */
/* ==grids */
/* ----------------------------- */
/* -----------------------------
grids
----------------------------- */
/* equal grids with 2% gutter */
[class^=grid]:after {
content: "";
display: table;
clear: both;
content: "";
display: table;
clear: both;
}
[class^=grid] > * {float: left; } /* direct childrens are floating */
[class^=grid] > * + * { margin-left: 2%; } /* here's the gutter */
@ -27,27 +26,27 @@
.grid3-1 > *:first-child,
.grid1-3 > * + * { width: 74.5%; }
/* ----------------------------- */
/* ==autogrids */
/* ----------------------------- */
/* -----------------------------
autogrids
----------------------------- */
/* auto-justified equal grids */
[class*="autogrid"] {
text-align: justify;
font-size: 1px; letter-spacing: -1px; /* whitespace fi xpart 1 */
text-align: justify;
font-size: 1px; letter-spacing: -1px; /* whitespace fix part 1 */
}
[class*="autogrid"]:after {
content: "";
display: inline-block;
width: 100%;
content: "";
display: inline-block;
width: 100%;
}
[class*="autogrid"] > * {
display: inline-block;
vertical-align: top;
text-align: left;
font-size: 14em; font-size: 1.4rem; letter-spacing: normal; /* whitespace fix part 2 */
*display: inline; *zoom: 1; /* ie6 / ie7 hack */
display: inline-block;
vertical-align: top;
text-align: left;
font-size: 14em; font-size: 1.4rem; letter-spacing: normal; /* whitespace fix part 2 */
*display: inline; *zoom: 1; /* ie6 / ie7 hack */
}
.autogrid2 > * {width: 49%}
.autogrid3 > * {width: 32%}
@ -59,23 +58,22 @@
.autogrid12 > * {width: 6.4%}
/* Responsiv-o-matic */
@media (max-width: 1024px) {
.autogrid5 > *,
.autogrid6 > *,
.autogrid8 > *,
.autogrid10 > *,
.autogrid12 > * {width: 32%}
.autogrid5 > *,
.autogrid6 > *,
.autogrid8 > *,
.autogrid10 > *,
.autogrid12 > * {width: 32%}
}
@media (max-width: 768px) {
.autogrid3 > *,
.autogrid4 > *,
.autogrid5 > *,
.autogrid6 > *,
.autogrid8 > *,
.autogrid10 > *,
.autogrid12 > * {width: 49%}
.autogrid3 > *,
.autogrid4 > *,
.autogrid5 > *,
.autogrid6 > *,
.autogrid8 > *,
.autogrid10 > *,
.autogrid12 > * {width: 49%}
}
@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;}
@ -9,30 +8,30 @@
.icon > li:before,
.icon.after:after,
.icon.after > li:after {
content: "";
display: inline-block;
vertical-align: middle;
position: relative; top: -.1em;
margin: 0 0.3em 0 0;
font: 1.4em/1 sans-serif;
color: #000;
text-shadow: 1px 1px 0 rgba(0,0,0,.1);
speak: none;
content: "";
display: inline-block;
vertical-align: middle;
position: relative; top: -.1em;
margin: 0 0.3em 0 0;
font: 1.4em/1 sans-serif;
color: #000;
text-shadow: 1px 1px 0 rgba(0,0,0,.1);
speak: none;
}
@media (min-device-width: 768px) {
.icon:before,
.icon > li:before,
.icon.after:after,
.icon.after > li:after {
font: 1em/0.6 sans-serif;
-webkit-transform: rotateZ(0.05deg);
}
.icon:before,
.icon > li:before,
.icon.after:after,
.icon.after > li:after {
font: 1em/0.6 sans-serif;
-webkit-transform: rotateZ(0.05deg);
}
}
.icon.after:after,
.icon.after > li:after {
margin: 0 0 0 8px;
margin: 0 0 0 8px;
}
ul.icon {display: block;}
@ -42,159 +41,159 @@ ul.icon.after:after {content:""}
.icon.after:before,
.icon.after > li:before {content: "" !important}
.icon-rate:before,
.icon-rate:before,
.icon-rate > li:before,
.icon-rate.after:after,
.icon-rate.after:after,
.icon-rate.after > li:after {
content: "\2605";
content: "\2605";
}
.icon-unrate:before,
.icon-unrate:before,
.icon-unrate > li:before,
.icon-unrate.after:after,
.icon-unrate.after:after,
.icon-unrate.after > li:after {
content: "\2606";
content: "\2606";
}
.icon-check:before,
.icon-check:before,
.icon-check > li:before,
.icon-check.after:after,
.icon-check.after:after,
.icon-check.after > li:after {
content: "\2713";
content: "\2713";
}
.icon-uncheck:before,
.icon-uncheck:before,
.icon-uncheck > li:before,
.icon-uncheck.after:after,
.icon-uncheck.after:after,
.icon-uncheck.after > li:after {
content: "\2717";
content: "\2717";
}
.icon-cloud:before,
.icon-cloud:before,
.icon-cloud > li:before,
.icon-cloud.after:after,
.icon-cloud.after:after,
.icon-cloud.after > li:after {
content: "\2601";
content: "\2601";
}
.icon-dl:before,
.icon-dl:before,
.icon-dl > li:before,
.icon-dl.after:after,
.icon-dl.after:after,
.icon-dl.after > li:after {
content: "\21E3";
font-weight: bold;
content: "\21E3";
font-weight: bold;
}
.icon-cross:before,
.icon-cross:before,
.icon-cross > li:before,
.icon-cross.after:after,
.icon-cross.after:after,
.icon-cross.after > li:after {
content: "\2716";
font-weight: bold;
content: "\2716";
font-weight: bold;
}
.icon-arrow1:before,
.icon-arrow1:before,
.icon-arrow1 > li:before,
.icon-arrow1.after:after,
.icon-arrow1.after:after,
.icon-arrow1.after > li:after {
content: "\2192";
position: relative; top: -0.15em;
content: "\2192";
position: relative; top: -0.15em;
}
.icon-arrow2:before,
.icon-arrow2:before,
.icon-arrow2 > li:before,
.icon-arrow2.after:after,
.icon-arrow2.after:after,
.icon-arrow2.after > li:after {
content: "\279E";
content: "\279E";
}
.icon-arrow3:before,
.icon-arrow3:before,
.icon-arrow3 > li:before,
.icon-arrow3.after:after,
.icon-arrow3.after:after,
.icon-arrow3.after > li:after {
content: "\279A";
content: "\279A";
}
.icon-bracket1:before,
.icon-bracket1:before,
.icon-bracket1 > li:before,
.icon-bracket1.after:after,
.icon-bracket1.after:after,
.icon-bracket1.after > li:after {
content: "\2039";
font-weight: bold;
font-size: 1.6em;
position: relative; top: -0.15em;
content: "\2039";
font-weight: bold;
font-size: 1.6em;
position: relative; top: -0.15em;
}
.icon-bracket2:before,
.icon-bracket2:before,
.icon-bracket2 > li:before,
.icon-bracket2.after:after,
.icon-bracket2.after:after,
.icon-bracket2.after > li:after {
content: "\203A";
font-weight: bold;
font-size: 1.6em;
position: relative; top: -0.15em;
content: "\203A";
font-weight: bold;
font-size: 1.6em;
position: relative; top: -0.15em;
}
.icon-up:before,
.icon-up:before,
.icon-up > li:before,
.icon-up.after:after,
.icon-up.after:after,
.icon-up.after > li:after {
content: "\25B2";
content: "\25B2";
}
.icon-down:before,
.icon-down:before,
.icon-down > li:before,
.icon-down.after:after,
.icon-down.after:after,
.icon-down.after > li:after {
content: "\25BC";
content: "\25BC";
}
.icon-bull:before,
.icon-bull:before,
.icon-bull > li:before,
.icon-bull.after:after,
.icon-bull.after:after,
.icon-bull.after > li:after {
content: "\2022";
font-size: 1.2em;
top: -0.05em;
content: "\2022";
font-size: 1.2em;
top: -0.05em;
}
.icon-bull2:before,
.icon-bull2:before,
.icon-bull2 > li:before,
.icon-bull2.after:after,
.icon-bull2.after:after,
.icon-bull2.after > li:after {
content: "\25E6";
top: -0.05em;
content: "\25E6";
top: -0.05em;
}
.icon-bull3:before,
.icon-bull3:before,
.icon-bull3 > li:before,
.icon-bull3.after:after,
.icon-bull3.after:after,
.icon-bull3.after > li:after {
content: "\2023";
font-size: 1.6em;
top: -0.05em;
content: "\2023";
font-size: 1.6em;
top: -0.05em;
}
.icon-nav:before,
.icon-nav:before,
.icon-nav > li:before,
.icon-nav.after:after,
.icon-nav.after:after,
.icon-nav.after > li:after {
content: "\2261";
font-weight: bold;
content: "\2261";
font-weight: bold;
}
.icon-losange:before,
.icon-losange:before,
.icon-losange > li:before,
.icon-losange.after:after,
.icon-losange.after:after,
.icon-losange.after > li:after {
content: "\25C6";
content: "\25C6";
}
.icon-asteri:before,
.icon-asteri:before,
.icon-asteri > li:before,
.icon-asteri.after:after,
.icon-asteri.after:after,
.icon-asteri.after > li:after {
content: "\2731";
font-weight: bold;
content: "\2731";
font-weight: bold;
}
.icon-mail:before,
.icon-mail:before,
.icon-mail > li:before,
.icon-mail.after:after,
.icon-mail.after:after,
.icon-mail.after > li:after {
content: "\2709";
font-size: 1.6em;
top: -.05em;
content: "\2709";
font-size: 1.6em;
top: -.05em;
}
ol.styled {counter-reset: styled;}
ol.styled {counter-reset: styled;}
ol.styled > li {
list-style-type: none;
counter-increment: styled;
margin-bottom: .3em;
}
ol.styled > li:before {
content: counter(styled);
content: counter(styled);
display: inline-block;
width: 1em; height: 1em;
line-height: 1;
@ -206,5 +205,5 @@ ol.styled > li:before {
font-size: .9em;
text-align: center;
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
* Licence CC-BY http://creativecommons.org/licenses/by/3.0/fr/
*/
/**
* www.KNACSS.com V2.6n (2013-07) @author: Raphael Goetter, Alsacreations
* 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 */
html {
font-size: 62.5%;
font-size: 62.5%;
}
body {
background-color: #fff;
color: #000;
font-family: helvetica, arial, sans-serif;
font-size: 1.4em; /* equiv 14px */
line-height: 1.5; /* adapt to your design */
background-color: #fff;
color: #000;
font-family: helvetica, arial, sans-serif;
font-size: 1.4em; /* equiv 14px */
line-height: 1.5; /* adapt to your design */
}
/* font-sizing for content */
@ -32,58 +32,58 @@ th,
label,
textarea,
caption,
details,
details,
figure {
font-size: 1em; /* equiv 14px */
line-height: 1.5;
margin: .75em 0 0;
font-size: 1em; /* equiv 14px */
line-height: 1.5;
margin: .75em 0 0;
}
h1, .h1-like {
font-size: 2.286em; /* equiv 32px */
line-height: 1.6154em;
margin: .8077em 0 0 0;
font-size: 2.286em; /* equiv 32px */
line-height: 1.6154em;
margin: .8077em 0 0 0;
}
h2, .h2-like {
font-size: 2em; /* equiv 28px */
line-height: 1.75em;
margin: .875em 0 0 0;
font-size: 2em; /* equiv 28px */
line-height: 1.75em;
margin: .875em 0 0 0;
}
h3, .h3-like {
font-size: 1.714em; /* equiv 24px */
line-height: 1.909em;
margin: .9545em 0 0 0;
font-size: 1.714em; /* equiv 24px */
line-height: 1.909em;
margin: .9545em 0 0 0;
}
h4, .h4-like {
font-size: 1.4286em; /* equiv 20px */
line-height: 1.05em;
margin: 1.05em 0 0 0;
font-size: 1.4286em; /* equiv 20px */
line-height: 1.05em;
margin: 1.05em 0 0 0;
}
h5, .h5-like {
font-size: 1.2857em; /* equiv 18px */
line-height: 1.1667em;
margin: 1.1667em 0 0 0;
font-size: 1.2857em; /* equiv 18px */
line-height: 1.1667em;
margin: 1.1667em 0 0 0;
}
h6, .h6-like {
font-size: 1.1429em; /* equiv 16px */
line-height: 1.3125em;
margin: 1.3125em 0 0 0;
font-size: 1.1429em; /* equiv 16px */
line-height: 1.3125em;
margin: 1.3125em 0 0 0;
}
/* alternate font-sizing */
.smaller {
font-size: .7143em; /* equiv 10px */
font-size: .7143em; /* equiv 10px */
}
.small {
font-size: .8571em; /* equiv 12px */
font-size: .8571em; /* equiv 12px */
}
.big {
font-size: 1.1429em; /* equiv 16px */
font-size: 1.1429em; /* equiv 16px */
}
.bigger {
font-size: 1.2857em; /* equiv 18px */
font-size: 1.2857em; /* equiv 18px */
}
.biggest {
font-size: 1.4286em; /* equiv 20px */
font-size: 1.4286em; /* equiv 20px */
}
/* soft reset */
@ -92,61 +92,61 @@ body,
textarea,
figure,
label {
margin: 0;
padding: 0;
margin: 0;
padding: 0;
}
ul,
ol {
padding-left: 2em;
padding-left: 2em;
}
ul.unstyled {
list-style: none;
list-style: none;
}
code,
code,
pre,
samp,
kbd {
white-space: pre-wrap;
font-family: consolas, 'DejaVu Sans Mono', courier, monospace;
line-height: 1em;
white-space: pre-wrap;
font-family: consolas, 'DejaVu Sans Mono', courier, monospace;
line-height: 1em;
}
code, kbd, mark {
border-radius: 2px;
border-radius: 2px;
}
em {
font-style: italic;
font-style: italic;
}
strong {
font-weight: bold;
font-weight: bold;
}
i,
b {
font-style: normal;
font-weight: normal;
font-style: normal;
font-weight: normal;
}
kbd {
padding: 0 2px;
border: 1px solid #999;
padding: 0 2px;
border: 1px solid #999;
}
code {
padding: 2px 4px;
background: rgba(0,0,0,.04);
color: #b11;
padding: 2px 4px;
background: rgba(0,0,0,.04);
color: #b11;
}
mark {
padding:2px 4px;
background: #ff0;
padding:2px 4px;
background: #ff0;
}
sup,
sub {
vertical-align: 0;
position: relative;
vertical-align: 0;
position: relative;
}
sup {
bottom: 1ex;
bottom: 1ex;
}
sub {
top: .5ex;
top: .5ex;
}
table { margin-bottom: 1.5em; }
@ -164,25 +164,25 @@ h3:first-child,
h4:first-child,
h5:first-child,
h6:first-child {
margin-top: 0;
margin-top: 0;
}
/* avoid margins on nested elements */
li p,
li ul,
li ol {
margin-top: 0;
margin-bottom: 0;
margin-top: 0;
margin-bottom: 0;
}
/* max values */
img, table, td, blockquote, code, pre, textarea, input, video {
max-width: 100%;
max-width: 100%;
}
/* pictures */
img {
height: auto;
vertical-align: middle;
height: auto;
vertical-align: middle;
}
/* Gmap3 max-width bug fix on images */
.gmnoscreen img,
@ -195,92 +195,95 @@ body > script {display: none !important;}
/* skip-links */
.skip-links {
position: absolute;
position: absolute;
}
.skip-links a {
position: absolute;
left: -7000px;
padding: 0.5em;
background: #000;
color:#fff;
text-decoration: none;
position: absolute;
left: -7000px;
padding: 0.5em;
background: #000;
color:#fff;
text-decoration: none;
}
.skip-links a:focus {
position: static;
position: static;
}
/* ----------------------------- */
/* ==layout and modules */
/* ----------------------------- */
/* -----------------------------
layout and modules
----------------------------- */
/* switching box model for all elements */
* {
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
}
/* float layout */
/* module, gains superpower "BFC" Block Formating Context */
.mod {
overflow: hidden;
.mod {
overflow: hidden;
}
/* blocks that needs to be placed under floats */
.clear,
.line,
.row {
clear: both;
clear: both;
}
/* blocks that must contain floats */
.clearfix:after,
.line:after,
.mod:after {
content: "";
display: table;
clear: both;
content: "";
display: table;
clear: both;
}
/* table layout */
.row {
display: table;
table-layout: fixed;
width: 100%;
display: table;
table-layout: fixed;
width: 100%;
}
.row > *,
.col {
display: table-cell;
vertical-align: top;
display: table-cell;
vertical-align: top;
}
/* inline-block */
.inbl {
display: inline-block;
vertical-align: top;
display: inline-block;
vertical-align: top;
}
/* alignments (blocks and inline) */
/* ------------------------------ */
/* ------------------------------
alignments
------------------------------ */
/* left elements */
.left {
float: left;
float: left;
}
img.left {
margin-right: 1em;
margin-right: 1em;
}
/* right elements */
.right {
float: right;
float: right;
}
img.right {
margin-left: 1em;
margin-left: 1em;
}
img.left, img.right {
margin-bottom: 5px;
margin-bottom: 5px;
}
.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 */
.visually-hidden {
position: absolute;
left: -7000px;
overflow: hidden;
position: absolute;
left: -7000px;
overflow: hidden;
}
[dir=rtl] .visually-hidden {
left: auto;
right: -7000px;
left: auto;
right: -7000px;
}
.desktop-hidden { display: none; } /* hidden on desktop */
/* ----------------------------- */
/* ==forms */
/* ----------------------------- */
/* -----------------------------
forms
----------------------------- */
form,
fieldset {
border: none;
border: none;
}
input,
button,
select,
label,
.btn {
vertical-align: middle; /* @bugfix alignment */
font-family: inherit;
font-size: inherit;
vertical-align: middle; /* @bugfix alignment */
font-family: inherit;
font-size: inherit;
}
textarea {
resize: vertical;
font-family: inherit;
font-size: inherit;
resize: vertical;
font-family: inherit;
font-size: inherit;
}
/* ----------------------------- */
/* ==iefix */
/* ----------------------------- */
/* -----------------------------
iefix
----------------------------- */
/* hasLayout for IE6/IE7 */
.ie67 .clearfix,
@ -413,7 +419,7 @@ textarea {
.ie67 .mod,
.ie67 .row,
.ie67 .col {
zoom: 1;
zoom: 1;
}
/* inline-block and table-cell for IE6/IE7 */
@ -421,60 +427,60 @@ textarea {
.ie67 .btn,
.ie67 .col,
.ie67 .inbl {
display: inline;
zoom: 1;
display: inline;
zoom: 1;
}
.ie8 img {
width: auto; /* @bugfix for IE8 */
width: auto; /* @bugfix for IE8 */
}
/* Active box-sizing for IE6/IE7 */
/* @source https://github.com/Schepp/box-sizing-polyfill */
/*
.ie67 * {
behavior: url(/js/boxsizing.htc);
behavior: url(/js/boxsizing.htc);
}
*/
/* ----------------------------- */
/* ==print */
/* ----------------------------- */
/* -----------------------------
print
----------------------------- */
/* quick print reset */
@media print {
p,
blockquote {
orphans: 2;
widows: 2;
}
blockquote,
ul,
ol {
page-break-inside: avoid;
}
h1,
h2,
h3,
caption {
page-break-after: avoid;
}
p,
blockquote {
orphans: 2;
widows: 2;
}
blockquote,
ul,
ol {
page-break-inside: avoid;
}
h1,
h2,
h3,
caption {
page-break-after: avoid;
}
}
/* orientation iOS font-size fix */
@media (orientation: landscape) and (max-device-width: 768px) {
html,
body {
-webkit-text-size-adjust: 100%;
}
html,
body {
-webkit-text-size-adjust: 100%;
}
}
/* ----------------------------- */
/* ==own stylesheet */
/* ----------------------------- */
/* -----------------------------
own stylesheet
----------------------------- */
/* 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); */

View File

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

View File

@ -1,220 +1,222 @@
/* -----------------------------
viewport fixing for RWD
----------------------------- */
/* ----------------------------- */
/* ==viewport fixing for RWD */
/* ----------------------------- */
@-webkit-viewport {
width: device-width;
zoom: 1.0;
width: device-width;
zoom: 1.0;
}
@-moz-viewport {
width: device-width;
zoom: 1.0;
width: device-width;
zoom: 1.0;
}
@-ms-viewport {
width: device-width;
zoom: 1.0;
width: device-width;
zoom: 1.0;
}
@-o-viewport {
width: device-width;
zoom: 1.0;
width: device-width;
zoom: 1.0;
}
@viewport {
width: device-width;
zoom: 1.0;
width: device-width;
zoom: 1.0;
}
/* ----------------------------- */
/* ==desktop and retina medias */
/* ----------------------------- */
/* -----------------------------
desktop and retina medias
----------------------------- */
@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) {
/* Style adjustments for retina devices */
/* Style adjustments for retina devices */
}
/* ---------------------------------- */
/* ==Responsive large / small / tiny */
/* ---------------------------------- */
/* ----------------------------------
Responsive large / small / tiny
---------------------------------- */
@media (min-width: 1280px) {
/* 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;
}
/* 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;
}
/* 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; }
/* margins for large (l) screens */
.large-ma0 { margin: 0 !important; }
}
@media (max-width: 768px) {
/* quick tablet reset */
.w600p,
.w700p,
.w800p,
.w960p,
.mw960p,
.small-wauto {
width: auto;
float: none;
}
/* quick tablet reset */
.w600p,
.w700p,
.w800p,
.w960p,
.mw960p,
.small-wauto {
width: auto;
float: none;
}
/* 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;
}
/* 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;
}
/* layouts for small (s) 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;
}
/* layouts for small (s) 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;
}
/* 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; }
/* 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 > * {width: 49% !important; }
.grid4 > :first-child + * + * {margin-left: 0 !important;}
.grid6 > * {width: 32% !important; }
.grid6 > :first-child + * + * + * {margin-left: 0 !important;}
/* Responsive grids */
.grid4 > * {width: 49% !important; }
.grid4 > :first-child + * + * {margin-left: 0 !important;}
.grid6 > * {width: 32% !important; }
.grid6 > :first-child + * + * + * {margin-left: 0 !important;}
}
@media (max-width: 640px) {
/* 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;
}
/* 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; }
/* 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; }
}
/* 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; }
}

View File

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

File diff suppressed because it is too large Load Diff