-
Notifications
You must be signed in to change notification settings - Fork 0
/
css-system-colors.css
196 lines (163 loc) · 4.09 KB
/
css-system-colors.css
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
/***************************************************************************************************************
* This has two sets of classes: system-<name> and <name>.
* There is one system-<name> class for every system-color.
* The <name> classes use one name to reference a 'combo' of related settings.
* They are less verbose.
* The system-<name> classes are more verbose, but they allow you to specify the color
* and background-color separately.
**/
/* Class combinations for different UI elements */
/* name(s), the class combos */
.Canvas {
/* application content or documents */
color: CanvasText;
background-color: Canvas;
}
.Accent {
/* accented user interface controls */
color: AccentColorText;
background-color: AccentColor;
}
.Field {
/* input fields */
color: FieldText;
background-color: Field;
}
.Mark {
/* specially marked with <mark> tag*/
color: MarkText;
background-color: Mark;
}
.Button {
/* push buttons */
color: ButtonText;
background-color: ButtonFace;
border-color: ButtonBorder;
}
.Selected {
/* selected items */
color: SelectedItemText;
background-color: SelectedItem;
}
::selection {
/* Text of selected text */
color: HighlightText;
/* Background of selected text, for example from : :selection */
background-color: Highlight;
}
/* NOTE: Remove the 'some' below!
#someID {*/
a:link {
/* non-active, non-visited links */
color: LinkText;
}
a:visited {
/* visited links */
color: VisitedText;
}
/* NOTE: Doesn't exist at https://www.w3.org/TR/css-color-4/#css-system-colors
a:hover {
/* hovered links *
color: FocusText; /* Focused links color *
}
a:focus {
/* focused links *
color: ActiveText; /* BUG: no special color?*
} */
a:active {
/* active links */
color: ActiveText;
}
.Disabled {
/* disabled text */
color: GrayText;
}
/***************************************************************************************
* Specific class names for each system color
**/
.system-Canvas {
/* Background of application content or documents */
background-color: Canvas;
}
.system-CanvasText {
/* Text in application content or documents */
color: CanvasText;
}
/*********************************
* Input elements
*/
.system-AccentColor {
/* Background of accented user interface controls */
background-color: AccentColor;
}
.system-AccentColorText {
/* Text of accented user interface controls */
color: AccentColorText;
}
.system-Field {
/* Background of input fields */
background-color: Field;
}
.system-FieldText {
/* Text in input fields */
color: FieldText;
}
/*********************************
* Button elements
*/
.system-ButtonBorder {
/* The base border color for push buttons */
color: ButtonBorder;
}
.system-ButtonFace {
/* The face background color for push buttons */
background-color: ButtonFace;
}
.system-ButtonText {
/* Text on push buttons */
color: ButtonText;
}
/*********************************
* Links
*/
.system-LinkText {
/* Text in non-active, non-visited links. For light backgrounds, traditionally blue */
color: LinkText;
}
.system-ActiveText {
/* Text in active links. For light backgrounds, traditionally red */
color: ActiveText;
}
.system-VisitedText {
/* Text in visited links. For light backgrounds, traditionally purple */
color: VisitedText;
}
/*********************************
* Other miscellaneous
*/
.system-GrayText {
/* Disabled text (Often, but not necessarily, gray) */
color: GrayText;
}
.system-Mark {
/* Background of text that has been specially marked (such as by the HTML mark element) */
background-color: Mark;
}
.system-MarkText {
/* Text that has been specially marked (such as by the HTML mark element) */
color: MarkText;
}
::selection {
/* Text of selected text */
color: HighlightText;
/* Background of selected text, for example from : :selection */
background-color: Highlight;
}
.system-SelectedItem {
/* Background of selected items, for example a selected checkbox */
background-color: SelectedItem;
}
.system-SelectedItemText {
/* Text of selected items */
color: SelectedItemText;
}