Added namespace var Sass + Less version

This commit is contained in:
magsout 2015-05-05 23:22:30 +02:00
parent 457b3a8772
commit b1c96f4373
25 changed files with 600 additions and 591 deletions

View File

@ -1,6 +1,6 @@
{ {
"name": "KNACSS", "name": "KNACSS",
"version": "4.1.6", "version": "4.2.0",
"homepage": "http://www.knacss.com/", "homepage": "http://www.knacss.com/",
"authors": [ "authors": [
"Raphaël GOETTER, Alsacreations" "Raphaël GOETTER, Alsacreations"

View File

@ -1,3 +1,7 @@
# changelog v4.2.0 (05 mai 2015)
- possibilité d'ajouter un namespace à l'ensemble des classes (configurable dans le fichier config de Less et Sass)
# changelog v4.1.6 (17 avril 2015) # changelog v4.1.6 (17 avril 2015)
- mise en commentaire des sauts de page print avant un h1 - mise en commentaire des sauts de page print avant un h1
@ -14,7 +18,7 @@
Les classes relatives à flexbox ont été renommées pour ne pas entrer en conflit avec des outils tels que Modernizer (qui ajoutent aux-aussi ce genre de classes). Les classes relatives à flexbox ont été renommées pour ne pas entrer en conflit avec des outils tels que Modernizer (qui ajoutent aux-aussi ce genre de classes).
Anciens noms : Anciens noms :
``` ```
.flexbox, .flexbox-h .flexbox, .flexbox-h
@ -24,7 +28,7 @@ Anciens noms :
.flexitem-first, .flexitem-medium, .flexitem-last .flexitem-first, .flexitem-medium, .flexitem-last
``` ```
Nouveaux noms : Nouveaux noms :
``` ```
.flex-container, .flex-container-h .flex-container, .flex-container-h
@ -49,7 +53,7 @@ Nouveaux noms :
* documentation en français * documentation en français
* PDF pense-bête mis à jour : http://knacss.com/KNACSS-cheatsheet.pdf * PDF pense-bête mis à jour : http://knacss.com/KNACSS-cheatsheet.pdf
* gros ménage de printemps (gros nettoyage de tous les espaces et tabulations disgrâcieux) * gros ménage de printemps (gros nettoyage de tous les espaces et tabulations disgrâcieux)
* dans la section "quick print reset", ajout des classes .p-like, h1-like, h2-like etc. * dans la section "quick print reset", ajout des classes .p-like, h1-like, h2-like etc.
* mise en commun globale de tous les styles p avec .p-like (h1 et h1-like, etc.). * mise en commun globale de tous les styles p avec .p-like (h1 et h1-like, etc.).
* déplacement et commentaire sur la règle body > script * déplacement et commentaire sur la règle body > script

View File

@ -55,3 +55,6 @@
@number: 4; // number of equal columns @number: 4; // number of equal columns
@left: 2; // left side of uneven columns @left: 2; // left side of uneven columns
@right: 1; // right side of uneven columns @right: 1; // right side of uneven columns
//namespace (default : empty)
@kna-namespace:~"";

View File

@ -16,7 +16,7 @@ ol {
padding-left: 2em; padding-left: 2em;
} }
ul.unstyled { ul.@{kna-namespace}unstyled {
list-style: none; list-style: none;
} }
@ -40,24 +40,24 @@ 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;
@ -73,7 +73,7 @@ a {
/* font-sizing for content */ /* font-sizing for content */
p, p,
.p-like, .@{kna-namespace}p-like,
ul, ul,
ol, ol,
dl, dl,
@ -92,55 +92,55 @@ figure {
} }
h1, h1,
.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,
.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,
.h3-like { .@{kna-namespace}h3-like {
font-size: @h3-size; font-size: @h3-size;
} }
h4, h4,
.h4-like { .@{kna-namespace}h4-like {
font-size: @h4-size; font-size: @h4-size;
} }
h5, h5,
.h5-like { .@{kna-namespace}h5-like {
font-size: @h5-size; font-size: @h5-size;
} }
h6, h6,
.h6-like { .@{kna-namespace}h6-like {
font-size: @h6-size; font-size: @h6-size;
} }
/* alternate font-sizing */ /* alternate font-sizing */
.smaller { .@{kna-namespace}smaller {
font-size: 0.6em; font-size: 0.6em;
} }
.small { .@{kna-namespace}small {
font-size: 0.8em; font-size: 0.8em;
} }
.big { .@{kna-namespace}big {
font-size: 1.2em; font-size: 1.2em;
} }
.bigger { .@{kna-namespace}bigger {
font-size: 1.5em; font-size: 1.5em;
} }
.biggest { .@{kna-namespace}biggest {
font-size: 2em; font-size: 2em;
} }
@ -156,7 +156,7 @@ kbd {
} }
em, em,
.italic, .@{kna-namespace}italic,
address, address,
cite, cite,
i, i,
@ -175,7 +175,7 @@ sup {
/* ----------------------------- */ /* ----------------------------- */
/* 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 */
.visually-hidden { .@{kna-namespace}visually-hidden {
position: absolute !important; position: absolute !important;
border: 0 !important; border: 0 !important;
height: 1px !important; height: 1px !important;
@ -186,13 +186,13 @@ sup {
} }
@media (max-width: @small-screen) { @media (max-width: @small-screen) {
.no-small-screen { .@{kna-namespace}no-small-screen {
display: none; display: none;
} }
} }
@media (min-width: @large-screen) { @media (min-width: @large-screen) {
.no-large-screen { .@{kna-namespace}no-large-screen {
display: none; display: none;
} }
} }
@ -203,24 +203,24 @@ sup {
/* avoid top margins on first content element */ /* avoid top margins on first content element */
p, p,
.p-like, .@{kna-namespace}p-like,
ul, ul,
ol, ol,
dl, dl,
blockquote, blockquote,
pre, pre,
h1, h1,
.h1-like, .@{kna-namespace}h1-like,
h2, h2,
.h2-like, .@{kna-namespace}h2-like,
h3, h3,
.h3-like, .@{kna-namespace}h3-like,
h4, h4,
.h4-like, .@{kna-namespace}h4-like,
h5, h5,
.h5-like, .@{kna-namespace}h5-like,
h6, h6,
.h6-like { .@{kna-namespace}h6-like {
&:first-child { &:first-child {
margin-top: 0; margin-top: 0;
} }
@ -228,7 +228,7 @@ h6,
/* avoid margins on nested elements */ /* avoid margins on nested elements */
li p, li p,
li .p-like, li .@{kna-namespace}p-like,
li ul, li ul,
li ol { li ol {
margin-top: 0; margin-top: 0;
@ -253,4 +253,3 @@ svg {
table { table {
margin-bottom: @medium-value; margin-bottom: @medium-value;
} }

View File

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

View File

@ -17,7 +17,7 @@
// left = left ratio column (default = 2) / right = right ratio column (default = 1) // left = left ratio column (default = 2) / right = right ratio column (default = 1)
// example : .grid-perso { .uneven-grid(2, 1); } // example : .grid-perso { .uneven-grid(2, 1); }
[class*="grid-"] { [class*="@{kna-namespace}grid-"] {
display: flex; display: flex;
flex-direction: row; flex-direction: row;
flex-wrap: wrap; flex-wrap: wrap;
@ -25,7 +25,7 @@
margin-left: -@gutter; margin-left: -@gutter;
} }
[class*="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})'; width: ~'calc(100% * 1 / @{number} - @{gutter})';
@ -34,18 +34,18 @@
// 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})'; width: ~'calc(100% * 1 / @{number} - @{gutter})';
} }
& > .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})'; width: ~'calc(100% * 1 / 2 - @{gutter})';
} }
& > .flex-item-double { & > .@{kna-namespace}flex-item-double {
width: ~'calc(100% - @{gutter})'; width: ~'calc(100% - @{gutter})';
} }
} }
@ -53,7 +53,7 @@
& > * { & > * {
width: ~'calc(100% - @{gutter})'; width: ~'calc(100% - @{gutter})';
} }
& > .flex-item-double { & > .@{kna-namespace}flex-item-double {
width: ~'calc(100% - @{gutter})'; width: ~'calc(100% - @{gutter})';
} }
} }
@ -61,45 +61,45 @@
// Examples : will be compiled in CSS // Examples : will be compiled in CSS
.grid-2 { .@{kna-namespace}grid-2 {
.grid(2); .grid(2);
} }
.grid-3 { .@{kna-namespace}grid-3 {
.grid(3); .grid(3);
} }
.grid-4 { .@{kna-namespace}grid-4 {
.grid(4); .grid(4);
} }
.grid-5 { .@{kna-namespace}grid-5 {
.grid(5); .grid(5);
} }
.grid-6 { .@{kna-namespace}grid-6 {
.grid(6); .grid(6);
} }
.grid-7 { .@{kna-namespace}grid-7 {
.grid(7); .grid(7);
} }
.grid-8 { .@{kna-namespace}grid-8 {
.grid(8); .grid(8);
} }
.grid-10 { .@{kna-namespace}grid-10 {
.grid(10); .grid(10);
} }
.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})';
@ -118,34 +118,34 @@
// Examples : will be compiled in CSS // Examples : will be compiled in CSS
.grid-2-1 { .@{kna-namespace}grid-2-1 {
.uneven-grid(2,1); .uneven-grid(2,1);
} }
.grid-1-2 { .@{kna-namespace}grid-1-2 {
.uneven-grid(1,2); .uneven-grid(1,2);
} }
.grid-3-1 { .@{kna-namespace}grid-3-1 {
.uneven-grid(3,1); .uneven-grid(3,1);
} }
.grid-1-3 { .@{kna-namespace}grid-1-3 {
.uneven-grid(1,3); .uneven-grid(1,3);
} }
.grid-3-2 { .@{kna-namespace}grid-3-2 {
.uneven-grid(3,2); .uneven-grid(3,2);
} }
.grid-2-3 { .@{kna-namespace}grid-2-3 {
.uneven-grid(2,3); .uneven-grid(2,3);
} }
.grid-4-1 { .@{kna-namespace}grid-4-1 {
.uneven-grid(4,1); .uneven-grid(4,1);
} }
.grid-1-4 { .@{kna-namespace}grid-1-4 {
.uneven-grid(1,4); .uneven-grid(1,4);
} }

View File

@ -3,7 +3,7 @@
/* ----------------------------- */ /* ----------------------------- */
table, table,
.table { .@{kna-namespace}table {
width: 100%; width: 100%;
max-width : 100%; max-width : 100%;
table-layout: fixed; table-layout: fixed;
@ -12,12 +12,12 @@ table,
border: 1px solid #ccc; border: 1px solid #ccc;
} }
.table { .@{kna-namespace}table {
display: table; display: table;
} }
table#recaptcha_table, table#@{kna-namespace}recaptcha_table,
table.table-auto { table.@{kna-namespace}table-auto {
table-layout:auto; table-layout:auto;
} }

View File

@ -7,7 +7,7 @@
*/ */
/* buttons */ /* buttons */
.btn { .@{kna-namespace}btn {
display: inline-block; display: inline-block;
} }
@ -21,7 +21,7 @@ input,
button, button,
select, select,
label, label,
.btn { .@{kna-namespace}btn {
vertical-align: middle; vertical-align: middle;
font-family: inherit; font-family: inherit;
font-size: inherit; font-size: inherit;
@ -74,7 +74,7 @@ textarea:-moz-placeholder {
color: #777; color: #777;
} }
.btn:focus, .@{kna-namespace}btn:focus,
input[type="button"]:focus, input[type="button"]:focus,
button:focus { button:focus {
outline: 0; outline: 0;
@ -86,7 +86,7 @@ button:focus {
} }
/* unstyled forms */ /* unstyled forms */
.unstyled { .@{kna-namespace}unstyled {
button&, button&,
input[type="button"]&, input[type="button"]&,
input[type="submit"]&, input[type="submit"]&,

View File

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

View File

@ -17,58 +17,58 @@
@media (min-width: (@medium-screen + 1)) { @media (min-width: (@medium-screen + 1)) {
/* layouts for large screens */ /* layouts for large screens */
.large-hidden { .@{kna-namespace}large-hidden {
display: none !important; display: none !important;
} }
.large-visible { .@{kna-namespace}large-visible {
display: block !important; display: block !important;
} }
.large-no-float { .@{kna-namespace}large-no-float {
float: none; float: none;
} }
.large-inbl { .@{kna-namespace}large-inbl {
display: inline-block; display: inline-block;
float: none; float: none;
vertical-align: top; vertical-align: top;
} }
.large-row { .@{kna-namespace}large-row {
display: table; display: table;
table-layout: fixed; table-layout: fixed;
width: 100% !important; width: 100% !important;
} }
.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 */
.large-w25 { .@{kna-namespace}large-w25 {
width: 25% !important; width: 25% !important;
} }
.large-w33 { .@{kna-namespace}large-w33 {
width: 33.3333% !important; width: 33.3333% !important;
} }
.large-w50 { .@{kna-namespace}large-w50 {
width: 50% !important; width: 50% !important;
} }
.large-w66 { .@{kna-namespace}large-w66 {
width: 66.6666% !important; width: 66.6666% !important;
} }
.large-w75 { .@{kna-namespace}large-w75 {
width: 75% !important; width: 75% !important;
} }
.large-w100, .@{kna-namespace}large-w100,
.large-wauto { .@{kna-namespace}large-wauto {
display: block !important; display: block !important;
float: none !important; float: none !important;
clear: none !important; clear: none !important;
@ -79,7 +79,7 @@
} }
/* margins for large screens */ /* margins for large screens */
.large-man { .@{kna-namespace}large-man {
margin: 0 !important; margin: 0 !important;
} }
} }
@ -91,58 +91,58 @@
@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 */
.medium-hidden { .@{kna-namespace}medium-hidden {
display: none !important; display: none !important;
} }
.medium-visible { .@{kna-namespace}medium-visible {
display: block !important; display: block !important;
} }
.medium-no-float { .@{kna-namespace}medium-no-float {
float: none; float: none;
} }
.medium-inbl { .@{kna-namespace}medium-inbl {
display: inline-block; display: inline-block;
float: none; float: none;
vertical-align: top; vertical-align: top;
} }
.medium-row { .@{kna-namespace}medium-row {
display: table; display: table;
table-layout: fixed; table-layout: fixed;
width: 100% !important; width: 100% !important;
} }
.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 */
.medium-w25 { .@{kna-namespace}medium-w25 {
width: 25% !important; width: 25% !important;
} }
.medium-w33 { .@{kna-namespace}medium-w33 {
width: 33.3333% !important; width: 33.3333% !important;
} }
.medium-w50 { .@{kna-namespace}medium-w50 {
width: 50% !important; width: 50% !important;
} }
.medium-w66 { .@{kna-namespace}medium-w66 {
width: 66.6666% !important; width: 66.6666% !important;
} }
.medium-w75 { .@{kna-namespace}medium-w75 {
width: 75% !important; width: 75% !important;
} }
.medium-w100, .@{kna-namespace}medium-w100,
.medium-wauto { .@{kna-namespace}medium-wauto {
display: block !important; display: block !important;
float: none !important; float: none !important;
clear: none !important; clear: none !important;
@ -153,8 +153,8 @@
} }
/* margins for medium screens */ /* margins for medium screens */
.medium-man, .@{kna-namespace}medium-man,
.medium-ma0 { .@{kna-namespace}medium-ma0 {
margin: 0 !important; margin: 0 !important;
} }
} }
@ -166,68 +166,68 @@
@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 */
.w600p, .@{kna-namespace}w600p,
.w700p, .@{kna-namespace}w700p,
.w800p, .@{kna-namespace}w800p,
.w960p, .@{kna-namespace}w960p,
.mw960p { .@{kna-namespace}mw960p {
width: auto; width: auto;
float: none; float: none;
} }
/* layouts for small screens */ /* layouts for small screens */
.small-hidden { .@{kna-namespace}small-hidden {
display: none !important; display: none !important;
} }
.small-visible { .@{kna-namespace}small-visible {
display: block !important; display: block !important;
} }
.small-no-float { .@{kna-namespace}small-no-float {
float: none; float: none;
} }
.small-inbl { .@{kna-namespace}small-inbl {
display: inline-block; display: inline-block;
float: none; float: none;
vertical-align: top; vertical-align: top;
} }
.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;
} }
.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 */
.small-w25 { .@{kna-namespace}small-w25 {
width: 25% !important; width: 25% !important;
} }
.small-w33 { .@{kna-namespace}small-w33 {
width: 33.3333% !important; width: 33.3333% !important;
} }
.small-w50 { .@{kna-namespace}small-w50 {
width: 50% !important; width: 50% !important;
} }
.small-w66 { .@{kna-namespace}small-w66 {
width: 66.6666% !important; width: 66.6666% !important;
} }
.small-w75 { .@{kna-namespace}small-w75 {
width: 75% !important; width: 75% !important;
} }
.small-w100, .@{kna-namespace}small-w100,
.small-wauto { .@{kna-namespace}small-wauto {
display: block !important; display: block !important;
float: none !important; float: none !important;
clear: none !important; clear: none !important;
@ -238,13 +238,13 @@
} }
/* margins for small screens */ /* margins for small screens */
.small-man, .@{kna-namespace}small-man,
.small-ma0 { .@{kna-namespace}small-ma0 {
margin: 0 !important; margin: 0 !important;
} }
.small-pan, .@{kna-namespace}small-pan,
.small-pa0 { .@{kna-namespace}small-pa0 {
padding: 0 !important; padding: 0 !important;
} }
@ -257,8 +257,8 @@
@media (max-width: @tiny-screen) { @media (max-width: @tiny-screen) {
/* quick tiny resolution reset */ /* quick tiny resolution reset */
.mod, .@{kna-namespace}mod,
.col, .@{kna-namespace}col,
fieldset { fieldset {
display: block !important; display: block !important;
float: none !important; float: none !important;
@ -268,49 +268,49 @@
margin-right: 0 !important; margin-right: 0 !important;
border: 0; border: 0;
} }
.flex-container { .@{kna-namespace}flex-container {
flex-direction: column; flex-direction: column;
} }
.w300p, .@{kna-namespace}w300p,
.w400p, .@{kna-namespace}w400p,
.w500p { .@{kna-namespace}w500p {
width: auto; width: auto;
float: none; float: none;
} }
.row { .@{kna-namespace}row {
display: block !important; display: block !important;
width: 100% !important; width: 100% !important;
} }
/* layouts for tiny screens */ /* layouts for tiny screens */
.tiny-hidden { .@{kna-namespace}tiny-hidden {
display: none !important; display: none !important;
} }
.tiny-visible { .@{kna-namespace}tiny-visible {
display: block !important; display: block !important;
} }
.tiny-no-float { .@{kna-namespace}tiny-no-float {
float: none; float: none;
} }
.tiny-inbl { .@{kna-namespace}tiny-inbl {
display: inline-block; display: inline-block;
float: none; float: none;
vertical-align: top; vertical-align: top;
} }
.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;
} }
.tiny-col { .@{kna-namespace}tiny-col {
display: table-cell !important; display: table-cell !important;
vertical-align: top !important; vertical-align: top !important;
} }
@ -327,28 +327,28 @@
} }
/* widths for tiny screens */ /* widths for tiny screens */
.tiny-w25 { .@{kna-namespace}tiny-w25 {
width: 25% !important; width: 25% !important;
} }
.tiny-w33 { .@{kna-namespace}tiny-w33 {
width: 33.3333% !important; width: 33.3333% !important;
} }
.tiny-w50 { .@{kna-namespace}tiny-w50 {
width: 50% !important; width: 50% !important;
} }
.tiny-w66 { .@{kna-namespace}tiny-w66 {
width: 66.6666% !important; width: 66.6666% !important;
} }
.tiny-w75 { .@{kna-namespace}tiny-w75 {
width: 75% !important; width: 75% !important;
} }
.tiny-w100, .@{kna-namespace}tiny-w100,
.tiny-wauto { .@{kna-namespace}tiny-wauto {
display: block !important; display: block !important;
float: none !important; float: none !important;
clear: none !important; clear: none !important;
@ -359,13 +359,13 @@
} }
/* margins for tiny screens */ /* margins for tiny screens */
.tiny-man, .@{kna-namespace}tiny-man,
.tiny-ma0 { .@{kna-namespace}tiny-ma0 {
margin: 0 !important; margin: 0 !important;
} }
.tiny-pan, .@{kna-namespace}tiny-pan,
.tiny-pa0 { .@{kna-namespace}tiny-pa0 {
padding: 0 !important; padding: 0 !important;
} }

View File

@ -1,12 +1,12 @@
/* 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;
@ -15,79 +15,79 @@
background-color: #fff !important; background-color: #fff !important;
color: #333 !important; color: #333 !important;
} }
p, p,
.p-like, .@{kna-namespace}p-like,
h1, h1,
.h1-like, .@{kna-namespace}h1-like,
h2, h2,
.h2-like, .@{kna-namespace}h2-like,
h3, h3,
.h3-like, .@{kna-namespace}h3-like,
h4, h4,
.h4-like, .@{kna-namespace}h4-like,
h5, h5,
.h5-like, .@{kna-namespace}h5-like,
h6, h6,
.h6-like, .@{kna-namespace}h6-like,
blockquote, blockquote,
ul, ul,
ol { ol {
color: #000 !important; color: #000 !important;
margin: auto !important; margin: auto !important;
} }
.print { .@{kna-namespace}print {
display: block; display: block;
} }
.no-print { .@{kna-namespace}no-print {
display: none; display: none;
} }
/* no orphans, no widows */ /* no orphans, no widows */
p, p,
.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,
.h1-like, .@{kna-namespace}h1-like,
h2, h2,
.h2-like, .@{kna-namespace}h2-like,
h3, h3,
.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

@ -3,9 +3,9 @@
/* ----------------------------- */ /* ----------------------------- */
/* styling skip links */ /* styling skip links */
.skip-links { .@{kna-namespace}skip-links {
position: absolute; position: absolute;
& a { & a {
position: absolute; position: absolute;
overflow: hidden; overflow: hidden;
@ -14,7 +14,7 @@
background: black; background: black;
color: white; color: white;
text-decoration: none; text-decoration: none;
&:focus { &:focus {
position: static; position: static;
overflow: visible; overflow: visible;

View File

@ -77,12 +77,12 @@ q {
} }
q, q,
.q { .@{kna-namespace}q {
quotes: "“\00a0" "\00a0”"; quotes: "“\00a0" "\00a0”";
} }
q:lang(fr), q:lang(fr),
.q:lang(fr) { .@{kna-namespace}q:lang(fr) {
quotes: "«\00a0" "\00a0»"; quotes: "«\00a0" "\00a0»";
} }
@ -98,44 +98,44 @@ hr {
} }
/* alternate tables */ /* alternate tables */
.table-alternate { .@{kna-namespace}table-alternate {
border: 0; border: 0;
} }
.table-alternate tbody { .@{kna-namespace}table-alternate tbody {
border: 1px solid #ccc; border: 1px solid #ccc;
} }
.table-alternate thead tr > * + * { .@{kna-namespace}table-alternate thead tr > * + * {
border-left: 0; border-left: 0;
} }
.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 */
.table-alternate-v { .@{kna-namespace}table-alternate-v {
border: 0; border: 0;
border-right: 1px solid #ccc; border-right: 1px solid #ccc;
} }
.table-alternate-v tr > :first-child { .@{kna-namespace}table-alternate-v tr > :first-child {
border-bottom: 0; border-bottom: 0;
} }
.table-alternate-v tr > * + * { .@{kna-namespace}table-alternate-v tr > * + * {
border-top: 1px solid #ccc; border-top: 1px solid #ccc;
} }
/* striped tables */ /* striped tables */
.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 */
.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

@ -1,6 +1,6 @@
{ {
"name": "knacss", "name": "knacss",
"version": "4.1.6", "version": "4.2.0",
"homepage": "http://www.knacss.com/", "homepage": "http://www.knacss.com/",
"bugs": "https://github.com/raphaelgoetter/KNACSS/issues", "bugs": "https://github.com/raphaelgoetter/KNACSS/issues",
"author": [ "author": [

View File

@ -54,4 +54,7 @@ $ultra-large-screen : 1920px; // ultra large screens
$gutter: 1em; // gutter value for grid layouts. Unit can be: %, px, em, rem $gutter: 1em; // gutter value for grid layouts. Unit can be: %, px, em, rem
$number: 4; // number of equal columns $number: 4; // number of equal columns
$left: 2; // left side of uneven columns $left: 2; // left side of uneven columns
$right: 1; // right side of uneven columns $right: 1; // right side of uneven columns
//kna-namespace (default : null)
$kna-namespace: null !default;

View File

@ -16,7 +16,7 @@ ol {
padding-left: 2em; padding-left: 2em;
} }
ul.unstyled { ul.#{$kna-namespace}unstyled {
list-style: none; list-style: none;
} }
@ -40,24 +40,24 @@ 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;
@ -73,7 +73,7 @@ a {
/* font-sizing for content */ /* font-sizing for content */
p, p,
.p-like, .#{$kna-namespace}p-like,
ul, ul,
ol, ol,
dl, dl,
@ -91,50 +91,50 @@ figure {
line-height: $line-height; line-height: $line-height;
} }
h1, .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, .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, .h3-like { h3, .#{$kna-namespace}h3-like {
font-size: $h3-size; font-size: $h3-size;
} }
h4, .h4-like { h4, .#{$kna-namespace}h4-like {
font-size: $h4-size; font-size: $h4-size;
} }
h5, .h5-like { h5, .#{$kna-namespace}h5-like {
font-size: $h5-size; font-size: $h5-size;
} }
h6, .h6-like { h6, .#{$kna-namespace}h6-like {
font-size: $h6-size; font-size: $h6-size;
} }
/* alternate font-sizing */ /* alternate font-sizing */
.smaller { .#{$kna-namespace}smaller {
font-size: 0.6em; font-size: 0.6em;
} }
.small { .#{$kna-namespace}small {
font-size: 0.8em; font-size: 0.8em;
} }
.big { .#{$kna-namespace}big {
font-size: 1.2em; font-size: 1.2em;
} }
.bigger { .#{$kna-namespace}bigger {
font-size: 1.5em; font-size: 1.5em;
} }
.biggest { .#{$kna-namespace}biggest {
font-size: 2em; font-size: 2em;
} }
@ -150,7 +150,7 @@ kbd {
} }
em, em,
.italic, .#{$kna-namespace}italic,
address, address,
cite, cite,
i, i,
@ -169,7 +169,7 @@ sup {
/* ----------------------------- */ /* ----------------------------- */
/* hidden but not for assistance tools, Yahoo! method */ /* hidden but not for assistance tools, Yahoo! method */
.visually-hidden { .#{$kna-namespace}visually-hidden {
position: absolute !important; position: absolute !important;
border: 0 !important; border: 0 !important;
height: 1px !important; height: 1px !important;
@ -180,13 +180,13 @@ sup {
} }
@media (max-width: $small-screen) { @media (max-width: $small-screen) {
.no-small-screen { .#{$kna-namespace}no-small-screen {
display: none; display: none;
} }
} }
@media (min-width: $large-screen) { @media (min-width: $large-screen) {
.no-large-screen { .#{$kna-namespace}no-large-screen {
display: none; display: none;
} }
} }
@ -197,24 +197,24 @@ sup {
/* avoid top margins on first content element */ /* avoid top margins on first content element */
p, p,
.p-like, .#{$kna-namespace}p-like,
ul, ul,
ol, ol,
dl, dl,
blockquote, blockquote,
pre, pre,
h1, h1,
.h1-like, .#{$kna-namespace}h1-like,
h2, h2,
.h2-like, .#{$kna-namespace}h2-like,
h3, h3,
.h3-like, .#{$kna-namespace}h3-like,
h4, h4,
.h4-like, .#{$kna-namespace}h4-like,
h5, h5,
.h5-like, .#{$kna-namespace}h5-like,
h6, h6,
.h6-like { .#{$kna-namespace}h6-like {
&:first-child { &:first-child {
margin-top: 0; margin-top: 0;
} }
@ -222,7 +222,7 @@ h6,
/* avoid margins on nested elements */ /* avoid margins on nested elements */
li p, li p,
li .p-like, li .#{$kna-namespace}p-like,
li ul, li ul,
li ol { li ol {
margin-top: 0; margin-top: 0;
@ -245,5 +245,5 @@ svg {
/* margin-bottom on tables */ /* margin-bottom on tables */
table { table {
margin-bottom: $medium-value; margin-bottom: $medium-value;
} }

View File

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

View File

@ -17,7 +17,7 @@
// left = left ratio column (default = 2) / right = right ratio column (default = 1) / gutter (default = 1em) // left = left ratio column (default = 2) / right = right ratio column (default = 1) / gutter (default = 1em)
// example : .grid-perso { @include uneven-grid(2, 1, 10px); } // example : .grid-perso { @include uneven-grid(2, 1, 10px); }
[class*="grid-"] { [class*="#{$kna-namespace}grid-"] {
display: flex; display: flex;
flex-direction: row; flex-direction: row;
flex-wrap: wrap; flex-wrap: wrap;
@ -25,7 +25,7 @@
margin-left: -$gutter; margin-left: -$gutter;
} }
[class*="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}); width: calc(100% * 1 / #{$number} - #{$gutter});
@ -38,14 +38,14 @@
& > * { & > * {
width: calc(100% * 1 / #{$number} - #{$gutter}); width: calc(100% * 1 / #{$number} - #{$gutter});
} }
& > .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}); width: calc(100% * 1 / 2 - #{$gutter});
} }
& > .flex-item-double { & > .#{$kna-namespace}flex-item-double {
width: calc(100% - #{$gutter}); width: calc(100% - #{$gutter});
} }
} }
@ -53,7 +53,7 @@
& > * { & > * {
width: calc(100% - #{$gutter}); width: calc(100% - #{$gutter});
} }
& > .flex-item-double { & > .#{$kna-namespace}flex-item-double {
width: calc(100% - #{$gutter}); width: calc(100% - #{$gutter});
} }
} }
@ -61,39 +61,39 @@
// Examples : will be compiled in CSS // Examples : will be compiled in CSS
.grid-2 { .#{$kna-namespace}grid-2 {
@include grid(2); @include grid(2);
} }
.grid-3 { .#{$kna-namespace}grid-3 {
@include grid(3); @include grid(3);
} }
.grid-4 { .#{$kna-namespace}grid-4 {
@include grid(4); @include grid(4);
} }
.grid-5 { .#{$kna-namespace}grid-5 {
@include grid(5); @include grid(5);
} }
.grid-6 { .#{$kna-namespace}grid-6 {
@include grid(6); @include grid(6);
} }
.grid-7 { .#{$kna-namespace}grid-7 {
@include grid(7); @include grid(7);
} }
.grid-8 { .#{$kna-namespace}grid-8 {
@include grid(8); @include grid(8);
} }
.grid-10 { .#{$kna-namespace}grid-10 {
@include grid(10); @include grid(10);
} }
.grid-12 { .#{$kna-namespace}grid-12 {
@include grid(12); @include grid(12);
} }
@ -118,34 +118,34 @@
// Examples : will be compiled in CSS // Examples : will be compiled in CSS
.grid-2-1 { .#{$kna-namespace}grid-2-1 {
@include uneven-grid(2,1); @include uneven-grid(2,1);
} }
.grid-1-2 { .#{$kna-namespace}grid-1-2 {
@include uneven-grid(1,2); @include uneven-grid(1,2);
} }
.grid-3-1 { .#{$kna-namespace}grid-3-1 {
@include uneven-grid(3,1); @include uneven-grid(3,1);
} }
.grid-1-3 { .#{$kna-namespace}grid-1-3 {
@include uneven-grid(1,3); @include uneven-grid(1,3);
} }
.grid-3-2 { .#{$kna-namespace}grid-3-2 {
@include uneven-grid(3,2); @include uneven-grid(3,2);
} }
.grid-2-3 { .#{$kna-namespace}grid-2-3 {
@include uneven-grid(2,3); @include uneven-grid(2,3);
} }
.grid-4-1 { .#{$kna-namespace}grid-4-1 {
@include uneven-grid(4,1); @include uneven-grid(4,1);
} }
.grid-1-4 { .#{$kna-namespace}grid-1-4 {
@include uneven-grid(1,4); @include uneven-grid(1,4);
} }

View File

@ -3,7 +3,7 @@
/* ----------------------------- */ /* ----------------------------- */
table, table,
.table { .#{$kna-namespace}table {
width: 100%; width: 100%;
max-width : 100%; max-width : 100%;
table-layout: fixed; table-layout: fixed;
@ -12,12 +12,12 @@ table,
border: 1px solid #ccc; border: 1px solid #ccc;
} }
.table { .#{$kna-namespace}table {
display: table; display: table;
} }
table#recaptcha_table, table##{$kna-namespace}recaptcha_table,
table.table-auto { table.#{$kna-namespace}table-auto {
table-layout:auto; table-layout:auto;
} }

View File

@ -7,7 +7,7 @@
*/ */
/* buttons */ /* buttons */
.btn { .#{$kna-namespace}btn {
display: inline-block; display: inline-block;
} }
@ -21,7 +21,7 @@ input,
button, button,
select, select,
label, label,
.btn { .#{$kna-namespace}btn {
vertical-align: middle; vertical-align: middle;
font-family: inherit; font-family: inherit;
font-size: inherit; font-size: inherit;
@ -74,7 +74,7 @@ textarea:-moz-placeholder {
color: #777; color: #777;
} }
.btn:focus, .#{$kna-namespace}btn:focus,
input[type="button"]:focus, input[type="button"]:focus,
button:focus { button:focus {
outline: 0; outline: 0;
@ -87,10 +87,10 @@ button:focus {
/* unstyled forms */ /* unstyled forms */
button.unstyled, button.#{$kna-namespace}unstyled,
input[type="button"].unstyled, input[type="button"].#{$kna-namespace}unstyled,
input[type="submit"].unstyled, input[type="submit"].#{$kna-namespace}unstyled,
input[type="reset"].unstyled { input[type="reset"].#{$kna-namespace}unstyled {
padding: 0; padding: 0;
border: none; border: none;
line-height: 1; line-height: 1;

View File

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

View File

@ -17,56 +17,56 @@
@media (min-width: ($medium-screen + 1)) { @media (min-width: ($medium-screen + 1)) {
/* layouts for large screens */ /* layouts for large screens */
.large-hidden { .#{$kna-namespace}large-hidden {
display: none !important; display: none !important;
} }
.large-visible { .#{$kna-namespace}large-visible {
display: block !important; display: block !important;
} }
.large-no-float { .#{$kna-namespace}large-no-float {
float: none; float: none;
} }
.large-inbl { .#{$kna-namespace}large-inbl {
display: inline-block; display: inline-block;
float: none; float: none;
vertical-align: top; vertical-align: top;
} }
.large-row { .#{$kna-namespace}large-row {
display: table; display: table;
table-layout: fixed; table-layout: fixed;
width: 100% !important; width: 100% !important;
} }
.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 */
.large-w25 { .#{$kna-namespace}large-w25 {
width: 25% !important; width: 25% !important;
} }
.large-w33 { .#{$kna-namespace}large-w33 {
width: 33.3333% !important; width: 33.3333% !important;
} }
.large-w50 { .#{$kna-namespace}large-w50 {
width: 50% !important; width: 50% !important;
} }
.large-w66 { .#{$kna-namespace}large-w66 {
width: 66.6666% !important; width: 66.6666% !important;
} }
.large-w75 { .#{$kna-namespace}large-w75 {
width: 75% !important; width: 75% !important;
} }
.large-w100, .#{$kna-namespace}large-w100,
.large-wauto { .#{$kna-namespace}large-wauto {
display: block !important; display: block !important;
float: none !important; float: none !important;
clear: none !important; clear: none !important;
@ -77,8 +77,8 @@
} }
/* margins for large screens */ /* margins for large screens */
.large-man, .#{$kna-namespace}large-man,
.large-ma0 { .#{$kna-namespace}large-ma0 {
margin: 0 !important; margin: 0 !important;
} }
} }
@ -90,58 +90,58 @@
@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 */
.medium-hidden { .#{$kna-namespace}medium-hidden {
display: none !important; display: none !important;
} }
.medium-visible { .#{$kna-namespace}medium-visible {
display: block !important; display: block !important;
} }
.medium-no-float { .#{$kna-namespace}medium-no-float {
float: none; float: none;
} }
.medium-inbl { .#{$kna-namespace}medium-inbl {
display: inline-block; display: inline-block;
float: none; float: none;
vertical-align: top; vertical-align: top;
} }
.medium-row { .#{$kna-namespace}medium-row {
display: table; display: table;
table-layout: fixed; table-layout: fixed;
width: 100% !important; width: 100% !important;
} }
.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 */
.medium-w25 { .#{$kna-namespace}medium-w25 {
width: 25% !important; width: 25% !important;
} }
.medium-w33 { .#{$kna-namespace}medium-w33 {
width: 33.3333% !important; width: 33.3333% !important;
} }
.medium-w50 { .#{$kna-namespace}medium-w50 {
width: 50% !important; width: 50% !important;
} }
.medium-w66 { .#{$kna-namespace}medium-w66 {
width: 66.6666% !important; width: 66.6666% !important;
} }
.medium-w75 { .#{$kna-namespace}medium-w75 {
width: 75% !important; width: 75% !important;
} }
.medium-w100, .#{$kna-namespace}medium-w100,
.medium-wauto { .#{$kna-namespace}medium-wauto {
display: block !important; display: block !important;
float: none !important; float: none !important;
clear: none !important; clear: none !important;
@ -152,8 +152,8 @@
} }
/* margins for medium screens */ /* margins for medium screens */
.medium-man, .#{$kna-namespace}medium-man,
.medium-ma0 { .#{$kna-namespace}medium-ma0 {
margin: 0 !important; margin: 0 !important;
} }
} }
@ -165,68 +165,68 @@
@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 */
.w600p, .#{$kna-namespace}w600p,
.w700p, .#{$kna-namespace}w700p,
.w800p, .#{$kna-namespace}w800p,
.w960p, .#{$kna-namespace}w960p,
.mw960p { .#{$kna-namespace}mw960p {
width: auto; width: auto;
float: none; float: none;
} }
/* layouts for small screens */ /* layouts for small screens */
.small-hidden { .#{$kna-namespace}small-hidden {
display: none !important; display: none !important;
} }
.small-visible { .#{$kna-namespace}small-visible {
display: block !important; display: block !important;
} }
.small-no-float { .#{$kna-namespace}small-no-float {
float: none; float: none;
} }
.small-inbl { .#{$kna-namespace}small-inbl {
display: inline-block; display: inline-block;
float: none; float: none;
vertical-align: top; vertical-align: top;
} }
.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;
} }
.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 */
.small-w25 { .#{$kna-namespace}small-w25 {
width: 25% !important; width: 25% !important;
} }
.small-w33 { .#{$kna-namespace}small-w33 {
width: 33.3333% !important; width: 33.3333% !important;
} }
.small-w50 { .#{$kna-namespace}small-w50 {
width: 50% !important; width: 50% !important;
} }
.small-w66 { .#{$kna-namespace}small-w66 {
width: 66.6666% !important; width: 66.6666% !important;
} }
.small-w75 { .#{$kna-namespace}small-w75 {
width: 75% !important; width: 75% !important;
} }
.small-w100, .#{$kna-namespace}small-w100,
.small-wauto { .#{$kna-namespace}small-wauto {
display: block !important; display: block !important;
float: none !important; float: none !important;
clear: none !important; clear: none !important;
@ -237,13 +237,13 @@
} }
/* margins for small screens */ /* margins for small screens */
.small-man, .#{$kna-namespace}small-man,
.small-ma0 { .#{$kna-namespace}small-ma0 {
margin: 0 !important; margin: 0 !important;
} }
.small-pan, .#{$kna-namespace}small-pan,
.small-pa0 { .#{$kna-namespace}small-pa0 {
padding: 0 !important; padding: 0 !important;
} }
@ -256,8 +256,8 @@
@media (max-width: $tiny-screen) { @media (max-width: $tiny-screen) {
/* quick small resolution reset */ /* quick small resolution reset */
.mod, .#{$kna-namespace}mod,
.col, .#{$kna-namespace}col,
fieldset { fieldset {
display: block !important; display: block !important;
float: none !important; float: none !important;
@ -267,49 +267,49 @@
margin-right: 0 !important; margin-right: 0 !important;
border: 0; border: 0;
} }
.flex-container { .#{$kna-namespace}flex-container {
flex-direction: column; flex-direction: column;
} }
.w300p, .#{$kna-namespace}w300p,
.w400p, .#{$kna-namespace}w400p,
.w500p { .#{$kna-namespace}w500p {
width: auto; width: auto;
float: none; float: none;
} }
.row { .#{$kna-namespace}row {
display: block !important; display: block !important;
width: 100% !important; width: 100% !important;
} }
/* layouts for tiny screens */ /* layouts for tiny screens */
.tiny-hidden { .#{$kna-namespace}tiny-hidden {
display: none !important; display: none !important;
} }
.tiny-visible { .#{$kna-namespace}tiny-visible {
display: block !important; display: block !important;
} }
.tiny-no-float { .#{$kna-namespace}tiny-no-float {
float: none; float: none;
} }
.tiny-inbl { .#{$kna-namespace}tiny-inbl {
display: inline-block; display: inline-block;
float: none; float: none;
vertical-align: top; vertical-align: top;
} }
.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;
} }
.tiny-col { .#{$kna-namespace}tiny-col {
display: table-cell !important; display: table-cell !important;
vertical-align: top !important; vertical-align: top !important;
} }
@ -326,28 +326,28 @@
} }
/* widths for tiny screens */ /* widths for tiny screens */
.tiny-w25 { .#{$kna-namespace}tiny-w25 {
width: 25% !important; width: 25% !important;
} }
.tiny-w33 { .#{$kna-namespace}tiny-w33 {
width: 33.3333% !important; width: 33.3333% !important;
} }
.tiny-w50 { .#{$kna-namespace}tiny-w50 {
width: 50% !important; width: 50% !important;
} }
.tiny-w66 { .#{$kna-namespace}tiny-w66 {
width: 66.6666% !important; width: 66.6666% !important;
} }
.tiny-w75 { .#{$kna-namespace}tiny-w75 {
width: 75% !important; width: 75% !important;
} }
.tiny-w100, .#{$kna-namespace}tiny-w100,
.tiny-wauto { .#{$kna-namespace}tiny-wauto {
display: block !important; display: block !important;
float: none !important; float: none !important;
clear: none !important; clear: none !important;
@ -358,13 +358,13 @@
} }
/* margins for tiny screens */ /* margins for tiny screens */
.tiny-man, .#{$kna-namespace}tiny-man,
.tiny-ma0 { .#{$kna-namespace}tiny-ma0 {
margin: 0 !important; margin: 0 !important;
} }
.tiny-pan, .#{$kna-namespace}tiny-pan,
.tiny-pa0 { .#{$kna-namespace}tiny-pa0 {
padding: 0 !important; padding: 0 !important;
} }

View File

@ -5,7 +5,7 @@
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;
@ -14,79 +14,79 @@
background-color: #fff !important; background-color: #fff !important;
color: #333 !important; color: #333 !important;
} }
p, p,
.p-like, .#{$kna-namespace}p-like,
h1, h1,
.h1-like, .#{$kna-namespace}h1-like,
h2, h2,
.h2-like, .#{$kna-namespace}h2-like,
h3, h3,
.h3-like, .#{$kna-namespace}h3-like,
h4, h4,
.h4-like, .#{$kna-namespace}h4-like,
h5, h5,
.h5-like, .#{$kna-namespace}h5-like,
h6, h6,
.h6-like, .#{$kna-namespace}h6-like,
blockquote, blockquote,
ul, ul,
ol { ol {
color: #000 !important; color: #000 !important;
margin: auto !important; margin: auto !important;
} }
.print { .#{$kna-namespace}print {
display: block; display: block;
} }
.no-print { .#{$kna-namespace}no-print {
display: none; display: none;
} }
/* no orphans, no widows */ /* no orphans, no widows */
p, p,
.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,
.h1-like, .#{$kna-namespace}h1-like,
h2, h2,
.h2-like, .#{$kna-namespace}h2-like,
h3, h3,
.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

@ -3,9 +3,9 @@
/* ----------------------------- */ /* ----------------------------- */
/* styling skip links */ /* styling skip links */
.skip-links { .#{$kna-namespace}skip-links {
position: absolute; position: absolute;
& a { & a {
position: absolute; position: absolute;
overflow: hidden; overflow: hidden;
@ -26,13 +26,13 @@
// 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;

View File

@ -75,12 +75,12 @@ q {
} }
q, q,
.q { .#{$kna-namespace}q {
quotes: "“\00a0" "\00a0”"; quotes: "“\00a0" "\00a0”";
} }
q:lang(fr), q:lang(fr),
.q:lang(fr) { .#{$kna-namespace}q:lang(fr) {
quotes: "«\00a0" "\00a0»"; quotes: "«\00a0" "\00a0»";
} }
@ -96,44 +96,44 @@ hr {
} }
/* alternate tables */ /* alternate tables */
.table-alternate { .#{$kna-namespace}table-alternate {
border: 0; border: 0;
} }
.table-alternate tbody { .#{$kna-namespace}table-alternate tbody {
border: 1px solid #ccc; border: 1px solid #ccc;
} }
.table-alternate thead tr > * + * { .#{$kna-namespace}table-alternate thead tr > * + * {
border-left: 0; border-left: 0;
} }
.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 */
.table-alternate-v { .#{$kna-namespace}table-alternate-v {
border: 0; border: 0;
border-right: 1px solid #ccc; border-right: 1px solid #ccc;
} }
.table-alternate-v tr > :first-child { .#{$kna-namespace}table-alternate-v tr > :first-child {
border-bottom: 0; border-bottom: 0;
} }
.table-alternate-v tr > * + * { .#{$kna-namespace}table-alternate-v tr > * + * {
border-top: 1px solid #ccc; border-top: 1px solid #ccc;
} }
/* striped tables */ /* striped tables */
.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 */
.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);
} }