File tree Expand file tree Collapse file tree 4 files changed +15
-34
lines changed Expand file tree Collapse file tree 4 files changed +15
-34
lines changed Original file line number Diff line number Diff line change @@ -30,6 +30,11 @@ s2 = slide "Primitives" $
30
30
, text " title: a title"
31
31
, text " link: turn an element into a clickable link"
32
32
, text " center: center an element"
33
+ , text " bold/italic:"
34
+ <+> bold (text " bold" )
35
+ <+> text " and"
36
+ <+> italic (text " italic" )
37
+ , text " withClass/withId: add a class or id to element"
33
38
]
34
39
]
35
40
Original file line number Diff line number Diff line change @@ -97,15 +97,8 @@ a:hover {
97
97
98
98
99
99
.boldEl {
100
- font-weight : bold;
100
+ font-weight : bold !important ;
101
101
}
102
- .italicsEl {
103
- font-style : italic;
102
+ .italicEl {
103
+ font-style : italic !important ;
104
104
}
105
- .underlineEl {
106
- text-decoration : underline;
107
- }
108
- .linethroughEl {
109
- text-decoration : line-through;
110
- }
111
-
Original file line number Diff line number Diff line change @@ -24,9 +24,7 @@ module Slides
24
24
, withClass
25
25
, withId
26
26
, bold
27
- , italics
28
- , underline
29
- , linethrough
27
+ , italic
30
28
) where
31
29
32
30
import Prelude
@@ -239,17 +237,9 @@ center = withClass "center" <<< group <<< singleton
239
237
bold :: Element -> Element
240
238
bold = withClass " boldEl" <<< group <<< singleton
241
239
242
- -- | Format text with italics in this element
243
- italics :: Element -> Element
244
- italics = withClass " italicsEl" <<< group <<< singleton
245
-
246
- -- | Format text with underline in this element
247
- underline :: Element -> Element
248
- underline = withClass " underlineEl" <<< group <<< singleton
249
-
250
- -- | Format text with linethrough in this element
251
- linethrough :: Element -> Element
252
- linethrough = withClass " linethroughEl" <<< group <<< singleton
240
+ -- | Format text with italic in this element
241
+ italic :: Element -> Element
242
+ italic = withClass " italicEl" <<< group <<< singleton
253
243
254
244
255
245
-- -------------
Original file line number Diff line number Diff line change @@ -97,15 +97,8 @@ a:hover {
97
97
98
98
99
99
.boldEl {
100
- font-weight : bold;
100
+ font-weight : bold !important ;
101
101
}
102
- .italicsEl {
103
- font-style : italic;
102
+ .italicEl {
103
+ font-style : italic !important ;
104
104
}
105
- .underlineEl {
106
- text-decoration : underline;
107
- }
108
- .linethroughEl {
109
- text-decoration : line-through;
110
- }
111
-
You can’t perform that action at this time.
0 commit comments