File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -12,16 +12,21 @@ use CSS::Units :pt;
12
12
use CSS::Properties;
13
13
14
14
my CSS::Properties() $css = "color:red !important; padding: 1pt";
15
+
16
+ say $css.color.hex; # (FF 00 00)
15
17
say $css.important("color"); # True
16
- $css.border-color = 'red';
17
18
19
+ $css.border-color = 'blue';
20
+
21
+ # set all four margins individually (top, left, bottom, right)
18
22
$css.margin = [5pt, 2pt, 5pt, 2pt];
19
- $css.margin = 5pt; # set margin on all 4 sides
23
+ # set a common margin on all four sides
24
+ $css.margin = 5pt;
20
25
21
26
# set text alignment
22
27
$css.text-align = 'right';
23
28
24
- say ~$css; # border-color:red ; color:red!important; margin:5pt; padding:1pt; text-align:right;
29
+ say ~$css; # border-color:blue ; color:red!important; margin:5pt; padding:1pt; text-align:right;
25
30
```
26
31
27
32
Classes in this module
You can’t perform that action at this time.
0 commit comments