Skip to content

Commit ea25a99

Browse files
committed
added box model properties.
1 parent 809ff9e commit ea25a99

3 files changed

Lines changed: 55 additions & 0 deletions

File tree

lib/nib/vendor.styl

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,35 @@ opacity(n)
128128
whitespace()
129129
white-space: arguments
130130

131+
/*
132+
* Vendor "box-orient" support.
133+
*/
134+
135+
box-orient()
136+
vendor('box-orient', arguments)
137+
138+
/*
139+
* Vendor "box-flex" support.
140+
*/
141+
142+
box-flex()
143+
vendor('box-flex', arguments)
144+
145+
/*
146+
* Vendor "box-align" support.
147+
*/
148+
149+
box-align()
150+
vendor('box-align', arguments)
151+
152+
/*
153+
* Vendor "box-pack" support.
154+
*/
155+
156+
box-pack()
157+
vendor('box-pack', arguments)
158+
159+
131160
/*
132161
* Helper for border-radius().
133162
*/

test/cases/vendor.css

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,24 @@ button {
1111
opacity: 0.75;
1212
white-space: nowrap;
1313
}
14+
section {
15+
-webkit-box-orient: vertical;
16+
-moz-box-orient: vertical;
17+
box-orient: vertical;
18+
}
19+
section div {
20+
-webkit-box-flex: 1;
21+
-moz-box-flex: 1;
22+
box-flex: 1;
23+
}
24+
section {
25+
-webkit-box-align: center;
26+
-moz-box-align: center;
27+
box-align: center;
28+
-webkit-box-pack: center;
29+
-moz-box-pack: center;
30+
box-pack: center;
31+
}
1432
button {
1533
-o-transition: all 0.1s ease-in-out 1s;
1634
-webkit-transition: all 0.1s ease-in-out 1s;

test/cases/vendor.styl

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,14 @@ button
1313
opacity: 0.75
1414
whitespace: no-wrap
1515

16+
section
17+
box-orient: vertical;
18+
div
19+
box-flex: 1;
20+
21+
section
22+
box-align: center;
23+
box-pack: center;
1624

1725
prepend(vendor-prefixes, o)
1826

0 commit comments

Comments
 (0)