Skip to content
This repository has been archived by the owner on Mar 13, 2018. It is now read-only.

Commit

Permalink
add flex-none and flex-auto
Browse files Browse the repository at this point in the history
  • Loading branch information
sorvell committed Apr 16, 2014
1 parent 5dffa65 commit de00d81
Showing 1 changed file with 37 additions and 5 deletions.
42 changes: 37 additions & 5 deletions core-layout.css
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ license that can be found in the LICENSE file.
*/

.core-row, .core-column {
display: -webkit-box;
display: -ms-flexbox;
display: -moz-flex;
display: -webkit-flex;
display: flex;
display: -webkit-box !important;
display: -ms-flexbox !important;
display: -moz-flex !important;
display: -webkit-flex !important;
display: flex !important;
}

.core-row {
Expand Down Expand Up @@ -68,6 +68,22 @@ body.core-fit {
flex: 1;
}

.core-flex-auto, [core-flex-auto] {
-webkit-box-flex: 1;
-ms-flex: 1 1 auto;
-moz-flex: 1 1 auto;
-webkit-flex: 1 1 auto;
flex: 1 1 auto;
}

.core-flex-none, [core-flex-none] {
-webkit-box-flex: none;
-ms-flex: none;
-moz-flex: none;
-webkit-flex: none;
flex: none;
}

.core-flex1, [core-flex=1] {
-webkit-box-flex: 1;
-ms-flex: 1;
Expand Down Expand Up @@ -101,6 +117,22 @@ body.core-fit {
flex: 1;
}

::content > .core-flex-auto, ::content > [core-flex-auto] {
-webkit-box-flex: 1;
-ms-flex: 1 1 auto;
-moz-flex: 1 1 auto;
-webkit-flex: 1 1 auto;
flex: 1 1 auto;
}

::content > .core-flex-none, ::content > [core-flex-none] {
-webkit-box-flex: none;
-ms-flex: none;
-moz-flex: none;
-webkit-flex: none;
flex: none;
}

::content > .core-flex1, ::content > [core-flex=1] {
-webkit-box-flex: 1;
-ms-flex: 1;
Expand Down

0 comments on commit de00d81

Please sign in to comment.