Skip to content

Commit 6c3d5f4

Browse files
Eric Jimenezchalin
Eric Jimenez
authored andcommitted
add flex system for front page and api reference. (angular#2706)
This code chunk was originally from Material 1. We’ve removed angular-material.css since its namespace collides with Material 2.
1 parent 0b56a55 commit 6c3d5f4

File tree

1 file changed

+51
-0
lines changed

1 file changed

+51
-0
lines changed

public/resources/css/module/_home-promos.scss

+51
Original file line numberDiff line numberDiff line change
@@ -78,3 +78,54 @@
7878
}
7979
}
8080
}
81+
82+
[layout="row"] {
83+
box-sizing: border-box;
84+
display: -webkit-flex;
85+
display: -ms-flexbox;
86+
display: flex;
87+
}
88+
89+
[flex="20"] {
90+
-webkit-flex: 1 1 20%;
91+
-ms-flex: 1 1 20%;
92+
flex: 1 1 20%;
93+
max-width: 20%;
94+
max-height: 100%;
95+
box-sizing: border-box;
96+
}
97+
98+
[flex="80"] {
99+
-webkit-flex: 1 1 80%;
100+
-ms-flex: 1 1 80%;
101+
flex: 1 1 80%;
102+
max-width: 80%;
103+
max-height: 100%;
104+
box-sizing: border-box;
105+
}
106+
107+
[flex="100"] {
108+
-webkit-flex: 1 1 100%;
109+
-ms-flex: 1 1 100%;
110+
flex: 1 1 100%;
111+
max-width: 100%;
112+
max-height: 100%;
113+
box-sizing: border-box;
114+
}
115+
116+
@media (max-width: 599px) {
117+
[flex-xs="100"] {
118+
-webkit-flex: 1 1 100%;
119+
-ms-flex: 1 1 100%;
120+
flex: 1 1 100%;
121+
max-width: 100%;
122+
max-height: 100%;
123+
box-sizing: border-box;
124+
}
125+
126+
[layout-xs="column"] {
127+
-webkit-flex-direction: column;
128+
-ms-flex-direction: column;
129+
flex-direction: column;
130+
}
131+
}

0 commit comments

Comments
 (0)