2015-03-05 09:44:20 +01:00
|
|
|
/* ----------------------------- */
|
|
|
|
/* ==layout and modules */
|
|
|
|
/* ----------------------------- */
|
|
|
|
|
|
|
|
/* module, gains superpower "BFC" Block Formating Context */
|
2015-05-05 23:22:30 +02:00
|
|
|
.@{kna-namespace}mod {
|
2015-03-05 09:44:20 +01:00
|
|
|
overflow: hidden;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* blocks that needs to be placed under floats */
|
2015-05-05 23:22:30 +02:00
|
|
|
.@{kna-namespace}clear,
|
|
|
|
.@{kna-namespace}line,
|
|
|
|
.@{kna-namespace}row {
|
2015-03-05 09:44:20 +01:00
|
|
|
clear: both;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* blocks that must contain floats */
|
2015-05-05 23:22:30 +02:00
|
|
|
.@{kna-namespace}clearfix,
|
|
|
|
.@{kna-namespace}line {
|
2015-03-30 09:34:07 +02:00
|
|
|
&::after {
|
2015-03-05 09:44:20 +01:00
|
|
|
content: "";
|
|
|
|
display: table;
|
|
|
|
clear: both;
|
|
|
|
border-collapse: collapse;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/* simple blocks alignment */
|
2015-05-05 23:22:30 +02:00
|
|
|
.@{kna-namespace}left {
|
2015-03-05 09:44:20 +01:00
|
|
|
margin-right: auto;
|
|
|
|
}
|
|
|
|
|
2015-05-05 23:22:30 +02:00
|
|
|
.@{kna-namespace}right {
|
2015-03-05 09:44:20 +01:00
|
|
|
margin-left: auto;
|
|
|
|
}
|
|
|
|
|
2015-05-05 23:22:30 +02:00
|
|
|
.@{kna-namespace}center {
|
2015-03-05 09:44:20 +01:00
|
|
|
margin-left: auto;
|
|
|
|
margin-right: auto;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* text and contents alignment */
|
2015-05-05 23:22:30 +02:00
|
|
|
.@{kna-namespace}txtleft {
|
2015-03-05 09:44:20 +01:00
|
|
|
text-align: left;
|
|
|
|
}
|
|
|
|
|
2015-05-05 23:22:30 +02:00
|
|
|
.@{kna-namespace}txtright {
|
2015-03-05 09:44:20 +01:00
|
|
|
text-align: right;
|
|
|
|
}
|
|
|
|
|
2015-05-05 23:22:30 +02:00
|
|
|
.@{kna-namespace}txtcenter {
|
2015-03-05 09:44:20 +01:00
|
|
|
text-align: center;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* floating elements */
|
2015-05-05 23:22:30 +02:00
|
|
|
.@{kna-namespace}fl {
|
2015-03-05 09:44:20 +01:00
|
|
|
float: left;
|
|
|
|
}
|
|
|
|
|
2015-05-05 23:22:30 +02:00
|
|
|
img.@{kna-namespace}fl {
|
2015-03-05 09:44:20 +01:00
|
|
|
margin-right: @small-value;
|
|
|
|
}
|
|
|
|
|
2015-05-05 23:22:30 +02:00
|
|
|
.@{kna-namespace}fr {
|
2015-03-05 09:44:20 +01:00
|
|
|
float: right;
|
|
|
|
}
|
|
|
|
|
2015-05-05 23:22:30 +02:00
|
|
|
img.@{kna-namespace}fr {
|
2015-03-05 09:44:20 +01:00
|
|
|
margin-left: @small-value;
|
|
|
|
}
|
|
|
|
|
2015-05-05 23:22:30 +02:00
|
|
|
img.@{kna-namespace}fl,
|
|
|
|
img.@{kna-namespace}fr {
|
2015-03-05 09:44:20 +01:00
|
|
|
margin-bottom: @tiny-value;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* table layout */
|
2015-05-05 23:22:30 +02:00
|
|
|
.@{kna-namespace}row {
|
2015-03-05 09:44:20 +01:00
|
|
|
display: table;
|
|
|
|
table-layout: fixed;
|
|
|
|
width: 100%;
|
|
|
|
}
|
|
|
|
|
2015-05-05 23:22:30 +02:00
|
|
|
.@{kna-namespace}row > *,
|
|
|
|
.@{kna-namespace}col {
|
2015-03-05 09:44:20 +01:00
|
|
|
display: table-cell;
|
|
|
|
vertical-align: top;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* no table-cell for script tag when body is a .row */
|
|
|
|
body > script {
|
|
|
|
display: none !important;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* inline-block */
|
2015-05-05 23:22:30 +02:00
|
|
|
.@{kna-namespace}inbl {
|
2015-03-05 09:44:20 +01:00
|
|
|
display: inline-block;
|
|
|
|
vertical-align: top;
|
|
|
|
}
|
|
|
|
|
2015-03-05 09:30:55 +01:00
|
|
|
/* flexbox layout
|
|
|
|
http://www.alsacreations.com/tuto/lire/1493-css3-flexbox-layout-module.html
|
|
|
|
*/
|
|
|
|
|
2015-05-05 23:22:30 +02:00
|
|
|
[class*="@{kna-namespace}flex-container"] {
|
2013-09-12 11:59:14 +02:00
|
|
|
display : flex;
|
2015-03-05 09:44:20 +01:00
|
|
|
flex-wrap: wrap;
|
2015-04-13 16:10:55 +02:00
|
|
|
}
|
|
|
|
|
2015-05-05 23:22:30 +02:00
|
|
|
.@{kna-namespace}flex-container-h {
|
2015-03-06 16:22:20 +01:00
|
|
|
flex-direction: row;
|
2013-09-12 11:59:14 +02:00
|
|
|
}
|
2014-05-07 10:45:47 +02:00
|
|
|
|
2015-05-05 23:22:30 +02:00
|
|
|
.@{kna-namespace}flex-container-v {
|
2015-03-06 16:22:20 +01:00
|
|
|
flex-direction: column;
|
2013-09-12 11:59:14 +02:00
|
|
|
}
|
2014-05-07 10:45:47 +02:00
|
|
|
|
2015-05-05 23:22:30 +02:00
|
|
|
.@{kna-namespace}flex-item-fluid {
|
2013-09-12 11:59:14 +02:00
|
|
|
flex: 1;
|
|
|
|
}
|
2014-05-07 10:45:47 +02:00
|
|
|
|
2015-05-05 23:22:30 +02:00
|
|
|
.@{kna-namespace}flex-item-first {
|
2013-09-12 11:59:14 +02:00
|
|
|
order : -1;
|
|
|
|
}
|
2014-05-07 10:45:47 +02:00
|
|
|
|
2015-05-05 23:22:30 +02:00
|
|
|
.@{kna-namespace}flex-item-medium {
|
2015-03-05 09:44:20 +01:00
|
|
|
order : 0;
|
2013-09-12 11:59:14 +02:00
|
|
|
}
|
2014-05-07 10:45:47 +02:00
|
|
|
|
2015-05-05 23:22:30 +02:00
|
|
|
.@{kna-namespace}flex-item-last {
|
2015-03-05 09:44:20 +01:00
|
|
|
order : 1;
|
2014-05-07 10:45:47 +02:00
|
|
|
}
|
2015-03-07 14:36:58 +01:00
|
|
|
|
2015-05-05 23:22:30 +02:00
|
|
|
.@{kna-namespace}flex-item-center {
|
2015-03-07 14:36:58 +01:00
|
|
|
margin: auto;
|
|
|
|
}
|