Skip to content

Commit 88240b0

Browse files
committed
Move print to reset per #205
1 parent 3f1f004 commit 88240b0

File tree

7 files changed

+137
-139
lines changed

7 files changed

+137
-139
lines changed

axis/index.styl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
@import 'buttons'
1717
@import 'forms'
1818
@import 'tables'
19-
@import 'print'
19+
2020

2121
// ------------------------------------------
2222
// Framework Mixin (loads all default styles)

axis/interaction.styl

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ hover-float()
152152
opacity: 1
153153
transform: scale(1)
154154

155-
// Mixin: Click down
155+
// Mixin: Click Down
156156
//
157157
// Move an element down while clicked/tapped. Takes distance.
158158
//
@@ -162,7 +162,7 @@ click-down($distance = 1px)
162162
&:active
163163
transform: translateY($distance)
164164

165-
// Mixin: Click shadow
165+
// Mixin: Click Shadow
166166
//
167167
// Creates a shadow under element while clicked/tapped. Takes distance and
168168
// radius (size). Recommended to be use with transition.
@@ -173,7 +173,7 @@ click-shadow($distance = 2px, $radius = 10px )
173173
&:active
174174
box-shadow: 0px $distance $radius 2px rgba(0, 0, 0, 0.25)
175175

176-
// Mixin: Click inset
176+
// Mixin: Click Inset
177177
//
178178
// Creates an inset shadow on an elment while clicked/tapped. Takes radius
179179
// (inset shadow size). Recommended to be use with transition.
@@ -185,13 +185,13 @@ click-inset($radius = 20px)
185185
&:active
186186
box-shadow: inset 0px $distance $radius rgba(0, 0, 0, 0.35);
187187

188-
// Mixin: Click-shrink
188+
// Mixin: Click Shrink
189189
//
190190
// Scale down an element when clicked/tapped. Gives the effect of "sinking"
191191
// or lowering on the z-axis.
192192
//
193193
// ex: click-shrink()
194-
194+
195195
click-shrink($distance = .92)
196196
&:active
197197
transform: scale($distance)

axis/print.styl

Lines changed: 0 additions & 126 deletions
This file was deleted.

axis/reset.styl

Lines changed: 127 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,3 +179,130 @@ border-box-html()
179179
*:before,
180180
*:after
181181
box-sizing: inherit
182+
183+
// Mixin: Print Styles
184+
// Nice clean print styles so you don't have to worry about it.
185+
186+
print-styles()
187+
@media print
188+
body
189+
width: 100% !important
190+
margin: 0 !important
191+
padding: 0 !important
192+
font-size: 14pt
193+
line-height: 1.45
194+
font-family: Garamond, "Times New Roman", serif
195+
color: #000
196+
background: none
197+
198+
h1,
199+
h2,
200+
h3,
201+
h4,
202+
h5,
203+
h6
204+
page-break-after: avoid
205+
font-family: "Helvetica", Arial, sans-serif
206+
207+
h1
208+
font-size: 36pt
209+
line-height: 1.25em
210+
211+
h2
212+
font-size: 24pt
213+
line-height: 1.25em
214+
215+
h3
216+
font-size: 18pt
217+
line-height: 1.25em
218+
219+
h4,
220+
h5,
221+
h6
222+
font-size: 14pt
223+
line-height: 1.25em
224+
225+
p,
226+
h2,
227+
h3
228+
orphans: 3
229+
widows: 3
230+
231+
code
232+
font: 12pt Courier, monospace
233+
234+
blockquote
235+
margin: 1.2em
236+
padding: 1em
237+
font-size: 24pt
238+
line-height: 1.45833333em
239+
font-style: italic
240+
241+
hr
242+
background-color: #ccc
243+
244+
img
245+
float: left
246+
margin: 1em 1.5em 1.5em 0
247+
max-width: 100% !important
248+
249+
a img
250+
border: none
251+
252+
a:link,
253+
a:visited
254+
background: transparent
255+
font-weight: 700
256+
text-decoration: underline
257+
color: #333
258+
259+
a:link[href^="http://"]:after,
260+
a[href^="http://"]:visited:after
261+
content: " (" attr(href) ") "
262+
font-size: 90%
263+
264+
abbr[title]:after
265+
content: " (" attr(title) ")"
266+
267+
a[href^="http://"]
268+
color: #000
269+
270+
a[href$=".jpg"]:after,
271+
a[href$=".jpeg"]:after,
272+
a[href$=".gif"]:after,
273+
a[href$=".png"]:after
274+
content: " (" attr(href) ") "
275+
display: none
276+
277+
a[href^="#"]:after, a[href^="javascript:"]:after
278+
content: ""
279+
280+
table
281+
margin: 1px
282+
text-align: left
283+
284+
th
285+
border-bottom: 1px solid #333
286+
font-weight: bold
287+
288+
td
289+
border-bottom: 1px solid #333
290+
291+
th,
292+
td
293+
padding: 4px 10px 4px 0
294+
295+
tfoot
296+
font-style: italic
297+
298+
caption
299+
background: #fff
300+
margin-bottom: 2em
301+
text-align: left
302+
303+
thead
304+
display: table-header-group
305+
306+
img,
307+
tr
308+
page-break-inside: avoid
File renamed without changes.
File renamed without changes.

test/test.coffee

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ describe 'interaction', ->
161161
compile_and_match(path.join(@path, 'click-inset.styl'), done)
162162

163163
it 'click-shrink', (done) ->
164-
compile_and_match(path.join(@path, 'click-shrink.styl'), done)
164+
compile_and_match(path.join(@path, 'click-shrink.styl'), done)
165165

166166
describe 'layout', ->
167167

@@ -191,12 +191,6 @@ describe 'layout', ->
191191
it 'table-layout', (done) ->
192192
compile_and_match(path.join(@path, 'table-layout.styl'), done)
193193

194-
describe 'print', ->
195-
196-
before -> @path = path.join(test_path, 'print')
197-
198-
it 'print-styles', (done) ->
199-
compile_and_match(path.join(@path, 'print-styles.styl'), done)
200194

201195
describe 'reset', ->
202196

@@ -208,6 +202,9 @@ describe 'reset', ->
208202
it 'border-box-html', (done) ->
209203
compile_and_match(path.join(@path, 'border-box-html.styl'), done)
210204

205+
it 'print-styles', (done) ->
206+
compile_and_match(path.join(@path, 'print-styles.styl'), done)
207+
211208
describe 'tables', ->
212209

213210
before -> @path = path.join(test_path, 'tables')

0 commit comments

Comments
 (0)