Skip to content

Commit c339fd5

Browse files
committed
move border-box from utlities to reset
1 parent a8ff0c2 commit c339fd5

File tree

5 files changed

+16
-16
lines changed

5 files changed

+16
-16
lines changed

axis/reset.styl

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,3 +166,16 @@ fluid-media()
166166
border: 0
167167
-ms-interpolation-mode: bicubic
168168
display: block
169+
170+
// Mixin: Border Box HTML
171+
// Add border box to every element in your project. Used in your project root.
172+
// http://www.paulirish.com/2012/box-sizing-border-box-ftw/
173+
174+
border-box-html()
175+
html
176+
box-sizing: border-box
177+
178+
*,
179+
*:before,
180+
*:after
181+
box-sizing: inherit

axis/utilities.styl

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -62,19 +62,6 @@ triangle(direction='up', size=10px, color=#000)
6262
border-bottom: size solid transparent
6363
border-left: size solid color
6464

65-
// Mixin: Border Box HTML
66-
// Add border box to every element in your project. Used in your project root.
67-
// http://www.paulirish.com/2012/box-sizing-border-box-ftw/
68-
69-
border-box-html()
70-
html
71-
box-sizing: border-box
72-
73-
*,
74-
*:before,
75-
*:after
76-
box-sizing: inherit
77-
7865
// Mixin: Debug
7966
//
8067
// Debugging tool - adds a border to the current element, its children,

test/test.coffee

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,9 @@ describe 'reset', ->
181181
it 'fluid-media', (done) ->
182182
compile_and_match(path.join(@path, 'fluid-media.styl'), done)
183183

184+
it 'border-box-html', (done) ->
185+
compile_and_match(path.join(@path, 'border-box-html.styl'), done)
186+
184187
describe 'tables', ->
185188

186189
before -> @path = path.join(test_path, 'tables')
@@ -275,9 +278,6 @@ describe 'utilities', ->
275278
it 'debug', (done) ->
276279
compile_and_match(path.join(@path, 'debug.styl'), done)
277280

278-
it 'border-box-html', (done) ->
279-
compile_and_match(path.join(@path, 'border-box-html.styl'), done)
280-
281281
it 'quantity-queries', (done) ->
282282
compile_and_match(path.join(@path, 'quantity-queries.styl'), done)
283283

0 commit comments

Comments
 (0)