/
style.css
157 lines (140 loc) · 2.85 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
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
:root {
--color: rgb(0, 128, 128);
--background-color: rgb(255, 253, 185);
--code-color: rgba(0, 128, 128, 0.6);
--p-color: rgba(0, 128, 128, 0.8);
--hover-color: rgba(0, 128, 128, 0.4);
--box-shadow: 0 2px 4px 0 var(--color), 0 1px 8px 0 var(--hover-color);
}
@keyframes scaleAnimation {
0% {
transform: scale(0.88);
opacity: 0;
}
100% {
transform: scale(1);
opacity: 1;
}
}
html {
padding: 0;
margin: 0;
font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Oxygen,
Ubuntu, Cantarell, Fira Sans, Droid Sans, Helvetica Neue, sans-serif;
color: var(--color);
background-color: var(--background-color);
}
body {
display: flex;
flex-direction: column;
height: 100dvh;
animation: scaleAnimation 2s ease-in-out;
}
main {
padding: 4rem 0.6rem;
display: flex;
flex: 9;
flex-direction: column;
justify-content: center;
align-items: center;
}
.card {
margin: 1rem;
padding: 2rem 1rem;
color: inherit;
text-decoration: none;
outline-width: 1px;
outline-style: solid;
outline-offset: 4px;
outline-color: var(--color);
border-width: 1px;
border-style: solid;
border-color: var(--color);
border-radius: 16px;
box-shadow: var(--box-shadow);
max-width: 80%;
max-height: 80%;
text-align: center;
overflow: scroll;
-ms-overflow-style: none; /* Internet Explorer 10+ */
scrollbar-width: none; /* Firefox */
}
.card::-webkit-scrollbar {
display: none; /* Safari and Chrome */
}
.card h1 {
margin: 0 0 0.5rem 0;
font-size: 2rem;
}
.card h2 {
margin: 0 0 1rem 0;
font-size: 1rem;
color: var(--p-color);
}
.card p {
margin: 0;
margin-top: 0.8rem;
font-size: 0.8rem;
font-weight: bold;
line-height: 1.6;
color: var(--p-color);
}
.card .code {
display: inline-block;
color: var(--code-color);
background-color: rgba(0, 128, 128, 0.08);
border-radius: 8px;
padding: 0.8rem;
font-size: 0.8rem;
font-weight: bold;
font-family: Menlo, Monaco, Lucida Console, Liberation Mono, DejaVu Sans Mono,
Bitstream Vera Sans Mono, Courier New, monospace;
line-height: 2rem;
border: 1px solid;
border-color: var(--p-color);
box-shadow: var(--box-shadow);
}
.card a {
padding: 8px;
margin: 8px;
border-radius: 8px;
border: none;
font-family: "Kanit";
cursor: pointer;
}
.buttonsRow {
display: flex;
flex-direction: row;
justify-content: center;
flex-wrap: wrap;
}
.buttonsRow a {
margin: 2px;
}
.buttonsRow .iconButton {
width: 24px;
height: 24px;
padding: 4px;
}
.buttonsRow .iconButton:hover {
box-shadow: var(--box-shadow);
border-radius: 8px;
}
.footer {
display: flex;
padding: 2rem 0;
flex: 1;
justify-content: center;
align-items: center;
white-space: nowrap;
}
.footer p {
color: var(--p-color);
font-size: 0.8rem;
font-weight: bold;
}
@media (prefers-color-scheme: dark) {
html {
color-scheme: dark;
}
}