##// END OF EJS Templates
Merge pull request #5051 from jdfreder/ff-hscroll2...
Merge pull request #5051 from jdfreder/ff-hscroll2 FF Fix: code cell missing hscroll (2)

File last commit:

r15130:50664fe9
r15174:5c5b08c2 merge
Show More
flexbox.less
149 lines | 2.6 KiB | text/x-less | LessCssLexer
/* Flexible box model classes */
/* Taken from Alex Russell http://infrequently.org/2009/08/css-3-progress/ */
.hbox {
display: -webkit-box;
-webkit-box-orient: horizontal;
-webkit-box-align: stretch;
display: -moz-box;
-moz-box-orient: horizontal;
-moz-box-align: stretch;
display: box;
box-orient: horizontal;
box-align: stretch;
display: flex;
flex-direction: row;
align-items: stretch;
}
.hbox > * {
-webkit-box-flex: 0;
-moz-box-flex: 0;
box-flex: 0;
flex: 0;
}
.vbox {
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;
/* width must be 100% to force FF to behave like webkit */
width: 100%;
display: flex;
flex-direction: column;
align-items: stretch;
}
.vbox > * {
-webkit-box-flex: 0;
-moz-box-flex: 0;
box-flex: 0;
flex: 0;
}
.reverse {
-webkit-box-direction: reverse;
-moz-box-direction: reverse;
box-direction: reverse;
flex-direction: column-reverse;
}
.box-flex0 {
-webkit-box-flex: 0;
-moz-box-flex: 0;
box-flex: 0;
flex: 0;
}
.box-flex1 {
-webkit-box-flex: 1;
-moz-box-flex: 1;
box-flex: 1;
flex: 1;
}
.box-flex {
.box-flex1();
}
.box-flex2 {
-webkit-box-flex: 2;
-moz-box-flex: 2;
box-flex: 2;
flex: 2;
}
.box-group1 {
/*
Deprecated
Grouping isn't supported in http://dev.w3.org/csswg/css-flexbox/
*/
-webkit-box-flex-group: 1;
-moz-box-flex-group: 1;
box-flex-group: 1;
}
.box-group2 {
/*
Deprecated
Grouping isn't supported in http://dev.w3.org/csswg/css-flexbox/
*/
-webkit-box-flex-group: 2;
-moz-box-flex-group: 2;
box-flex-group: 2;
}
.start {
-webkit-box-pack: start;
-moz-box-pack: start;
box-pack: start;
justify-content: flex-start;
}
.end {
-webkit-box-pack: end;
-moz-box-pack: end;
box-pack: end;
justify-content: flex-end;
}
.center {
-webkit-box-pack: center;
-moz-box-pack: center;
box-pack: center;
justify-content: center;
}
.align-start {
-webkit-box-align: start;
-moz-box-align: start;
box-align: start;
align-content: flex-start;
}
.align-end {
-webkit-box-align: end;
-moz-box-align: end;
box-align: end;
align-content: flex-end;
}
.align-center {
-webkit-box-align: center;
-moz-box-align: center;
box-align: center;
align-content: center;
}