-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.css
84 lines (75 loc) · 1.67 KB
/
index.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
:root{
--header-size: 60px;
--footer-size: 60px;
--card-height: 60px;
--theme-color-0: #FFF;
--theme-color-1: #BBB;
--theme-color-2: #DDD;
--theme-color-3: #222;
}
@media (prefers-color-scheme: dark) {
:root{
--theme-color-0: #333;
--theme-color-1: #555;
--theme-color-2: #777;
--theme-color-3: #FFF;
}
}
*{
box-sizing: border-box;
color: var(--theme-color-3);
font-family: "Helvetica", "Arial", sans-serif;
-webkit-user-select: none;
-khtml-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
-webkit-tap-highlight-color: transparent;
-webkit-touch-callout: none;
text-decoration: none;
}
body{
display: grid;
grid-template-columns: 1fr;
grid-template-rows: var(--header-size) 1fr var(--footer-size);
justify-content: center;
align-items: center;
position: fixed;
width: 100vw;
height: 100svh;
margin: 0;
overflow: hidden;
}
header, footer{
display: flex;
justify-content: center;
align-items: center;
height: 100%;
background-color: var(--theme-color-0);
}
main{
display: grid;
grid-auto-rows: var(--card-height);
height: 100%;
overflow-y: scroll;
scrollbar-width: none;
gap: 5px;
background-color: var(--theme-color-1);
padding: 5px;
}
main::-webkit-scrollbar{
width: 0;
height: 0;
}
main>a{
display: grid;
grid-template-columns: 1fr var(--card-height);
justify-content: center;
align-items: center;
padding: 0 0 0 5px;
background-color: var(--theme-color-2);
border-radius: 15px;
}
main>a:hover{
filter: brightness(120%);
}