-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.css
129 lines (109 loc) · 1.84 KB
/
main.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
@font-face {
font-family: "StandardBook";
src: url("./standard-book-webfont.ttf");
}
:root {
/* colors */
--black: #2c2c2c;
/* layout */
--mb1: 2.5rem;
}
body {
margin: 0;
padding: 0;
transition-duration: 100ms;
transition-timing-function: ease;
}
main {
max-width: 750px;
margin: 0 auto;
padding: 2rem 0.61rem 0;
font-family: StandardBook, sans-serif;
color: var(--black);
list-style-type: square;
}
fieldset {
border: thin solid var(--black);
margin-bottom: var(--mb1);
}
legend {
outline: thin solid var(--black);
padding: 0.25rem;
}
li {
margin-bottom: 0.25rem;
}
section {
margin-bottom: var(--mb1);
}
p {
line-height: 1.54em;
}
u:not([class]),
a:not([class]) {
color: currentColor;
text-decoration: none;
background-image: linear-gradient(transparent calc(100% - .05em), currentColor 2px);
background-repeat: no-repeat;
background-position: left;
background-size: 100% 100%;
transition: background-size 300ms ease;
}
u:not([class]):hover,
a:not([class]):hover {
animation: 500ms both ease underline
}
pre {
margin: 0;
padding: 0;
}
td {
padding-right: 3rem;
}
footer {
display: flex;
flex-flow: row nowrap;
justify-content: space-between;
margin-bottom: var(--mb1);
}
code {
position: fixed;
bottom: 0;
left: 0;
}
code::before {
content: "";
position: absolute;
height: 100%;
width: 100%;
}
[found] {
display: none;
}
[hidden] {
display: inline-block;
}
[hidden]:hover {
display: none;
}
[hidden]:hover + [found] {
display: inline-block;
}
@keyframes underline {
0% {
background-size: 100% 100%;
background-position: right;
}
49% {
background-size: 0% 100%;
background-position: right;
}
50% {
background-size: 0% 100%;
background-position: left;
}
100% {
background-size: 100% 100%;
background-position: left;
}
}