-
Notifications
You must be signed in to change notification settings - Fork 2
/
ZenGarments.purs
945 lines (842 loc) · 24.2 KB
/
ZenGarments.purs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
module Example.ZenGarments where
import Prelude hiding (bottom, sub, top)
import Color (black, hsl, rgb, rgba)
import Data.Tuple.Nested ((/\))
import Effect (Effect)
import Effect.Console (log)
import Tecton
( KeyframesName(..)
, a
, abbr
, absolute
, acronym
, after
, all
, animationDelay
, animationDuration
, animationFillMode
, animationIterationCount
, animationName
, animationTimingFunction
, auto
, b
, backgroundAttachment
, backgroundColor
, backgroundImage
, backgroundPosition
, backgroundRepeat
, before
, block
, body
, bold
, borderStyle
, borderTopColor
, borderTopStyle
, borderTopWidth
, both
, bottom
, center
, clear
, code
, color
, content
, deg
, disc
, display
, dl
, easeInOut
, em
, em'
, firstChild
, fixed
, float
, focus
, fontFamily
, fontSize
, fontStyle
, fontWeight
, footer
, form
, forwards
, h1
, h2
, h3
, h4
, h5
, h6
, height
, hidden
, hover
, href
, html
, i
, img
, initial
, inlineBlock
, input
, italic
, keyframes
, label
, left
, letterSpacing
, li
, lineHeight
, linear
, listStyleType
, margin
, marginBottom
, marginLeft
, marginRight
, marginTop
, mark
, maskImage
, maxWidth
, media
, monospace
, nil
, noRepeat
, none
, normal
, nowrap
, nthChild
, odd
, ol
, opacity
, overflow
, p
, padding
, paddingBottom
, paddingLeft
, paddingRight
, paddingTop
, pct
, placeholder
, position
, pretty
, px
, relative
, rem
, renderSheet
, right
, role
, rotate
, sansSerif
, screen
, sec
, selection
, solid
, strong
, sub
, sup
, table
, td
, textAlign
, textDecorationLine
, textIndent
, textTransform
, textarea
, title
, top
, transform
, transitionDuration
, transitionProperty
, transitionTimingFunction
, transparent
, ul
, universal
, uppercase
, url
, video
, visibility
, visible
, whiteSpace
, width
, (#+)
, (&.)
, (&:)
, (&::)
, (&@)
, (*=)
, (:=)
, (?)
, (@=)
, (|*)
, (~)
)
import Tecton.Rule as Rule
import Web.HTML.Common (ClassName(..))
main :: Effect Unit
main = log $ renderSheet pretty do
-- Adapted from Dan Mall's "CSS Zen Garments"
-- http://www.csszengarden.com/220/220.css
-- Base
universal ? Rule.do
margin := nil
padding := nil
html ? Rule.do
fontSize := pct 62.5
body ? Rule.do
fontFamily := "Helvetica" /\ "Arial" /\ sansSerif
color := rgb 51 51 51
backgroundColor := rgb 232 236 240
backgroundImage := url "i/denim2.png"
backgroundRepeat := noRepeat
backgroundPosition := pct 50 ~ px 350
-- block level
h1 ? Rule.do
fontFamily := "Helvetica" /\ "Arial" /\ sansSerif
fontWeight := bold
fontSize := rem 4.2
marginBottom := em 0.5
h2 ? Rule.do
fontFamily := "Helvetica" /\ "Arial" /\ sansSerif
fontWeight := bold
fontSize := rem 1.8
marginBottom := em 1
h3 ? Rule.do
fontFamily := "Helvetica" /\ "Arial" /\ sansSerif
fontWeight := bold
fontSize := rem 1.5
marginBottom := em 1
h4 /\ h5 /\ h6 ? Rule.do
fontFamily := "Helvetica" /\ "Arial" /\ sansSerif
fontWeight := bold
fontSize := rem 1.2
( universal &. ClassName "wf-active" |* body
/\ universal &. ClassName "wf-active" |* h1
/\ universal &. ClassName "wf-active" |* h2
/\ universal &. ClassName "wf-active" |* h3
/\ universal &. ClassName "wf-active" |* h4
/\ universal &. ClassName "wf-active" |* h5
/\ universal &. ClassName "wf-active" |* h6
) ? Rule.do
fontFamily := "effra" /\ sansSerif
p /\ ul /\ dl /\ ol /\ table ? Rule.do
fontSize := px 16
marginBottom := em 1.5
universal &. ClassName "wf-active" |* p ? Rule.do
fontWeight := 300
form ? Rule.do
marginBottom := em 1.5
-- inline
label ? Rule.do
fontSize := rem 1.6
( input &. ClassName "empty" &:: placeholder
/\ textarea &. ClassName "empty" &:: placeholder
) ? Rule.do
color := rgb 255 0 0
universal &. ClassName "error" ? Rule.do
color := rgb 255 0 0
td ? Rule.do
padding := em 0.25 ~ em 1
borderTopWidth := px 1
borderTopStyle := solid
borderTopColor := hsl 0.0 0.0 0.6667
em' ? Rule.do
fontStyle := italic
strong ? Rule.do
fontWeight := bold
mark ? Rule.do
backgroundColor := initial
fontStyle := normal
video ? Rule.do
width := pct 100
height := auto
a ? Rule.do
textDecorationLine := none
color := hsl 37.0 0.33 0.48
position := relative
transitionProperty := all
transitionDuration := sec 0.25
transitionTimingFunction := linear
a &:: after ? Rule.do
content := ""
display := block
backgroundColor := hsl 37.0 0.33 0.48
height := px 2
width := pct 100
position := absolute
bottom := em (-0.2)
left := nil
opacity := 0
transitionProperty := all
transitionTimingFunction := linear
transitionDuration := sec 0.25
a &: hover /\ a &: focus ? Rule.do
color := black
a &: hover &:: after /\ a &: focus &:: after ? Rule.do
opacity := 1
bottom := nil
img ? Rule.do
display := block
margin := nil ~ px 10 ~ px 10 ~ nil
maxWidth := pct 100
a |* img ? Rule.do
borderStyle := none
i ? Rule.do
fontStyle := normal
b ? Rule.do
fontWeight := normal
abbr /\ abbr &@ title /\ acronym ? Rule.do
fontSize := pct 75
letterSpacing := em 0.2
textTransform := uppercase
borderStyle := none
code ? Rule.do
fontSize := rem 1.4
lineHeight := 1
fontFamily := "Consolas" /\ "Courier New" /\ "Courier" /\ monospace
color := rgb 153 153 153
sub /\ sup ? Rule.do
lineHeight := 0
universal &:: selection ? Rule.do
backgroundColor := rgb 213 217 220
color := rgb 51 51 51
-- Global
-- Phark Image Replacement - http://phark.typepad.com/phark/2003/08/accessible_imag.html
universal &. ClassName "phark" ? Rule.do
display := block
textIndent := px (-9999)
backgroundPosition := nil ~ nil
backgroundRepeat := noRepeat
backgroundColor := transparent
-- Trimming Outline in Firefox - http://snook.ca/archives/html_and_css/trimming_long_o
universal &. ClassName "phark-link" ? Rule.do
overflow := hidden
-- Easy Clearing - http://www.positioniseverything.net/easyclearing.html
universal &. ClassName "clearfix" &:: after ? Rule.do
content := "."
display := block
height := nil
clear := both
visibility := hidden
universal &. ClassName "offscreen" ? Rule.do
position := absolute
left := px (-9999)
display := block
universal &. ClassName "onscreen" ? Rule.do
left := nil
universal &. ClassName "hide" ? Rule.do
display := none
universal &. ClassName "no-bullets" ? Rule.do
listStyleType := none
universal &. ClassName "bulleted" ? Rule.do
listStyleType := disc
universal &. ClassName "uppercase" ? Rule.do
textTransform := uppercase
universal &. ClassName "rwd-break" ? Rule.do
display := block
universal &. ClassName "kellum" ? Rule.do
display := block
textIndent := pct 100
whiteSpace := nowrap
overflow := hidden
-- Modules
universal &. ClassName "page-wrapper" ? Rule.do
width := pct 90
margin := nil ~ auto
( universal &. ClassName "main" |* h3
/\ universal &. ClassName "preamble" |* h3
/\ universal &. ClassName "select"
) ? Rule.do
visibility := hidden
fontSize := rem 2
textTransform := uppercase
letterSpacing := em 0.1
color := hsl 224.0 0.4 0.25
( universal &. ClassName "wf-active" |* universal &. ClassName "main" |* h3
/\ universal &. ClassName "wf-active"
|* universal
&. ClassName "preamble"
|* h3
) ? Rule.do
fontWeight := 900
( universal &. ClassName "main" |* h3 &:: after
/\ universal &. ClassName "preamble" |* h3 &:: after
/\ universal &. ClassName "select" &:: after
) ? Rule.do
visibility := visible
display := block
universal &. ClassName "main" |* p /\ universal &. ClassName "preamble" |* p ?
Rule.do
fontSize := rem 2
( universal &. ClassName "wf-active" |* universal &. ClassName "main" |* p
/\ universal &. ClassName "wf-active" |* universal &. ClassName "preamble"
|* p
) ? Rule.do
lineHeight := 1.4
( universal &. ClassName "next" |* a
/\ universal &. ClassName "previous" |* a
/\ universal &. ClassName "viewall" |* a
/\ universal &. ClassName "zen-resources" |* a
/\ universal &. ClassName "summary" |* p &: nthChild (0 #+ 2) |* a
) ? Rule.do
transitionProperty := none
( universal &. ClassName "next" |* a &:: after
/\ universal &. ClassName "previous" |* a &:: after
/\ universal &. ClassName "viewall" |* a &:: after
/\ universal &. ClassName "zen-resources" |* a &:: after
/\ universal &. ClassName "summary" |* p &: nthChild (0 #+ 2) |* a &::
after
) ? Rule.do
opacity := 0
-- Banner
universal &@ role @= "banner" |* h1 ? Rule.do
padding := em 1 ~ nil ~ nil
textTransform := uppercase
letterSpacing := em 0.1
fontSize := rem 3.5
fontWeight := 900
color := hsl 216.0 0.53 0.2
visibility := hidden
universal &@ role @= "banner" |* h1 &:: before ? Rule.do
content := "CSS Zen Garments"
visibility := visible
display := block
universal &@ role @= "banner" |* h1 &:: after ? Rule.do
content := "Made Locally"
visibility := visible
display := block
letterSpacing := em 0.5
fontSize := rem 1.4
fontWeight := normal
margin := em 0.5 ~ nil ~ em 3
color := rgba 24 46 79 0.4
universal &@ role @= "banner" |* h2 ? Rule.do
visibility := hidden
display := none
textTransform := uppercase
fontWeight := 400
color := rgba 41 78 134 0.5
universal &@ role @= "banner" |* h2 &:: after ? Rule.do
content := "Impeccable Quality"
visibility := visible
display := block
-- Preamble
universal &. ClassName "summary" |* p ? Rule.do
textTransform := uppercase
letterSpacing := em 0.1
fontSize := rem 1.8
lineHeight := 1.6
-- Preamble
universal &. ClassName "preamble" ? Rule.do
backgroundColor := transparent
backgroundImage := url "i/sep.png"
backgroundRepeat := noRepeat
backgroundPosition := pct 50 ~ nil
universal &. ClassName "preamble" |* h3 &:: after ? Rule.do
visibility := visible
content := "A Fashion-Forward Future"
-- Explanation
universal &. ClassName "explanation" |* h3 &:: after ? Rule.do
content := "See Yourself in a Different Way"
-- Participation
universal &. ClassName "participation" |* h3 &:: after ? Rule.do
content := "Get Into a Brand New Pair"
-- Benefits
universal &. ClassName "benefits" |* h3 &:: after ? Rule.do
content := "Look Great\\2026 and Feel Great Too!"
-- Requirements
universal &. ClassName "requirements" |* h3 &:: after ? Rule.do
content := "“One Size Fits†All Be Damned!"
textIndent := em (-0.5)
-- Design Selection
universal &. ClassName "design-selection" ? Rule.do
margin := em 3 ~ nil ~ nil
universal &. ClassName "design-selection" |* ul ? Rule.do
listStyleType := none
width := pct 94
margin := nil ~ auto
universal &. ClassName "design-selection" |* ul &:: after ? Rule.do
content := "."
display := block
height := nil
clear := both
visibility := hidden
universal &. ClassName "design-selection" |* li ? Rule.do
float := left
width := pct 50
fontSize := rem 1.2
margin := nil ~ nil ~ em 1
color := hsl 0.0 0.0 0.6667
universal &. ClassName "design-selection" |* li &: nthChild odd ? Rule.do
width := pct 47
paddingRight := pct 3
clear := left
universal &. ClassName "design-name" ? Rule.do
display := block
fontSize := rem 1.4
fontWeight := bold
margin := nil ~ nil ~ em 0.24
textTransform := uppercase
letterSpacing := em 0.1
position := relative
universal &. ClassName "design-name" &:: after ? Rule.do
backgroundImage := none
opacity := 0
universal &. ClassName "design-name" &: hover ? Rule.do
fontStyle := italic
universal &. ClassName "designer-name" ? Rule.do
color := rgb 121 137 163
universal &. ClassName "designer-name" &:: after /\ footer |* a &:: after ?
Rule.do
height := px 1
universal &. ClassName "select" &:: after ? Rule.do
content := "Washes & Styles"
fontSize := rem 1.8
textAlign := center
width := em 7
margin := nil ~ auto ~ em 2
backgroundColor := transparent
backgroundImage := url "i/waves.png"
backgroundRepeat := noRepeat
backgroundPosition := pct 50 ~ nil
padding := em 2 ~ nil ~ nil
color := hsl 216.0 0.53 0.2
visibility := visible
universal &. ClassName "archives" /\ universal &. ClassName "resources" ?
Rule.do
position := absolute
left := px (-9999)
universal &. ClassName "design-archives" |* ul ? Rule.do
listStyleType := none
margin := em 1 ~ nil ~ nil
width := pct 100
textAlign := center
universal &. ClassName "design-archives" |* li ? Rule.do
display := inlineBlock
position := relative
universal &. ClassName "design-archives" |* a ? Rule.do
display := block
textIndent := pct 100
whiteSpace := nowrap
overflow := hidden
universal &. ClassName "next" ? Rule.do
marginRight := em 3
universal &. ClassName "next" |* a ? Rule.do
backgroundColor := transparent
backgroundImage := url "s/czg.svg"
backgroundRepeat := noRepeat
backgroundPosition := px 10 ~ px (-56)
width := px 43
height := px 37
( universal &. ClassName "next" |* a &: hover
/\ universal &. ClassName "next" |* a &: focus
) ? Rule.do
backgroundPosition := px 10 ~ px (-138)
universal &. ClassName "previous" ? Rule.do
marginRight := em 3
universal &. ClassName "previous" |* a ? Rule.do
backgroundColor := transparent
backgroundImage := url "s/czg.svg"
backgroundRepeat := noRepeat
backgroundPosition := px 10 ~ px (-220)
width := px 43
height := px 37
( universal &. ClassName "previous" |* a &: hover
/\ universal &. ClassName "previous" |* a &: focus
) ? Rule.do
backgroundPosition := px 10 ~ px (-302)
universal &. ClassName "viewall" ? Rule.do
marginLeft := em 1
universal &. ClassName "viewall" |* a ? Rule.do
backgroundColor := transparent
backgroundImage := url "s/czg.svg"
backgroundRepeat := noRepeat
backgroundPosition := px (-56) ~ px (-55)
width := px 39
height := px 39
( universal &. ClassName "viewall" |* a &: hover
/\ universal &. ClassName "viewall" |* a &: focus
) ? Rule.do
backgroundPosition := px (-56) ~ px (-137)
footer ? Rule.do
fontSize := rem 1.3
footer |* a ? Rule.do
marginLeft := em 1
footer |* a &: firstChild ? Rule.do
marginLeft := nil
universal &. ClassName "zen-resources" |* ul ? Rule.do
listStyleType := none
margin := em 2 ~ nil ~ em 4
textAlign := center
universal &. ClassName "zen-resources" |* ul &:: before ? Rule.do
content := ""
height := px 4
width := px 80
backgroundColor := rgb 213 217 220
display := block
textAlign := center
margin := nil ~ auto ~ em 2
universal &. ClassName "zen-resources" |* li ? Rule.do
margin := nil ~ nil ~ em 1 ~ em 3
display := inlineBlock
universal &. ClassName "zen-resources" |* li &: firstChild ? Rule.do
marginLeft := nil
universal &. ClassName "zen-resources" |* a ? Rule.do
display := inlineBlock
textIndent := pct 100
whiteSpace := nowrap
overflow := hidden
backgroundColor := transparent
backgroundImage := url "s/czg.svg"
backgroundRepeat := noRepeat
backgroundPosition := nil ~ nil
width := px 60
height := px 60
universal &. ClassName "view-css" |* a ? Rule.do
backgroundPosition := px (-502) ~ px 12
( universal &. ClassName "view-css" |* a &: hover
/\ universal &. ClassName "view-css" |* a &: focus
) ? Rule.do
backgroundPosition := px (-502) ~ px (-78)
universal &. ClassName "css-resources" |* a ? Rule.do
backgroundPosition := px (-150) ~ px (-194)
( universal &. ClassName "css-resources" |* a &: hover
/\ universal &. ClassName "css-resources" |* a &: focus
) ? Rule.do
backgroundPosition := px (-150) ~ px (-286)
universal &. ClassName "zen-faq" |* a ? Rule.do
backgroundPosition := px (-265) ~ px (-192)
( universal &. ClassName "zen-faq" |* a &: hover
/\ universal &. ClassName "zen-faq" |* a &: focus
) ? Rule.do
backgroundPosition := px (-265) ~ px (-284)
universal &. ClassName "zen-submit" |* a ? Rule.do
backgroundPosition := px (-502) ~ px (-194)
( universal &. ClassName "zen-submit" |* a &: hover
/\ universal &. ClassName "zen-submit" |* a &: focus
) ? Rule.do
backgroundPosition := px (-502) ~ px (-286)
universal &. ClassName "zen-translations" |* a ? Rule.do
backgroundPosition := px (-380) ~ px (-193)
( universal &. ClassName "zen-translations" |* a &: hover
/\ universal &. ClassName "zen-translations" |* a &: focus
) ? Rule.do
backgroundPosition := px (-380) ~ px (-285)
media screen { minWidth: px 700 } ? do
body ? Rule.do
backgroundAttachment := fixed
backgroundPosition := pct 90 ~ pct 80
universal &. ClassName "intro" &:: before ? Rule.do
content := ""
display := block
width := px 105
height := px 30
position := fixed
top := px 154
left := pct 3
backgroundColor := transparent
backgroundImage := url "s/czg.svg"
backgroundRepeat := noRepeat
backgroundPosition := px (-184) ~ px (-99)
( universal &@ role @= "article" /\ universal &@ role @= "banner" /\ footer
) ? Rule.do
padding := nil ~ pct 30 ~ em 10 ~ pct 10
textAlign := right
position := relative
( universal &@ role @= "article" |* h3
/\ universal &@ role @= "banner" |* h2
) ? Rule.do
position := absolute
top := em (-0.75)
left := pct 75
width := em 10
textAlign := left
fontSize := rem 1.5
letterSpacing := nil
universal &@ role @= "article" |* h3 &:: after ? Rule.do
position := absolute
top := nil
universal &@ role @= "banner" ? Rule.do
paddingTop := px 200
paddingBottom := em 3
universal &@ role @= "banner" |* h1 ? Rule.do
fontSize := rem 4.8
letterSpacing := nil
lineHeight := 0.8
universal &@ role @= "banner" |* h1 &:: after ? Rule.do
position := absolute
top := em 15.7
right := pct 30
universal &@ role @= "banner" |* h2 ? Rule.do
display := block
top := em 8.1
width := em 3
left := pct 75.5
fontSize := rem 1.9
lineHeight := 1
universal &@ role @= "banner" |* h2 &:: before ? Rule.do
visibility := visible
content := "Est. 2003"
display := block
position := fixed
top := em (-0.1)
bottom := nil
left := em (-0.5)
right := nil
margin := auto
fontWeight := 900
fontSize := rem 50
color := rgba 0 0 0 0.15
width := pct 100
height := em 2
lineHeight := 1
transform := rotate $ deg (-90)
maskImage := url "i/denim-mask2.png"
universal &. ClassName "summary" |* p &: nthChild (0 #+ 2) ? Rule.do
backgroundColor := rgb 255 255 0
position := relative
visibility := hidden
top := em 2
fontSize := rem 1.4
universal &. ClassName "summary" |* p &: nthChild (0 #+ 2) &:: before ?
Rule.do
content := ""
display := block
visibility := visible
position := absolute
right := em 21
top := em (-0.25)
backgroundColor := transparent
backgroundImage := url "s/czg.svg"
backgroundRepeat := noRepeat
backgroundPosition := px (-159) ~ px (-1)
width := em 6
height := px 30
universal &. ClassName "summary" |* p &: nthChild (0 #+ 2) &:: after ?
Rule.do
content := ""
display := block
visibility := visible
position := absolute
right := em 14
top := em (-0.25)
backgroundColor := transparent
backgroundImage := url "s/czg.svg"
backgroundRepeat := noRepeat
backgroundPosition := px (-277) ~ nil
width := em 6
height := px 30
universal &. ClassName "summary" |* p &: nthChild (0 #+ 2) |* a ? Rule.do
visibility := visible
backgroundColor := transparent
backgroundImage := url "s/czg.svg"
backgroundRepeat := noRepeat
backgroundPosition := px (-376) ~ px (-93)
width := em 6
height := px 25
textIndent := pct 100
whiteSpace := nowrap
overflow := hidden
display := block
position := absolute
top := nil
right := em 7
( universal &. ClassName "summary" |* p &: nthChild (0 #+ 2) |* a &: hover
/\ universal &. ClassName "summary" |* p &: nthChild (0 #+ 2) |* a &:
focus
) ? Rule.do
backgroundPosition := px (-396) ~ px (-3)
textIndent := nil
backgroundImage := none
( universal &. ClassName "summary" |* p &: nthChild (0 #+ 2) |* a &@ href
*= "css"
) ? Rule.do
backgroundPosition := px (-472) ~ px (-94)
right := nil
( universal &. ClassName "summary" |* p &: nthChild (0 #+ 2) |* a &@ href
*= "css"
&:
hover
/\ universal &. ClassName "summary" |* p &: nthChild (0 #+ 2) |* a
&@ href
*= "css"
&: focus
) ? Rule.do
backgroundPosition := px (-512) ~ px (-4)
universal &. ClassName "preamble" ? Rule.do
paddingTop := em 10
universal &. ClassName "preamble" |* h3 ? Rule.do
top := em 5.9
universal &. ClassName "design-selection" |* li ? Rule.do
width := pct 23
marginBottom := em 3
paddingRight := pct 2
universal &. ClassName "design-selection" |* li &: nthChild odd ? Rule.do
width := pct 23
clear := none
paddingRight := pct 2
universal &. ClassName "next" ? Rule.do
marginRight := em 2
marginLeft := em (-0.4)
universal &. ClassName "viewall" ? Rule.do
marginLeft := nil
footer ? Rule.do
paddingBottom := em 3
marginTop := em (-5)
media screen { minWidth: px 1130 } ? do
universal &@ role @= "article" /\ universal &@ role @= "banner" ? Rule.do
paddingLeft := pct 25
universal &. ClassName "design-selection" ? Rule.do
position := absolute
left := pct 5
top := em 30
universal &. ClassName "design-selection" |* ul ? Rule.do
margin := nil
width := pct 100
universal &. ClassName "design-selection" |* li ? Rule.do
float := none
marginBottom := em 2
( universal
&. ClassName "design-selection"
&. ClassName "design-selection" -- adding specificity in lieu of !important
&. ClassName "design-selection"
|* li
) ? Rule.do
width := pct 100
padding := nil
universal &. ClassName "select" &:: after ? Rule.do
textAlign := left
backgroundPosition := nil ~ bottom
padding := nil ~ nil ~ em 2
margin := nil ~ nil ~ em 2
universal &. ClassName "design-archives" ? Rule.do
position := absolute
left := pct 5
top := em 95
media screen { minWidth: px 1130, minHeight: px 1037 } ? do
universal &. ClassName "design-selection" /\ universal
&. ClassName "design-archives"
? Rule.do
position := fixed
-- Animations
let fadey = KeyframesName "FADEY"
keyframes fadey ? do
pct 0 ? Rule.do
opacity := 0
pct 100 ? Rule.do
opacity := 1
universal &. ClassName "intro" ? Rule.do
animationName := fadey
animationDuration := sec 1
animationTimingFunction := easeInOut
animationIterationCount := 1
universal &@ role @= "article" ? Rule.do
opacity := 0
animationName := fadey
animationDuration := sec 1
animationTimingFunction := easeInOut
animationDelay := sec 0.5
animationFillMode := forwards
animationIterationCount := 1
universal &. ClassName "design-selection" /\ universal
&. ClassName "design-archives"
? Rule.do
opacity := 0
animationName := fadey
animationDuration := sec 1
animationTimingFunction := easeInOut
animationDelay := sec 1
animationFillMode := forwards
animationIterationCount := 1