##// END OF EJS Templates
Fix out of date docstring
Fix out of date docstring

File last commit:

r17597:21c072f8
r18098:26753f5c
Show More
flexbox.less
269 lines | 4.8 KiB | text/x-less | LessCssLexer
Bussonnier Matthias
readd flexible-box-model
r9271
/* Flexible box model classes */
/* Taken from Alex Russell http://infrequently.org/2009/08/css-3-progress/ */
Matthias BUSSONNIER
remove trailing whitespace
r9284
Jonathan Frederic
Corrected a lot of small misuses of the new flex model.
r15250 /* This file is a compatability layer. It allows the usage of flexible box
model layouts accross multiple browsers, including older browsers. The newest,
universal implementation of the flexible box model is used when available (see
`Modern browsers` comments below). Browsers that are known to implement this
new spec completely include:
Firefox 28.0+
Chrome 29.0+
Internet Explorer 11+
Opera 17.0+
Browsers not listed, including Safari, are supported via the styling under the
`Old browsers` comments below.
*/
Bussonnier Matthias
readd flexible-box-model
r9271 .hbox {
Jonathan Frederic
Corrected a lot of small misuses of the new flex model.
r15250 /* Old browsers */
Brian E. Granger
More tabs to spaces on less files.
r13696 display: -webkit-box;
-webkit-box-orient: horizontal;
-webkit-box-align: stretch;
Matthias BUSSONNIER
remove trailing whitespace
r9284
Brian E. Granger
More tabs to spaces on less files.
r13696 display: -moz-box;
-moz-box-orient: horizontal;
-moz-box-align: stretch;
Matthias BUSSONNIER
remove trailing whitespace
r9284
Brian E. Granger
More tabs to spaces on less files.
r13696 display: box;
box-orient: horizontal;
box-align: stretch;
Jonathan Frederic
New 'flex' support...
r15119
Jonathan Frederic
Corrected a lot of small misuses of the new flex model.
r15250 /* Modern browsers */
Jonathan Frederic
New 'flex' support...
r15119 display: flex;
flex-direction: row;
Jonathan Frederic
Revert "Change stretch to flex-start"...
r15258 align-items: stretch;
Bussonnier Matthias
readd flexible-box-model
r9271 }
Matthias BUSSONNIER
remove trailing whitespace
r9284
Bussonnier Matthias
readd flexible-box-model
r9271 .hbox > * {
Jonathan Frederic
Corrected a lot of small misuses of the new flex model.
r15250 /* Old browsers */
Brian E. Granger
More tabs to spaces on less files.
r13696 -webkit-box-flex: 0;
-moz-box-flex: 0;
box-flex: 0;
Jonathan Frederic
Corrected a lot of small misuses of the new flex model.
r15250
/* Modern browsers */
flex: none;
Bussonnier Matthias
readd flexible-box-model
r9271 }
Matthias BUSSONNIER
remove trailing whitespace
r9284
Bussonnier Matthias
readd flexible-box-model
r9271 .vbox {
Jonathan Frederic
Corrected a lot of small misuses of the new flex model.
r15250 /* Old browsers */
Brian E. Granger
More tabs to spaces on less files.
r13696 display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-box-align: stretch;
display: -moz-box;
-moz-box-orient: vertical;
-moz-box-align: stretch;
display: box;
box-orient: vertical;
box-align: stretch;
Jonathan Frederic
New 'flex' support...
r15119
Jonathan Frederic
Corrected a lot of small misuses of the new flex model.
r15250 /* Modern browsers */
Jonathan Frederic
New 'flex' support...
r15119 display: flex;
flex-direction: column;
Jonathan Frederic
Revert "Change stretch to flex-start"...
r15258 align-items: stretch;
Bussonnier Matthias
readd flexible-box-model
r9271 }
Matthias BUSSONNIER
remove trailing whitespace
r9284
Bussonnier Matthias
readd flexible-box-model
r9271 .vbox > * {
Jonathan Frederic
Corrected a lot of small misuses of the new flex model.
r15250 /* Old browsers */
Brian E. Granger
More tabs to spaces on less files.
r13696 -webkit-box-flex: 0;
-moz-box-flex: 0;
box-flex: 0;
Jonathan Frederic
Corrected a lot of small misuses of the new flex model.
r15250
/* Modern browsers */
flex: none;
Bussonnier Matthias
readd flexible-box-model
r9271 }
Matthias BUSSONNIER
remove trailing whitespace
r9284
Jonathan Frederic
Fix specifity of flex modifier classes
r15831 .hbox.reverse,
Jonathan Frederic
Re-added already existing base for less backwards compatability.
r15832 .vbox.reverse,
.reverse {
Jonathan Frederic
Corrected a lot of small misuses of the new flex model.
r15250 /* Old browsers */
Brian E. Granger
More tabs to spaces on less files.
r13696 -webkit-box-direction: reverse;
-moz-box-direction: reverse;
box-direction: reverse;
Jonathan Frederic
Corrected a lot of small misuses of the new flex model.
r15250
/* Modern browsers */
flex-direction: row-reverse;
Bussonnier Matthias
readd flexible-box-model
r9271 }
Matthias BUSSONNIER
remove trailing whitespace
r9284
Jonathan Frederic
Fix specifity of flex modifier classes
r15831 .hbox.box-flex0,
Jonathan Frederic
Re-added already existing base for less backwards compatability.
r15832 .vbox.box-flex0,
.box-flex0 {
Jonathan Frederic
Corrected a lot of small misuses of the new flex model.
r15250 /* Old browsers */
Brian E. Granger
More tabs to spaces on less files.
r13696 -webkit-box-flex: 0;
-moz-box-flex: 0;
box-flex: 0;
Jonathan Frederic
Corrected a lot of small misuses of the new flex model.
r15250
/* Modern browsers */
flex: none;
Jonathan Frederic
Automatic width adjustment for flex0
r15253 width: auto;
Bussonnier Matthias
readd flexible-box-model
r9271 }
Matthias BUSSONNIER
remove trailing whitespace
r9284
Jonathan Frederic
Fix specifity of flex modifier classes
r15831 .hbox.box-flex1,
Jonathan Frederic
Re-added already existing base for less backwards compatability.
r15832 .vbox.box-flex1,
.box-flex1 {
Jonathan Frederic
Corrected a lot of small misuses of the new flex model.
r15250 /* Old browsers */
Brian E. Granger
More tabs to spaces on less files.
r13696 -webkit-box-flex: 1;
-moz-box-flex: 1;
box-flex: 1;
Jonathan Frederic
Corrected a lot of small misuses of the new flex model.
r15250
/* Modern browsers */
Jonathan Frederic
New 'flex' support...
r15119 flex: 1;
Bussonnier Matthias
readd flexible-box-model
r9271 }
Matthias BUSSONNIER
remove trailing whitespace
r9284
Jonathan Frederic
Fix specifity of flex modifier classes
r15831 .hbox.box-flex,
Jonathan Frederic
Re-added already existing base for less backwards compatability.
r15832 .vbox.box-flex,
.box-flex {
Jonathan Frederic
Corrected a lot of small misuses of the new flex model.
r15250 /* Old browsers */
Matthias BUSSONNIER
merge box-flex1 class into .output-area css definition
r10218 .box-flex1();
}
Jonathan Frederic
Fix specifity of flex modifier classes
r15831 .hbox.box-flex2,
Jonathan Frederic
Re-added already existing base for less backwards compatability.
r15832 .vbox.box-flex2,
.box-flex2 {
Jonathan Frederic
Corrected a lot of small misuses of the new flex model.
r15250 /* Old browsers */
Brian E. Granger
More tabs to spaces on less files.
r13696 -webkit-box-flex: 2;
-moz-box-flex: 2;
box-flex: 2;
Jonathan Frederic
Corrected a lot of small misuses of the new flex model.
r15250
/* Modern browsers */
Jonathan Frederic
New 'flex' support...
r15119 flex: 2;
Bussonnier Matthias
readd flexible-box-model
r9271 }
Matthias BUSSONNIER
remove trailing whitespace
r9284
Bussonnier Matthias
readd flexible-box-model
r9271 .box-group1 {
Jonathan Frederic
Corrected a lot of small misuses of the new flex model.
r15250 /* Deprecated */
Brian E. Granger
More tabs to spaces on less files.
r13696 -webkit-box-flex-group: 1;
-moz-box-flex-group: 1;
box-flex-group: 1;
Bussonnier Matthias
readd flexible-box-model
r9271 }
Matthias BUSSONNIER
remove trailing whitespace
r9284
Bussonnier Matthias
readd flexible-box-model
r9271 .box-group2 {
Jonathan Frederic
Corrected a lot of small misuses of the new flex model.
r15250 /* Deprecated */
Brian E. Granger
More tabs to spaces on less files.
r13696 -webkit-box-flex-group: 2;
-moz-box-flex-group: 2;
box-flex-group: 2;
Bussonnier Matthias
readd flexible-box-model
r9271 }
Matthias BUSSONNIER
remove trailing whitespace
r9284
Jonathan Frederic
Fix specifity of flex modifier classes
r15831 .hbox.start,
Jonathan Frederic
Re-added already existing base for less backwards compatability.
r15832 .vbox.start,
.start {
Jonathan Frederic
Corrected a lot of small misuses of the new flex model.
r15250 /* Old browsers */
Brian E. Granger
More tabs to spaces on less files.
r13696 -webkit-box-pack: start;
-moz-box-pack: start;
box-pack: start;
Jonathan Frederic
Corrected a lot of small misuses of the new flex model.
r15250
/* Modern browsers */
Jonathan Frederic
New 'flex' support...
r15119 justify-content: flex-start;
Bussonnier Matthias
readd flexible-box-model
r9271 }
Matthias BUSSONNIER
remove trailing whitespace
r9284
Jonathan Frederic
Fix specifity of flex modifier classes
r15831 .hbox.end,
Jonathan Frederic
Re-added already existing base for less backwards compatability.
r15832 .vbox.end,
.end {
Jonathan Frederic
Corrected a lot of small misuses of the new flex model.
r15250 /* Old browsers */
Brian E. Granger
More tabs to spaces on less files.
r13696 -webkit-box-pack: end;
-moz-box-pack: end;
box-pack: end;
Jonathan Frederic
Corrected a lot of small misuses of the new flex model.
r15250
/* Modern browsers */
Jonathan Frederic
New 'flex' support...
r15119 justify-content: flex-end;
Bussonnier Matthias
readd flexible-box-model
r9271 }
Matthias BUSSONNIER
remove trailing whitespace
r9284
Jonathan Frederic
Fix specifity of flex modifier classes
r15831 .hbox.center,
Jonathan Frederic
Re-added already existing base for less backwards compatability.
r15832 .vbox.center,
.center {
Jonathan Frederic
Corrected a lot of small misuses of the new flex model.
r15250 /* Old browsers */
Brian E. Granger
More tabs to spaces on less files.
r13696 -webkit-box-pack: center;
-moz-box-pack: center;
box-pack: center;
Jonathan Frederic
Corrected a lot of small misuses of the new flex model.
r15250
/* Modern browsers */
Jonathan Frederic
New 'flex' support...
r15119 justify-content: center;
Bussonnier Matthias
readd flexible-box-model
r9271 }
Jonathan Frederic
Added flexible box model align properties.
r14333
Jonathan Frederic
Added baseline and stretch
r17597 .hbox.baseline,
.vbox.baseline,
.baseline {
/* Old browsers */
-webkit-box-pack: baseline;
-moz-box-pack: baseline;
box-pack: baseline;
/* Modern browsers */
justify-content: baseline;
}
.hbox.stretch,
.vbox.stretch,
.stretch {
/* Old browsers */
-webkit-box-pack: stretch;
-moz-box-pack: stretch;
box-pack: stretch;
/* Modern browsers */
justify-content: stretch;
}
Jonathan Frederic
Fix specifity of flex modifier classes
r15831 .hbox.align-start,
Jonathan Frederic
Re-added already existing base for less backwards compatability.
r15832 .vbox.align-start,
.align-start {
Jonathan Frederic
Corrected a lot of small misuses of the new flex model.
r15250 /* Old browsers */
Jonathan Frederic
Convert tabs to spaces
r15130 -webkit-box-align: start;
-moz-box-align: start;
box-align: start;
Jonathan Frederic
Corrected a lot of small misuses of the new flex model.
r15250
/* Modern browsers */
align-items: flex-start;
Jonathan Frederic
Added flexible box model align properties.
r14333 }
Jonathan Frederic
Fix specifity of flex modifier classes
r15831 .hbox.align-end,
Jonathan Frederic
Re-added already existing base for less backwards compatability.
r15832 .vbox.align-end,
.align-end {
Jonathan Frederic
Corrected a lot of small misuses of the new flex model.
r15250 /* Old browsers */
Jonathan Frederic
Convert tabs to spaces
r15130 -webkit-box-align: end;
-moz-box-align: end;
box-align: end;
Jonathan Frederic
Corrected a lot of small misuses of the new flex model.
r15250
/* Modern browsers */
align-items: flex-end;
Jonathan Frederic
Added flexible box model align properties.
r14333 }
Jonathan Frederic
Fix specifity of flex modifier classes
r15831 .hbox.align-center,
Jonathan Frederic
Re-added already existing base for less backwards compatability.
r15832 .vbox.align-center,
.align-center {
Jonathan Frederic
Corrected a lot of small misuses of the new flex model.
r15250 /* Old browsers */
Jonathan Frederic
Convert tabs to spaces
r15130 -webkit-box-align: center;
-moz-box-align: center;
box-align: center;
Jonathan Frederic
Corrected a lot of small misuses of the new flex model.
r15250
/* Modern browsers */
align-items: center;
Jonathan Frederic
Added flexible box model align properties.
r14333 }
Jonathan Frederic
Added baseline and stretch
r17597
.hbox.align-baseline,
.vbox.align-baseline,
.align-baseline {
/* Old browsers */
-webkit-box-align: baseline;
-moz-box-align: baseline;
box-align: baseline;
/* Modern browsers */
align-items: baseline;
}
.hbox.align-stretch,
.vbox.align-stretch,
.align-stretch {
/* Old browsers */
-webkit-box-align: stretch;
-moz-box-align: stretch;
box-align: stretch;
/* Modern browsers */
align-items: stretch;
}