-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathhtml.css
76 lines (68 loc) · 1.01 KB
/
html.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
/**
<h1>Layout</h1>
A typical web page is
<pre>
header
img nav nav
...
footer
nav img nav
</pre>
Use the main element to limit the max-width of an element.
If you want your full page to be
<pre>
main
header
...
footer
</pre>
<pre>
header
main
article
footer
</pre>
**/
body {
font-size: var(--size);
font-family: var(--font);
color: var(--text);
background: var(--back);
margin:0;
}
main {
max-width:600px;
width:100%;
margin: auto;
}
small {
filter:contrast(0.5);
}
a {color:var(--color)!important;}
hr,fieldset{
border-width: calc(var(--border-size) / 2);
border-color: var(--border-color);
border-style: solid;
border-radius: var(--radius);
}
a[name]{
padding-top: 50px;
}
pre, samp, kbd{
overflow: scroll;
background: var(--back-alt);
}
figcaption {
text-align: center;
}
nav[list]{
display: flex;
flex: 0;
flex-flow: column;
}
footer {
display: flex;justify-content: space-between;
background: var(--back-alt);
padding: var(--padding) calc(var(--padding) * 2);
}
footer>*{align-self: center;}