tabs to spaces + editorconfig

This commit is contained in:
Raphael Goetter 2015-07-01 13:47:48 +02:00
parent 1bc094e9df
commit 5fa49413b6
24 changed files with 1671 additions and 1672 deletions

View file

@ -1,10 +1,9 @@
# editorconfig.org
root = true root = true
[*] [*]
indent_style = tab indent_style = space
indent_size = 4 indent_size = 2
end_of_line = lf end_of_line = lf # doesn't work yet
charset = utf-8 charset = utf-8
trim_trailing_whitespace = true trim_trailing_whitespace = true # doesn't work yet
insert_final_newline = true insert_final_newline = true # doesn't work yet

View file

@ -4,35 +4,35 @@
/* switching to border-box model for all elements */ /* switching to border-box model for all elements */
html { html {
box-sizing: border-box; box-sizing: border-box;
} }
* { * {
box-sizing: inherit; box-sizing: inherit;
} }
ul, ul,
ol { ol {
padding-left: 2em; padding-left: 2em;
} }
ul.@{kna-namespace}unstyled { ul.@{kna-namespace}unstyled {
list-style: none; list-style: none;
} }
img { img {
vertical-align: middle; vertical-align: middle;
} }
/* height auto only for non SVG images */ /* height auto only for non SVG images */
img:not([src$=".svg"]) { img:not([src$=".svg"]) {
height: auto; height: auto;
} }
blockquote, blockquote,
figure { figure {
margin-left: 0; margin-left: 0;
margin-right: 0; margin-right: 0;
} }
/* ----------------------------- */ /* ----------------------------- */
@ -41,34 +41,34 @@ figure {
html { html {
/* set base font-size to equiv "10px", which is adapted to rem unit */ /* set base font-size to equiv "10px", which is adapted to rem unit */
font-size: 62.5%; font-size: 62.5%;
/* IE9-IE11 math fixing. See http://bit.ly/1g4X0bX */ /* IE9-IE11 math fixing. See http://bit.ly/1g4X0bX */
/* thanks to @guardian, @victorbritopro and @eQRoeil */ /* thanks to @guardian, @victorbritopro and @eQRoeil */
font-size: ~'calc(1em * .625)'; font-size: ~'calc(1em * .625)';
/* disallow text zooming on orientation change (non standard property) */ /* disallow text zooming on orientation change (non standard property) */
-webkit-text-size-adjust: 100%; -webkit-text-size-adjust: 100%;
-ms-text-size-adjust: 100%; -ms-text-size-adjust: 100%;
} }
body { body {
/* set body font-size in em (1.4em equiv "14px") */ /* set body font-size in em (1.4em equiv "14px") */
font-size: unit((@base-font-size / 10), em); font-size: unit((@base-font-size / 10), em);
background-color: @base-background; background-color: @base-background;
color: @base-color; color: @base-color;
font-family: @font-stack-common; font-family: @font-stack-common;
line-height: @line-height; line-height: @line-height;
} }
a { a {
color: @base-color-link; color: @base-color-link;
&:hover, &:focus, &:active { &:hover, &:focus, &:active {
color: @base-color-link-hover; color: @base-color-link-hover;
} }
} }
/* font-sizing for content */ /* font-sizing for content */
@ -86,73 +86,73 @@ textarea,
caption, caption,
details, details,
figure { figure {
margin-top: 0.75em; margin-top: 0.75em;
margin-bottom: 0; margin-bottom: 0;
line-height: @line-height; line-height: @line-height;
} }
h1, h1,
.@{kna-namespace}h1-like { .@{kna-namespace}h1-like {
font-size: @h1-size; font-size: @h1-size;
font-family: @font-stack-headings; font-family: @font-stack-headings;
} }
h2, h2,
.@{kna-namespace}h2-like { .@{kna-namespace}h2-like {
font-size: @h2-size; font-size: @h2-size;
font-family: @font-stack-headings; font-family: @font-stack-headings;
} }
h3, h3,
.@{kna-namespace}h3-like { .@{kna-namespace}h3-like {
font-size: @h3-size; font-size: @h3-size;
} }
h4, h4,
.@{kna-namespace}h4-like { .@{kna-namespace}h4-like {
font-size: @h4-size; font-size: @h4-size;
} }
h5, h5,
.@{kna-namespace}h5-like { .@{kna-namespace}h5-like {
font-size: @h5-size; font-size: @h5-size;
} }
h6, h6,
.@{kna-namespace}h6-like { .@{kna-namespace}h6-like {
font-size: @h6-size; font-size: @h6-size;
} }
/* alternate font-sizing */ /* alternate font-sizing */
.@{kna-namespace}smaller { .@{kna-namespace}smaller {
font-size: 0.6em; font-size: 0.6em;
} }
.@{kna-namespace}small { .@{kna-namespace}small {
font-size: 0.8em; font-size: 0.8em;
} }
.@{kna-namespace}big { .@{kna-namespace}big {
font-size: 1.2em; font-size: 1.2em;
} }
.@{kna-namespace}bigger { .@{kna-namespace}bigger {
font-size: 1.5em; font-size: 1.5em;
} }
.@{kna-namespace}biggest { .@{kna-namespace}biggest {
font-size: 2em; font-size: 2em;
} }
code, code,
pre, pre,
samp, samp,
kbd { kbd {
/* IE fix */ /* IE fix */
white-space: pre-line; white-space: pre-line;
white-space: pre-wrap; white-space: pre-wrap;
font-family: @font-stack-monospace; font-family: @font-stack-monospace;
line-height: normal; line-height: normal;
} }
em, em,
@ -161,7 +161,7 @@ address,
cite, cite,
i, i,
var { var {
font-style: italic; font-style: italic;
} }
/* ----------------------------- */ /* ----------------------------- */
@ -170,25 +170,25 @@ var {
/* hidden but not for an assistive technology like a screen reader, Yahoo! method */ /* hidden but not for an assistive technology like a screen reader, Yahoo! method */
.@{kna-namespace}visually-hidden { .@{kna-namespace}visually-hidden {
position: absolute !important; position: absolute !important;
border: 0 !important; border: 0 !important;
height: 1px !important; height: 1px !important;
width: 1px !important; width: 1px !important;
padding: 0 !important; padding: 0 !important;
overflow: hidden !important; overflow: hidden !important;
clip: rect(1px, 1px, 1px, 1px) !important; clip: rect(1px, 1px, 1px, 1px) !important;
} }
@media (max-width: @small-screen) { @media (max-width: @small-screen) {
.@{kna-namespace}no-small-screen { .@{kna-namespace}no-small-screen {
display: none; display: none;
} }
} }
@media (min-width: @large-screen) { @media (min-width: @large-screen) {
.@{kna-namespace}no-large-screen { .@{kna-namespace}no-large-screen {
display: none; display: none;
} }
} }
/* ----------------------------- */ /* ----------------------------- */
@ -215,9 +215,9 @@ h5,
.@{kna-namespace}h5-like, .@{kna-namespace}h5-like,
h6, h6,
.@{kna-namespace}h6-like { .@{kna-namespace}h6-like {
&:first-child { &:first-child {
margin-top: 0; margin-top: 0;
} }
} }
/* avoid margins on nested elements */ /* avoid margins on nested elements */
@ -225,8 +225,8 @@ li p,
li .@{kna-namespace}p-like, li .@{kna-namespace}p-like,
li ul, li ul,
li ol { li ol {
margin-top: 0; margin-top: 0;
margin-bottom: 0; margin-bottom: 0;
} }
/* max values */ /* max values */
@ -240,10 +240,10 @@ textarea,
input, input,
video, video,
svg { svg {
max-width: 100%; max-width: 100%;
} }
/* margin-bottom on tables */ /* margin-bottom on tables */
table { table {
margin-bottom: @medium-value; margin-bottom: @medium-value;
} }

View file

@ -4,98 +4,98 @@
/* module, gains superpower "BFC" Block Formating Context */ /* module, gains superpower "BFC" Block Formating Context */
.@{kna-namespace}mod { .@{kna-namespace}mod {
overflow: hidden; overflow: hidden;
} }
/* blocks that needs to be placed under floats */ /* blocks that needs to be placed under floats */
.@{kna-namespace}clear, .@{kna-namespace}clear,
.@{kna-namespace}line, .@{kna-namespace}line,
.@{kna-namespace}row { .@{kna-namespace}row {
clear: both; clear: both;
} }
/* blocks that must contain floats */ /* blocks that must contain floats */
.@{kna-namespace}clearfix, .@{kna-namespace}clearfix,
.@{kna-namespace}line { .@{kna-namespace}line {
&::after { &::after {
content: ""; content: "";
display: table; display: table;
clear: both; clear: both;
border-collapse: collapse; border-collapse: collapse;
} }
} }
/* simple blocks alignment */ /* simple blocks alignment */
.@{kna-namespace}left { .@{kna-namespace}left {
margin-right: auto; margin-right: auto;
} }
.@{kna-namespace}right { .@{kna-namespace}right {
margin-left: auto; margin-left: auto;
} }
.@{kna-namespace}center { .@{kna-namespace}center {
margin-left: auto; margin-left: auto;
margin-right: auto; margin-right: auto;
} }
/* text and contents alignment */ /* text and contents alignment */
.@{kna-namespace}txtleft { .@{kna-namespace}txtleft {
text-align: left; text-align: left;
} }
.@{kna-namespace}txtright { .@{kna-namespace}txtright {
text-align: right; text-align: right;
} }
.@{kna-namespace}txtcenter { .@{kna-namespace}txtcenter {
text-align: center; text-align: center;
} }
/* floating elements */ /* floating elements */
.@{kna-namespace}fl { .@{kna-namespace}fl {
float: left; float: left;
} }
img.@{kna-namespace}fl { img.@{kna-namespace}fl {
margin-right: @small-value; margin-right: @small-value;
} }
.@{kna-namespace}fr { .@{kna-namespace}fr {
float: right; float: right;
} }
img.@{kna-namespace}fr { img.@{kna-namespace}fr {
margin-left: @small-value; margin-left: @small-value;
} }
img.@{kna-namespace}fl, img.@{kna-namespace}fl,
img.@{kna-namespace}fr { img.@{kna-namespace}fr {
margin-bottom: @tiny-value; margin-bottom: @tiny-value;
} }
/* table layout */ /* table layout */
.@{kna-namespace}row { .@{kna-namespace}row {
display: table; display: table;
table-layout: fixed; table-layout: fixed;
width: 100%; width: 100%;
} }
.@{kna-namespace}row > *, .@{kna-namespace}row > *,
.@{kna-namespace}col { .@{kna-namespace}col {
display: table-cell; display: table-cell;
vertical-align: top; vertical-align: top;
} }
/* no table-cell for script tag when body is a .row */ /* no table-cell for script tag when body is a .row */
body > script { body > script {
display: none !important; display: none !important;
} }
/* inline-block */ /* inline-block */
.@{kna-namespace}inbl { .@{kna-namespace}inbl {
display: inline-block; display: inline-block;
vertical-align: top; vertical-align: top;
} }
/* flexbox layout /* flexbox layout
@ -104,34 +104,34 @@ http://www.alsacreations.com/tuto/lire/1493-css3-flexbox-layout-module.html
[class*="@{kna-namespace}flex-container"], [class*="@{kna-namespace}flex-container"],
.@{kna-namespace}flex-container { .@{kna-namespace}flex-container {
display : flex; display : flex;
flex-wrap: wrap; flex-wrap: wrap;
} }
.@{kna-namespace}flex-container-h { .@{kna-namespace}flex-container-h {
flex-direction: row; flex-direction: row;
} }
.@{kna-namespace}flex-container-v { .@{kna-namespace}flex-container-v {
flex-direction: column; flex-direction: column;
} }
.@{kna-namespace}flex-item-fluid { .@{kna-namespace}flex-item-fluid {
flex: 1; flex: 1;
} }
.@{kna-namespace}flex-item-first { .@{kna-namespace}flex-item-first {
order : -1; order : -1;
} }
.@{kna-namespace}flex-item-medium { .@{kna-namespace}flex-item-medium {
order : 0; order : 0;
} }
.@{kna-namespace}flex-item-last { .@{kna-namespace}flex-item-last {
order : 1; order : 1;
} }
.@{kna-namespace}flex-item-center { .@{kna-namespace}flex-item-center {
margin: auto; margin: auto;
} }

View file

@ -18,133 +18,133 @@
// example : .grid-perso { .uneven-grid(2, 1); } // example : .grid-perso { .uneven-grid(2, 1); }
[class*="@{kna-namespace}grid-"] { [class*="@{kna-namespace}grid-"] {
display: flex; display: flex;
flex-direction: row; flex-direction: row;
flex-wrap: wrap; flex-wrap: wrap;
margin-left: -@gutter; margin-left: -@gutter;
} }
[class*="@{kna-namespace}grid-"] > * { [class*="@{kna-namespace}grid-"] > * {
flex: 0 0 auto; flex: 0 0 auto;
display: block; /* IE fix */ display: block; /* IE fix */
width: ~'calc(100% * 1 / @{number} - @{gutter} - .01px)'; width: ~'calc(100% * 1 / @{number} - @{gutter} - .01px)';
margin-left: @gutter; margin-left: @gutter;
} }
// LESS mixins for *equal* columns grid container // LESS mixins for *equal* columns grid container
// example : .grid-perso { .grid(12); } // example : .grid-perso { .grid(12); }
.grid(@number:@number, @gutter:@gutter) { .grid(@number:@number, @gutter:@gutter) {
& > * { & > * {
width: ~'calc(100% * 1 / @{number} - @{gutter} - .01px)'; width: ~'calc(100% * 1 / @{number} - @{gutter} - .01px)';
} }
& > .@{kna-namespace}flex-item-double { & > .@{kna-namespace}flex-item-double {
width: ~'calc(100% * 2 / @{number} - @{gutter} - .01px)'; width: ~'calc(100% * 2 / @{number} - @{gutter} - .01px)';
} }
@media (min-width: (@tiny-screen + 1)) and (max-width: @small-screen) { @media (min-width: (@tiny-screen + 1)) and (max-width: @small-screen) {
& > * { & > * {
width: ~'calc(100% * 1 / 2 - @{gutter} - .01px)'; width: ~'calc(100% * 1 / 2 - @{gutter} - .01px)';
} }
& > .@{kna-namespace}flex-item-double { & > .@{kna-namespace}flex-item-double {
width: ~'calc(100% - @{gutter} - .01px)'; width: ~'calc(100% - @{gutter} - .01px)';
} }
} }
@media (max-width: @tiny-screen) { @media (max-width: @tiny-screen) {
& > * { & > * {
width: ~'calc(100% - @{gutter} - .01px)'; width: ~'calc(100% - @{gutter} - .01px)';
} }
& > .@{kna-namespace}flex-item-double { & > .@{kna-namespace}flex-item-double {
width: ~'calc(100% - @{gutter} - .01px)'; width: ~'calc(100% - @{gutter} - .01px)';
} }
} }
} }
// Examples : will be compiled in CSS // Examples : will be compiled in CSS
.@{kna-namespace}grid-2 { .@{kna-namespace}grid-2 {
.grid(2); .grid(2);
} }
.@{kna-namespace}grid-3 { .@{kna-namespace}grid-3 {
.grid(3); .grid(3);
} }
.@{kna-namespace}grid-4 { .@{kna-namespace}grid-4 {
.grid(4); .grid(4);
} }
.@{kna-namespace}grid-5 { .@{kna-namespace}grid-5 {
.grid(5); .grid(5);
} }
.@{kna-namespace}grid-6 { .@{kna-namespace}grid-6 {
.grid(6); .grid(6);
} }
.@{kna-namespace}grid-7 { .@{kna-namespace}grid-7 {
.grid(7); .grid(7);
} }
.@{kna-namespace}grid-8 { .@{kna-namespace}grid-8 {
.grid(8); .grid(8);
} }
.@{kna-namespace}grid-10 { .@{kna-namespace}grid-10 {
.grid(10); .grid(10);
} }
.@{kna-namespace}grid-12 { .@{kna-namespace}grid-12 {
.grid(12); .grid(12);
} }
// LESS mixins for *unequal* columns grid container // LESS mixins for *unequal* columns grid container
// example : .grid-perso { .uneven-grid(2, 1); } // example : .grid-perso { .uneven-grid(2, 1); }
.uneven-grid(@left:@left, @right:@right, @gutter:@gutter) { .uneven-grid(@left:@left, @right:@right, @gutter:@gutter) {
& > *:nth-child(odd) { & > *:nth-child(odd) {
@size: (@left / (@left + @right)) * 100%; @size: (@left / (@left + @right)) * 100%;
width: ~'calc(@{size} - @{gutter})'; width: ~'calc(@{size} - @{gutter})';
} }
& > *:nth-child(even) { & > *:nth-child(even) {
@size: (@right / (@left + @right)) * 100%; @size: (@right / (@left + @right)) * 100%;
width: ~'calc(@{size} - @{gutter})'; width: ~'calc(@{size} - @{gutter})';
} }
@media (max-width: @tiny-screen) { @media (max-width: @tiny-screen) {
& > *:nth-child(n) { & > *:nth-child(n) {
width: ~'calc(100% - @{gutter})'; width: ~'calc(100% - @{gutter})';
} }
} }
} }
// Examples : will be compiled in CSS // Examples : will be compiled in CSS
.@{kna-namespace}grid-2-1 { .@{kna-namespace}grid-2-1 {
.uneven-grid(2,1); .uneven-grid(2,1);
} }
.@{kna-namespace}grid-1-2 { .@{kna-namespace}grid-1-2 {
.uneven-grid(1,2); .uneven-grid(1,2);
} }
.@{kna-namespace}grid-3-1 { .@{kna-namespace}grid-3-1 {
.uneven-grid(3,1); .uneven-grid(3,1);
} }
.@{kna-namespace}grid-1-3 { .@{kna-namespace}grid-1-3 {
.uneven-grid(1,3); .uneven-grid(1,3);
} }
.@{kna-namespace}grid-3-2 { .@{kna-namespace}grid-3-2 {
.uneven-grid(3,2); .uneven-grid(3,2);
} }
.@{kna-namespace}grid-2-3 { .@{kna-namespace}grid-2-3 {
.uneven-grid(2,3); .uneven-grid(2,3);
} }
.@{kna-namespace}grid-4-1 { .@{kna-namespace}grid-4-1 {
.uneven-grid(4,1); .uneven-grid(4,1);
} }
.@{kna-namespace}grid-1-4 { .@{kna-namespace}grid-1-4 {
.uneven-grid(1,4); .uneven-grid(1,4);
} }

View file

@ -4,35 +4,35 @@
table, table,
.@{kna-namespace}table { .@{kna-namespace}table {
width: 100%; width: 100%;
max-width : 100%; max-width : 100%;
table-layout: fixed; table-layout: fixed;
border-collapse: collapse; border-collapse: collapse;
vertical-align: top; vertical-align: top;
border: 1px solid #ccc; border: 1px solid #ccc;
} }
.@{kna-namespace}table { .@{kna-namespace}table {
display: table; display: table;
} }
table#@{kna-namespace}recaptcha_table, table#@{kna-namespace}recaptcha_table,
table.@{kna-namespace}table-auto { table.@{kna-namespace}table-auto {
table-layout:auto; table-layout:auto;
} }
caption { caption {
padding: @small-value; padding: @small-value;
color: #555; color: #555;
font-style: italic; font-style: italic;
} }
td, td,
th { th {
padding: 0.3em 0.8em; padding: 0.3em 0.8em;
border: 1px #aaa dotted; border: 1px #aaa dotted;
vertical-align: top; vertical-align: top;
min-width: @medium-value; min-width: @medium-value;
cursor: default; cursor: default;
text-align: left; text-align: left;
} }

View file

@ -8,13 +8,13 @@
/* buttons */ /* buttons */
.@{kna-namespace}btn { .@{kna-namespace}btn {
display: inline-block; display: inline-block;
} }
/* forms items */ /* forms items */
form, form,
fieldset { fieldset {
border: none; border: none;
} }
input, input,
@ -22,9 +22,9 @@ button,
select, select,
label, label,
.@{kna-namespace}btn { .@{kna-namespace}btn {
vertical-align: middle; vertical-align: middle;
font-family: inherit; font-family: inherit;
font-size: inherit; font-size: inherit;
} }
button, button,
@ -32,30 +32,30 @@ input,
optgroup, optgroup,
select, select,
textarea { textarea {
color: @base-color; color: @base-color;
} }
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;
} }
textarea { textarea {
min-height: 5em; min-height: 5em;
vertical-align: top; vertical-align: top;
font-family: inherit; font-family: inherit;
font-size: inherit; font-size: inherit;
resize: vertical; resize: vertical;
} }
select { select {
-webkit-appearance: menulist-button; -webkit-appearance: menulist-button;
} }
/* if select styling bugs on WebKit */ /* if select styling bugs on WebKit */
@ -66,49 +66,49 @@ 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 { ::-webkit-input-placeholder {
color: #777; color: #777;
} }
input:-moz-placeholder, input:-moz-placeholder,
textarea:-moz-placeholder { textarea:-moz-placeholder {
color: #777; color: #777;
} }
.@{kna-namespace}btn:focus, .@{kna-namespace}btn:focus,
input[type="button"]:focus, input[type="button"]:focus,
button:focus { button:focus {
outline: 0; outline: 0;
-webkit-tap-highlight-color: transparent; -webkit-tap-highlight-color: transparent;
-webkit-user-select: none; -webkit-user-select: none;
-moz-user-select: none; -moz-user-select: none;
-ms-user-select: none; -ms-user-select: none;
user-select: none; user-select: none;
} }
/* unstyled forms */ /* unstyled forms */
.@{kna-namespace}unstyled { .@{kna-namespace}unstyled {
button&, button&,
input[type="button"]&, input[type="button"]&,
input[type="submit"]&, input[type="submit"]&,
input[type="reset"]& { input[type="reset"]& {
padding: 0; padding: 0;
border: none; border: none;
line-height: 1; line-height: 1;
text-align: left; text-align: left;
background: none; background: none;
border-radius: 0; border-radius: 0;
box-shadow: none; box-shadow: none;
-webkit-appearance: none; -webkit-appearance: none;
-moz-appearance: none; -moz-appearance: none;
appearance: none; appearance: none;
&:focus { &:focus {
box-shadow: none; box-shadow: none;
outline: none; outline: none;
} }
} }
} }

View file

@ -5,120 +5,120 @@
/* blocks widths (percentage and pixels) */ /* blocks widths (percentage and pixels) */
.@{kna-namespace}w10 { .@{kna-namespace}w10 {
width: 10%; width: 10%;
} }
.@{kna-namespace}w20 { .@{kna-namespace}w20 {
width: 20%; width: 20%;
} }
.@{kna-namespace}w25 { .@{kna-namespace}w25 {
width: 25%; width: 25%;
} }
.@{kna-namespace}w30 { .@{kna-namespace}w30 {
width: 30%; width: 30%;
} }
.@{kna-namespace}w33 { .@{kna-namespace}w33 {
width: 33.3333%; width: 33.3333%;
} }
.@{kna-namespace}w40 { .@{kna-namespace}w40 {
width: 40%; width: 40%;
} }
.@{kna-namespace}w50 { .@{kna-namespace}w50 {
width: 50%; width: 50%;
} }
.@{kna-namespace}w60 { .@{kna-namespace}w60 {
width: 60%; width: 60%;
} }
.@{kna-namespace}w66 { .@{kna-namespace}w66 {
width: 66.6666%; width: 66.6666%;
} }
.@{kna-namespace}w70 { .@{kna-namespace}w70 {
width: 70%; width: 70%;
} }
.@{kna-namespace}w75 { .@{kna-namespace}w75 {
width: 75%; width: 75%;
} }
.@{kna-namespace}w80 { .@{kna-namespace}w80 {
width: 80%; width: 80%;
} }
.@{kna-namespace}w90 { .@{kna-namespace}w90 {
width: 90%; width: 90%;
} }
.@{kna-namespace}w100 { .@{kna-namespace}w100 {
width: 100%; width: 100%;
} }
.@{kna-namespace}w50p { .@{kna-namespace}w50p {
width: 50px; width: 50px;
} }
.@{kna-namespace}w100p { .@{kna-namespace}w100p {
width: 100px; width: 100px;
} }
.@{kna-namespace}w150p { .@{kna-namespace}w150p {
width: 150px; width: 150px;
} }
.@{kna-namespace}w200p { .@{kna-namespace}w200p {
width: 200px; width: 200px;
} }
.@{kna-namespace}w300p { .@{kna-namespace}w300p {
width: 300px; width: 300px;
} }
.@{kna-namespace}w400p { .@{kna-namespace}w400p {
width: 400px; width: 400px;
} }
.@{kna-namespace}w500p { .@{kna-namespace}w500p {
width: 500px; width: 500px;
} }
.@{kna-namespace}w600p { .@{kna-namespace}w600p {
width: 600px; width: 600px;
} }
.@{kna-namespace}w700p { .@{kna-namespace}w700p {
width: 700px; width: 700px;
} }
.@{kna-namespace}w800p { .@{kna-namespace}w800p {
width: 800px; width: 800px;
} }
.@{kna-namespace}w960p { .@{kna-namespace}w960p {
width: 960px; width: 960px;
} }
.@{kna-namespace}mw960p { .@{kna-namespace}mw960p {
max-width: 960px; max-width: 960px;
} }
.@{kna-namespace}w1140p { .@{kna-namespace}w1140p {
width: 1140px; width: 1140px;
} }
.@{kna-namespace}mw1140p { .@{kna-namespace}mw1140p {
max-width: 1140px; max-width: 1140px;
} }
.@{kna-namespace}wauto { .@{kna-namespace}wauto {
width: auto; width: auto;
} }
/* spacing helpers /* spacing helpers
@ -128,170 +128,170 @@ s,m,l,n = small, medium, large, none
*/ */
.@{kna-namespace}man, .@{kna-namespace}man,
.@{kna-namespace}ma0 { .@{kna-namespace}ma0 {
margin: 0; margin: 0;
} }
.@{kna-namespace}pan, .@{kna-namespace}pan,
.@{kna-namespace}pa0 { .@{kna-namespace}pa0 {
padding: 0; padding: 0;
} }
.@{kna-namespace}mas { .@{kna-namespace}mas {
margin: @small-value; margin: @small-value;
} }
.@{kna-namespace}mam { .@{kna-namespace}mam {
margin: @medium-value; margin: @medium-value;
} }
.@{kna-namespace}mal { .@{kna-namespace}mal {
margin: @large-value; margin: @large-value;
} }
.@{kna-namespace}pas { .@{kna-namespace}pas {
padding: @small-value; padding: @small-value;
} }
.@{kna-namespace}pam { .@{kna-namespace}pam {
padding: @medium-value; padding: @medium-value;
} }
.@{kna-namespace}pal { .@{kna-namespace}pal {
padding: @large-value; padding: @large-value;
} }
.@{kna-namespace}mtn, .@{kna-namespace}mtn,
.@{kna-namespace}mt0 { .@{kna-namespace}mt0 {
margin-top: 0; margin-top: 0;
} }
.@{kna-namespace}mts { .@{kna-namespace}mts {
margin-top: @small-value; margin-top: @small-value;
} }
.@{kna-namespace}mtm { .@{kna-namespace}mtm {
margin-top: @medium-value; margin-top: @medium-value;
} }
.@{kna-namespace}mtl { .@{kna-namespace}mtl {
margin-top: @large-value; margin-top: @large-value;
} }
.@{kna-namespace}mrn, .@{kna-namespace}mrn,
.@{kna-namespace}mr0 { .@{kna-namespace}mr0 {
margin-right: 0; margin-right: 0;
} }
.@{kna-namespace}mrs { .@{kna-namespace}mrs {
margin-right: @small-value; margin-right: @small-value;
} }
.@{kna-namespace}mrm { .@{kna-namespace}mrm {
margin-right: @medium-value; margin-right: @medium-value;
} }
.@{kna-namespace}mrl { .@{kna-namespace}mrl {
margin-right: @large-value; margin-right: @large-value;
} }
.@{kna-namespace}mbn, .@{kna-namespace}mbn,
.@{kna-namespace}mb0 { .@{kna-namespace}mb0 {
margin-bottom: 0; margin-bottom: 0;
} }
.@{kna-namespace}mbs { .@{kna-namespace}mbs {
margin-bottom: @small-value; margin-bottom: @small-value;
} }
.@{kna-namespace}mbm { .@{kna-namespace}mbm {
margin-bottom: @medium-value; margin-bottom: @medium-value;
} }
.@{kna-namespace}mbl { .@{kna-namespace}mbl {
margin-bottom: @large-value; margin-bottom: @large-value;
} }
.@{kna-namespace}mln, .@{kna-namespace}mln,
.@{kna-namespace}ml0 { .@{kna-namespace}ml0 {
margin-left: 0; margin-left: 0;
} }
.@{kna-namespace}mls { .@{kna-namespace}mls {
margin-left: @small-value; margin-left: @small-value;
} }
.@{kna-namespace}mlm { .@{kna-namespace}mlm {
margin-left: @medium-value; margin-left: @medium-value;
} }
.@{kna-namespace}mll { .@{kna-namespace}mll {
margin-left: @large-value; margin-left: @large-value;
} }
.@{kna-namespace}ptn, .@{kna-namespace}ptn,
.@{kna-namespace}pt0 { .@{kna-namespace}pt0 {
padding-top: 0; padding-top: 0;
} }
.@{kna-namespace}pts { .@{kna-namespace}pts {
padding-top: @small-value; padding-top: @small-value;
} }
.@{kna-namespace}ptm { .@{kna-namespace}ptm {
padding-top: @medium-value; padding-top: @medium-value;
} }
.@{kna-namespace}ptl { .@{kna-namespace}ptl {
padding-top: @large-value; padding-top: @large-value;
} }
.@{kna-namespace}prn, .@{kna-namespace}prn,
.@{kna-namespace}pr0 { .@{kna-namespace}pr0 {
padding-right: 0; padding-right: 0;
} }
.@{kna-namespace}prs { .@{kna-namespace}prs {
padding-right: @small-value; padding-right: @small-value;
} }
.@{kna-namespace}prm { .@{kna-namespace}prm {
padding-right: @medium-value; padding-right: @medium-value;
} }
.@{kna-namespace}prl { .@{kna-namespace}prl {
padding-right: @large-value; padding-right: @large-value;
} }
.@{kna-namespace}pbn, .@{kna-namespace}pbn,
.@{kna-namespace}pb0 { .@{kna-namespace}pb0 {
padding-bottom: 0; padding-bottom: 0;
} }
.@{kna-namespace}pbs { .@{kna-namespace}pbs {
padding-bottom: @small-value; padding-bottom: @small-value;
} }
.@{kna-namespace}pbm { .@{kna-namespace}pbm {
padding-bottom: @medium-value; padding-bottom: @medium-value;
} }
.@{kna-namespace}pbl { .@{kna-namespace}pbl {
padding-bottom: @large-value; padding-bottom: @large-value;
} }
.@{kna-namespace}pln, .@{kna-namespace}pln,
.@{kna-namespace}pl0 { .@{kna-namespace}pl0 {
padding-left: 0; padding-left: 0;
} }
.@{kna-namespace}pls { .@{kna-namespace}pls {
padding-left: @small-value; padding-left: @small-value;
} }
.@{kna-namespace}plm { .@{kna-namespace}plm {
padding-left: @medium-value; padding-left: @medium-value;
} }
.@{kna-namespace}pll { .@{kna-namespace}pll {
padding-left: @large-value; padding-left: @large-value;
} }

View file

@ -3,11 +3,11 @@
/* ----------------------------- */ /* ----------------------------- */
@media (min-width: (@medium-screen + 1)) { @media (min-width: (@medium-screen + 1)) {
/* rules for big resources and big screens like: background-images, font-faces, etc. */ /* 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 high density devices */ /* style adjustments for high density devices */
} }
/* ---------------------------------- */ /* ---------------------------------- */
@ -16,72 +16,72 @@
@media (min-width: (@medium-screen + 1)) { @media (min-width: (@medium-screen + 1)) {
/* layouts for large screens */ /* layouts for large screens */
.@{kna-namespace}large-hidden { .@{kna-namespace}large-hidden {
display: none !important; display: none !important;
} }
.@{kna-namespace}large-visible { .@{kna-namespace}large-visible {
display: block !important; display: block !important;
} }
.@{kna-namespace}large-no-float { .@{kna-namespace}large-no-float {
float: none; float: none;
} }
.@{kna-namespace}large-inbl { .@{kna-namespace}large-inbl {
display: inline-block; display: inline-block;
float: none; float: none;
vertical-align: top; vertical-align: top;
} }
.@{kna-namespace}large-row { .@{kna-namespace}large-row {
display: table; display: table;
table-layout: fixed; table-layout: fixed;
width: 100% !important; width: 100% !important;
} }
.@{kna-namespace}large-col { .@{kna-namespace}large-col {
display: table-cell; display: table-cell;
vertical-align: top; vertical-align: top;
} }
/* widths for large screens */ /* widths for large screens */
.@{kna-namespace}large-w25 { .@{kna-namespace}large-w25 {
width: 25% !important; width: 25% !important;
} }
.@{kna-namespace}large-w33 { .@{kna-namespace}large-w33 {
width: 33.3333% !important; width: 33.3333% !important;
} }
.@{kna-namespace}large-w50 { .@{kna-namespace}large-w50 {
width: 50% !important; width: 50% !important;
} }
.@{kna-namespace}large-w66 { .@{kna-namespace}large-w66 {
width: 66.6666% !important; width: 66.6666% !important;
} }
.@{kna-namespace}large-w75 { .@{kna-namespace}large-w75 {
width: 75% !important; width: 75% !important;
} }
.@{kna-namespace}large-w100, .@{kna-namespace}large-w100,
.@{kna-namespace}large-wauto { .@{kna-namespace}large-wauto {
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 screens */ /* margins for large screens */
.@{kna-namespace}large-man { .@{kna-namespace}large-man {
margin: 0 !important; margin: 0 !important;
} }
} }
/* ---------------------------------- */ /* ---------------------------------- */
@ -90,73 +90,73 @@
@media (min-width: (@small-screen + 1)) and (max-width: @medium-screen) { @media (min-width: (@small-screen + 1)) and (max-width: @medium-screen) {
/* layouts for medium screens */ /* layouts for medium screens */
.@{kna-namespace}medium-hidden { .@{kna-namespace}medium-hidden {
display: none !important; display: none !important;
} }
.@{kna-namespace}medium-visible { .@{kna-namespace}medium-visible {
display: block !important; display: block !important;
} }
.@{kna-namespace}medium-no-float { .@{kna-namespace}medium-no-float {
float: none; float: none;
} }
.@{kna-namespace}medium-inbl { .@{kna-namespace}medium-inbl {
display: inline-block; display: inline-block;
float: none; float: none;
vertical-align: top; vertical-align: top;
} }
.@{kna-namespace}medium-row { .@{kna-namespace}medium-row {
display: table; display: table;
table-layout: fixed; table-layout: fixed;
width: 100% !important; width: 100% !important;
} }
.@{kna-namespace}medium-col { .@{kna-namespace}medium-col {
display: table-cell; display: table-cell;
vertical-align: top; vertical-align: top;
} }
/* widths for medium screens */ /* widths for medium screens */
.@{kna-namespace}medium-w25 { .@{kna-namespace}medium-w25 {
width: 25% !important; width: 25% !important;
} }
.@{kna-namespace}medium-w33 { .@{kna-namespace}medium-w33 {
width: 33.3333% !important; width: 33.3333% !important;
} }
.@{kna-namespace}medium-w50 { .@{kna-namespace}medium-w50 {
width: 50% !important; width: 50% !important;
} }
.@{kna-namespace}medium-w66 { .@{kna-namespace}medium-w66 {
width: 66.6666% !important; width: 66.6666% !important;
} }
.@{kna-namespace}medium-w75 { .@{kna-namespace}medium-w75 {
width: 75% !important; width: 75% !important;
} }
.@{kna-namespace}medium-w100, .@{kna-namespace}medium-w100,
.@{kna-namespace}medium-wauto { .@{kna-namespace}medium-wauto {
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 medium screens */ /* margins for medium screens */
.@{kna-namespace}medium-man, .@{kna-namespace}medium-man,
.@{kna-namespace}medium-ma0 { .@{kna-namespace}medium-ma0 {
margin: 0 !important; margin: 0 !important;
} }
} }
/* ---------------------------------- */ /* ---------------------------------- */
@ -165,88 +165,88 @@
@media (min-width: (@tiny-screen + 1)) and (max-width: @small-screen) { @media (min-width: (@tiny-screen + 1)) and (max-width: @small-screen) {
/* quick reset in small resolution and less */ /* quick reset in small resolution and less */
.@{kna-namespace}w600p, .@{kna-namespace}w600p,
.@{kna-namespace}w700p, .@{kna-namespace}w700p,
.@{kna-namespace}w800p, .@{kna-namespace}w800p,
.@{kna-namespace}w960p, .@{kna-namespace}w960p,
.@{kna-namespace}mw960p { .@{kna-namespace}mw960p {
width: auto; width: auto;
float: none; float: none;
} }
/* layouts for small screens */ /* layouts for small screens */
.@{kna-namespace}small-hidden { .@{kna-namespace}small-hidden {
display: none !important; display: none !important;
} }
.@{kna-namespace}small-visible { .@{kna-namespace}small-visible {
display: block !important; display: block !important;
} }
.@{kna-namespace}small-no-float { .@{kna-namespace}small-no-float {
float: none; float: none;
} }
.@{kna-namespace}small-inbl { .@{kna-namespace}small-inbl {
display: inline-block; display: inline-block;
float: none; float: none;
vertical-align: top; vertical-align: top;
} }
.@{kna-namespace}small-row { .@{kna-namespace}small-row {
display: table !important; display: table !important;
table-layout: fixed !important; table-layout: fixed !important;
width: 100% !important; width: 100% !important;
} }
.@{kna-namespace}small-col { .@{kna-namespace}small-col {
display: table-cell !important; display: table-cell !important;
vertical-align: top !important; vertical-align: top !important;
} }
/* widths for small screens */ /* widths for small screens */
.@{kna-namespace}small-w25 { .@{kna-namespace}small-w25 {
width: 25% !important; width: 25% !important;
} }
.@{kna-namespace}small-w33 { .@{kna-namespace}small-w33 {
width: 33.3333% !important; width: 33.3333% !important;
} }
.@{kna-namespace}small-w50 { .@{kna-namespace}small-w50 {
width: 50% !important; width: 50% !important;
} }
.@{kna-namespace}small-w66 { .@{kna-namespace}small-w66 {
width: 66.6666% !important; width: 66.6666% !important;
} }
.@{kna-namespace}small-w75 { .@{kna-namespace}small-w75 {
width: 75% !important; width: 75% !important;
} }
.@{kna-namespace}small-w100, .@{kna-namespace}small-w100,
.@{kna-namespace}small-wauto { .@{kna-namespace}small-wauto {
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 screens */ /* margins for small screens */
.@{kna-namespace}small-man, .@{kna-namespace}small-man,
.@{kna-namespace}small-ma0 { .@{kna-namespace}small-ma0 {
margin: 0 !important; margin: 0 !important;
} }
.@{kna-namespace}small-pan, .@{kna-namespace}small-pan,
.@{kna-namespace}small-pa0 { .@{kna-namespace}small-pa0 {
padding: 0 !important; padding: 0 !important;
} }
} }
@ -256,117 +256,117 @@
@media (max-width: @tiny-screen) { @media (max-width: @tiny-screen) {
/* quick tiny resolution reset */ /* quick tiny resolution reset */
.@{kna-namespace}mod, .@{kna-namespace}mod,
.@{kna-namespace}col, .@{kna-namespace}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;
} }
.@{kna-namespace}flex-container { .@{kna-namespace}flex-container {
flex-direction: column; flex-direction: column;
} }
.@{kna-namespace}w300p, .@{kna-namespace}w300p,
.@{kna-namespace}w400p, .@{kna-namespace}w400p,
.@{kna-namespace}w500p { .@{kna-namespace}w500p {
width: auto; width: auto;
float: none; float: none;
} }
.@{kna-namespace}row { .@{kna-namespace}row {
display: block !important; display: block !important;
width: 100% !important; width: 100% !important;
} }
/* layouts for tiny screens */ /* layouts for tiny screens */
.@{kna-namespace}tiny-hidden { .@{kna-namespace}tiny-hidden {
display: none !important; display: none !important;
} }
.@{kna-namespace}tiny-visible { .@{kna-namespace}tiny-visible {
display: block !important; display: block !important;
} }
.@{kna-namespace}tiny-no-float { .@{kna-namespace}tiny-no-float {
float: none; float: none;
} }
.@{kna-namespace}tiny-inbl { .@{kna-namespace}tiny-inbl {
display: inline-block; display: inline-block;
float: none; float: none;
vertical-align: top; vertical-align: top;
} }
.@{kna-namespace}tiny-row { .@{kna-namespace}tiny-row {
display: table !important; display: table !important;
table-layout: fixed !important; table-layout: fixed !important;
width: 100% !important; width: 100% !important;
} }
.@{kna-namespace}tiny-col { .@{kna-namespace}tiny-col {
display: table-cell !important; display: table-cell !important;
vertical-align: top !important; vertical-align: top !important;
} }
th, th,
td { td {
display: block; display: block;
width: auto; width: auto;
text-align: left; text-align: left;
} }
thead { thead {
display: none; display: none;
} }
/* widths for tiny screens */ /* widths for tiny screens */
.@{kna-namespace}tiny-w25 { .@{kna-namespace}tiny-w25 {
width: 25% !important; width: 25% !important;
} }
.@{kna-namespace}tiny-w33 { .@{kna-namespace}tiny-w33 {
width: 33.3333% !important; width: 33.3333% !important;
} }
.@{kna-namespace}tiny-w50 { .@{kna-namespace}tiny-w50 {
width: 50% !important; width: 50% !important;
} }
.@{kna-namespace}tiny-w66 { .@{kna-namespace}tiny-w66 {
width: 66.6666% !important; width: 66.6666% !important;
} }
.@{kna-namespace}tiny-w75 { .@{kna-namespace}tiny-w75 {
width: 75% !important; width: 75% !important;
} }
.@{kna-namespace}tiny-w100, .@{kna-namespace}tiny-w100,
.@{kna-namespace}tiny-wauto { .@{kna-namespace}tiny-wauto {
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 screens */ /* margins for tiny screens */
.@{kna-namespace}tiny-man, .@{kna-namespace}tiny-man,
.@{kna-namespace}tiny-ma0 { .@{kna-namespace}tiny-ma0 {
margin: 0 !important; margin: 0 !important;
} }
.@{kna-namespace}tiny-pan, .@{kna-namespace}tiny-pan,
.@{kna-namespace}tiny-pa0 { .@{kna-namespace}tiny-pa0 {
padding: 0 !important; padding: 0 !important;
} }
} }

View file

@ -1,95 +1,95 @@
/* 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,
.@{kna-namespace}p-like, .@{kna-namespace}p-like,
h1, h1,
.@{kna-namespace}h1-like, .@{kna-namespace}h1-like,
h2, h2,
.@{kna-namespace}h2-like, .@{kna-namespace}h2-like,
h3, h3,
.@{kna-namespace}h3-like, .@{kna-namespace}h3-like,
h4, h4,
.@{kna-namespace}h4-like, .@{kna-namespace}h4-like,
h5, h5,
.@{kna-namespace}h5-like, .@{kna-namespace}h5-like,
h6, h6,
.@{kna-namespace}h6-like, .@{kna-namespace}h6-like,
blockquote, blockquote,
ul, ul,
ol { ol {
color: #000 !important; color: #000 !important;
margin: auto !important; margin: auto !important;
} }
.@{kna-namespace}print { .@{kna-namespace}print {
display: block; display: block;
} }
.@{kna-namespace}no-print { .@{kna-namespace}no-print {
display: none; display: none;
} }
/* no orphans, no widows */ /* no orphans, no widows */
p, p,
.@{kna-namespace}p-like, .@{kna-namespace}p-like,
blockquote { blockquote {
orphans: 3; orphans: 3;
widows: 3; widows: 3;
} }
/* no breaks inside these elements */ /* no breaks inside these elements */
blockquote, blockquote,
ul, ul,
ol { ol {
page-break-inside: avoid; page-break-inside: avoid;
} }
/* page break before main headers /* page break before main headers
h1, h1,
.h1-like { .h1-like {
page-break-before: always; page-break-before: always;
} }
*/ */
/* no breaks after these elements */ /* no breaks after these elements */
h1, h1,
.@{kna-namespace}h1-like, .@{kna-namespace}h1-like,
h2, h2,
.@{kna-namespace}h2-like, .@{kna-namespace}h2-like,
h3, h3,
.@{kna-namespace}h3-like, .@{kna-namespace}h3-like,
caption { caption {
page-break-after: avoid; page-break-after: avoid;
} }
a { a {
color: #000 !important; color: #000 !important;
text-decoration: underline !important; text-decoration: underline !important;
} }
/* displaying URLs */ /* displaying URLs */
a[href]::after { a[href]::after {
content: " (" attr(href) ")"; content: " (" attr(href) ")";
} }
a[href^="javascript:"]::after, a[href^="javascript:"]::after,
a[href^="#"]::after { a[href^="#"]::after {
content: ""; content: "";
} }
} }

View file

@ -4,52 +4,52 @@
/* styling skip links */ /* styling skip links */
.@{kna-namespace}skip-links { .@{kna-namespace}skip-links {
position: absolute; position: absolute;
& a { & a {
position: absolute; position: absolute;
overflow: hidden; overflow: hidden;
clip: rect(1px, 1px, 1px, 1px); clip: rect(1px, 1px, 1px, 1px);
padding: 0.5em; padding: 0.5em;
background: black; background: black;
color: white; color: white;
text-decoration: none; text-decoration: none;
&:focus { &:focus {
position: static; position: static;
overflow: visible; overflow: visible;
clip: auto; clip: auto;
} }
} }
} }
// hyphens on small screens // hyphens on small screens
@media (max-width: @small-screen) { @media (max-width: @small-screen) {
/* you shall not pass */ /* you shall not pass */
div, div,
textarea, textarea,
table, table,
td, td,
th, th,
code, code,
pre, pre,
samp { samp {
word-wrap: break-word; word-wrap: break-word;
hyphens: auto; hyphens: auto;
} }
} }
/* Google Gmap3 bug fix on images */ /* Google Gmap3 bug fix on images */
.gm-style img { .gm-style img {
height: 100%; height: 100%;
} }
:not(.gm-style) img { :not(.gm-style) img {
height: auto; height: auto;
} }
.gm-style img, .gm-style img,
.gmnoscreen img, .gmnoscreen img,
.gmnoprint img { .gmnoprint img {
max-width: none !important; max-width: none !important;
} }

View file

@ -6,134 +6,134 @@
code, code,
kbd, kbd,
mark { mark {
border-radius: 2px; border-radius: 2px;
} }
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,0.04); background: rgba(0,0,0,0.04);
color: #b11; color: #b11;
} }
pre code { pre code {
padding: none; padding: none;
background: none; background: none;
color: inherit; color: inherit;
border-radius: 0; border-radius: 0;
} }
mark { mark {
padding:2px 4px; padding:2px 4px;
} }
sup, sup,
sub { sub {
vertical-align: 0; vertical-align: 0;
} }
sup { sup {
bottom: 1ex; bottom: 1ex;
} }
sub { sub {
top: 0.5ex; top: 0.5ex;
} }
blockquote { blockquote {
position: relative; position: relative;
padding-left: 3em; padding-left: 3em;
} }
blockquote::before { blockquote::before {
content: "\201C"; content: "\201C";
position: absolute; position: absolute;
left: 0; left: 0;
top: 0; top: 0;
font-family: georgia, serif; font-family: georgia, serif;
font-size: 5em; font-size: 5em;
line-height: 0.9; line-height: 0.9;
color: rgba(0, 0, 0, .3); color: rgba(0, 0, 0, .3);
} }
blockquote > footer { blockquote > footer {
margin-top: .75em; margin-top: .75em;
font-size: 0.9em; font-size: 0.9em;
color: rgba(0, 0, 0, .7); color: rgba(0, 0, 0, .7);
} }
blockquote > footer::before { blockquote > footer::before {
content: "\2014 \0020"; content: "\2014 \0020";
} }
q { q {
font-style: normal; font-style: normal;
} }
q, q,
.@{kna-namespace}q { .@{kna-namespace}q {
quotes: "“\00a0" "\00a0”"; quotes: "“\00a0" "\00a0”";
} }
q:lang(fr), q:lang(fr),
.@{kna-namespace}q:lang(fr) { .@{kna-namespace}q:lang(fr) {
quotes: "«\00a0" "\00a0»"; quotes: "«\00a0" "\00a0»";
} }
hr { hr {
display: block; display: block;
clear: both; clear: both;
height: 1px; height: 1px;
margin: 1em 0 2em; margin: 1em 0 2em;
padding: 0; padding: 0;
border: 0; border: 0;
color: #ccc; color: #ccc;
background-color: #ccc; background-color: #ccc;
} }
/* alternate tables */ /* alternate tables */
.@{kna-namespace}table-alternate { .@{kna-namespace}table-alternate {
border: 0; border: 0;
} }
.@{kna-namespace}table-alternate tbody { .@{kna-namespace}table-alternate tbody {
border: 1px solid #ccc; border: 1px solid #ccc;
} }
.@{kna-namespace}table-alternate thead tr > * + * { .@{kna-namespace}table-alternate thead tr > * + * {
border-left: 0; border-left: 0;
} }
.@{kna-namespace}table-alternate tbody tr > * + * { .@{kna-namespace}table-alternate tbody tr > * + * {
border-left: 1px solid #ccc; border-left: 1px solid #ccc;
} }
/* alternate-vert tables */ /* alternate-vert tables */
.@{kna-namespace}table-alternate-v { .@{kna-namespace}table-alternate-v {
border: 0; border: 0;
border-right: 1px solid #ccc; border-right: 1px solid #ccc;
} }
.@{kna-namespace}table-alternate-v tr > :first-child { .@{kna-namespace}table-alternate-v tr > :first-child {
border-bottom: 0; border-bottom: 0;
} }
.@{kna-namespace}table-alternate-v tr > * + * { .@{kna-namespace}table-alternate-v tr > * + * {
border-top: 1px solid #ccc; border-top: 1px solid #ccc;
} }
/* striped tables */ /* striped tables */
.@{kna-namespace}table-striped tbody tr:nth-child(odd) { .@{kna-namespace}table-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 */
.@{kna-namespace}table-striped-v tr > :first-child { .@{kna-namespace}table-striped-v tr > :first-child {
background: #eee; background: #eee;
background: rgba(0, 0, 0, .05); background: rgba(0, 0, 0, .05);
} }

View file

@ -24,23 +24,23 @@ Description: Reset styles for WordPress usage of KNACSS
.comment-navigation, .comment-navigation,
.paging-navigation, .paging-navigation,
.post-navigation { .post-navigation {
margin: 0 0 1.5em; margin: 0 0 1.5em;
overflow: hidden; overflow: hidden;
} }
.comment-navigation .nav-previous, .comment-navigation .nav-previous,
.paging-navigation .nav-previous, .paging-navigation .nav-previous,
.post-navigation .nav-previous { .post-navigation .nav-previous {
float: left; float: left;
width: 50%; width: 50%;
} }
.comment-navigation .nav-next, .comment-navigation .nav-next,
.paging-navigation .nav-next, .paging-navigation .nav-next,
.post-navigation .nav-next { .post-navigation .nav-next {
float: right; float: right;
text-align: right; text-align: right;
width: 50%; width: 50%;
} }
/* ----------------------------- */ /* ----------------------------- */
@ -49,23 +49,23 @@ Description: Reset styles for WordPress usage of KNACSS
// class in img elements // class in img elements
.alignnone { .alignnone {
margin: .25em 1.5em 1.5em 0; margin: .25em 1.5em 1.5em 0;
} }
.aligncenter { .aligncenter {
clear: both; clear: both;
display: block; display: block;
margin: 1.5em auto; margin: 1.5em auto;
} }
.alignleft { .alignleft {
float: left; float: left;
margin: 0 1.5em .25em 0; margin: 0 1.5em .25em 0;
} }
.alignright { .alignright {
float: right; float: right;
margin: 0 0 .25em 1.5em; margin: 0 0 .25em 1.5em;
} }
/* ----------------------------- */ /* ----------------------------- */
@ -74,12 +74,12 @@ Description: Reset styles for WordPress usage of KNACSS
.entry-content, .entry-content,
.comment-content { .comment-content {
clear: both; clear: both;
&::after, &::before { &::after, &::before {
content: ""; content: "";
display: table; display: table;
} }
} }
/* ----------------------------- */ /* ----------------------------- */
@ -87,12 +87,12 @@ Description: Reset styles for WordPress usage of KNACSS
/* ----------------------------- */ /* ----------------------------- */
.widget + .widget { .widget + .widget {
margin: 1.5em 0 0; margin: 1.5em 0 0;
} }
// usage example: // usage example:
.widget select { .widget select {
max-width: 100%; max-width: 100%;
} }
/* ----------------------------- */ /* ----------------------------- */
@ -111,56 +111,56 @@ Description: Reset styles for WordPress usage of KNACSS
// format of post // format of post
.format- { .format- {
&aside { &aside {
} }
&gallery { &gallery {
} }
&link { &link {
} }
&image { &image {
} }
&quote { &quote {
} }
&status { &status {
} }
&video { &video {
} }
&chat { &chat {
} }
} }
// class for a tag // class for a tag
.tag- { .tag- {
&name-of-tag { &name-of-tag {
} }
} }
// class for categorie // class for categorie
.category- { .category- {
&name-of-category { &name-of-category {
} }
} }
/* === 5.2 Pages - body_class === */ /* === 5.2 Pages - body_class === */
// front page // front page
.home { .home {
// if display posts // if display posts
&.blog { &.blog {
} }
// if static page // if static page
&.page { &.page {
} }
} }
// page displays posts // page displays posts
.blog { .blog {
// if is frontpage // if is frontpage
&.home { &.home {
} }
// if static page // if static page
&.page { &.page {
} }
} }
// simple page // simple page
@ -177,12 +177,12 @@ Description: Reset styles for WordPress usage of KNACSS
// page of search // page of search
.search { .search {
// if has results // if has results
.search-results { .search-results {
} }
// if has no results // if has no results
.search-no-results { .search-no-results {
} }
} }
// page 404 // page 404
@ -201,18 +201,18 @@ Description: Reset styles for WordPress usage of KNACSS
/* === 5.3 Posts and Pages - Contents === */ /* === 5.3 Posts and Pages - Contents === */
.hentry { .hentry {
margin: 0 0 1.5em; margin: 0 0 1.5em;
} }
.page-content, .page-content,
.entry-content, .entry-content,
.entry-summary { .entry-summary {
margin: 1.5em 0 0; margin: 1.5em 0 0;
} }
.page-links { .page-links {
clear: both; clear: both;
margin: 0 0 1.5em; margin: 0 0 1.5em;
} }
/* ----------------------------- */ /* ----------------------------- */
@ -220,11 +220,11 @@ Description: Reset styles for WordPress usage of KNACSS
/* ----------------------------- */ /* ----------------------------- */
.comment-content a { .comment-content a {
word-wrap: break-word; word-wrap: break-word;
} }
.bypostauthor { .bypostauthor {
// some make-the-logo-bigger styles // some make-the-logo-bigger styles
} }
/* ----------------------------- */ /* ----------------------------- */
@ -232,10 +232,10 @@ Description: Reset styles for WordPress usage of KNACSS
/* ----------------------------- */ /* ----------------------------- */
img.wp-smiley { img.wp-smiley {
margin-bottom: 0; margin-bottom: 0;
margin-top: 0; margin-top: 0;
padding: 0; padding: 0;
border: none; border: none;
} }
/* ----------------------------- */ /* ----------------------------- */
@ -243,18 +243,18 @@ img.wp-smiley {
/* ----------------------------- */ /* ----------------------------- */
.wp-caption { .wp-caption {
max-width: 100%; max-width: 100%;
margin-bottom: 1.5em; margin-bottom: 1.5em;
} }
.wp-caption img { .wp-caption img {
display: block; display: block;
margin: 0 auto; margin: 0 auto;
} }
.wp-caption-text { .wp-caption-text {
margin: 1em 0; margin: 1em 0;
text-align: center; text-align: center;
} }
/* ----------------------------- */ /* ----------------------------- */
@ -262,41 +262,41 @@ img.wp-smiley {
/* ----------------------------- */ /* ----------------------------- */
.gallery { .gallery {
margin-bottom: 1.5em; margin-bottom: 1.5em;
} }
.gallery-item { .gallery-item {
display: inline-block; display: inline-block;
width: 100%; width: 100%;
text-align: center; text-align: center;
vertical-align: top; vertical-align: top;
.gallery-columns-2 & { .gallery-columns-2 & {
max-width: 50%; max-width: 50%;
} }
.gallery-columns-3 & { .gallery-columns-3 & {
max-width: 33.33%; max-width: 33.33%;
} }
.gallery-columns-4 & { .gallery-columns-4 & {
max-width: 25%; max-width: 25%;
} }
.gallery-columns-5 & { .gallery-columns-5 & {
max-width: 20%; max-width: 20%;
} }
.gallery-columns-6 & { .gallery-columns-6 & {
max-width: 16.66%; max-width: 16.66%;
} }
.gallery-columns-7 & { .gallery-columns-7 & {
max-width: 14.28%; max-width: 14.28%;
} }
.gallery-columns-8 & { .gallery-columns-8 & {
max-width: 12.5%; max-width: 12.5%;
} }
.gallery-columns-9 & { .gallery-columns-9 & {
max-width: 11.11%; max-width: 11.11%;
} }
} }
.gallery-caption { .gallery-caption {
display: block; display: block;
} }

View file

@ -4,35 +4,35 @@
/* switching to border-box model for all elements */ /* switching to border-box model for all elements */
html { html {
box-sizing: border-box; box-sizing: border-box;
} }
* { * {
box-sizing: inherit; box-sizing: inherit;
} }
ul, ul,
ol { ol {
padding-left: 2em; padding-left: 2em;
} }
ul.#{$kna-namespace}unstyled { ul.#{$kna-namespace}unstyled {
list-style: none; list-style: none;
} }
img { img {
vertical-align: middle; vertical-align: middle;
} }
/* height auto only for non SVG images */ /* height auto only for non SVG images */
img:not([src$=".svg"]) { img:not([src$=".svg"]) {
height: auto; height: auto;
} }
blockquote, blockquote,
figure { figure {
margin-left: 0; margin-left: 0;
margin-right: 0; margin-right: 0;
} }
/* ----------------------------- */ /* ----------------------------- */
@ -41,34 +41,34 @@ figure {
html { html {
/* set base font-size to equiv "10px", which is adapted to rem unit */ /* set base font-size to equiv "10px", which is adapted to rem unit */
font-size: 62.5%; font-size: 62.5%;
/* IE9-IE11 math fixing. See http://bit.ly/1g4X0bX */ /* IE9-IE11 math fixing. See http://bit.ly/1g4X0bX */
/* thanks to @guardian, @victorbritopro and @eQRoeil */ /* thanks to @guardian, @victorbritopro and @eQRoeil */
font-size: calc(1em * 0.625); font-size: calc(1em * 0.625);
/* disallow text zooming on orientation change (non standard property) */ /* disallow text zooming on orientation change (non standard property) */
-webkit-text-size-adjust: 100%; -webkit-text-size-adjust: 100%;
-ms-text-size-adjust: 100%; -ms-text-size-adjust: 100%;
} }
body { body {
/* set body font-size in em (1.4em equiv "14px") */ /* set body font-size in em (1.4em equiv "14px") */
font-size: ($base-font-size / 10px) + em; font-size: ($base-font-size / 10px) + em;
background-color: $base-background; background-color: $base-background;
color: $base-color; color: $base-color;
font-family: $font-stack-common; font-family: $font-stack-common;
line-height: $line-height; line-height: $line-height;
} }
a { a {
color: $base-color-link; color: $base-color-link;
&:hover, &:focus, &:active { &:hover, &:focus, &:active {
color: $base-color-link-hover; color: $base-color-link-hover;
} }
} }
/* font-sizing for content */ /* font-sizing for content */
@ -86,67 +86,67 @@ textarea,
caption, caption,
details, details,
figure { figure {
margin-top: 0.75em; margin-top: 0.75em;
margin-bottom: 0; margin-bottom: 0;
line-height: $line-height; line-height: $line-height;
} }
h1, .#{$kna-namespace}h1-like { h1, .#{$kna-namespace}h1-like {
font-size: $h1-size; font-size: $h1-size;
font-family: $font-stack-headings; font-family: $font-stack-headings;
} }
h2, .#{$kna-namespace}h2-like { h2, .#{$kna-namespace}h2-like {
font-size: $h2-size; font-size: $h2-size;
font-family: $font-stack-headings; font-family: $font-stack-headings;
} }
h3, .#{$kna-namespace}h3-like { h3, .#{$kna-namespace}h3-like {
font-size: $h3-size; font-size: $h3-size;
} }
h4, .#{$kna-namespace}h4-like { h4, .#{$kna-namespace}h4-like {
font-size: $h4-size; font-size: $h4-size;
} }
h5, .#{$kna-namespace}h5-like { h5, .#{$kna-namespace}h5-like {
font-size: $h5-size; font-size: $h5-size;
} }
h6, .#{$kna-namespace}h6-like { h6, .#{$kna-namespace}h6-like {
font-size: $h6-size; font-size: $h6-size;
} }
/* alternate font-sizing */ /* alternate font-sizing */
.#{$kna-namespace}smaller { .#{$kna-namespace}smaller {
font-size: 0.6em; font-size: 0.6em;
} }
.#{$kna-namespace}small { .#{$kna-namespace}small {
font-size: 0.8em; font-size: 0.8em;
} }
.#{$kna-namespace}big { .#{$kna-namespace}big {
font-size: 1.2em; font-size: 1.2em;
} }
.#{$kna-namespace}bigger { .#{$kna-namespace}bigger {
font-size: 1.5em; font-size: 1.5em;
} }
.#{$kna-namespace}biggest { .#{$kna-namespace}biggest {
font-size: 2em; font-size: 2em;
} }
code, code,
pre, pre,
samp, samp,
kbd { kbd {
/* IE fix */ /* IE fix */
white-space: pre-line; white-space: pre-line;
white-space: pre-wrap; white-space: pre-wrap;
font-family: $font-stack-monospace; font-family: $font-stack-monospace;
line-height: normal; line-height: normal;
} }
em, em,
@ -155,7 +155,7 @@ address,
cite, cite,
i, i,
var { var {
font-style: italic; font-style: italic;
} }
/* ----------------------------- */ /* ----------------------------- */
@ -164,25 +164,25 @@ var {
/* hidden but not for assistance tools, Yahoo! method */ /* hidden but not for assistance tools, Yahoo! method */
.#{$kna-namespace}visually-hidden { .#{$kna-namespace}visually-hidden {
position: absolute !important; position: absolute !important;
border: 0 !important; border: 0 !important;
height: 1px !important; height: 1px !important;
width: 1px !important; width: 1px !important;
padding: 0 !important; padding: 0 !important;
overflow: hidden !important; overflow: hidden !important;
clip: rect(1px, 1px, 1px, 1px) !important; clip: rect(1px, 1px, 1px, 1px) !important;
} }
@media (max-width: $small-screen) { @media (max-width: $small-screen) {
.#{$kna-namespace}no-small-screen { .#{$kna-namespace}no-small-screen {
display: none; display: none;
} }
} }
@media (min-width: $large-screen) { @media (min-width: $large-screen) {
.#{$kna-namespace}no-large-screen { .#{$kna-namespace}no-large-screen {
display: none; display: none;
} }
} }
/* ----------------------------- */ /* ----------------------------- */
@ -209,9 +209,9 @@ h5,
.#{$kna-namespace}h5-like, .#{$kna-namespace}h5-like,
h6, h6,
.#{$kna-namespace}h6-like { .#{$kna-namespace}h6-like {
&:first-child { &:first-child {
margin-top: 0; margin-top: 0;
} }
} }
/* avoid margins on nested elements */ /* avoid margins on nested elements */
@ -219,8 +219,8 @@ li p,
li .#{$kna-namespace}p-like, li .#{$kna-namespace}p-like,
li ul, li ul,
li ol { li ol {
margin-top: 0; margin-top: 0;
margin-bottom: 0; margin-bottom: 0;
} }
/* max values */ /* max values */
@ -234,10 +234,10 @@ textarea,
input, input,
video, video,
svg { svg {
max-width: 100%; max-width: 100%;
} }
/* margin-bottom on tables */ /* margin-bottom on tables */
table { table {
margin-bottom: $medium-value; margin-bottom: $medium-value;
} }

View file

@ -4,98 +4,98 @@
/* module, gains superpower "BFC" Block Formating Context */ /* module, gains superpower "BFC" Block Formating Context */
.#{$kna-namespace}mod { .#{$kna-namespace}mod {
overflow: hidden; overflow: hidden;
} }
/* blocks that needs to be placed under floats */ /* blocks that needs to be placed under floats */
.#{$kna-namespace}clear, .#{$kna-namespace}clear,
.#{$kna-namespace}line, .#{$kna-namespace}line,
.#{$kna-namespace}row { .#{$kna-namespace}row {
clear: both; clear: both;
} }
/* blocks that must contain floats */ /* blocks that must contain floats */
.#{$kna-namespace}clearfix, .#{$kna-namespace}clearfix,
.#{$kna-namespace}line { .#{$kna-namespace}line {
&::after { &::after {
content: ""; content: "";
display: table; display: table;
clear: both; clear: both;
border-collapse: collapse; border-collapse: collapse;
} }
} }
/* simple blocks alignment */ /* simple blocks alignment */
.#{$kna-namespace}left { .#{$kna-namespace}left {
margin-right: auto; margin-right: auto;
} }
.#{$kna-namespace}right { .#{$kna-namespace}right {
margin-left: auto; margin-left: auto;
} }
.#{$kna-namespace}center { .#{$kna-namespace}center {
margin-left: auto; margin-left: auto;
margin-right: auto; margin-right: auto;
} }
/* text and contents alignment */ /* text and contents alignment */
.#{$kna-namespace}txtleft { .#{$kna-namespace}txtleft {
text-align: left; text-align: left;
} }
.#{$kna-namespace}txtright { .#{$kna-namespace}txtright {
text-align: right; text-align: right;
} }
.#{$kna-namespace}txtcenter { .#{$kna-namespace}txtcenter {
text-align: center; text-align: center;
} }
/* floating elements */ /* floating elements */
.#{$kna-namespace}fl { .#{$kna-namespace}fl {
float: left; float: left;
} }
img.#{$kna-namespace}fl { img.#{$kna-namespace}fl {
margin-right: $small-value; margin-right: $small-value;
} }
.#{$kna-namespace}fr { .#{$kna-namespace}fr {
float: right; float: right;
} }
img.#{$kna-namespace}fr { img.#{$kna-namespace}fr {
margin-left: $small-value; margin-left: $small-value;
} }
img.#{$kna-namespace}fl, img.#{$kna-namespace}fl,
img.#{$kna-namespace}fr { img.#{$kna-namespace}fr {
margin-bottom: $tiny-value; margin-bottom: $tiny-value;
} }
/* table layout */ /* table layout */
.#{$kna-namespace}row { .#{$kna-namespace}row {
display: table; display: table;
table-layout: fixed; table-layout: fixed;
width: 100%; width: 100%;
} }
.#{$kna-namespace}row > *, .#{$kna-namespace}row > *,
.#{$kna-namespace}col { .#{$kna-namespace}col {
display: table-cell; display: table-cell;
vertical-align: top; vertical-align: top;
} }
/* no table-cell for script tag when body is a .row */ /* no table-cell for script tag when body is a .row */
body > script { body > script {
display: none !important; display: none !important;
} }
/* inline-block */ /* inline-block */
.#{$kna-namespace}inbl { .#{$kna-namespace}inbl {
display: inline-block; display: inline-block;
vertical-align: top; vertical-align: top;
} }
/* flexbox layout /* flexbox layout
@ -103,34 +103,34 @@ http://www.alsacreations.com/tuto/lire/1493-css3-flexbox-layout-module.html
*/ */
[class*="#{$kna-namespace}flex-container"] { [class*="#{$kna-namespace}flex-container"] {
display : flex; display : flex;
flex-wrap: wrap; flex-wrap: wrap;
} }
.#{$kna-namespace}flex-container-h { .#{$kna-namespace}flex-container-h {
flex-direction: row; flex-direction: row;
} }
.#{$kna-namespace}flex-container-v { .#{$kna-namespace}flex-container-v {
flex-direction: column; flex-direction: column;
} }
.#{$kna-namespace}flex-item-fluid { .#{$kna-namespace}flex-item-fluid {
flex: 1; flex: 1;
} }
.#{$kna-namespace}flex-item-first { .#{$kna-namespace}flex-item-first {
order : -1; order : -1;
} }
.#{$kna-namespace}flex-item-medium { .#{$kna-namespace}flex-item-medium {
order : 0; order : 0;
} }
.#{$kna-namespace}flex-item-last { .#{$kna-namespace}flex-item-last {
order : 1; order : 1;
} }
.#{$kna-namespace}flex-item-center { .#{$kna-namespace}flex-item-center {
margin: auto; margin: auto;
} }

View file

@ -18,133 +18,133 @@
// example : .grid-perso { @include uneven-grid(2, 1, 10px); } // example : .grid-perso { @include uneven-grid(2, 1, 10px); }
[class*="#{$kna-namespace}grid-"] { [class*="#{$kna-namespace}grid-"] {
display: flex; display: flex;
flex-direction: row; flex-direction: row;
flex-wrap: wrap; flex-wrap: wrap;
margin-left: -$gutter; margin-left: -$gutter;
} }
[class*="#{$kna-namespace}grid-"] > * { [class*="#{$kna-namespace}grid-"] > * {
flex: 0 0 auto; flex: 0 0 auto;
display: block; /* IE fix */ display: block; /* IE fix */
width: calc(100% * 1 / #{$number} - #{$gutter} - .01px); width: calc(100% * 1 / #{$number} - #{$gutter} - .01px);
margin-left: $gutter; margin-left: $gutter;
} }
// Sass mixins for *equal* columns grid container // Sass mixins for *equal* columns grid container
// example : .grid-perso { @include grid(12); } // example : .grid-perso { @include grid(12); }
@mixin grid($number:$number,$gutter:$gutter) { @mixin grid($number:$number,$gutter:$gutter) {
& > * { & > * {
width: calc(100% * 1 / #{$number} - #{$gutter} - .01px); width: calc(100% * 1 / #{$number} - #{$gutter} - .01px);
} }
& > .#{$kna-namespace}flex-item-double { & > .#{$kna-namespace}flex-item-double {
width: calc(100% * 2 / #{$number} - #{$gutter}); width: calc(100% * 2 / #{$number} - #{$gutter});
} }
@media (min-width: ($tiny-screen + 1)) and (max-width: $small-screen) { @media (min-width: ($tiny-screen + 1)) and (max-width: $small-screen) {
& > * { & > * {
width: calc(100% * 1 / 2 - #{$gutter} - .01px); width: calc(100% * 1 / 2 - #{$gutter} - .01px);
} }
& > .#{$kna-namespace}flex-item-double { & > .#{$kna-namespace}flex-item-double {
width: calc(100% - #{$gutter} - .01px); width: calc(100% - #{$gutter} - .01px);
} }
} }
@media (max-width: $tiny-screen) { @media (max-width: $tiny-screen) {
& > * { & > * {
width: calc(100% - #{$gutter} - .01px); width: calc(100% - #{$gutter} - .01px);
} }
& > .#{$kna-namespace}flex-item-double { & > .#{$kna-namespace}flex-item-double {
width: calc(100% - #{$gutter} - .01px); width: calc(100% - #{$gutter} - .01px);
} }
} }
} }
// Examples : will be compiled in CSS // Examples : will be compiled in CSS
.#{$kna-namespace}grid-2 { .#{$kna-namespace}grid-2 {
@include grid(2); @include grid(2);
} }
.#{$kna-namespace}grid-3 { .#{$kna-namespace}grid-3 {
@include grid(3); @include grid(3);
} }
.#{$kna-namespace}grid-4 { .#{$kna-namespace}grid-4 {
@include grid(4); @include grid(4);
} }
.#{$kna-namespace}grid-5 { .#{$kna-namespace}grid-5 {
@include grid(5); @include grid(5);
} }
.#{$kna-namespace}grid-6 { .#{$kna-namespace}grid-6 {
@include grid(6); @include grid(6);
} }
.#{$kna-namespace}grid-7 { .#{$kna-namespace}grid-7 {
@include grid(7); @include grid(7);
} }
.#{$kna-namespace}grid-8 { .#{$kna-namespace}grid-8 {
@include grid(8); @include grid(8);
} }
.#{$kna-namespace}grid-10 { .#{$kna-namespace}grid-10 {
@include grid(10); @include grid(10);
} }
.#{$kna-namespace}grid-12 { .#{$kna-namespace}grid-12 {
@include grid(12); @include grid(12);
} }
// LESS mixins for *unequal* columns grid container // LESS mixins for *unequal* columns grid container
// example : .grid-perso { @include uneven-grid(2, 1); } // example : .grid-perso { @include uneven-grid(2, 1); }
@mixin uneven-grid($left:$left, $right:$right, $gutter:$gutter) { @mixin uneven-grid($left:$left, $right:$right, $gutter:$gutter) {
& > *:nth-child(odd) { & > *:nth-child(odd) {
$size: ($left / ($left + $right)) * 100%; $size: ($left / ($left + $right)) * 100%;
width: calc(#{$size} - #{$gutter}); width: calc(#{$size} - #{$gutter});
} }
& > *:nth-child(even) { & > *:nth-child(even) {
$size: ($right / ($left + $right)) * 100%; $size: ($right / ($left + $right)) * 100%;
width: calc(#{$size} - #{$gutter}); width: calc(#{$size} - #{$gutter});
} }
@media (max-width: $tiny-screen) { @media (max-width: $tiny-screen) {
& > *:nth-child(n) { & > *:nth-child(n) {
width: calc(100% - #{$gutter}); width: calc(100% - #{$gutter});
} }
} }
} }
// Examples : will be compiled in CSS // Examples : will be compiled in CSS
.#{$kna-namespace}grid-2-1 { .#{$kna-namespace}grid-2-1 {
@include uneven-grid(2,1); @include uneven-grid(2,1);
} }
.#{$kna-namespace}grid-1-2 { .#{$kna-namespace}grid-1-2 {
@include uneven-grid(1,2); @include uneven-grid(1,2);
} }
.#{$kna-namespace}grid-3-1 { .#{$kna-namespace}grid-3-1 {
@include uneven-grid(3,1); @include uneven-grid(3,1);
} }
.#{$kna-namespace}grid-1-3 { .#{$kna-namespace}grid-1-3 {
@include uneven-grid(1,3); @include uneven-grid(1,3);
} }
.#{$kna-namespace}grid-3-2 { .#{$kna-namespace}grid-3-2 {
@include uneven-grid(3,2); @include uneven-grid(3,2);
} }
.#{$kna-namespace}grid-2-3 { .#{$kna-namespace}grid-2-3 {
@include uneven-grid(2,3); @include uneven-grid(2,3);
} }
.#{$kna-namespace}grid-4-1 { .#{$kna-namespace}grid-4-1 {
@include uneven-grid(4,1); @include uneven-grid(4,1);
} }
.#{$kna-namespace}grid-1-4 { .#{$kna-namespace}grid-1-4 {
@include uneven-grid(1,4); @include uneven-grid(1,4);
} }

View file

@ -4,35 +4,35 @@
table, table,
.#{$kna-namespace}table { .#{$kna-namespace}table {
width: 100%; width: 100%;
max-width : 100%; max-width : 100%;
table-layout: fixed; table-layout: fixed;
border-collapse: collapse; border-collapse: collapse;
vertical-align: top; vertical-align: top;
border: 1px solid #ccc; border: 1px solid #ccc;
} }
.#{$kna-namespace}table { .#{$kna-namespace}table {
display: table; display: table;
} }
table##{$kna-namespace}recaptcha_table, table##{$kna-namespace}recaptcha_table,
table.#{$kna-namespace}table-auto { table.#{$kna-namespace}table-auto {
table-layout:auto; table-layout:auto;
} }
caption { caption {
padding: $small-value; padding: $small-value;
color: #555; color: #555;
font-style: italic; font-style: italic;
} }
td, td,
th { th {
padding: 0.3em 0.8em; padding: 0.3em 0.8em;
border: 1px #aaa dotted; border: 1px #aaa dotted;
vertical-align: top; vertical-align: top;
min-width: $medium-value; min-width: $medium-value;
cursor: default; cursor: default;
text-align: left; text-align: left;
} }

View file

@ -8,13 +8,13 @@
/* buttons */ /* buttons */
.#{$kna-namespace}btn { .#{$kna-namespace}btn {
display: inline-block; display: inline-block;
} }
/* forms items */ /* forms items */
form, form,
fieldset { fieldset {
border: none; border: none;
} }
input, input,
@ -22,9 +22,9 @@ button,
select, select,
label, label,
.#{$kna-namespace}btn { .#{$kna-namespace}btn {
vertical-align: middle; vertical-align: middle;
font-family: inherit; font-family: inherit;
font-size: inherit; font-size: inherit;
} }
button, button,
@ -32,30 +32,30 @@ input,
optgroup, optgroup,
select, select,
textarea { textarea {
color: $base-color; color: $base-color;
} }
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;
} }
textarea { textarea {
min-height: 5em; min-height: 5em;
vertical-align: top; vertical-align: top;
font-family: inherit; font-family: inherit;
font-size: inherit; font-size: inherit;
resize: vertical; resize: vertical;
} }
select { select {
-webkit-appearance: menulist-button; -webkit-appearance: menulist-button;
} }
/* if select styling bugs on WebKit */ /* if select styling bugs on WebKit */
@ -66,27 +66,27 @@ 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 { ::-webkit-input-placeholder {
color: #777; color: #777;
} }
input:-moz-placeholder, input:-moz-placeholder,
textarea:-moz-placeholder { textarea:-moz-placeholder {
color: #777; color: #777;
} }
.#{$kna-namespace}btn:focus, .#{$kna-namespace}btn:focus,
input[type="button"]:focus, input[type="button"]:focus,
button:focus { button:focus {
outline: 0; outline: 0;
-webkit-tap-highlight-color: transparent; -webkit-tap-highlight-color: transparent;
-webkit-user-select: none; -webkit-user-select: none;
-moz-user-select: none; -moz-user-select: none;
-ms-user-select: none; -ms-user-select: none;
user-select: none; user-select: none;
} }
/* unstyled forms */ /* unstyled forms */
@ -95,19 +95,19 @@ button.#{$kna-namespace}unstyled,
input[type="button"].#{$kna-namespace}unstyled, input[type="button"].#{$kna-namespace}unstyled,
input[type="submit"].#{$kna-namespace}unstyled, input[type="submit"].#{$kna-namespace}unstyled,
input[type="reset"].#{$kna-namespace}unstyled { input[type="reset"].#{$kna-namespace}unstyled {
padding: 0; padding: 0;
border: none; border: none;
line-height: 1; line-height: 1;
text-align: left; text-align: left;
background: none; background: none;
border-radius: 0; border-radius: 0;
box-shadow: none; box-shadow: none;
-webkit-appearance: none; -webkit-appearance: none;
-moz-appearance: none; -moz-appearance: none;
appearance: none; appearance: none;
&:focus { &:focus {
box-shadow: none; box-shadow: none;
outline: none; outline: none;
} }
} }

View file

@ -5,119 +5,119 @@
/* blocks widths (percentage and pixels) */ /* blocks widths (percentage and pixels) */
.#{$kna-namespace}w10 { .#{$kna-namespace}w10 {
width: 10%; width: 10%;
} }
.#{$kna-namespace}w20 { .#{$kna-namespace}w20 {
width: 20%; width: 20%;
} }
.#{$kna-namespace}w25 { .#{$kna-namespace}w25 {
width: 25%; width: 25%;
} }
.#{$kna-namespace}w30 { .#{$kna-namespace}w30 {
width: 30%; width: 30%;
} }
.#{$kna-namespace}w33 { .#{$kna-namespace}w33 {
width: 33.3333%; width: 33.3333%;
} }
.#{$kna-namespace}w40 { .#{$kna-namespace}w40 {
width: 40%; width: 40%;
} }
.#{$kna-namespace}w50 { .#{$kna-namespace}w50 {
width: 50%; width: 50%;
} }
.#{$kna-namespace}w60 { .#{$kna-namespace}w60 {
width: 60%; width: 60%;
} }
.#{$kna-namespace}w66 { .#{$kna-namespace}w66 {
width: 66.6666%; width: 66.6666%;
} }
.#{$kna-namespace}w70 { .#{$kna-namespace}w70 {
width: 70%; width: 70%;
} }
.#{$kna-namespace}w75 { .#{$kna-namespace}w75 {
width: 75%; width: 75%;
} }
.#{$kna-namespace}w80 { .#{$kna-namespace}w80 {
width: 80%; width: 80%;
} }
.#{$kna-namespace}w90 { .#{$kna-namespace}w90 {
width: 90%; width: 90%;
} }
.#{$kna-namespace}w100 { .#{$kna-namespace}w100 {
width: 100%; width: 100%;
} }
.#{$kna-namespace}w50p { .#{$kna-namespace}w50p {
width: 50px; width: 50px;
} }
.#{$kna-namespace}w100p { .#{$kna-namespace}w100p {
width: 100px; width: 100px;
} }
.#{$kna-namespace}w150p { .#{$kna-namespace}w150p {
width: 150px; width: 150px;
} }
.#{$kna-namespace}w200p { .#{$kna-namespace}w200p {
width: 200px; width: 200px;
} }
.#{$kna-namespace}w300p { .#{$kna-namespace}w300p {
width: 300px; width: 300px;
} }
.#{$kna-namespace}w400p { .#{$kna-namespace}w400p {
width: 400px; width: 400px;
} }
.#{$kna-namespace}w500p { .#{$kna-namespace}w500p {
width: 500px; width: 500px;
} }
.#{$kna-namespace}w600p { .#{$kna-namespace}w600p {
width: 600px; width: 600px;
} }
.#{$kna-namespace}w700p { .#{$kna-namespace}w700p {
width: 700px; width: 700px;
} }
.#{$kna-namespace}w800p { .#{$kna-namespace}w800p {
width: 800px; width: 800px;
} }
.#{$kna-namespace}w960p { .#{$kna-namespace}w960p {
width: 960px; width: 960px;
} }
.#{$kna-namespace}mw960p { .#{$kna-namespace}mw960p {
max-width: 960px; max-width: 960px;
} }
.#{$kna-namespace}w1140p { .#{$kna-namespace}w1140p {
width: 1140px; width: 1140px;
} }
.#{$kna-namespace}mw1140p { .#{$kna-namespace}mw1140p {
max-width: 1140px; max-width: 1140px;
} }
.#{$kna-namespace}wauto { .#{$kna-namespace}wauto {
width: auto; width: auto;
} }
/* spacing helpers /* spacing helpers
@ -127,170 +127,170 @@ s,m,l,n = small, medium, large, none
*/ */
.#{$kna-namespace}man, .#{$kna-namespace}man,
.#{$kna-namespace}ma0 { .#{$kna-namespace}ma0 {
margin: 0; margin: 0;
} }
.#{$kna-namespace}pan, .#{$kna-namespace}pan,
.#{$kna-namespace}pa0 { .#{$kna-namespace}pa0 {
padding: 0; padding: 0;
} }
.#{$kna-namespace}mas { .#{$kna-namespace}mas {
margin: $small-value; margin: $small-value;
} }
.#{$kna-namespace}mam { .#{$kna-namespace}mam {
margin: $medium-value; margin: $medium-value;
} }
.#{$kna-namespace}mal { .#{$kna-namespace}mal {
margin: $large-value; margin: $large-value;
} }
.#{$kna-namespace}pas { .#{$kna-namespace}pas {
padding: $small-value; padding: $small-value;
} }
.#{$kna-namespace}pam { .#{$kna-namespace}pam {
padding: $medium-value; padding: $medium-value;
} }
.#{$kna-namespace}pal { .#{$kna-namespace}pal {
padding: $large-value; padding: $large-value;
} }
.#{$kna-namespace}mtn, .#{$kna-namespace}mtn,
.#{$kna-namespace}mt0 { .#{$kna-namespace}mt0 {
margin-top: 0; margin-top: 0;
} }
.#{$kna-namespace}mts { .#{$kna-namespace}mts {
margin-top: $small-value; margin-top: $small-value;
} }
.#{$kna-namespace}mtm { .#{$kna-namespace}mtm {
margin-top: $medium-value; margin-top: $medium-value;
} }
.#{$kna-namespace}mtl { .#{$kna-namespace}mtl {
margin-top: $large-value; margin-top: $large-value;
} }
.#{$kna-namespace}mrn, .#{$kna-namespace}mrn,
.#{$kna-namespace}mr0 { .#{$kna-namespace}mr0 {
margin-right: 0; margin-right: 0;
} }
.#{$kna-namespace}mrs { .#{$kna-namespace}mrs {
margin-right: $small-value; margin-right: $small-value;
} }
.#{$kna-namespace}mrm { .#{$kna-namespace}mrm {
margin-right: $medium-value; margin-right: $medium-value;
} }
.#{$kna-namespace}mrl { .#{$kna-namespace}mrl {
margin-right: $large-value; margin-right: $large-value;
} }
.#{$kna-namespace}mbn, .#{$kna-namespace}mbn,
.#{$kna-namespace}mb0 { .#{$kna-namespace}mb0 {
margin-bottom: 0; margin-bottom: 0;
} }
.#{$kna-namespace}mbs { .#{$kna-namespace}mbs {
margin-bottom: $small-value; margin-bottom: $small-value;
} }
.#{$kna-namespace}mbm { .#{$kna-namespace}mbm {
margin-bottom: $medium-value; margin-bottom: $medium-value;
} }
.#{$kna-namespace}mbl { .#{$kna-namespace}mbl {
margin-bottom: $large-value; margin-bottom: $large-value;
} }
.#{$kna-namespace}mln, .#{$kna-namespace}mln,
.#{$kna-namespace}ml0 { .#{$kna-namespace}ml0 {
margin-left: 0; margin-left: 0;
} }
.#{$kna-namespace}mls { .#{$kna-namespace}mls {
margin-left: $small-value; margin-left: $small-value;
} }
.#{$kna-namespace}mlm { .#{$kna-namespace}mlm {
margin-left: $medium-value; margin-left: $medium-value;
} }
.#{$kna-namespace}mll { .#{$kna-namespace}mll {
margin-left: $large-value; margin-left: $large-value;
} }
.#{$kna-namespace}ptn, .#{$kna-namespace}ptn,
.#{$kna-namespace}pt0 { .#{$kna-namespace}pt0 {
padding-top: 0; padding-top: 0;
} }
.#{$kna-namespace}pts { .#{$kna-namespace}pts {
padding-top: $small-value; padding-top: $small-value;
} }
.#{$kna-namespace}ptm { .#{$kna-namespace}ptm {
padding-top: $medium-value; padding-top: $medium-value;
} }
.#{$kna-namespace}ptl { .#{$kna-namespace}ptl {
padding-top: $large-value; padding-top: $large-value;
} }
.#{$kna-namespace}prn, .#{$kna-namespace}prn,
.#{$kna-namespace}pr0 { .#{$kna-namespace}pr0 {
padding-right: 0; padding-right: 0;
} }
.#{$kna-namespace}prs { .#{$kna-namespace}prs {
padding-right: $small-value; padding-right: $small-value;
} }
.#{$kna-namespace}prm { .#{$kna-namespace}prm {
padding-right: $medium-value; padding-right: $medium-value;
} }
.#{$kna-namespace}prl { .#{$kna-namespace}prl {
padding-right: $large-value; padding-right: $large-value;
} }
.#{$kna-namespace}pbn, .#{$kna-namespace}pbn,
.#{$kna-namespace}pb0 { .#{$kna-namespace}pb0 {
padding-bottom: 0; padding-bottom: 0;
} }
.#{$kna-namespace}pbs { .#{$kna-namespace}pbs {
padding-bottom: $small-value; padding-bottom: $small-value;
} }
.#{$kna-namespace}pbm { .#{$kna-namespace}pbm {
padding-bottom: $medium-value; padding-bottom: $medium-value;
} }
.#{$kna-namespace}pbl { .#{$kna-namespace}pbl {
padding-bottom: $large-value; padding-bottom: $large-value;
} }
.#{$kna-namespace}pln, .#{$kna-namespace}pln,
.#{$kna-namespace}pl0 { .#{$kna-namespace}pl0 {
padding-left: 0; padding-left: 0;
} }
.#{$kna-namespace}pls { .#{$kna-namespace}pls {
padding-left: $small-value; padding-left: $small-value;
} }
.#{$kna-namespace}plm { .#{$kna-namespace}plm {
padding-left: $medium-value; padding-left: $medium-value;
} }
.#{$kna-namespace}pll { .#{$kna-namespace}pll {
padding-left: $large-value; padding-left: $large-value;
} }

View file

@ -16,71 +16,71 @@
@media (min-width: ($medium-screen + 1)) { @media (min-width: ($medium-screen + 1)) {
/* layouts for large screens */ /* layouts for large screens */
.#{$kna-namespace}large-hidden { .#{$kna-namespace}large-hidden {
display: none !important; display: none !important;
} }
.#{$kna-namespace}large-visible { .#{$kna-namespace}large-visible {
display: block !important; display: block !important;
} }
.#{$kna-namespace}large-no-float { .#{$kna-namespace}large-no-float {
float: none; float: none;
} }
.#{$kna-namespace}large-inbl { .#{$kna-namespace}large-inbl {
display: inline-block; display: inline-block;
float: none; float: none;
vertical-align: top; vertical-align: top;
} }
.#{$kna-namespace}large-row { .#{$kna-namespace}large-row {
display: table; display: table;
table-layout: fixed; table-layout: fixed;
width: 100% !important; width: 100% !important;
} }
.#{$kna-namespace}large-col { .#{$kna-namespace}large-col {
display: table-cell; display: table-cell;
vertical-align: top; vertical-align: top;
} }
/* widths for large screens */ /* widths for large screens */
.#{$kna-namespace}large-w25 { .#{$kna-namespace}large-w25 {
width: 25% !important; width: 25% !important;
} }
.#{$kna-namespace}large-w33 { .#{$kna-namespace}large-w33 {
width: 33.3333% !important; width: 33.3333% !important;
} }
.#{$kna-namespace}large-w50 { .#{$kna-namespace}large-w50 {
width: 50% !important; width: 50% !important;
} }
.#{$kna-namespace}large-w66 { .#{$kna-namespace}large-w66 {
width: 66.6666% !important; width: 66.6666% !important;
} }
.#{$kna-namespace}large-w75 { .#{$kna-namespace}large-w75 {
width: 75% !important; width: 75% !important;
} }
.#{$kna-namespace}large-w100, .#{$kna-namespace}large-w100,
.#{$kna-namespace}large-wauto { .#{$kna-namespace}large-wauto {
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 screens */ /* margins for large screens */
.#{$kna-namespace}large-man, .#{$kna-namespace}large-man,
.#{$kna-namespace}large-ma0 { .#{$kna-namespace}large-ma0 {
margin: 0 !important; margin: 0 !important;
} }
} }
/* ---------------------------------- */ /* ---------------------------------- */
@ -89,73 +89,73 @@
@media (min-width: ($small-screen + 1)) and (max-width: $medium-screen) { @media (min-width: ($small-screen + 1)) and (max-width: $medium-screen) {
/* layouts for medium screens */ /* layouts for medium screens */
.#{$kna-namespace}medium-hidden { .#{$kna-namespace}medium-hidden {
display: none !important; display: none !important;
} }
.#{$kna-namespace}medium-visible { .#{$kna-namespace}medium-visible {
display: block !important; display: block !important;
} }
.#{$kna-namespace}medium-no-float { .#{$kna-namespace}medium-no-float {
float: none; float: none;
} }
.#{$kna-namespace}medium-inbl { .#{$kna-namespace}medium-inbl {
display: inline-block; display: inline-block;
float: none; float: none;
vertical-align: top; vertical-align: top;
} }
.#{$kna-namespace}medium-row { .#{$kna-namespace}medium-row {
display: table; display: table;
table-layout: fixed; table-layout: fixed;
width: 100% !important; width: 100% !important;
} }
.#{$kna-namespace}medium-col { .#{$kna-namespace}medium-col {
display: table-cell; display: table-cell;
vertical-align: top; vertical-align: top;
} }
/* widths for medium screens */ /* widths for medium screens */
.#{$kna-namespace}medium-w25 { .#{$kna-namespace}medium-w25 {
width: 25% !important; width: 25% !important;
} }
.#{$kna-namespace}medium-w33 { .#{$kna-namespace}medium-w33 {
width: 33.3333% !important; width: 33.3333% !important;
} }
.#{$kna-namespace}medium-w50 { .#{$kna-namespace}medium-w50 {
width: 50% !important; width: 50% !important;
} }
.#{$kna-namespace}medium-w66 { .#{$kna-namespace}medium-w66 {
width: 66.6666% !important; width: 66.6666% !important;
} }
.#{$kna-namespace}medium-w75 { .#{$kna-namespace}medium-w75 {
width: 75% !important; width: 75% !important;
} }
.#{$kna-namespace}medium-w100, .#{$kna-namespace}medium-w100,
.#{$kna-namespace}medium-wauto { .#{$kna-namespace}medium-wauto {
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 medium screens */ /* margins for medium screens */
.#{$kna-namespace}medium-man, .#{$kna-namespace}medium-man,
.#{$kna-namespace}medium-ma0 { .#{$kna-namespace}medium-ma0 {
margin: 0 !important; margin: 0 !important;
} }
} }
/* ---------------------------------- */ /* ---------------------------------- */
@ -164,88 +164,88 @@
@media (min-width: ($tiny-screen + 1)) and (max-width: $small-screen) { @media (min-width: ($tiny-screen + 1)) and (max-width: $small-screen) {
/* quick reset in small resolution and less */ /* quick reset in small resolution and less */
.#{$kna-namespace}w600p, .#{$kna-namespace}w600p,
.#{$kna-namespace}w700p, .#{$kna-namespace}w700p,
.#{$kna-namespace}w800p, .#{$kna-namespace}w800p,
.#{$kna-namespace}w960p, .#{$kna-namespace}w960p,
.#{$kna-namespace}mw960p { .#{$kna-namespace}mw960p {
width: auto; width: auto;
float: none; float: none;
} }
/* layouts for small screens */ /* layouts for small screens */
.#{$kna-namespace}small-hidden { .#{$kna-namespace}small-hidden {
display: none !important; display: none !important;
} }
.#{$kna-namespace}small-visible { .#{$kna-namespace}small-visible {
display: block !important; display: block !important;
} }
.#{$kna-namespace}small-no-float { .#{$kna-namespace}small-no-float {
float: none; float: none;
} }
.#{$kna-namespace}small-inbl { .#{$kna-namespace}small-inbl {
display: inline-block; display: inline-block;
float: none; float: none;
vertical-align: top; vertical-align: top;
} }
.#{$kna-namespace}small-row { .#{$kna-namespace}small-row {
display: table !important; display: table !important;
table-layout: fixed !important; table-layout: fixed !important;
width: 100% !important; width: 100% !important;
} }
.#{$kna-namespace}small-col { .#{$kna-namespace}small-col {
display: table-cell !important; display: table-cell !important;
vertical-align: top !important; vertical-align: top !important;
} }
/* widths for small screens */ /* widths for small screens */
.#{$kna-namespace}small-w25 { .#{$kna-namespace}small-w25 {
width: 25% !important; width: 25% !important;
} }
.#{$kna-namespace}small-w33 { .#{$kna-namespace}small-w33 {
width: 33.3333% !important; width: 33.3333% !important;
} }
.#{$kna-namespace}small-w50 { .#{$kna-namespace}small-w50 {
width: 50% !important; width: 50% !important;
} }
.#{$kna-namespace}small-w66 { .#{$kna-namespace}small-w66 {
width: 66.6666% !important; width: 66.6666% !important;
} }
.#{$kna-namespace}small-w75 { .#{$kna-namespace}small-w75 {
width: 75% !important; width: 75% !important;
} }
.#{$kna-namespace}small-w100, .#{$kna-namespace}small-w100,
.#{$kna-namespace}small-wauto { .#{$kna-namespace}small-wauto {
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 screens */ /* margins for small screens */
.#{$kna-namespace}small-man, .#{$kna-namespace}small-man,
.#{$kna-namespace}small-ma0 { .#{$kna-namespace}small-ma0 {
margin: 0 !important; margin: 0 !important;
} }
.#{$kna-namespace}small-pan, .#{$kna-namespace}small-pan,
.#{$kna-namespace}small-pa0 { .#{$kna-namespace}small-pa0 {
padding: 0 !important; padding: 0 !important;
} }
} }
@ -255,117 +255,117 @@
@media (max-width: $tiny-screen) { @media (max-width: $tiny-screen) {
/* quick small resolution reset */ /* quick small resolution reset */
.#{$kna-namespace}mod, .#{$kna-namespace}mod,
.#{$kna-namespace}col, .#{$kna-namespace}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;
} }
.#{$kna-namespace}flex-container { .#{$kna-namespace}flex-container {
flex-direction: column; flex-direction: column;
} }
.#{$kna-namespace}w300p, .#{$kna-namespace}w300p,
.#{$kna-namespace}w400p, .#{$kna-namespace}w400p,
.#{$kna-namespace}w500p { .#{$kna-namespace}w500p {
width: auto; width: auto;
float: none; float: none;
} }
.#{$kna-namespace}row { .#{$kna-namespace}row {
display: block !important; display: block !important;
width: 100% !important; width: 100% !important;
} }
/* layouts for tiny screens */ /* layouts for tiny screens */
.#{$kna-namespace}tiny-hidden { .#{$kna-namespace}tiny-hidden {
display: none !important; display: none !important;
} }
.#{$kna-namespace}tiny-visible { .#{$kna-namespace}tiny-visible {
display: block !important; display: block !important;
} }
.#{$kna-namespace}tiny-no-float { .#{$kna-namespace}tiny-no-float {
float: none; float: none;
} }
.#{$kna-namespace}tiny-inbl { .#{$kna-namespace}tiny-inbl {
display: inline-block; display: inline-block;
float: none; float: none;
vertical-align: top; vertical-align: top;
} }
.#{$kna-namespace}tiny-row { .#{$kna-namespace}tiny-row {
display: table !important; display: table !important;
table-layout: fixed !important; table-layout: fixed !important;
width: 100% !important; width: 100% !important;
} }
.#{$kna-namespace}tiny-col { .#{$kna-namespace}tiny-col {
display: table-cell !important; display: table-cell !important;
vertical-align: top !important; vertical-align: top !important;
} }
th, th,
td { td {
display: block; display: block;
width: auto; width: auto;
text-align: left; text-align: left;
} }
thead { thead {
display: none; display: none;
} }
/* widths for tiny screens */ /* widths for tiny screens */
.#{$kna-namespace}tiny-w25 { .#{$kna-namespace}tiny-w25 {
width: 25% !important; width: 25% !important;
} }
.#{$kna-namespace}tiny-w33 { .#{$kna-namespace}tiny-w33 {
width: 33.3333% !important; width: 33.3333% !important;
} }
.#{$kna-namespace}tiny-w50 { .#{$kna-namespace}tiny-w50 {
width: 50% !important; width: 50% !important;
} }
.#{$kna-namespace}tiny-w66 { .#{$kna-namespace}tiny-w66 {
width: 66.6666% !important; width: 66.6666% !important;
} }
.#{$kna-namespace}tiny-w75 { .#{$kna-namespace}tiny-w75 {
width: 75% !important; width: 75% !important;
} }
.#{$kna-namespace}tiny-w100, .#{$kna-namespace}tiny-w100,
.#{$kna-namespace}tiny-wauto { .#{$kna-namespace}tiny-wauto {
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 screens */ /* margins for tiny screens */
.#{$kna-namespace}tiny-man, .#{$kna-namespace}tiny-man,
.#{$kna-namespace}tiny-ma0 { .#{$kna-namespace}tiny-ma0 {
margin: 0 !important; margin: 0 !important;
} }
.#{$kna-namespace}tiny-pan, .#{$kna-namespace}tiny-pan,
.#{$kna-namespace}tiny-pa0 { .#{$kna-namespace}tiny-pa0 {
padding: 0 !important; padding: 0 !important;
} }
} }

View file

@ -1,94 +1,94 @@
/* 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,
.#{$kna-namespace}p-like, .#{$kna-namespace}p-like,
h1, h1,
.#{$kna-namespace}h1-like, .#{$kna-namespace}h1-like,
h2, h2,
.#{$kna-namespace}h2-like, .#{$kna-namespace}h2-like,
h3, h3,
.#{$kna-namespace}h3-like, .#{$kna-namespace}h3-like,
h4, h4,
.#{$kna-namespace}h4-like, .#{$kna-namespace}h4-like,
h5, h5,
.#{$kna-namespace}h5-like, .#{$kna-namespace}h5-like,
h6, h6,
.#{$kna-namespace}h6-like, .#{$kna-namespace}h6-like,
blockquote, blockquote,
ul, ul,
ol { ol {
color: #000 !important; color: #000 !important;
margin: auto !important; margin: auto !important;
} }
.#{$kna-namespace}print { .#{$kna-namespace}print {
display: block; display: block;
} }
.#{$kna-namespace}no-print { .#{$kna-namespace}no-print {
display: none; display: none;
} }
/* no orphans, no widows */ /* no orphans, no widows */
p, p,
.#{$kna-namespace}p-like, .#{$kna-namespace}p-like,
blockquote { blockquote {
orphans: 3; orphans: 3;
widows: 3; widows: 3;
} }
/* no breaks inside these elements */ /* no breaks inside these elements */
blockquote, blockquote,
ul, ul,
ol { ol {
page-break-inside: avoid; page-break-inside: avoid;
} }
/* page break before main headers /* page break before main headers
h1, h1,
.h1-like { .h1-like {
page-break-before: always; page-break-before: always;
} }
*/ */
/* no breaks after these elements */ /* no breaks after these elements */
h1, h1,
.#{$kna-namespace}h1-like, .#{$kna-namespace}h1-like,
h2, h2,
.#{$kna-namespace}h2-like, .#{$kna-namespace}h2-like,
h3, h3,
.#{$kna-namespace}h3-like, .#{$kna-namespace}h3-like,
caption { caption {
page-break-after: avoid; page-break-after: avoid;
} }
a { a {
color: #000 !important; color: #000 !important;
text-decoration: underline !important; text-decoration: underline !important;
} }
/* displaying URLs */ /* displaying URLs */
a[href]::after { a[href]::after {
content: " (" attr(href) ")"; content: " (" attr(href) ")";
} }
a[href^="javascript:"]::after, a[href^="javascript:"]::after,
a[href^="#"]::after { a[href^="#"]::after {
content: ""; content: "";
} }
} }

View file

@ -4,52 +4,52 @@
/* styling skip links */ /* styling skip links */
.#{$kna-namespace}skip-links { .#{$kna-namespace}skip-links {
position: absolute; position: absolute;
& a { & a {
position: absolute; position: absolute;
overflow: hidden; overflow: hidden;
clip: rect(1px, 1px, 1px, 1px); clip: rect(1px, 1px, 1px, 1px);
padding: 0.5em; padding: 0.5em;
background: black; background: black;
color: white; color: white;
text-decoration: none; text-decoration: none;
&:focus { &:focus {
position: static; position: static;
overflow: visible; overflow: visible;
clip: auto; clip: auto;
} }
} }
} }
// hyphens on small screens // hyphens on small screens
@media (max-width: $small-screen) { @media (max-width: $small-screen) {
/* you shall not pass */ /* you shall not pass */
div, div,
textarea, textarea,
table, table,
td, td,
th, th,
code, code,
pre, pre,
samp { samp {
word-wrap: break-word; word-wrap: break-word;
hyphens: auto; hyphens: auto;
} }
} }
/* Google Gmap3 bug fix on images */ /* Google Gmap3 bug fix on images */
.gm-style img { .gm-style img {
height: 100%; height: 100%;
} }
:not(.gm-style) img { :not(.gm-style) img {
height: auto; height: auto;
} }
.gm-style img, .gm-style img,
.gmnoscreen img, .gmnoscreen img,
.gmnoprint img { .gmnoprint img {
max-width: none !important; max-width: none !important;
} }

View file

@ -4,134 +4,134 @@
/* styling elements */ /* styling elements */
code, kbd, mark { code, kbd, mark {
border-radius: 2px; border-radius: 2px;
} }
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,0.04); background: rgba(0,0,0,0.04);
color: #b11; color: #b11;
} }
pre code { pre code {
padding: none; padding: none;
background: none; background: none;
color: inherit; color: inherit;
border-radius: 0; border-radius: 0;
} }
mark { mark {
padding:2px 4px; padding:2px 4px;
} }
sup, sup,
sub { sub {
vertical-align: 0; vertical-align: 0;
} }
sup { sup {
bottom: 1ex; bottom: 1ex;
} }
sub { sub {
top: 0.5ex; top: 0.5ex;
} }
blockquote { blockquote {
position: relative; position: relative;
padding-left: 3em; padding-left: 3em;
} }
blockquote::before { blockquote::before {
content: "\201C"; content: "\201C";
position: absolute; position: absolute;
left: 0; left: 0;
top: 0; top: 0;
font-family: georgia, serif; font-family: georgia, serif;
font-size: 5em; font-size: 5em;
line-height: 0.9; line-height: 0.9;
color: rgba(0, 0, 0, .3); color: rgba(0, 0, 0, .3);
} }
blockquote > footer { blockquote > footer {
margin-top: .75em; margin-top: .75em;
font-size: 0.9em; font-size: 0.9em;
color: rgba(0, 0, 0, .7); color: rgba(0, 0, 0, .7);
} }
blockquote > footer::before { blockquote > footer::before {
content: "\2014 \0020"; content: "\2014 \0020";
} }
q { q {
font-style: normal; font-style: normal;
} }
q, q,
.#{$kna-namespace}q { .#{$kna-namespace}q {
quotes: "“\00a0" "\00a0”"; quotes: "“\00a0" "\00a0”";
} }
q:lang(fr), q:lang(fr),
.#{$kna-namespace}q:lang(fr) { .#{$kna-namespace}q:lang(fr) {
quotes: "«\00a0" "\00a0»"; quotes: "«\00a0" "\00a0»";
} }
hr { hr {
display: block; display: block;
clear: both; clear: both;
height: 1px; height: 1px;
margin: 1em 0 2em; margin: 1em 0 2em;
padding: 0; padding: 0;
border: 0; border: 0;
color: #ccc; color: #ccc;
background-color: #ccc; background-color: #ccc;
} }
/* alternate tables */ /* alternate tables */
.#{$kna-namespace}table-alternate { .#{$kna-namespace}table-alternate {
border: 0; border: 0;
} }
.#{$kna-namespace}table-alternate tbody { .#{$kna-namespace}table-alternate tbody {
border: 1px solid #ccc; border: 1px solid #ccc;
} }
.#{$kna-namespace}table-alternate thead tr > * + * { .#{$kna-namespace}table-alternate thead tr > * + * {
border-left: 0; border-left: 0;
} }
.#{$kna-namespace}table-alternate tbody tr > * + * { .#{$kna-namespace}table-alternate tbody tr > * + * {
border-left: 1px solid #ccc; border-left: 1px solid #ccc;
} }
/* alternate-vert tables */ /* alternate-vert tables */
.#{$kna-namespace}table-alternate-v { .#{$kna-namespace}table-alternate-v {
border: 0; border: 0;
border-right: 1px solid #ccc; border-right: 1px solid #ccc;
} }
.#{$kna-namespace}table-alternate-v tr > :first-child { .#{$kna-namespace}table-alternate-v tr > :first-child {
border-bottom: 0; border-bottom: 0;
} }
.#{$kna-namespace}table-alternate-v tr > * + * { .#{$kna-namespace}table-alternate-v tr > * + * {
border-top: 1px solid #ccc; border-top: 1px solid #ccc;
} }
/* striped tables */ /* striped tables */
.#{$kna-namespace}table-striped tbody tr:nth-child(odd) { .#{$kna-namespace}table-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 */
.#{$kna-namespace}table-striped-v tr > :first-child { .#{$kna-namespace}table-striped-v tr > :first-child {
background: #eee; background: #eee;
background: rgba(0, 0, 0, .05); background: rgba(0, 0, 0, .05);
} }

View file

@ -24,23 +24,23 @@ Description: Reset styles for WordPress usage of KNACSS
.comment-navigation, .comment-navigation,
.paging-navigation, .paging-navigation,
.post-navigation { .post-navigation {
margin: 0 0 1.5em; margin: 0 0 1.5em;
overflow: hidden; overflow: hidden;
} }
.comment-navigation .nav-previous, .comment-navigation .nav-previous,
.paging-navigation .nav-previous, .paging-navigation .nav-previous,
.post-navigation .nav-previous { .post-navigation .nav-previous {
float: left; float: left;
width: 50%; width: 50%;
} }
.comment-navigation .nav-next, .comment-navigation .nav-next,
.paging-navigation .nav-next, .paging-navigation .nav-next,
.post-navigation .nav-next { .post-navigation .nav-next {
float: right; float: right;
text-align: right; text-align: right;
width: 50%; width: 50%;
} }
/* ----------------------------- */ /* ----------------------------- */
@ -49,23 +49,23 @@ Description: Reset styles for WordPress usage of KNACSS
// class in img elements // class in img elements
.alignnone { .alignnone {
margin: .25em 1.5em 1.5em 0; margin: .25em 1.5em 1.5em 0;
} }
.aligncenter { .aligncenter {
clear: both; clear: both;
display: block; display: block;
margin: 1.5em auto; margin: 1.5em auto;
} }
.alignleft { .alignleft {
float: left; float: left;
margin: 0 1.5em .25em 0; margin: 0 1.5em .25em 0;
} }
.alignright { .alignright {
float: right; float: right;
margin: 0 0 .25em 1.5em; margin: 0 0 .25em 1.5em;
} }
/* ----------------------------- */ /* ----------------------------- */
@ -74,12 +74,12 @@ Description: Reset styles for WordPress usage of KNACSS
.entry-content, .entry-content,
.comment-content { .comment-content {
clear: both; clear: both;
&::after, &::before { &::after, &::before {
content: ""; content: "";
display: table; display: table;
} }
} }
/* ----------------------------- */ /* ----------------------------- */
@ -87,12 +87,12 @@ Description: Reset styles for WordPress usage of KNACSS
/* ----------------------------- */ /* ----------------------------- */
.widget + .widget { .widget + .widget {
margin: 1.5em 0 0; margin: 1.5em 0 0;
} }
// usage example: // usage example:
.widget select { .widget select {
max-width: 100%; max-width: 100%;
} }
/* ----------------------------- */ /* ----------------------------- */
@ -111,56 +111,56 @@ Description: Reset styles for WordPress usage of KNACSS
// format of post // format of post
.format- { .format- {
&aside { &aside {
} }
&gallery { &gallery {
} }
&link { &link {
} }
&image { &image {
} }
&quote { &quote {
} }
&status { &status {
} }
&video { &video {
} }
&chat { &chat {
} }
} }
// class for a tag // class for a tag
.tag- { .tag- {
&name-of-tag { &name-of-tag {
} }
} }
// class for categorie // class for categorie
.category- { .category- {
&name-of-category { &name-of-category {
} }
} }
/* === 5.2 Pages - body_class === */ /* === 5.2 Pages - body_class === */
// front page // front page
.home { .home {
// if display posts // if display posts
&.blog { &.blog {
} }
// if static page // if static page
&.page { &.page {
} }
} }
// page displays posts // page displays posts
.blog { .blog {
// if is frontpage // if is frontpage
&.home { &.home {
} }
// if static page // if static page
&.page { &.page {
} }
} }
// simple page // simple page
@ -177,12 +177,12 @@ Description: Reset styles for WordPress usage of KNACSS
// page of search // page of search
.search { .search {
// if has results // if has results
.search-results { .search-results {
} }
// if has no results // if has no results
.search-no-results { .search-no-results {
} }
} }
// page 404 // page 404
@ -201,18 +201,18 @@ Description: Reset styles for WordPress usage of KNACSS
/* === 5.3 Posts and Pages - Contents === */ /* === 5.3 Posts and Pages - Contents === */
.hentry { .hentry {
margin: 0 0 1.5em; margin: 0 0 1.5em;
} }
.page-content, .page-content,
.entry-content, .entry-content,
.entry-summary { .entry-summary {
margin: 1.5em 0 0; margin: 1.5em 0 0;
} }
.page-links { .page-links {
clear: both; clear: both;
margin: 0 0 1.5em; margin: 0 0 1.5em;
} }
/* ----------------------------- */ /* ----------------------------- */
@ -220,11 +220,11 @@ Description: Reset styles for WordPress usage of KNACSS
/* ----------------------------- */ /* ----------------------------- */
.comment-content a { .comment-content a {
word-wrap: break-word; word-wrap: break-word;
} }
.bypostauthor { .bypostauthor {
// some make-the-logo-bigger styles // some make-the-logo-bigger styles
} }
/* ----------------------------- */ /* ----------------------------- */
@ -232,10 +232,10 @@ Description: Reset styles for WordPress usage of KNACSS
/* ----------------------------- */ /* ----------------------------- */
img.wp-smiley { img.wp-smiley {
margin-bottom: 0; margin-bottom: 0;
margin-top: 0; margin-top: 0;
padding: 0; padding: 0;
border: none; border: none;
} }
/* ----------------------------- */ /* ----------------------------- */
@ -243,18 +243,18 @@ img.wp-smiley {
/* ----------------------------- */ /* ----------------------------- */
.wp-caption { .wp-caption {
max-width: 100%; max-width: 100%;
margin-bottom: 1.5em; margin-bottom: 1.5em;
} }
.wp-caption img { .wp-caption img {
display: block; display: block;
margin: 0 auto; margin: 0 auto;
} }
.wp-caption-text { .wp-caption-text {
margin: 1em 0; margin: 1em 0;
text-align: center; text-align: center;
} }
/* ----------------------------- */ /* ----------------------------- */
@ -262,41 +262,41 @@ img.wp-smiley {
/* ----------------------------- */ /* ----------------------------- */
.gallery { .gallery {
margin-bottom: 1.5em; margin-bottom: 1.5em;
} }
.gallery-item { .gallery-item {
display: inline-block; display: inline-block;
width: 100%; width: 100%;
text-align: center; text-align: center;
vertical-align: top; vertical-align: top;
.gallery-columns-2 & { .gallery-columns-2 & {
max-width: 50%; max-width: 50%;
} }
.gallery-columns-3 & { .gallery-columns-3 & {
max-width: 33.33%; max-width: 33.33%;
} }
.gallery-columns-4 & { .gallery-columns-4 & {
max-width: 25%; max-width: 25%;
} }
.gallery-columns-5 & { .gallery-columns-5 & {
max-width: 20%; max-width: 20%;
} }
.gallery-columns-6 & { .gallery-columns-6 & {
max-width: 16.66%; max-width: 16.66%;
} }
.gallery-columns-7 & { .gallery-columns-7 & {
max-width: 14.28%; max-width: 14.28%;
} }
.gallery-columns-8 & { .gallery-columns-8 & {
max-width: 12.5%; max-width: 12.5%;
} }
.gallery-columns-9 & { .gallery-columns-9 & {
max-width: 11.11%; max-width: 11.11%;
} }
} }
.gallery-caption { .gallery-caption {
display: block; display: block;
} }