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

Commit

Permalink
use prefixed flexbox in IE 10
Browse files Browse the repository at this point in the history
  • Loading branch information
dfreedm committed Sep 13, 2013
1 parent 3b5e695 commit a013a19
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 6 deletions.
5 changes: 4 additions & 1 deletion pica/components/css/pi-accounts.css
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,11 @@
.item {
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;
height: 60px;
padding: 0 20px;
Expand Down Expand Up @@ -51,6 +53,7 @@
display: -webkit-box;
-webkit-box-flex: 1;
-webkit-flex: 1;
-ms-flex: 1;
flex: 1;
}

Expand Down Expand Up @@ -96,4 +99,4 @@
.button:active {
box-shadow: inset 0 3px 7px rgba(0, 0, 0, 0.15), 0 1px 2px rgba(0, 0, 0, 0.05);
color: #555;
}
}
5 changes: 5 additions & 0 deletions pica/components/css/pi-app.css
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,12 @@

/* layout content using flexbox */
display: -webkit-box;
display: -ms-flexbox;
display: -webkit-flex;
display: flex;
-webkit-box-orient: vertical;
-webkit-flex-flow: column;
-ms-flex-direction: column;
flex-direction: column;

/* convenient defaults */
Expand All @@ -29,6 +31,7 @@
#panels, #contentPanels, #Topics {
-webkit-box-flex: 1;
-webkit-flex: 1;
-ms-flex: 1;
flex: 1;
overflow: hidden;
}
Expand All @@ -46,9 +49,11 @@
#main {
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: white;
}
Expand Down
2 changes: 2 additions & 0 deletions pica/components/css/pi-feed-viewer.css
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,15 @@
* {
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
}
}

.feed-viewer-panels {
-webkit-box-flex: 1;
-webkit-flex: 1;
-ms-flex: 1;
flex: 1;
position: relative;
}
Expand Down
3 changes: 3 additions & 0 deletions pica/components/css/pi-items-view.css
Original file line number Diff line number Diff line change
Expand Up @@ -127,9 +127,11 @@
#more {
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;
float: none;
width: 100%;
Expand Down Expand Up @@ -225,6 +227,7 @@
.column #more {
display: -webkit-inline-box;
display: -webkit-inline-flex;
display: -ms-inline-flexbox;
display: inline-flex;
width: 150px;
min-width: 0;
Expand Down
6 changes: 5 additions & 1 deletion pica/components/css/pi-toolbar.css
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,12 @@
/*@polyfill #actionbar > .toolbar > *:not(:last-child):not([hidden]) */
#actionbar content::-webkit-distributed(*:not(:last-child):not([hidden])) {
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
-webkit-box-flex: 1;
-webkit-flex: 1;
-ms-flex: 1;
flex: 1;
}
}
}
4 changes: 0 additions & 4 deletions pica/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,9 @@
<html>
<head>
<title>Pica</title>
<script src="logBoot.js"></script>
<script src="../../polymer/polymer.js"></script>
<!--<script src="https://www.google.com/jsapi"></script>-->
<script src="jsapi.js"></script>
<script>
logBoot.scriptsDone();
</script>
<link rel="import" href="components/pi-app.html"/>
<style>
body {
Expand Down

0 comments on commit a013a19

Please sign in to comment.