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

Commit

Permalink
support ms prefixed flexbox
Browse files Browse the repository at this point in the history
  • Loading branch information
dfreedm committed Sep 13, 2013
1 parent c459b85 commit e0541ee
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
4 changes: 4 additions & 0 deletions elements/g-app.html
Original file line number Diff line number Diff line change
Expand Up @@ -87,9 +87,11 @@
/* layout content using flexbox */
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
-webkit-box-orient: vertical;
-webkit-flex-flow: column;
-ms-flex-direction: column;
flex-direction: column;

/* convenient defaults */
Expand All @@ -102,13 +104,15 @@
.flex {
-webkit-box-flex: 1;
-webkit-flex: 1;
-ms-flex: 1;
flex: 1;
}

/* oobe helper for flex'ing distributed content */
content::-webkit-distributed(.flex) {
-webkit-box-flex: 1;
-webkit-flex: 1;
-ms-flex: 1;
flex: 1;
}
</style>
Expand Down
3 changes: 3 additions & 0 deletions elements/g-ribbon.html
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,11 @@
* {
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
-webkit-box-orient: vertical;
-webkit-flex-flow: column;
-ms-flex-direction: column;
flex-direction: column;
background: -webkit-linear-gradient(-60deg, #3d3d3d, #353535);
background: -moz-linear-gradient(-60deg, #3d3d3d, #353535);
Expand All @@ -59,6 +61,7 @@
.menu {
-webkit-box-flex: 1;
-webkit-flex: 1;
-ms-flex: 1;
flex: 1;
overflow: auto;
}
Expand Down
3 changes: 3 additions & 0 deletions elements/g-toolbar.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,11 @@
.toolbar {
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
-webkit-box-align: center;
-webkit-align-items: center;
-ms-flex-align: center;
align-items: center;
min-height: 60px;
background-color: whitesmoke;
Expand All @@ -53,6 +55,7 @@
::-webkit-distributed(.flex) {
-webkit-box-flex: 1;
-webkit-flex: 1;
-ms-flex: 1;
flex: 1;
}

Expand Down

0 comments on commit e0541ee

Please sign in to comment.