File tree 3 files changed +52
-4
lines changed 3 files changed +52
-4
lines changed Original file line number Diff line number Diff line change @@ -9,8 +9,9 @@ type CssIds = Page
9
9
pageBackground = rgb 100 90 128
10
10
pageDefaultText = rgb 40 35 76
11
11
12
- exports : Style CssClasses CssIds
13
- exports =
12
+
13
+ dreamwriter : Style CssClasses CssIds
14
+ dreamwriter =
14
15
stylesheet
15
16
|%|... [ html, body ]
16
17
|-| width 100 pct
Original file line number Diff line number Diff line change @@ -18,8 +18,8 @@ divWidthHeight =
18
18
|-| height 50 px
19
19
20
20
21
- exports : Style CssClasses CssIds
22
- exports =
21
+ dreamwriter : Style CssClasses CssIds
22
+ dreamwriter =
23
23
stylesheet
24
24
|%|... [ html, body ]
25
25
|-| width 100 pct
Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ all : Test
16
16
all =
17
17
suite " elm-stylesheets"
18
18
[ divWidthHeight
19
+ , dreamwriter
19
20
]
20
21
21
22
@@ -32,3 +33,49 @@ divWidthHeight =
32
33
[ test " pretty prints the expected output" <|
33
34
assertEqual output ( prettyPrint input)
34
35
]
36
+
37
+
38
+ dreamwriter : Test
39
+ dreamwriter =
40
+ let
41
+ input =
42
+ Fixtures . dreamwriter
43
+
44
+ output = String . trim """
45
+ html, body {
46
+ width: 100%;
47
+ height: 100%;
48
+ box-sizing: border-box;
49
+ padding: 0px;
50
+ margin: 0px;
51
+ }
52
+
53
+ body {
54
+ min-width: 1280px;
55
+ overflow-x: auto;
56
+ }
57
+
58
+ body > div {
59
+ width: 100%;
60
+ height: 100%;
61
+ }
62
+
63
+ .Hidden {
64
+ display: none !important;
65
+ }
66
+
67
+ #Page {
68
+ width: 100%;
69
+ height: 100%;
70
+ box-sizing: border-box;
71
+ margin: 0px;
72
+ padding: 8px;
73
+ background-color: rgb(100, 90, 128);
74
+ color: rgb(40, 35, 76);
75
+ }
76
+ """
77
+ in
78
+ suite " Sample stylesheet from Dreamwriter"
79
+ [ test " pretty prints the expected output" <|
80
+ assertEqual output ( prettyPrint input)
81
+ ]
You can’t perform that action at this time.
0 commit comments