2015-03-05 09:44:20 +01:00
|
|
|
/* ----------------------------- */
|
2017-08-01 10:52:32 +02:00
|
|
|
/* ==Global Micro 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 */
|
2016-09-21 10:35:21 +02:00
|
|
|
.clear {
|
2015-07-01 13:47:48 +02:00
|
|
|
clear: both;
|
2015-03-05 09:44:20 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
/* blocks that must contain floats */
|
2016-09-21 10:35:21 +02:00
|
|
|
.clearfix {
|
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 */
|
2017-07-31 11:45:22 +02:00
|
|
|
.left {
|
2015-07-01 13:47:48 +02:00
|
|
|
margin-right: auto;
|
2015-03-05 09:44:20 +01:00
|
|
|
}
|
|
|
|
|
2017-07-31 11:45:22 +02:00
|
|
|
.right {
|
2015-07-01 13:47:48 +02:00
|
|
|
margin-left: auto;
|
2015-03-05 09:44:20 +01:00
|
|
|
}
|
|
|
|
|
2017-07-31 11:45:22 +02:00
|
|
|
.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 */
|
2017-07-31 11:45:22 +02:00
|
|
|
.txtleft {
|
2015-07-01 13:47:48 +02:00
|
|
|
text-align: left;
|
2015-03-05 09:44:20 +01:00
|
|
|
}
|
|
|
|
|
2017-07-31 11:45:22 +02:00
|
|
|
.txtright {
|
2015-07-01 13:47:48 +02:00
|
|
|
text-align: right;
|
2015-03-05 09:44:20 +01:00
|
|
|
}
|
|
|
|
|
2017-07-31 11:45:22 +02:00
|
|
|
.txtcenter {
|
2015-07-01 13:47:48 +02:00
|
|
|
text-align: center;
|
2015-03-05 09:44:20 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
/* floating elements */
|
2017-07-31 11:45:22 +02:00
|
|
|
.fl {
|
2015-07-01 13:47:48 +02:00
|
|
|
float: left;
|
2015-03-05 09:44:20 +01:00
|
|
|
}
|
|
|
|
|
2017-07-31 11:45:22 +02:00
|
|
|
img.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
|
|
|
|
2017-07-31 11:45:22 +02:00
|
|
|
.fr {
|
2015-07-01 13:47:48 +02:00
|
|
|
float: right;
|
2015-03-05 09:44:20 +01:00
|
|
|
}
|
|
|
|
|
2017-07-31 11:45:22 +02:00
|
|
|
img.fr {
|
2015-07-01 13:47:48 +02:00
|
|
|
margin-left: $small-value;
|
2015-03-05 09:44:20 +01:00
|
|
|
}
|
|
|
|
|
2017-07-31 11:45:22 +02:00
|
|
|
img.fl,
|
|
|
|
img.fr {
|
2015-07-01 13:47:48 +02:00
|
|
|
margin-bottom: $tiny-value;
|
2015-03-05 09:44:20 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
/* inline-block */
|
2017-07-31 11:45:22 +02:00
|
|
|
.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
|
|
|
|
*/
|
|
|
|
|
2017-07-31 11:45:22 +02:00
|
|
|
[class*="flex-container"],
|
|
|
|
.flex-container,
|
2017-06-21 10:50:33 +02:00
|
|
|
.d-flex {
|
2016-12-08 14:24:27 +01:00
|
|
|
display: flex;
|
2015-07-01 13:47:48 +02:00
|
|
|
flex-wrap: wrap;
|
2015-04-13 16:10:55 +02:00
|
|
|
}
|
|
|
|
|
2017-07-31 11:45:22 +02:00
|
|
|
.flex-container-h,
|
2017-06-21 10:50:33 +02:00
|
|
|
.flex-row {
|
2017-09-06 14:25:58 +02:00
|
|
|
display: flex;
|
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
|
|
|
|
2017-07-31 11:45:22 +02:00
|
|
|
.flex-container-v,
|
2017-06-21 10:50:33 +02:00
|
|
|
.flex-column {
|
2017-09-06 14:25:58 +02:00
|
|
|
display: flex;
|
2015-07-01 13:47:48 +02:00
|
|
|
flex-direction: column;
|
2015-03-05 09:44:20 +01:00
|
|
|
}
|
|
|
|
|
2017-09-06 14:25:58 +02:00
|
|
|
.flex-row-reverse {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: row-reverse;
|
|
|
|
justify-content: flex-end;
|
|
|
|
}
|
|
|
|
|
2017-08-02 14:28:24 +02:00
|
|
|
.flex-item-fluid,
|
|
|
|
.item-fluid {
|
2017-09-13 12:19:07 +02:00
|
|
|
flex: 1 1 0%;
|
2013-09-12 11:59:14 +02:00
|
|
|
}
|
2014-05-07 10:45:47 +02:00
|
|
|
|
2017-07-31 11:45:22 +02:00
|
|
|
.flex-item-first,
|
|
|
|
.item-first {
|
2016-12-08 14:24:27 +01:00
|
|
|
order: -1;
|
2013-09-12 11:59:14 +02:00
|
|
|
}
|
2014-05-07 10:45:47 +02:00
|
|
|
|
2017-07-31 11:45:22 +02:00
|
|
|
.flex-item-medium,
|
|
|
|
.item-medium {
|
2016-12-08 14:24:27 +01:00
|
|
|
order: 0;
|
2013-09-12 11:59:14 +02:00
|
|
|
}
|
2014-05-07 10:45:47 +02:00
|
|
|
|
2017-07-31 11:45:22 +02:00
|
|
|
.flex-item-last,
|
|
|
|
.item-last {
|
2016-12-08 14:24:27 +01:00
|
|
|
order: 1;
|
2014-05-07 10:45:47 +02:00
|
|
|
}
|
2015-03-07 14:36:58 +01:00
|
|
|
|
2017-07-31 11:45:22 +02:00
|
|
|
.flex-item-center,
|
|
|
|
.item-center,
|
2017-06-21 10:50:33 +02:00
|
|
|
.mr-auto {
|
2015-07-01 13:47:48 +02:00
|
|
|
margin: auto;
|
2015-03-07 14:36:58 +01:00
|
|
|
}
|