2015-03-05 09:44:20 +01:00
|
|
|
/* ----------------------------- */
|
2016-05-20 08:58:56 +02:00
|
|
|
/* ==Global Layout */
|
2015-03-05 09:44:20 +01:00
|
|
|
/* ----------------------------- */
|
|
|
|
|
|
|
|
/* module, gains superpower "BFC" Block Formating Context */
|
2015-12-12 11:20:29 +01:00
|
|
|
.mod,
|
|
|
|
.bfc {
|
2015-07-01 13:47:48 +02:00
|
|
|
overflow: hidden;
|
2013-09-12 11:59:14 +02:00
|
|
|
}
|
2014-05-07 10:45:47 +02:00
|
|
|
|
2015-03-05 09:44:20 +01:00
|
|
|
/* blocks that needs to be placed under floats */
|
2015-07-02 09:19:33 +02:00
|
|
|
.clear,
|
2015-05-05 23:22:30 +02:00
|
|
|
.#{$kna-namespace}line,
|
|
|
|
.#{$kna-namespace}row {
|
2015-07-01 13:47:48 +02:00
|
|
|
clear: both;
|
2015-03-05 09:44:20 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
/* blocks that must contain floats */
|
2015-07-02 09:19:33 +02:00
|
|
|
.clearfix,
|
2015-05-05 23:22:30 +02:00
|
|
|
.#{$kna-namespace}line {
|
2015-07-01 13:47:48 +02:00
|
|
|
&::after {
|
|
|
|
content: "";
|
|
|
|
display: table;
|
|
|
|
clear: both;
|
|
|
|
border-collapse: collapse;
|
|
|
|
}
|
2015-03-05 09:44:20 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
/* simple blocks alignment */
|
2015-05-05 23:22:30 +02:00
|
|
|
.#{$kna-namespace}left {
|
2015-07-01 13:47:48 +02:00
|
|
|
margin-right: auto;
|
2015-03-05 09:44:20 +01:00
|
|
|
}
|
|
|
|
|
2015-05-05 23:22:30 +02:00
|
|
|
.#{$kna-namespace}right {
|
2015-07-01 13:47:48 +02:00
|
|
|
margin-left: auto;
|
2015-03-05 09:44:20 +01:00
|
|
|
}
|
|
|
|
|
2015-05-05 23:22:30 +02:00
|
|
|
.#{$kna-namespace}center {
|
2015-07-01 13:47:48 +02:00
|
|
|
margin-left: auto;
|
|
|
|
margin-right: auto;
|
2015-03-05 09:44:20 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
/* text and contents alignment */
|
2015-05-05 23:22:30 +02:00
|
|
|
.#{$kna-namespace}txtleft {
|
2015-07-01 13:47:48 +02:00
|
|
|
text-align: left;
|
2015-03-05 09:44:20 +01:00
|
|
|
}
|
|
|
|
|
2015-05-05 23:22:30 +02:00
|
|
|
.#{$kna-namespace}txtright {
|
2015-07-01 13:47:48 +02:00
|
|
|
text-align: right;
|
2015-03-05 09:44:20 +01:00
|
|
|
}
|
|
|
|
|
2015-05-05 23:22:30 +02:00
|
|
|
.#{$kna-namespace}txtcenter {
|
2015-07-01 13:47:48 +02:00
|
|
|
text-align: center;
|
2015-03-05 09:44:20 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
/* floating elements */
|
2015-05-05 23:22:30 +02:00
|
|
|
.#{$kna-namespace}fl {
|
2015-07-01 13:47:48 +02:00
|
|
|
float: left;
|
2015-03-05 09:44:20 +01:00
|
|
|
}
|
|
|
|
|
2015-05-05 23:22:30 +02:00
|
|
|
img.#{$kna-namespace}fl {
|
2015-07-01 13:47:48 +02:00
|
|
|
margin-right: $small-value;
|
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}fr {
|
2015-07-01 13:47:48 +02:00
|
|
|
float: right;
|
2015-03-05 09:44:20 +01:00
|
|
|
}
|
|
|
|
|
2015-05-05 23:22:30 +02:00
|
|
|
img.#{$kna-namespace}fr {
|
2015-07-01 13:47:48 +02:00
|
|
|
margin-left: $small-value;
|
2015-03-05 09:44:20 +01:00
|
|
|
}
|
|
|
|
|
2015-05-05 23:22:30 +02:00
|
|
|
img.#{$kna-namespace}fl,
|
|
|
|
img.#{$kna-namespace}fr {
|
2015-07-01 13:47:48 +02:00
|
|
|
margin-bottom: $tiny-value;
|
2015-03-05 09:44:20 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
/* table layout */
|
2015-05-05 23:22:30 +02:00
|
|
|
.#{$kna-namespace}row {
|
2015-07-01 13:47:48 +02:00
|
|
|
display: table;
|
|
|
|
table-layout: fixed;
|
|
|
|
width: 100%;
|
2015-03-05 09:44:20 +01:00
|
|
|
}
|
|
|
|
|
2015-05-05 23:22:30 +02:00
|
|
|
.#{$kna-namespace}row > *,
|
|
|
|
.#{$kna-namespace}col {
|
2015-07-01 13:47:48 +02:00
|
|
|
display: table-cell;
|
|
|
|
vertical-align: top;
|
2015-03-05 09:44:20 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
/* no table-cell for script tag when body is a .row */
|
|
|
|
body > script {
|
2015-07-01 13:47:48 +02:00
|
|
|
display: none !important;
|
2015-03-05 09:44:20 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
/* inline-block */
|
2015-05-05 23:22:30 +02:00
|
|
|
.#{$kna-namespace}inbl {
|
2015-07-01 13:47:48 +02:00
|
|
|
display: inline-block;
|
|
|
|
vertical-align: top;
|
2015-03-05 09:44:20 +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"] {
|
2015-07-01 13:47:48 +02:00
|
|
|
display : flex;
|
|
|
|
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-07-01 13:47:48 +02: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-07-01 13:47:48 +02:00
|
|
|
flex-direction: column;
|
2015-03-05 09:44:20 +01:00
|
|
|
}
|
|
|
|
|
2015-05-05 23:22:30 +02:00
|
|
|
.#{$kna-namespace}flex-item-fluid {
|
2015-07-01 13:47:48 +02:00
|
|
|
flex: 1;
|
2016-04-01 15:48:24 +02:00
|
|
|
min-width: 0;
|
2013-09-12 11:59:14 +02:00
|
|
|
}
|
2014-05-07 10:45:47 +02:00
|
|
|
|
2016-05-23 14:36:39 +02:00
|
|
|
.#{$kna-namespace}flex-item-first,
|
|
|
|
.#{$kna-namespace}grid-item-first {
|
2015-07-01 13:47:48 +02:00
|
|
|
order : -1;
|
2013-09-12 11:59:14 +02:00
|
|
|
}
|
2014-05-07 10:45:47 +02:00
|
|
|
|
2016-05-23 14:36:39 +02:00
|
|
|
.#{$kna-namespace}flex-item-medium,
|
|
|
|
.#{$kna-namespace}grid-item-medium {
|
2015-07-01 13:47:48 +02:00
|
|
|
order : 0;
|
2013-09-12 11:59:14 +02:00
|
|
|
}
|
2014-05-07 10:45:47 +02:00
|
|
|
|
2016-05-23 14:36:39 +02:00
|
|
|
.#{$kna-namespace}flex-item-last,
|
|
|
|
.#{$kna-namespace}grid-item-last {
|
2015-07-01 13:47:48 +02:00
|
|
|
order : 1;
|
2014-05-07 10:45:47 +02:00
|
|
|
}
|
2015-03-07 14:36:58 +01:00
|
|
|
|
2016-05-23 14:36:39 +02:00
|
|
|
.#{$kna-namespace}flex-item-center,
|
|
|
|
.#{$kna-namespace}grid-item-center {
|
2015-07-01 13:47:48 +02:00
|
|
|
margin: auto;
|
2015-03-07 14:36:58 +01:00
|
|
|
}
|