|
1 | 1 | .rule1 { |
2 | | - color: red; |
| 2 | + margin: 0; |
3 | 3 | /* comment */ |
4 | 4 | } |
5 | 5 |
|
6 | 6 | @media screen { |
7 | 7 | .rule2 { |
8 | | - color: red |
| 8 | + margin: 0; |
9 | 9 | } |
10 | 10 | .rule3 { |
11 | | - color: red !important; |
| 11 | + margin: 0 !important; |
12 | 12 | /* comment */ |
13 | 13 | } |
14 | 14 | /* comment */ |
|
23 | 23 | } |
24 | 24 |
|
25 | 25 | /* Colors */ |
26 | | -.color4 { color: #aff034; } |
27 | | -.color5 { color: rgb(100, 200, 10); } |
28 | | -.color6 { color: rgba(100, 200, 10, 0.5); } |
29 | | -.color7 { color: rgba(100, 200, 10, .5); } |
30 | | -.color8 { background-color: hsl(100, 20%, 30%); } |
31 | | -.color9 { background-color: hsla(100, 20%, 30%, 0.5); } |
32 | | -.color10 { border: 1px solid #aaa; } |
33 | | -.color11 { outline: 1px solid tomato; } |
34 | | -.color12 { border-color: Aqua; } |
35 | | -.color13 { outline-color: whitesmoke; } |
36 | | -.color14and15 { background: linear-gradient(90deg, purple 0, purple 100%) } |
37 | | -.color16 { color: #0000ff00; } |
38 | | -.color17 { background: rgba(2,2,2,.2) } |
39 | | -.color18 { background: hsl(100, 10%, 20%) } |
40 | | -.color19-20-21-22 { background: linear-gradient(to right, hsl(360, 100%, 100%), rgb(255, 255, 255), #fff, white) } |
| 26 | +.color-hex { |
| 27 | + color: #aff034; |
| 28 | + border: 1px solid #aaa; |
| 29 | + color: #0000ff00; /* Including opacity */ |
| 30 | +} |
| 31 | +.color-rgb { |
| 32 | + color: rgb(100, 200, 10); |
| 33 | + color: rgba(100, 200, 10, 0.5); |
| 34 | + color: rgba(100, 200, 10, .5); |
| 35 | + background: rgba(2,2,2,.2); |
| 36 | +} |
| 37 | +.color-hsl { |
| 38 | + color: hsl(100, 20%, 30%); |
| 39 | + color: hsla(100, 20%, 30%, 0.5); |
| 40 | + background: hsl(100, 10%, 20%); |
| 41 | + |
| 42 | + /** |
| 43 | + * Complex examples from |
| 44 | + * https://developer.mozilla.org/en-US/docs/Web/CSS/color_value#Examples_2 |
| 45 | + */ |
| 46 | + |
| 47 | + /* These examples all specify the same color: a lavender. */ |
| 48 | + color: hsl(270,60%,70%); |
| 49 | + color: hsl(270, 60%, 70%); |
| 50 | + color: hsl(270 60% 70%); |
| 51 | + color: hsl(270deg, 60%, 70%); |
| 52 | + color: hsl(4.71239rad, 60%, 70%); |
| 53 | + color: hsl(.75turn, 60%, 70%); |
| 54 | + |
| 55 | + /* These examples all specify the same color: a lavender that is 15% opaque. */ |
| 56 | + color: hsl(270, 60%, 50%, .15); |
| 57 | + color: hsl(270, 60%, 50%, 15%); |
| 58 | + color: hsl(270 60% 50% / .15); |
| 59 | + color: hsl(270 60% 50% / 15%); |
| 60 | +} |
| 61 | +.color-keyword { |
| 62 | + outline: 1px solid tomato; |
| 63 | + border-color: Aqua; |
| 64 | + outline-color: whitesmoke; |
| 65 | + background: linear-gradient(90deg, purple 0, purple 100%); |
| 66 | +} |
| 67 | +.color-mixed { |
| 68 | + background: linear-gradient( |
| 69 | + to right, |
| 70 | + hsl(360, 100%, 100%), |
| 71 | + rgb(255, 255, 255), |
| 72 | + #fff, |
| 73 | + white |
| 74 | + ); |
| 75 | +} |
41 | 76 | .color-false { |
42 | 77 | background-image: |
43 | 78 | url('icon-blue.png'), |
|
81 | 116 | .font-size5 { font: medium serif; } |
82 | 117 | .font-size6 { font: normal normal 1.2em serif; } |
83 | 118 | .font-size7 { font: 400 1.3em/1 serif; } |
84 | | -.font-false { font: inherit; font: initial; font: auto; } |
85 | | -.font-false { font-size: inherit; font-size: initial; font-size: auto; } |
| 119 | +.font-false { |
| 120 | + font: inherit; |
| 121 | + font: initial; |
| 122 | + font: auto; |
| 123 | +} |
| 124 | +.font-false { |
| 125 | + font-size: inherit; |
| 126 | + font-size: initial; |
| 127 | + font-size: auto; |
| 128 | +} |
86 | 129 |
|
87 | 130 | /** |
88 | 131 | * Font-families |
|
97 | 140 | font: 1em/ 1 serif; |
98 | 141 | font: 1em /1 serif; |
99 | 142 | } |
100 | | -.font-family-keywords { font-family: inherit; font-family: initial; font-family: auto; } |
| 143 | +.font-family-keywords { |
| 144 | + font-family: inherit; |
| 145 | + font-family: initial; |
| 146 | + font-family: auto; |
| 147 | +} |
101 | 148 | .font-families-github { |
102 | 149 | font-family:"Arial Black", "Arial Bold", Gadget, sans-serif; |
103 | 150 | font-family:"Brush Script MT", cursive; |
|
0 commit comments