Last active
January 19, 2016 16:07
-
-
Save 384400/200a4682f60410709343 to your computer and use it in GitHub Desktop.
Flexbox
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@gutter : 0.5rem; | |
@screen-sm: 48; | |
@screen-md: 62; | |
@screen-lg: 75; | |
@columns-xs: 12; | |
@columns-sm: 12; | |
@columns-md: 12; | |
@columns-lg: 12; | |
@container-sm: unit(@screen-sm - (4 * @gutter), rem); | |
@container-md: unit(@screen-md - (2 * @gutter), rem); | |
@container-lg: unit(@screen-lg - (8 * @gutter), rem); | |
.container-fluid { | |
margin-right: auto; | |
margin-left: auto; | |
padding-right: 4 * @gutter; | |
padding-left: 4 * @gutter; | |
} | |
.row { | |
box-sizing: border-box; | |
display: flex; | |
flex: 0 1 auto; | |
flex-direction: row; | |
flex-wrap: wrap; | |
margin-right: -@gutter; | |
margin-left: -@gutter; | |
&.reverse { | |
flex-direction: row-reverse; | |
} | |
} | |
.col.reverse { | |
flex-direction: column-reverse; | |
} | |
// MIXINS | |
.col() { | |
box-sizing: border-box; | |
flex: 0 0 auto; | |
padding-right: @gutter; | |
padding-left: @gutter; | |
} | |
.start() { | |
justify-content: flex-start; | |
text-align: start; | |
} | |
.center() { | |
justify-content: center; | |
text-align: center; | |
} | |
.end() { | |
justify-content: flex-end; | |
text-align: end; | |
} | |
.top() { | |
align-items: flex-start; | |
} | |
.middle() { | |
align-items: center; | |
} | |
.bottom() { | |
align-items: flex-end; | |
} | |
.around() { | |
justify-content: space-around; | |
} | |
.between() { | |
justify-content: space-between; | |
} | |
.first() { | |
order: -1; | |
} | |
.last() { | |
order: 1; | |
} | |
.col-xs { | |
.col; | |
flex-grow: 1; | |
flex-basis: 0; | |
max-width: 100%; | |
} | |
.col-xs-1 { | |
.col; | |
} | |
.create-col-xs-elements(@n, @i:2) when (@i =< @n) { | |
.col-xs-@{i}:extend(.col-xs-1) {} | |
.create-col-xs-elements(@n, @i+1); | |
} | |
.create-col-xs-elements(@columns-lg); | |
.col-xs-offset-1 { | |
.col; | |
} | |
.create-col-xs-elements-offset(@n, @i:2) when (@i+1 =< @n) { | |
.col-xs-offset-@{i}:extend(.col-xs-offset-1) {} | |
.create-col-xs-elements-offset(@n, @i+1); | |
} | |
.create-col-xs-elements-offset(@columns-xs); | |
.generate-columns-xs(@n, @i: 1) when (@i =< @n) { | |
.col-xs-@{i} { | |
flex-basis: round(percentage(@i/@n), 3); | |
max-width: round(percentage(@i/@n), 3); | |
} | |
.generate-columns-xs(@n, (@i + 1)); | |
} | |
.generate-columns-xs(@columns-xs); | |
.generate-columns-xs-offset(@n, @i:1) when (@i+1 =< @n) { | |
.col-xs-offset-@{i} { | |
margin-left: round(percentage(@i/@n), 3); | |
} | |
.generate-columns-xs-offset(@n, (@i+1)); | |
} | |
.generate-columns-xs-offset(@columns-xs); | |
.start-xs { | |
.start; | |
} | |
.center-xs { | |
.center; | |
} | |
.end-xs { | |
.end; | |
} | |
.top-xs { | |
.top; | |
} | |
.middle-xs { | |
.middle; | |
} | |
.bottom-xs { | |
.bottom; | |
} | |
.around-xs { | |
.around; | |
} | |
.between-xs { | |
.between; | |
} | |
.first-xs { | |
.first; | |
} | |
.last-xs { | |
.last; | |
} | |
@media only screen and (min-width: unit(@screen-sm, em)) { | |
.container { | |
width: @container-sm; | |
} | |
.col-sm { | |
.col; | |
flex-grow: 1; | |
flex-basis: 0; | |
max-width: 100%; | |
} | |
.col-sm-1 { | |
.col; | |
} | |
.create-col-sm-elements(@n, @i:2) when (@i =< @n) { | |
.col-sm-@{i}:extend(.col-sm-1) {} | |
.create-col-sm-elements(@n, @i+1); | |
} | |
.create-col-sm-elements(@columns-lg); | |
.col-sm-offset-1 { | |
.col; | |
} | |
.create-col-sm-elements-offset(@n, @i:2) when (@i+1 =< @n) { | |
.col-sm-offset-@{i}:extend(.col-sm-offset-1) {} | |
.create-col-sm-elements-offset(@n, @i+1); | |
} | |
.create-col-sm-elements-offset(@columns-sm); | |
.generate-columns-sm(@n, @i: 1) when (@i =< @n) { | |
.col-sm-@{i} { | |
flex-basis: round(percentage(@i/@n), 3); | |
max-width: round(percentage(@i/@n), 3); | |
} | |
.generate-columns-sm(@n, (@i+1)); | |
} | |
.generate-columns-sm(@columns-sm); | |
.generate-columns-sm-offset(@n, @i:1) when (@i+1 =< @n) { | |
.col-sm-offset-@{i} { | |
margin-left: round(percentage(@i/@n), 3); | |
} | |
.generate-columns-sm-offset(@n, (@i+1)); | |
} | |
.generate-columns-sm-offset(@columns-sm); | |
.start-sm { | |
.start; | |
} | |
.center-sm { | |
.center; | |
} | |
.end-sm { | |
.end; | |
} | |
.top-sm { | |
.top; | |
} | |
.middle-sm { | |
.middle; | |
} | |
.bottom-sm { | |
.bottom; | |
} | |
.around-sm { | |
.around; | |
} | |
.between-sm { | |
.between; | |
} | |
.first-sm { | |
.first; | |
} | |
.last-sm { | |
.last; | |
} | |
} | |
@media only screen and (min-width: unit(@screen-md, em)) { | |
.container { | |
width: @container-md; | |
} | |
.col-md { | |
.col; | |
flex-grow: 1; | |
flex-basis: 0; | |
max-width: 100%; | |
} | |
.col-md-1 { | |
.col; | |
} | |
.create-col-md-elements(@n, @i:2) when (@i =< @n) { | |
.col-md-@{i}:extend(.col-md-1) {} | |
.create-col-md-elements(@n, @i+1); | |
} | |
.create-col-md-elements(@columns-md); | |
.col-md-offset-1 { | |
.col; | |
} | |
.create-col-md-elements-offset(@n, @i:2) when (@i + 1 =< @n) { | |
.col-md-offset-@{i}:extend(.col-md-offset-1) {} | |
.create-col-md-elements-offset(@n, @i+1); | |
} | |
.create-col-md-elements-offset(@columns-md); | |
.generate-columns-md(@n, @i:1) when (@i =< @n) { | |
.col-md-@{i} { | |
flex-basis: round(percentage(@i/@n), 3); | |
max-width: round(percentage(@i/@n), 3); | |
} | |
.generate-columns-md(@n, (@i+1)); | |
} | |
.generate-columns-md(@columns-md); | |
.generate-columns-md-offset(@n, @i:1) when (@i+1 =< @n) { | |
.col-md-offset-@{i} { | |
margin-left: round(percentage(@i/@n), 3); | |
} | |
.generate-columns-md-offset(@n, (@i+1)); | |
} | |
.generate-columns-md-offset(@columns-md); | |
.start-md { | |
.start; | |
} | |
.center-md { | |
.center; | |
} | |
.end-md { | |
.end; | |
} | |
.top-md { | |
.top; | |
} | |
.middle-md { | |
.middle; | |
} | |
.bottom-md { | |
.bottom; | |
} | |
.around-md { | |
.around; | |
} | |
.between-md { | |
.between; | |
} | |
.first-md { | |
.first; | |
} | |
.last-md { | |
.last; | |
} | |
} | |
@media only screen and (min-width: unit(@screen-lg, em)) { | |
.container { | |
width: @container-lg; | |
} | |
.col-lg { | |
.col; | |
flex-grow: 1; | |
flex-basis: 0; | |
max-width: 100%; | |
} | |
.col-lg-1 { | |
.col; | |
} | |
.create-col-lg-elements(@n, @i:2) when (@i =< @n) { | |
.col-lg-@{i}:extend(.col-lg-1) {} | |
.create-col-lg-elements(@n, @i+1); | |
} | |
.create-col-lg-elements(@columns-lg); | |
.col-lg-offset-1 { | |
.col; | |
} | |
.create-col-lg-elements-offset(@n, @i:2) when (@i+1 =< @n) { | |
.col-lg-offset-@{i}:extend(.col-lg-offset-1) {} | |
.create-col-lg-elements-offset(@n, @i+1); | |
} | |
.create-col-lg-elements-offset(@columns-lg); | |
.generate-columns-lg(@n, @i: 1) when (@i =< @n) { | |
.col-lg-@{i} { | |
flex-basis: round(percentage(@i/@n), 3); | |
max-width: round(percentage(@i/@n), 3); | |
} | |
.generate-columns-lg(@n, (@i+1)); | |
} | |
.generate-columns-lg(@columns-lg); | |
.generate-columns-lg-offset(@n, @i:1) when (@i+1 =< @n) { | |
.col-lg-offset-@{i} { | |
margin-left: round(percentage(@i/@n), 3); | |
} | |
.generate-columns-lg-offset(@n, (@i+1)); | |
} | |
.generate-columns-lg-offset(@columns-lg); | |
.start-lg { | |
.start; | |
} | |
.center-lg { | |
.center; | |
} | |
.end-lg { | |
.end; | |
} | |
.top-lg { | |
.top; | |
} | |
.middle-lg { | |
.middle; | |
} | |
.bottom-lg { | |
.bottom; | |
} | |
.around-lg { | |
.around; | |
} | |
.between-lg { | |
.between; | |
} | |
.first-lg { | |
.first; | |
} | |
.last-lg { | |
.last; | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<html> | |
<head> | |
<meta charset="utf-8" /> | |
<title>Comment détecter le support de Flexbox et de l'unité Rem ?</title> | |
<meta name="description" content="Comment détecter le support de Flexbox et de l'unité Rem dans un navigateur ?" /> | |
</head> | |
<body> | |
<div>No <a href="https://jquery.com/">jQuery</a>, no <a href="http://modernizr.com/">Modernizr</a>!</div> | |
<div id="result"></div> | |
<script> | |
var canvasElement = document.createElement('canvas'); | |
if(!canvasElement.getContext) { | |
document.getElementById('result').innerHTML = "<p>Your browser does not support Html 5.</p>"; | |
} else { | |
document.getElementById('result').innerHTML = "<p>Your browser supports Html 5.</p>"; | |
} | |
var div = document.createElement('div'); | |
div.setAttribute('style', 'font-size: 1rem'); | |
var d = document.documentElement.style; | |
if (div.style.fontSize != '1rem') { | |
document.getElementById('result').innerHTML += "<p>Your browser does not support Rem.</p>"; | |
} else { | |
document.getElementById('result').innerHTML += "<p>Your browser supports Rem.</p>"; | |
} | |
if ('flexWrap' in d) { | |
document.getElementById('result').innerHTML += "<p>Your browser supports Flexbox.</p>"; | |
} else { | |
document.getElementById('result').innerHTML += "<p>Your browser does not support Flexbox.</p>"; | |
} | |
if ((canvasElement.getContext) && ('flexWrap' in d) && (div.style.fontSize == '1rem')) { | |
document.getElementById('result').innerHTML += "<p>Your browser is modern!</p>"; | |
} | |
</script> | |
</body> | |
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* https://github.com/kristoferjoseph/flexboxgrid/blob/master/css/flexboxgrid.css */ | |
/* Uncomment and set these variables to customize the grid. */ | |
.container-fluid { | |
margin-right: auto; | |
margin-left: auto; | |
padding-right: 2rem; | |
padding-left: 2rem; | |
} | |
.row { | |
box-sizing: border-box; | |
display: -webkit-flex; | |
display: -ms-flexbox; | |
display: flex; | |
-webkit-flex: 0 1 auto; | |
-ms-flex: 0 1 auto; | |
flex: 0 1 auto; | |
-webkit-flex-direction: row; | |
-ms-flex-direction: row; | |
flex-direction: row; | |
-webkit-flex-wrap: wrap; | |
-ms-flex-wrap: wrap; | |
flex-wrap: wrap; | |
margin-right: -1rem; | |
margin-left: -1rem; | |
} | |
.row.reverse { | |
-webkit-flex-direction: row-reverse; | |
-ms-flex-direction: row-reverse; | |
flex-direction: row-reverse; | |
} | |
.col.reverse { | |
-webkit-flex-direction: column-reverse; | |
-ms-flex-direction: column-reverse; | |
flex-direction: column-reverse; | |
} | |
.col-xs, | |
.col-xs-1, | |
.col-xs-2, | |
.col-xs-3, | |
.col-xs-4, | |
.col-xs-5, | |
.col-xs-6, | |
.col-xs-7, | |
.col-xs-8, | |
.col-xs-9, | |
.col-xs-10, | |
.col-xs-11, | |
.col-xs-12 { | |
box-sizing: border-box; | |
-webkit-flex: 0 0 auto; | |
-ms-flex: 0 0 auto; | |
flex: 0 0 auto; | |
padding-right: 1rem; | |
padding-left: 1rem; | |
} | |
.col-xs { | |
-webkit-flex-grow: 1; | |
-ms-flex-positive: 1; | |
flex-grow: 1; | |
-ms-flex-preferred-size: 0; | |
-webkit-flex-basis: 0; | |
flex-basis: 0; | |
max-width: 100%; | |
} | |
.col-xs-1 { | |
-ms-flex-preferred-size: 8.333%; | |
-webkit-flex-basis: 8.333%; | |
flex-basis: 8.333%; | |
max-width: 8.333%; | |
} | |
.col-xs-2 { | |
-ms-flex-preferred-size: 16.667%; | |
-webkit-flex-basis: 16.667%; | |
flex-basis: 16.667%; | |
max-width: 16.667%; | |
} | |
.col-xs-3 { | |
-ms-flex-preferred-size: 25%; | |
-webkit-flex-basis: 25%; | |
flex-basis: 25%; | |
max-width: 25%; | |
} | |
.col-xs-4 { | |
-ms-flex-preferred-size: 33.333%; | |
-webkit-flex-basis: 33.333%; | |
flex-basis: 33.333%; | |
max-width: 33.333%; | |
} | |
.col-xs-5 { | |
-ms-flex-preferred-size: 41.667%; | |
-webkit-flex-basis: 41.667%; | |
flex-basis: 41.667%; | |
max-width: 41.667%; | |
} | |
.col-xs-6 { | |
-ms-flex-preferred-size: 50%; | |
-webkit-flex-basis: 50%; | |
flex-basis: 50%; | |
max-width: 50%; | |
} | |
.col-xs-7 { | |
-ms-flex-preferred-size: 58.333%; | |
-webkit-flex-basis: 58.333%; | |
flex-basis: 58.333%; | |
max-width: 58.333%; | |
} | |
.col-xs-8 { | |
-ms-flex-preferred-size: 66.667%; | |
-webkit-flex-basis: 66.667%; | |
flex-basis: 66.667%; | |
max-width: 66.667%; | |
} | |
.col-xs-9 { | |
-ms-flex-preferred-size: 75%; | |
-webkit-flex-basis: 75%; | |
flex-basis: 75%; | |
max-width: 75%; | |
} | |
.col-xs-10 { | |
-ms-flex-preferred-size: 83.333%; | |
-webkit-flex-basis: 83.333%; | |
flex-basis: 83.333%; | |
max-width: 83.333%; | |
} | |
.col-xs-11 { | |
-ms-flex-preferred-size: 91.667%; | |
-webkit-flex-basis: 91.667%; | |
flex-basis: 91.667%; | |
max-width: 91.667%; | |
} | |
.col-xs-12 { | |
-ms-flex-preferred-size: 100%; | |
-webkit-flex-basis: 100%; | |
flex-basis: 100%; | |
max-width: 100%; | |
} | |
.col-xs-offset-1 { | |
margin-left: 8.333%; | |
} | |
.col-xs-offset-2 { | |
margin-left: 16.667%; | |
} | |
.col-xs-offset-3 { | |
margin-left: 25%; | |
} | |
.col-xs-offset-4 { | |
margin-left: 33.333%; | |
} | |
.col-xs-offset-5 { | |
margin-left: 41.667%; | |
} | |
.col-xs-offset-6 { | |
margin-left: 50%; | |
} | |
.col-xs-offset-7 { | |
margin-left: 58.333%; | |
} | |
.col-xs-offset-8 { | |
margin-left: 66.667%; | |
} | |
.col-xs-offset-9 { | |
margin-left: 75%; | |
} | |
.col-xs-offset-10 { | |
margin-left: 83.333%; | |
} | |
.col-xs-offset-11 { | |
margin-left: 91.667%; | |
} | |
.start-xs { | |
-webkit-justify-content: flex-start; | |
-ms-flex-pack: start; | |
justify-content: flex-start; | |
text-align: start; | |
} | |
.center-xs { | |
-webkit-justify-content: center; | |
-ms-flex-pack: center; | |
justify-content: center; | |
text-align: center; | |
} | |
.end-xs { | |
-webkit-justify-content: flex-end; | |
-ms-flex-pack: end; | |
justify-content: flex-end; | |
text-align: end; | |
} | |
.top-xs { | |
-webkit-align-items: flex-start; | |
-ms-flex-align: start; | |
align-items: flex-start; | |
} | |
.middle-xs { | |
-webkit-align-items: center; | |
-ms-flex-align: center; | |
align-items: center; | |
} | |
.bottom-xs { | |
-webkit-align-items: flex-end; | |
-ms-flex-align: end; | |
align-items: flex-end; | |
} | |
.around-xs { | |
-webkit-justify-content: space-around; | |
-ms-flex-pack: distribute; | |
justify-content: space-around; | |
} | |
.between-xs { | |
-webkit-justify-content: space-between; | |
-ms-flex-pack: justify; | |
justify-content: space-between; | |
} | |
.first-xs { | |
-webkit-order: -1; | |
-ms-flex-order: -1; | |
order: -1; | |
} | |
.last-xs { | |
-webkit-order: 1; | |
-ms-flex-order: 1; | |
order: 1; | |
} | |
@media only screen and (min-width: 48em) { | |
.container { | |
width: 46rem; | |
} | |
.col-sm, | |
.col-sm-1, | |
.col-sm-2, | |
.col-sm-3, | |
.col-sm-4, | |
.col-sm-5, | |
.col-sm-6, | |
.col-sm-7, | |
.col-sm-8, | |
.col-sm-9, | |
.col-sm-10, | |
.col-sm-11, | |
.col-sm-12 { | |
box-sizing: border-box; | |
-webkit-flex: 0 0 auto; | |
-ms-flex: 0 0 auto; | |
flex: 0 0 auto; | |
padding-right: 1rem; | |
padding-left: 1rem; | |
} | |
.col-sm { | |
-webkit-flex-grow: 1; | |
-ms-flex-positive: 1; | |
flex-grow: 1; | |
-ms-flex-preferred-size: 0; | |
-webkit-flex-basis: 0; | |
flex-basis: 0; | |
max-width: 100%; | |
} | |
.col-sm-1 { | |
-ms-flex-preferred-size: 8.333%; | |
-webkit-flex-basis: 8.333%; | |
flex-basis: 8.333%; | |
max-width: 8.333%; | |
} | |
.col-sm-2 { | |
-ms-flex-preferred-size: 16.667%; | |
-webkit-flex-basis: 16.667%; | |
flex-basis: 16.667%; | |
max-width: 16.667%; | |
} | |
.col-sm-3 { | |
-ms-flex-preferred-size: 25%; | |
-webkit-flex-basis: 25%; | |
flex-basis: 25%; | |
max-width: 25%; | |
} | |
.col-sm-4 { | |
-ms-flex-preferred-size: 33.333%; | |
-webkit-flex-basis: 33.333%; | |
flex-basis: 33.333%; | |
max-width: 33.333%; | |
} | |
.col-sm-5 { | |
-ms-flex-preferred-size: 41.667%; | |
-webkit-flex-basis: 41.667%; | |
flex-basis: 41.667%; | |
max-width: 41.667%; | |
} | |
.col-sm-6 { | |
-ms-flex-preferred-size: 50%; | |
-webkit-flex-basis: 50%; | |
flex-basis: 50%; | |
max-width: 50%; | |
} | |
.col-sm-7 { | |
-ms-flex-preferred-size: 58.333%; | |
-webkit-flex-basis: 58.333%; | |
flex-basis: 58.333%; | |
max-width: 58.333%; | |
} | |
.col-sm-8 { | |
-ms-flex-preferred-size: 66.667%; | |
-webkit-flex-basis: 66.667%; | |
flex-basis: 66.667%; | |
max-width: 66.667%; | |
} | |
.col-sm-9 { | |
-ms-flex-preferred-size: 75%; | |
-webkit-flex-basis: 75%; | |
flex-basis: 75%; | |
max-width: 75%; | |
} | |
.col-sm-10 { | |
-ms-flex-preferred-size: 83.333%; | |
-webkit-flex-basis: 83.333%; | |
flex-basis: 83.333%; | |
max-width: 83.333%; | |
} | |
.col-sm-11 { | |
-ms-flex-preferred-size: 91.667%; | |
-webkit-flex-basis: 91.667%; | |
flex-basis: 91.667%; | |
max-width: 91.667%; | |
} | |
.col-sm-12 { | |
-ms-flex-preferred-size: 100%; | |
-webkit-flex-basis: 100%; | |
flex-basis: 100%; | |
max-width: 100%; | |
} | |
.col-sm-offset-1 { | |
margin-left: 8.333%; | |
} | |
.col-sm-offset-2 { | |
margin-left: 16.667%; | |
} | |
.col-sm-offset-3 { | |
margin-left: 25%; | |
} | |
.col-sm-offset-4 { | |
margin-left: 33.333%; | |
} | |
.col-sm-offset-5 { | |
margin-left: 41.667%; | |
} | |
.col-sm-offset-6 { | |
margin-left: 50%; | |
} | |
.col-sm-offset-7 { | |
margin-left: 58.333%; | |
} | |
.col-sm-offset-8 { | |
margin-left: 66.667%; | |
} | |
.col-sm-offset-9 { | |
margin-left: 75%; | |
} | |
.col-sm-offset-10 { | |
margin-left: 83.333%; | |
} | |
.col-sm-offset-11 { | |
margin-left: 91.667%; | |
} | |
.start-sm { | |
-webkit-justify-content: flex-start; | |
-ms-flex-pack: start; | |
justify-content: flex-start; | |
text-align: start; | |
} | |
.center-sm { | |
-webkit-justify-content: center; | |
-ms-flex-pack: center; | |
justify-content: center; | |
text-align: center; | |
} | |
.end-sm { | |
-webkit-justify-content: flex-end; | |
-ms-flex-pack: end; | |
justify-content: flex-end; | |
text-align: end; | |
} | |
.top-sm { | |
-webkit-align-items: flex-start; | |
-ms-flex-align: start; | |
align-items: flex-start; | |
} | |
.middle-sm { | |
-webkit-align-items: center; | |
-ms-flex-align: center; | |
align-items: center; | |
} | |
.bottom-sm { | |
-webkit-align-items: flex-end; | |
-ms-flex-align: end; | |
align-items: flex-end; | |
} | |
.around-sm { | |
-webkit-justify-content: space-around; | |
-ms-flex-pack: distribute; | |
justify-content: space-around; | |
} | |
.between-sm { | |
-webkit-justify-content: space-between; | |
-ms-flex-pack: justify; | |
justify-content: space-between; | |
} | |
.first-sm { | |
-webkit-order: -1; | |
-ms-flex-order: -1; | |
order: -1; | |
} | |
.last-sm { | |
-webkit-order: 1; | |
-ms-flex-order: 1; | |
order: 1; | |
} | |
} | |
@media only screen and (min-width: 62em) { | |
.container { | |
width: 61rem; | |
} | |
.col-md, | |
.col-md-1, | |
.col-md-2, | |
.col-md-3, | |
.col-md-4, | |
.col-md-5, | |
.col-md-6, | |
.col-md-7, | |
.col-md-8, | |
.col-md-9, | |
.col-md-10, | |
.col-md-11, | |
.col-md-12 { | |
box-sizing: border-box; | |
-webkit-flex: 0 0 auto; | |
-ms-flex: 0 0 auto; | |
flex: 0 0 auto; | |
padding-right: 1rem; | |
padding-left: 1rem; | |
} | |
.col-md { | |
-webkit-flex-grow: 1; | |
-ms-flex-positive: 1; | |
flex-grow: 1; | |
-ms-flex-preferred-size: 0; | |
-webkit-flex-basis: 0; | |
flex-basis: 0; | |
max-width: 100%; | |
} | |
.col-md-1 { | |
-ms-flex-preferred-size: 8.333%; | |
-webkit-flex-basis: 8.333%; | |
flex-basis: 8.333%; | |
max-width: 8.333%; | |
} | |
.col-md-2 { | |
-ms-flex-preferred-size: 16.667%; | |
-webkit-flex-basis: 16.667%; | |
flex-basis: 16.667%; | |
max-width: 16.667%; | |
} | |
.col-md-3 { | |
-ms-flex-preferred-size: 25%; | |
-webkit-flex-basis: 25%; | |
flex-basis: 25%; | |
max-width: 25%; | |
} | |
.col-md-4 { | |
-ms-flex-preferred-size: 33.333%; | |
-webkit-flex-basis: 33.333%; | |
flex-basis: 33.333%; | |
max-width: 33.333%; | |
} | |
.col-md-5 { | |
-ms-flex-preferred-size: 41.667%; | |
-webkit-flex-basis: 41.667%; | |
flex-basis: 41.667%; | |
max-width: 41.667%; | |
} | |
.col-md-6 { | |
-ms-flex-preferred-size: 50%; | |
-webkit-flex-basis: 50%; | |
flex-basis: 50%; | |
max-width: 50%; | |
} | |
.col-md-7 { | |
-ms-flex-preferred-size: 58.333%; | |
-webkit-flex-basis: 58.333%; | |
flex-basis: 58.333%; | |
max-width: 58.333%; | |
} | |
.col-md-8 { | |
-ms-flex-preferred-size: 66.667%; | |
-webkit-flex-basis: 66.667%; | |
flex-basis: 66.667%; | |
max-width: 66.667%; | |
} | |
.col-md-9 { | |
-ms-flex-preferred-size: 75%; | |
-webkit-flex-basis: 75%; | |
flex-basis: 75%; | |
max-width: 75%; | |
} | |
.col-md-10 { | |
-ms-flex-preferred-size: 83.333%; | |
-webkit-flex-basis: 83.333%; | |
flex-basis: 83.333%; | |
max-width: 83.333%; | |
} | |
.col-md-11 { | |
-ms-flex-preferred-size: 91.667%; | |
-webkit-flex-basis: 91.667%; | |
flex-basis: 91.667%; | |
max-width: 91.667%; | |
} | |
.col-md-12 { | |
-ms-flex-preferred-size: 100%; | |
-webkit-flex-basis: 100%; | |
flex-basis: 100%; | |
max-width: 100%; | |
} | |
.col-md-offset-1 { | |
margin-left: 8.333%; | |
} | |
.col-md-offset-2 { | |
margin-left: 16.667%; | |
} | |
.col-md-offset-3 { | |
margin-left: 25%; | |
} | |
.col-md-offset-4 { | |
margin-left: 33.333%; | |
} | |
.col-md-offset-5 { | |
margin-left: 41.667%; | |
} | |
.col-md-offset-6 { | |
margin-left: 50%; | |
} | |
.col-md-offset-7 { | |
margin-left: 58.333%; | |
} | |
.col-md-offset-8 { | |
margin-left: 66.667%; | |
} | |
.col-md-offset-9 { | |
margin-left: 75%; | |
} | |
.col-md-offset-10 { | |
margin-left: 83.333%; | |
} | |
.col-md-offset-11 { | |
margin-left: 91.667%; | |
} | |
.start-md { | |
-webkit-justify-content: flex-start; | |
-ms-flex-pack: start; | |
justify-content: flex-start; | |
text-align: start; | |
} | |
.center-md { | |
-webkit-justify-content: center; | |
-ms-flex-pack: center; | |
justify-content: center; | |
text-align: center; | |
} | |
.end-md { | |
-webkit-justify-content: flex-end; | |
-ms-flex-pack: end; | |
justify-content: flex-end; | |
text-align: end; | |
} | |
.top-md { | |
-webkit-align-items: flex-start; | |
-ms-flex-align: start; | |
align-items: flex-start; | |
} | |
.middle-md { | |
-webkit-align-items: center; | |
-ms-flex-align: center; | |
align-items: center; | |
} | |
.bottom-md { | |
-webkit-align-items: flex-end; | |
-ms-flex-align: end; | |
align-items: flex-end; | |
} | |
.around-md { | |
-webkit-justify-content: space-around; | |
-ms-flex-pack: distribute; | |
justify-content: space-around; | |
} | |
.between-md { | |
-webkit-justify-content: space-between; | |
-ms-flex-pack: justify; | |
justify-content: space-between; | |
} | |
.first-md { | |
-webkit-order: -1; | |
-ms-flex-order: -1; | |
order: -1; | |
} | |
.last-md { | |
-webkit-order: 1; | |
-ms-flex-order: 1; | |
order: 1; | |
} | |
} | |
@media only screen and (min-width: 75em) { | |
.container { | |
width: 71rem; | |
} | |
.col-lg, | |
.col-lg-1, | |
.col-lg-2, | |
.col-lg-3, | |
.col-lg-4, | |
.col-lg-5, | |
.col-lg-6, | |
.col-lg-7, | |
.col-lg-8, | |
.col-lg-9, | |
.col-lg-10, | |
.col-lg-11, | |
.col-lg-12 { | |
box-sizing: border-box; | |
-webkit-flex: 0 0 auto; | |
-ms-flex: 0 0 auto; | |
flex: 0 0 auto; | |
padding-right: 1rem; | |
padding-left: 1rem; | |
} | |
.col-lg { | |
-webkit-flex-grow: 1; | |
-ms-flex-positive: 1; | |
flex-grow: 1; | |
-ms-flex-preferred-size: 0; | |
-webkit-flex-basis: 0; | |
flex-basis: 0; | |
max-width: 100%; | |
} | |
.col-lg-1 { | |
-ms-flex-preferred-size: 8.333%; | |
-webkit-flex-basis: 8.333%; | |
flex-basis: 8.333%; | |
max-width: 8.333%; | |
} | |
.col-lg-2 { | |
-ms-flex-preferred-size: 16.667%; | |
-webkit-flex-basis: 16.667%; | |
flex-basis: 16.667%; | |
max-width: 16.667%; | |
} | |
.col-lg-3 { | |
-ms-flex-preferred-size: 25%; | |
-webkit-flex-basis: 25%; | |
flex-basis: 25%; | |
max-width: 25%; | |
} | |
.col-lg-4 { | |
-ms-flex-preferred-size: 33.333%; | |
-webkit-flex-basis: 33.333%; | |
flex-basis: 33.333%; | |
max-width: 33.333%; | |
} | |
.col-lg-5 { | |
-ms-flex-preferred-size: 41.667%; | |
-webkit-flex-basis: 41.667%; | |
flex-basis: 41.667%; | |
max-width: 41.667%; | |
} | |
.col-lg-6 { | |
-ms-flex-preferred-size: 50%; | |
-webkit-flex-basis: 50%; | |
flex-basis: 50%; | |
max-width: 50%; | |
} | |
.col-lg-7 { | |
-ms-flex-preferred-size: 58.333%; | |
-webkit-flex-basis: 58.333%; | |
flex-basis: 58.333%; | |
max-width: 58.333%; | |
} | |
.col-lg-8 { | |
-ms-flex-preferred-size: 66.667%; | |
-webkit-flex-basis: 66.667%; | |
flex-basis: 66.667%; | |
max-width: 66.667%; | |
} | |
.col-lg-9 { | |
-ms-flex-preferred-size: 75%; | |
-webkit-flex-basis: 75%; | |
flex-basis: 75%; | |
max-width: 75%; | |
} | |
.col-lg-10 { | |
-ms-flex-preferred-size: 83.333%; | |
-webkit-flex-basis: 83.333%; | |
flex-basis: 83.333%; | |
max-width: 83.333%; | |
} | |
.col-lg-11 { | |
-ms-flex-preferred-size: 91.667%; | |
-webkit-flex-basis: 91.667%; | |
flex-basis: 91.667%; | |
max-width: 91.667%; | |
} | |
.col-lg-12 { | |
-ms-flex-preferred-size: 100%; | |
-webkit-flex-basis: 100%; | |
flex-basis: 100%; | |
max-width: 100%; | |
} | |
.col-lg-offset-1 { | |
margin-left: 8.333%; | |
} | |
.col-lg-offset-2 { | |
margin-left: 16.667%; | |
} | |
.col-lg-offset-3 { | |
margin-left: 25%; | |
} | |
.col-lg-offset-4 { | |
margin-left: 33.333%; | |
} | |
.col-lg-offset-5 { | |
margin-left: 41.667%; | |
} | |
.col-lg-offset-6 { | |
margin-left: 50%; | |
} | |
.col-lg-offset-7 { | |
margin-left: 58.333%; | |
} | |
.col-lg-offset-8 { | |
margin-left: 66.667%; | |
} | |
.col-lg-offset-9 { | |
margin-left: 75%; | |
} | |
.col-lg-offset-10 { | |
margin-left: 83.333%; | |
} | |
.col-lg-offset-11 { | |
margin-left: 91.667%; | |
} | |
.start-lg { | |
-webkit-justify-content: flex-start; | |
-ms-flex-pack: start; | |
justify-content: flex-start; | |
text-align: start; | |
} | |
.center-lg { | |
-webkit-justify-content: center; | |
-ms-flex-pack: center; | |
justify-content: center; | |
text-align: center; | |
} | |
.end-lg { | |
-webkit-justify-content: flex-end; | |
-ms-flex-pack: end; | |
justify-content: flex-end; | |
text-align: end; | |
} | |
.top-lg { | |
-webkit-align-items: flex-start; | |
-ms-flex-align: start; | |
align-items: flex-start; | |
} | |
.middle-lg { | |
-webkit-align-items: center; | |
-ms-flex-align: center; | |
align-items: center; | |
} | |
.bottom-lg { | |
-webkit-align-items: flex-end; | |
-ms-flex-align: end; | |
align-items: flex-end; | |
} | |
.around-lg { | |
-webkit-justify-content: space-around; | |
-ms-flex-pack: distribute; | |
justify-content: space-around; | |
} | |
.between-lg { | |
-webkit-justify-content: space-between; | |
-ms-flex-pack: justify; | |
justify-content: space-between; | |
} | |
.first-lg { | |
-webkit-order: -1; | |
-ms-flex-order: -1; | |
order: -1; | |
} | |
.last-lg { | |
-webkit-order: 1; | |
-ms-flex-order: 1; | |
order: 1; | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Feuille de style utilisée par http://flexboxgrid.com/ | |
Les préfixes ont été supprimés. | |
Le fichier a été exploité le 7 août 2015. | |
*/ | |
.container-fluid { | |
margin-right: auto; | |
margin-left: auto; | |
padding-right: 2rem; | |
padding-left: 2rem; | |
} | |
.row { | |
box-sizing: border-box; | |
display: flex; | |
flex: 0 1 auto; | |
flex-direction: row; | |
flex-wrap: wrap; | |
margin-right: -.5rem; | |
margin-left: -.5rem; | |
} | |
.row.reverse { | |
flex-direction: row-reverse; | |
} | |
.col.reverse { | |
flex-direction: column-reverse; | |
} | |
.col-xs, .col-xs-1, .col-xs-2, .col-xs-3, .col-xs-4, .col-xs-5, .col-xs-6, .col-xs-7, .col-xs-8, .col-xs-9, .col-xs-10, .col-xs-11, .col-xs-12, .col-xs-offset-1, .col-xs-offset-2, .col-xs-offset-3, .col-xs-offset-4, .col-xs-offset-5, .col-xs-offset-6, .col-xs-offset-7, .col-xs-offset-8, .col-xs-offset-9, .col-xs-offset-10, .col-xs-offset-11, .col-xs-offset-12 { | |
box-sizing: border-box; | |
flex: 0 0 auto; | |
padding-right: .5rem; | |
padding-left: .5rem; | |
} | |
.col-xs { | |
flex-grow: 1; | |
flex-basis: 0; | |
max-width: 100%; | |
} | |
.col-xs-1 { | |
flex-basis: 8.333%; | |
max-width: 8.333%; | |
} | |
.col-xs-2 { | |
flex-basis: 16.667%; | |
max-width: 16.667%; | |
} | |
.col-xs-3 { | |
flex-basis: 25%; | |
max-width: 25%; | |
} | |
.col-xs-4 { | |
flex-basis: 33.333%; | |
max-width: 33.333%; | |
} | |
.col-xs-5 { | |
flex-basis: 41.667%; | |
max-width: 41.667%; | |
} | |
.col-xs-6 { | |
flex-basis: 50%; | |
max-width: 50%; | |
} | |
.col-xs-7 { | |
flex-basis: 58.333%; | |
max-width: 58.333%; | |
} | |
.col-xs-8 { | |
flex-basis: 66.667%; | |
max-width: 66.667%; | |
} | |
.col-xs-9 { | |
flex-basis: 75%; | |
max-width: 75%; | |
} | |
.col-xs-10 { | |
flex-basis: 83.333%; | |
max-width: 83.333%; | |
} | |
.col-xs-11 { | |
flex-basis: 91.667%; | |
max-width: 91.667%; | |
} | |
.col-xs-12 { | |
flex-basis: 100%; | |
max-width: 100%; | |
} | |
.col-xs-offset-1 { | |
margin-left: 8.333%; | |
} | |
.col-xs-offset-2 { | |
margin-left: 16.667%; | |
} | |
.col-xs-offset-3 { | |
margin-left: 25%; | |
} | |
.col-xs-offset-4 { | |
margin-left: 33.333%; | |
} | |
.col-xs-offset-5 { | |
margin-left: 41.667%; | |
} | |
.col-xs-offset-6 { | |
margin-left: 50%; | |
} | |
.col-xs-offset-7 { | |
margin-left: 58.333%; | |
} | |
.col-xs-offset-8 { | |
margin-left: 66.667%; | |
} | |
.col-xs-offset-9 { | |
margin-left: 75%; | |
} | |
.col-xs-offset-10 { | |
margin-left: 83.333%; | |
} | |
.col-xs-offset-11 { | |
margin-left: 91.667%; | |
} | |
.start-xs { | |
justify-content: flex-start; | |
text-align: start; | |
} | |
.center-xs { | |
justify-content: center; | |
text-align: center; | |
} | |
.end-xs { | |
justify-content: flex-end; | |
text-align: end; | |
} | |
.top-xs { | |
align-items: flex-start; | |
} | |
.middle-xs { | |
align-items: center; | |
} | |
.bottom-xs { | |
align-items: flex-end; | |
} | |
.around-xs { | |
justify-content: space-around; | |
} | |
.between-xs { | |
justify-content: space-between; | |
} | |
.first-xs { | |
order: -1; | |
} | |
.last-xs { | |
order: 1; | |
} | |
@media only screen and (min-width: 48em) { | |
.container { | |
width: 46rem; | |
} | |
.col-sm, .col-sm-1, .col-sm-2, .col-sm-3, .col-sm-4, .col-sm-5, .col-sm-6, .col-sm-7, .col-sm-8, .col-sm-9, .col-sm-10, .col-sm-11, .col-sm-12, .col-sm-offset-1, .col-sm-offset-2, .col-sm-offset-3, .col-sm-offset-4, .col-sm-offset-5, .col-sm-offset-6, .col-sm-offset-7, .col-sm-offset-8, .col-sm-offset-9, .col-sm-offset-10, .col-sm-offset-11, .col-sm-offset-12 { | |
box-sizing: border-box; | |
flex: 0 0 auto; | |
padding-right: .5rem; | |
padding-left: .5rem; | |
} | |
.col-sm { | |
flex-grow: 1; | |
flex-basis: 0; | |
max-width: 100%; | |
} | |
.col-sm-1 { | |
flex-basis: 8.333%; | |
max-width: 8.333%; | |
} | |
.col-sm-2 { | |
flex-basis: 16.667%; | |
max-width: 16.667%; | |
} | |
.col-sm-3 { | |
flex-basis: 25%; | |
max-width: 25%; | |
} | |
.col-sm-4 { | |
flex-basis: 33.333%; | |
max-width: 33.333%; | |
} | |
.col-sm-5 { | |
flex-basis: 41.667%; | |
max-width: 41.667%; | |
} | |
.col-sm-6 { | |
flex-basis: 50%; | |
max-width: 50%; | |
} | |
.col-sm-7 { | |
flex-basis: 58.333%; | |
max-width: 58.333%; | |
} | |
.col-sm-8 { | |
flex-basis: 66.667%; | |
max-width: 66.667%; | |
} | |
.col-sm-9 { | |
flex-basis: 75%; | |
max-width: 75%; | |
} | |
.col-sm-10 { | |
flex-basis: 83.333%; | |
max-width: 83.333%; | |
} | |
.col-sm-11 { | |
flex-basis: 91.667%; | |
max-width: 91.667%; | |
} | |
.col-sm-12 { | |
flex-basis: 100%; | |
max-width: 100%; | |
} | |
.col-sm-offset-1 { | |
margin-left: 8.333%; | |
} | |
.col-sm-offset-2 { | |
margin-left: 16.667%; | |
} | |
.col-sm-offset-3 { | |
margin-left: 25%; | |
} | |
.col-sm-offset-4 { | |
margin-left: 33.333%; | |
} | |
.col-sm-offset-5 { | |
margin-left: 41.667%; | |
} | |
.col-sm-offset-6 { | |
margin-left: 50%; | |
} | |
.col-sm-offset-7 { | |
margin-left: 58.333%; | |
} | |
.col-sm-offset-8 { | |
margin-left: 66.667%; | |
} | |
.col-sm-offset-9 { | |
margin-left: 75%; | |
} | |
.col-sm-offset-10 { | |
margin-left: 83.333%; | |
} | |
.col-sm-offset-11 { | |
margin-left: 91.667%; | |
} | |
.start-sm { | |
justify-content: flex-start; | |
text-align: start; | |
} | |
.center-sm { | |
justify-content: center; | |
text-align: center; | |
} | |
.end-sm { | |
justify-content: flex-end; | |
text-align: end; | |
} | |
.top-sm { | |
align-items: flex-start; | |
} | |
.middle-sm { | |
align-items: center; | |
} | |
.bottom-sm { | |
align-items: flex-end; | |
} | |
.around-sm { | |
justify-content: space-around; | |
} | |
.between-sm { | |
justify-content: space-between; | |
} | |
.first-sm { | |
order: -1; | |
} | |
.last-sm { | |
order: 1; | |
} | |
} | |
@media only screen and (min-width: 62em) { | |
.container { | |
width: 61rem; | |
} | |
.col-md, .col-md-1, .col-md-2, .col-md-3, .col-md-4, .col-md-5, .col-md-6, .col-md-7, .col-md-8, .col-md-9, .col-md-10, .col-md-11, .col-md-12, .col-md-offset-1, .col-md-offset-2, .col-md-offset-3, .col-md-offset-4, .col-md-offset-5, .col-md-offset-6, .col-md-offset-7, .col-md-offset-8, .col-md-offset-9, .col-md-offset-10, .col-md-offset-11, .col-md-offset-12 { | |
box-sizing: border-box; | |
flex: 0 0 auto; | |
padding-right: .5rem; | |
padding-left: .5rem; | |
} | |
.col-md { | |
flex-grow: 1; | |
flex-basis: 0; | |
max-width: 100%; | |
} | |
.col-md-1 { | |
flex-basis: 8.333%; | |
max-width: 8.333%; | |
} | |
.col-md-2 { | |
flex-basis: 16.667%; | |
max-width: 16.667%; | |
} | |
.col-md-3 { | |
flex-basis: 25%; | |
max-width: 25%; | |
} | |
.col-md-4 { | |
flex-basis: 33.333%; | |
max-width: 33.333%; | |
} | |
.col-md-5 { | |
flex-basis: 41.667%; | |
max-width: 41.667%; | |
} | |
.col-md-6 { | |
flex-basis: 50%; | |
max-width: 50%; | |
} | |
.col-md-7 { | |
flex-basis: 58.333%; | |
max-width: 58.333%; | |
} | |
.col-md-8 { | |
flex-basis: 66.667%; | |
max-width: 66.667%; | |
} | |
.col-md-9 { | |
flex-basis: 75%; | |
max-width: 75%; | |
} | |
.col-md-10 { | |
flex-basis: 83.333%; | |
max-width: 83.333%; | |
} | |
.col-md-11 { | |
flex-basis: 91.667%; | |
max-width: 91.667%; | |
} | |
.col-md-12 { | |
flex-basis: 100%; | |
max-width: 100%; | |
} | |
.col-md-offset-1 { | |
margin-left: 8.333%; | |
} | |
.col-md-offset-2 { | |
margin-left: 16.667%; | |
} | |
.col-md-offset-3 { | |
margin-left: 25%; | |
} | |
.col-md-offset-4 { | |
margin-left: 33.333%; | |
} | |
.col-md-offset-5 { | |
margin-left: 41.667%; | |
} | |
.col-md-offset-6 { | |
margin-left: 50%; | |
} | |
.col-md-offset-7 { | |
margin-left: 58.333%; | |
} | |
.col-md-offset-8 { | |
margin-left: 66.667%; | |
} | |
.col-md-offset-9 { | |
margin-left: 75%; | |
} | |
.col-md-offset-10 { | |
margin-left: 83.333%; | |
} | |
.col-md-offset-11 { | |
margin-left: 91.667%; | |
} | |
.start-md { | |
justify-content: flex-start; | |
text-align: start; | |
} | |
.center-md { | |
justify-content: center; | |
text-align: center; | |
} | |
.end-md { | |
justify-content: flex-end; | |
text-align: end; | |
} | |
.top-md { | |
align-items: flex-start; | |
} | |
.middle-md { | |
align-items: center; | |
} | |
.bottom-md { | |
align-items: flex-end; | |
} | |
.around-md { | |
justify-content: space-around; | |
} | |
.between-md { | |
justify-content: space-between; | |
} | |
.first-md { | |
order: -1; | |
} | |
.last-md { | |
order: 1; | |
} | |
} | |
@media only screen and (min-width: 75em) { | |
.container { | |
width: 71rem; | |
} | |
.col-lg, .col-lg-1, .col-lg-2, .col-lg-3, .col-lg-4, .col-lg-5, .col-lg-6, .col-lg-7, .col-lg-8, .col-lg-9, .col-lg-10, .col-lg-11, .col-lg-12, .col-lg-offset-1, .col-lg-offset-2, .col-lg-offset-3, .col-lg-offset-4, .col-lg-offset-5, .col-lg-offset-6, .col-lg-offset-7, .col-lg-offset-8, .col-lg-offset-9, .col-lg-offset-10, .col-lg-offset-11, .col-lg-offset-12 { /* 'https://github.com/kristoferjoseph/flexboxgrid/blob/master/css/flexboxgrid.css' ne prévoie pas de container pour les offsets, contrairement au site ! */ | |
box-sizing: border-box; | |
flex: 0 0 auto; | |
padding-right: .5rem; | |
padding-left: .5rem; | |
} | |
.col-lg { | |
flex-grow: 1; | |
flex-basis: 0; | |
max-width: 100%; | |
} | |
.col-lg-1 { | |
flex-basis: 8.333%; | |
max-width: 8.333%; | |
} | |
.col-lg-2 { | |
flex-basis: 16.667%; | |
max-width: 16.667%; | |
} | |
.col-lg-3 { | |
flex-basis: 25%; | |
max-width: 25%; | |
} | |
.col-lg-4 { | |
flex-basis: 33.333%; | |
max-width: 33.333%; | |
} | |
.col-lg-5 { | |
flex-basis: 41.667%; | |
max-width: 41.667%; | |
} | |
.col-lg-6 { | |
flex-basis: 50%; | |
max-width: 50%; | |
} | |
.col-lg-7 { | |
flex-basis: 58.333%; | |
max-width: 58.333%; | |
} | |
.col-lg-8 { | |
flex-basis: 66.667%; | |
max-width: 66.667%; | |
} | |
.col-lg-9 { | |
flex-basis: 75%; | |
max-width: 75%; | |
} | |
.col-lg-10 { | |
flex-basis: 83.333%; | |
max-width: 83.333%; | |
} | |
.col-lg-11 { | |
flex-basis: 91.667%; | |
max-width: 91.667%; | |
} | |
.col-lg-12 { | |
flex-basis: 100%; | |
max-width: 100%; | |
} | |
.col-lg-offset-1 { | |
margin-left: 8.333%; | |
} | |
.col-lg-offset-2 { | |
margin-left: 16.667%; | |
} | |
.col-lg-offset-3 { | |
margin-left: 25%; | |
} | |
.col-lg-offset-4 { | |
margin-left: 33.333%; | |
} | |
.col-lg-offset-5 { | |
margin-left: 41.667%; | |
} | |
.col-lg-offset-6 { | |
margin-left: 50%; | |
} | |
.col-lg-offset-7 { | |
margin-left: 58.333%; | |
} | |
.col-lg-offset-8 { | |
margin-left: 66.667%; | |
} | |
.col-lg-offset-9 { | |
margin-left: 75%; | |
} | |
.col-lg-offset-10 { | |
margin-left: 83.333%; | |
} | |
.col-lg-offset-11 { | |
margin-left: 91.667%; | |
} | |
.start-lg { | |
justify-content: flex-start; | |
text-align: start; | |
} | |
.center-lg { | |
justify-content: center; | |
text-align: center; | |
} | |
.end-lg { | |
justify-content: flex-end; | |
text-align: end; | |
} | |
.top-lg { | |
align-items: flex-start; | |
} | |
.middle-lg { | |
align-items: center; | |
} | |
.bottom-lg { | |
align-items: flex-end; | |
} | |
.around-lg { | |
justify-content: space-around; | |
} | |
.between-lg { | |
justify-content: space-between; | |
} | |
.first-lg { | |
order: -1; | |
} | |
.last-lg { | |
order: 1; | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* https://raw.githubusercontent.com/kristoferjoseph/flexboxgrid/master/src/css/flexboxgrid.css */ | |
/* Cette feuille de style utilise probablement (?) un post-processeur, https://github.com/postcss/postcss */ | |
:root { | |
--gutter-width: 1rem; | |
--outer-margin: 2rem; | |
--gutter-compensation: calc((var(--gutter-width) * 0.5) * -1); | |
--half-gutter-width: calc((var(--gutter-width) * 0.5)); | |
--xs-min: 30; | |
--sm-min: 48; | |
--md-min: 64; | |
--lg-min: 75; | |
--screen-xs-min: var(--xs-min)em; | |
--screen-sm-min: var(--sm-min)em; | |
--screen-md-min: var(--md-min)em; | |
--screen-lg-min: var(--lg-min)em; | |
--container-sm: calc(var(--sm-min) + var(--gutter-width)); | |
--container-md: calc(var(--md-min) + var(--gutter-width)); | |
--container-lg: calc(var(--lg-min) + var(--gutter-width)); | |
} | |
@custom-media --sm-viewport only screen and (min-width: 48em); | |
@custom-media --md-viewport only screen and (min-width: 64em); | |
@custom-media --lg-viewport only screen and (min-width: 75em); | |
.container-fluid, .container { | |
margin-right: auto; | |
margin-left: auto; | |
} | |
.container-fluid { | |
padding-right: var(--outer-margin, 2rem); | |
padding-left: var(--outer-margin, 2rem); | |
} | |
.row { | |
box-sizing: border-box; | |
display: flex; | |
flex: 0 1 auto; | |
flex-direction: row; | |
flex-wrap: wrap; | |
margin-right: var(--gutter-compensation, -0.5rem); | |
margin-left: var(--gutter-compensation, -0.5rem); | |
} | |
.row.reverse { | |
flex-direction: row-reverse; | |
} | |
.col.reverse { | |
flex-direction: column-reverse; | |
} | |
.col-xs, | |
.col-xs-1, | |
.col-xs-2, | |
.col-xs-3, | |
.col-xs-4, | |
.col-xs-5, | |
.col-xs-6, | |
.col-xs-7, | |
.col-xs-8, | |
.col-xs-9, | |
.col-xs-10, | |
.col-xs-11, | |
.col-xs-12, | |
.col-xs-offset-1, | |
.col-xs-offset-2, | |
.col-xs-offset-3, | |
.col-xs-offset-4, | |
.col-xs-offset-5, | |
.col-xs-offset-6, | |
.col-xs-offset-7, | |
.col-xs-offset-8, | |
.col-xs-offset-9, | |
.col-xs-offset-10, | |
.col-xs-offset-11, | |
.col-xs-offset-12 { | |
box-sizing: border-box; | |
flex: 0 0 auto; | |
padding-right: var(--half-gutter-width, 0.5rem); | |
padding-left: var(--half-gutter-width, 0.5rem); | |
} | |
.col-xs { | |
flex-grow: 1; | |
flex-basis: 0; | |
max-width: 100%; | |
} | |
.col-xs-1 { | |
flex-basis: 8.333%; | |
max-width: 8.333%; | |
} | |
.col-xs-2 { | |
flex-basis: 16.667%; | |
max-width: 16.667%; | |
} | |
.col-xs-3 { | |
flex-basis: 25%; | |
max-width: 25%; | |
} | |
.col-xs-4 { | |
flex-basis: 33.333%; | |
max-width: 33.333%; | |
} | |
.col-xs-5 { | |
flex-basis: 41.667%; | |
max-width: 41.667%; | |
} | |
.col-xs-6 { | |
flex-basis: 50%; | |
max-width: 50%; | |
} | |
.col-xs-7 { | |
flex-basis: 58.333%; | |
max-width: 58.333%; | |
} | |
.col-xs-8 { | |
flex-basis: 66.667%; | |
max-width: 66.667%; | |
} | |
.col-xs-9 { | |
flex-basis: 75%; | |
max-width: 75%; | |
} | |
.col-xs-10 { | |
flex-basis: 83.333%; | |
max-width: 83.333%; | |
} | |
.col-xs-11 { | |
flex-basis: 91.667%; | |
max-width: 91.667%; | |
} | |
.col-xs-12 { | |
flex-basis: 100%; | |
max-width: 100%; | |
} | |
.col-xs-offset-1 { | |
margin-left: 8.333%; | |
} | |
.col-xs-offset-2 { | |
margin-left: 16.667%; | |
} | |
.col-xs-offset-3 { | |
margin-left: 25%; | |
} | |
.col-xs-offset-4 { | |
margin-left: 33.333%; | |
} | |
.col-xs-offset-5 { | |
margin-left: 41.667%; | |
} | |
.col-xs-offset-6 { | |
margin-left: 50%; | |
} | |
.col-xs-offset-7 { | |
margin-left: 58.333%; | |
} | |
.col-xs-offset-8 { | |
margin-left: 66.667%; | |
} | |
.col-xs-offset-9 { | |
margin-left: 75%; | |
} | |
.col-xs-offset-10 { | |
margin-left: 83.333%; | |
} | |
.col-xs-offset-11 { | |
margin-left: 91.667%; | |
} | |
.start-xs { | |
justify-content: flex-start; | |
text-align: start; | |
} | |
.center-xs { | |
justify-content: center; | |
text-align: center; | |
} | |
.end-xs { | |
justify-content: flex-end; | |
text-align: end; | |
} | |
.top-xs { | |
align-items: flex-start; | |
} | |
.middle-xs { | |
align-items: center; | |
} | |
.bottom-xs { | |
align-items: flex-end; | |
} | |
.around-xs { | |
justify-content: space-around; | |
} | |
.between-xs { | |
justify-content: space-between; | |
} | |
.first-xs { | |
order: -1; | |
} | |
.last-xs { | |
order: 1; | |
} | |
@media (--sm-viewport) { | |
.container { | |
width: var(--container-sm, 46rem); | |
} | |
.col-sm, | |
.col-sm-1, | |
.col-sm-2, | |
.col-sm-3, | |
.col-sm-4, | |
.col-sm-5, | |
.col-sm-6, | |
.col-sm-7, | |
.col-sm-8, | |
.col-sm-9, | |
.col-sm-10, | |
.col-sm-11, | |
.col-sm-12, | |
.col-sm-offset-1, | |
.col-sm-offset-2, | |
.col-sm-offset-3, | |
.col-sm-offset-4, | |
.col-sm-offset-5, | |
.col-sm-offset-6, | |
.col-sm-offset-7, | |
.col-sm-offset-8, | |
.col-sm-offset-9, | |
.col-sm-offset-10, | |
.col-sm-offset-11, | |
.col-sm-offset-12 { | |
box-sizing: border-box; | |
flex: 0 0 auto; | |
padding-right: var(--half-gutter-width, 0.5rem); | |
padding-left: var(--half-gutter-width, 0.5rem); | |
} | |
.col-sm { | |
flex-grow: 1; | |
flex-basis: 0; | |
max-width: 100%; | |
} | |
.col-sm-1 { | |
flex-basis: 8.333%; | |
max-width: 8.333%; | |
} | |
.col-sm-2 { | |
flex-basis: 16.667%; | |
max-width: 16.667%; | |
} | |
.col-sm-3 { | |
flex-basis: 25%; | |
max-width: 25%; | |
} | |
.col-sm-4 { | |
flex-basis: 33.333%; | |
max-width: 33.333%; | |
} | |
.col-sm-5 { | |
flex-basis: 41.667%; | |
max-width: 41.667%; | |
} | |
.col-sm-6 { | |
flex-basis: 50%; | |
max-width: 50%; | |
} | |
.col-sm-7 { | |
flex-basis: 58.333%; | |
max-width: 58.333%; | |
} | |
.col-sm-8 { | |
flex-basis: 66.667%; | |
max-width: 66.667%; | |
} | |
.col-sm-9 { | |
flex-basis: 75%; | |
max-width: 75%; | |
} | |
.col-sm-10 { | |
flex-basis: 83.333%; | |
max-width: 83.333%; | |
} | |
.col-sm-11 { | |
flex-basis: 91.667%; | |
max-width: 91.667%; | |
} | |
.col-sm-12 { | |
flex-basis: 100%; | |
max-width: 100%; | |
} | |
.col-sm-offset-1 { | |
margin-left: 8.333%; | |
} | |
.col-sm-offset-2 { | |
margin-left: 16.667%; | |
} | |
.col-sm-offset-3 { | |
margin-left: 25%; | |
} | |
.col-sm-offset-4 { | |
margin-left: 33.333%; | |
} | |
.col-sm-offset-5 { | |
margin-left: 41.667%; | |
} | |
.col-sm-offset-6 { | |
margin-left: 50%; | |
} | |
.col-sm-offset-7 { | |
margin-left: 58.333%; | |
} | |
.col-sm-offset-8 { | |
margin-left: 66.667%; | |
} | |
.col-sm-offset-9 { | |
margin-left: 75%; | |
} | |
.col-sm-offset-10 { | |
margin-left: 83.333%; | |
} | |
.col-sm-offset-11 { | |
margin-left: 91.667%; | |
} | |
.start-sm { | |
justify-content: flex-start; | |
text-align: start; | |
} | |
.center-sm { | |
justify-content: center; | |
text-align: center; | |
} | |
.end-sm { | |
justify-content: flex-end; | |
text-align: end; | |
} | |
.top-sm { | |
align-items: flex-start; | |
} | |
.middle-sm { | |
align-items: center; | |
} | |
.bottom-sm { | |
align-items: flex-end; | |
} | |
.around-sm { | |
justify-content: space-around; | |
} | |
.between-sm { | |
justify-content: space-between; | |
} | |
.first-sm { | |
order: -1; | |
} | |
.last-sm { | |
order: 1; | |
} | |
} | |
@media (--md-viewport) { | |
.container { | |
width: var(--container-md, 61rem); | |
} | |
.col-md, | |
.col-md-1, | |
.col-md-2, | |
.col-md-3, | |
.col-md-4, | |
.col-md-5, | |
.col-md-6, | |
.col-md-7, | |
.col-md-8, | |
.col-md-9, | |
.col-md-10, | |
.col-md-11, | |
.col-md-12, | |
.col-md-offset-1, | |
.col-md-offset-2, | |
.col-md-offset-3, | |
.col-md-offset-4, | |
.col-md-offset-5, | |
.col-md-offset-6, | |
.col-md-offset-7, | |
.col-md-offset-8, | |
.col-md-offset-9, | |
.col-md-offset-10, | |
.col-md-offset-11, | |
.col-md-offset-12 { | |
box-sizing: border-box; | |
flex: 0 0 auto; | |
padding-right: var(--half-gutter-width, 0.5rem); | |
padding-left: var(--half-gutter-width, 0.5rem); | |
} | |
.col-md { | |
flex-grow: 1; | |
flex-basis: 0; | |
max-width: 100%; | |
} | |
.col-md-1 { | |
flex-basis: 8.333%; | |
max-width: 8.333%; | |
} | |
.col-md-2 { | |
flex-basis: 16.667%; | |
max-width: 16.667%; | |
} | |
.col-md-3 { | |
flex-basis: 25%; | |
max-width: 25%; | |
} | |
.col-md-4 { | |
flex-basis: 33.333%; | |
max-width: 33.333%; | |
} | |
.col-md-5 { | |
flex-basis: 41.667%; | |
max-width: 41.667%; | |
} | |
.col-md-6 { | |
flex-basis: 50%; | |
max-width: 50%; | |
} | |
.col-md-7 { | |
flex-basis: 58.333%; | |
max-width: 58.333%; | |
} | |
.col-md-8 { | |
flex-basis: 66.667%; | |
max-width: 66.667%; | |
} | |
.col-md-9 { | |
flex-basis: 75%; | |
max-width: 75%; | |
} | |
.col-md-10 { | |
flex-basis: 83.333%; | |
max-width: 83.333%; | |
} | |
.col-md-11 { | |
flex-basis: 91.667%; | |
max-width: 91.667%; | |
} | |
.col-md-12 { | |
flex-basis: 100%; | |
max-width: 100%; | |
} | |
.col-md-offset-1 { | |
margin-left: 8.333%; | |
} | |
.col-md-offset-2 { | |
margin-left: 16.667%; | |
} | |
.col-md-offset-3 { | |
margin-left: 25%; | |
} | |
.col-md-offset-4 { | |
margin-left: 33.333%; | |
} | |
.col-md-offset-5 { | |
margin-left: 41.667%; | |
} | |
.col-md-offset-6 { | |
margin-left: 50%; | |
} | |
.col-md-offset-7 { | |
margin-left: 58.333%; | |
} | |
.col-md-offset-8 { | |
margin-left: 66.667%; | |
} | |
.col-md-offset-9 { | |
margin-left: 75%; | |
} | |
.col-md-offset-10 { | |
margin-left: 83.333%; | |
} | |
.col-md-offset-11 { | |
margin-left: 91.667%; | |
} | |
.start-md { | |
justify-content: flex-start; | |
text-align: start; | |
} | |
.center-md { | |
justify-content: center; | |
text-align: center; | |
} | |
.end-md { | |
justify-content: flex-end; | |
text-align: end; | |
} | |
.top-md { | |
align-items: flex-start; | |
} | |
.middle-md { | |
align-items: center; | |
} | |
.bottom-md { | |
align-items: flex-end; | |
} | |
.around-md { | |
justify-content: space-around; | |
} | |
.between-md { | |
justify-content: space-between; | |
} | |
.first-md { | |
order: -1; | |
} | |
.last-md { | |
order: 1; | |
} | |
} | |
@media (--lg-viewport) { | |
.container { | |
width: var(--container-lg, 71rem); | |
} | |
.col-lg, | |
.col-lg-1, | |
.col-lg-2, | |
.col-lg-3, | |
.col-lg-4, | |
.col-lg-5, | |
.col-lg-6, | |
.col-lg-7, | |
.col-lg-8, | |
.col-lg-9, | |
.col-lg-10, | |
.col-lg-11, | |
.col-lg-12, | |
.col-lg-offset-1, | |
.col-lg-offset-2, | |
.col-lg-offset-3, | |
.col-lg-offset-4, | |
.col-lg-offset-5, | |
.col-lg-offset-6, | |
.col-lg-offset-7, | |
.col-lg-offset-8, | |
.col-lg-offset-9, | |
.col-lg-offset-10, | |
.col-lg-offset-11, | |
.col-lg-offset-12 { | |
box-sizing: border-box; | |
flex: 0 0 auto; | |
padding-right: var(--half-gutter-width, 0.5rem); | |
padding-left: var(--half-gutter-width, 0.5rem); | |
} | |
.col-lg { | |
flex-grow: 1; | |
flex-basis: 0; | |
max-width: 100%; | |
} | |
.col-lg-1 { | |
flex-basis: 8.333%; | |
max-width: 8.333%; | |
} | |
.col-lg-2 { | |
flex-basis: 16.667%; | |
max-width: 16.667%; | |
} | |
.col-lg-3 { | |
flex-basis: 25%; | |
max-width: 25%; | |
} | |
.col-lg-4 { | |
flex-basis: 33.333%; | |
max-width: 33.333%; | |
} | |
.col-lg-5 { | |
flex-basis: 41.667%; | |
max-width: 41.667%; | |
} | |
.col-lg-6 { | |
flex-basis: 50%; | |
max-width: 50%; | |
} | |
.col-lg-7 { | |
flex-basis: 58.333%; | |
max-width: 58.333%; | |
} | |
.col-lg-8 { | |
flex-basis: 66.667%; | |
max-width: 66.667%; | |
} | |
.col-lg-9 { | |
flex-basis: 75%; | |
max-width: 75%; | |
} | |
.col-lg-10 { | |
flex-basis: 83.333%; | |
max-width: 83.333%; | |
} | |
.col-lg-11 { | |
flex-basis: 91.667%; | |
max-width: 91.667%; | |
} | |
.col-lg-12 { | |
flex-basis: 100%; | |
max-width: 100%; | |
} | |
.col-lg-offset-1 { | |
margin-left: 8.333%; | |
} | |
.col-lg-offset-2 { | |
margin-left: 16.667%; | |
} | |
.col-lg-offset-3 { | |
margin-left: 25%; | |
} | |
.col-lg-offset-4 { | |
margin-left: 33.333%; | |
} | |
.col-lg-offset-5 { | |
margin-left: 41.667%; | |
} | |
.col-lg-offset-6 { | |
margin-left: 50%; | |
} | |
.col-lg-offset-7 { | |
margin-left: 58.333%; | |
} | |
.col-lg-offset-8 { | |
margin-left: 66.667%; | |
} | |
.col-lg-offset-9 { | |
margin-left: 75%; | |
} | |
.col-lg-offset-10 { | |
margin-left: 83.333%; | |
} | |
.col-lg-offset-11 { | |
margin-left: 91.667%; | |
} | |
.start-lg { | |
justify-content: flex-start; | |
text-align: start; | |
} | |
.center-lg { | |
justify-content: center; | |
text-align: center; | |
} | |
.end-lg { | |
justify-content: flex-end; | |
text-align: end; | |
} | |
.top-lg { | |
align-items: flex-start; | |
} | |
.middle-lg { | |
align-items: center; | |
} | |
.bottom-lg { | |
align-items: flex-end; | |
} | |
.around-lg { | |
justify-content: space-around; | |
} | |
.between-lg { | |
justify-content: space-between; | |
} | |
.first-lg { | |
order: -1; | |
} | |
.last-lg { | |
order: 1; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment