-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
128 lines (100 loc) · 2.2 KB
/
style.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
:root {
font-family: system-ui, sans-serif;
font-size: 100%;
}
/* = = = = = = = = = = VARIABLES: Colours = = = = = = = = = =*/
:root {
--color-bg-01: hsl(359,0%,90%);
--color-bg-02: hsl(359,0%,80%);
--color-text: hsl(359,0%,20%);
--color-link: hsl(359,0%,40%);
--color-focus: hsl(359,10%,90%);
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg-01: hsl(359,0%,20%);
--color-bg-02: hsl(359,0%,25%);
--color-text: hsl(359,0%,90%);
--color-link: hsl(359,0%,70%);
--color-focus: hsl(359,10%,40%);
}
}
@media (forced-colors) {
:root {
--color-bg-01: Canvas;
--color-bg-02: Canvas;
--color-text: CanvasText;
--color-link: LinkText;
--color-text--disabled: GrayText;
}
}
/* Display-P3 color, when supported. https://webkit.org/blog/10042/wide-gamut-color-in-css-with-display-p3/ */
@supports (color: color(display-p3 1 1 1)) {
:root {
--bright-green: color(display-p3 0 1 0);
}
}
@media (color-gamut: p3) {
/* Do colorful stuff. */
}
body {
background-color: var(--color-bg-01);
color: var(--color-text);
}
a {
color: var(--color-link);
}
/* F O R M B A S I C S T Y L E S */
label { }
.form-field-wrapper {
margin-bottom: .5rem;
}
.form-field-hint {
font-style: italic;
}
@media (prefers-color-scheme: dark) {
:focus {
outline-color: var(--color-focus);
}
img {
opacity: .75;
transition: opacity .5s ease-in-out;
}
img:hover {
opacity: 1;
}
fieldset {}
input,
textarea,
select {
/* fix Safari dark behaviour */
color: var(--color-text);
background-color: var(--color-bg-02);
border: 1px solid var(--color-text); /* fix Safari Datetime */
}
* :disabled {
opacity: .2;
}
}
/* L A Y O U T */
@media (min-width: 900px) {
.grid-wrapper {
display: grid;
grid-template-columns: repeat(5, 1fr);
grid-template-rows: 1fr;
margin: 0 0 1rem;
}
}
.grid-item-wrapper {}
body.design-01 {}
body.design-01 label { }
body.design-01 input,
body.design-01 textarea,
body.design-01 select {
font-size: 100%;
}
body.design-02 label {
display: inline-block;
width: 12rem;
font-size: 100%;
}