File tree Expand file tree Collapse file tree 1 file changed +15
-4
lines changed Expand file tree Collapse file tree 1 file changed +15
-4
lines changed Original file line number Diff line number Diff line change 1
1
module CSS.Font where
2
2
3
3
import Prelude
4
-
5
- import Data.Generic (class Generic )
6
- import Data.NonEmpty (NonEmpty , oneOf )
7
-
8
4
import CSS.Color (Color )
5
+ import CSS.Common (class Inherit , class Initial , class Normal , class Unset )
9
6
import CSS.Property (class Val , Value , value , quote )
10
7
import CSS.Size (Size )
11
8
import CSS.String (fromString )
12
9
import CSS.Stylesheet (CSS , key )
10
+ import Data.Generic (class Generic )
11
+ import Data.NonEmpty (NonEmpty , oneOf )
13
12
14
13
color :: Color -> CSS
15
14
color = key $ fromString " color"
@@ -41,6 +40,18 @@ derive instance genericFontWeight :: Generic FontWeight
41
40
instance valFontWeight :: Val FontWeight where
42
41
value (FontWeight v) = v
43
42
43
+ instance normalFontWeight :: Normal FontWeight where
44
+ normal = FontWeight (fromString " normal" )
45
+
46
+ instance initialFontWeight :: Initial FontWeight where
47
+ initial = FontWeight (fromString " initial" )
48
+
49
+ instance inheritFontWeight :: Inherit FontWeight where
50
+ inherit = FontWeight (fromString " inherit" )
51
+
52
+ instance unsetFontWeight :: Unset FontWeight where
53
+ unset = FontWeight (fromString " unset" )
54
+
44
55
bold :: FontWeight
45
56
bold = FontWeight $ fromString " bold"
46
57
You can’t perform that action at this time.
0 commit comments