-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgenerics.css
More file actions
163 lines (147 loc) · 3.18 KB
/
Copy pathgenerics.css
File metadata and controls
163 lines (147 loc) · 3.18 KB
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
html {
box-sizing: border-box;
font-size: 62.5%; /* Mostly equivalates to 10px but allows users accessibility zoom settings to work*/
/* font-size: 10px; */
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
/* color-scheme: dark light; */
min-height: 100vh;
}
html:focus-within {
scroll-behavior: smooth;
}
*,
*::before,
*::after {
box-sizing: inherit;
}
/* LAYOUT DEBUG */
/* { */
/* outline: 3px solid orange; */
/* background-color: hsla(120, 50%, 50%, 0.18); */
/* } */
body {
font-size: 1.6rem;
margin: 0;
text-rendering: optimizeSpeed;
line-height: 1.5;
min-height: 100vh;
}
/* Try to keep your margins going in one direction to avoid margin collapase or grounding. I switch all the top margins off to avoid this issue. */
h1,
h2,
h3,
h4,
h5,
h6,
ul,
ol,
li,
dl,
dt,
dd,
blockquote,
address,
article,
aside,
details,
dialogue,
fieldset,
figcaption,
figure,
footer,
form,
header,
hr,
main,
nav,
pre,
section,
table,
p {
margin-top: 0;
margin-block-start: 0;
}
a {
color: inherit;
text-decoration: none;
/* You MUST make sure that links stand out from nomal text though...*/
}
/*
a:hover,
a:focus {
text-decoration: underline;
}
*/
img,
picture,
svg,
video {
display: block;
/* This means that it can be less than 100% of the width of its parent IF the image is INTRINSICALLY smaller */
max-width: 100%;
height: auto;
/* 'auto' is the initial value for height BUT for images (and other elements which have an intrinic height) that is not the case. To make an image responsive you set one dimension (usually width) to [max-]width: 100%; and the other to 'auto' to ensure it keeps aspect ratio. 'auto' basically tells the browser to decide. */
}
/* Because we us <ul>s for lists that we don't always want bulletted. */
ul {
list-style: none;
padding-left: 0;
}
/* To make actual bulletted lists */
ul.typographic {
list-style: initial;
padding-inline-start: 20px;
}
/* stops icons being the target of JS click events */
.btn *,
button * {
pointer-events: null;
user-select: none;
}
/* inherits the font */
input,
button,
textarea,
select {
font: inherit;
}
/*****************************
* ACCESSIBILITY
******************************/
/* For 'accessibility text'. If your button only has an image inside it that isn't good for accessibility. Put a span inside there and give it this class and put some descriptive text for what the button does into the span. */
.visually-hidden,
.sr-only {
border: 0;
clip: rect(0 0 0 0);
clip-path: polygon(0px 0px, 0px 0px, 0px 0px);
-webkit-clip-path: polygon(0px 0px, 0px 0px, 0px 0px);
height: 1px;
margin: -1px;
overflow: hidden;
padding: 0;
position: absolute;
width: 1px;
white-space: nowrap;
}
.sr-only-focusable:active,
.sr-only-focusable:focus {
position: static;
width: auto;
height: auto;
overflow: visible;
clip: auto;
clip-path: auto;
-webkit-clip-path: auto;
white-space: normal;
}
@media (prefers-reduced-motion: reduce) {
*,
*::before,
*::after {
animation-duration: 0.01ms !important;
animation-iteration-count: 1 !important;
transition-duration: 0.01ms !important;
scroll-behavior: auto !important;
}
}