-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcommon.css
113 lines (97 loc) · 1.92 KB
/
common.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
:root {
--text: hsl(30, 25%, 10%);
--bg: hsl(30, 15%, 90%);
--bold: hsl(30, 25%, 40%);
--link: hsl(90, 70%, 30%);
--highlight: hsl(30, 25%, 40%);
}
* {
background: transparent;
color: inherit;
border: none;
font-weight: inherit;
font-size: inherit;
font-style: inherit;
margin: 0;
padding: 0;
}
body {
background: var(--bg);
font: 16px/150% monospace;
color: var(--text);
margin: 0;
}
a {
color: var(--link);
}
b {
color: var(--bold);
}
@media (prefers-color-scheme: dark) {
:root {
--text: hsl(30, 15%, 90%);
--bg: hsl(30, 25%, 10%);
--bold: hsl(30, 25%, 70%);
--link: hsl(90, 70%, 70%);
--highlight: hsl(30, 25%, 70%);
}
}
/* width */
::-webkit-scrollbar {
width: 5px;
}
::-webkit-scrollbar-track {
background: transparent;
}
::-webkit-scrollbar-corner {
background: transparent;
}
::-webkit-scrollbar-track-piece {
background: transparent;
}
/* Handle */
::-webkit-scrollbar-thumb {
background: #777;
border-radius: 4px;
border: 1px solid transparent;
background-clip: padding-box;
}
/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
background: #606060;
border: 0;
}
#toast {
visibility: hidden;
min-width: 250px;
margin-left: -125px;
text-align: center;
border-radius: 1em;
padding: 8px;
position: fixed;
z-index: 1;
left: 50%;
bottom: 30px;
color: hsl(30, 25%, 10%);
}
#toast.ok {
background-color: hsl(90, 70%, 30%);
}
#toast.note {
background-color: hsl(30, 25%, 55%);
}
#toast.error {
background-color: hsl(0, 75%, 40%);
}
#toast.show {
visibility: visible;
animation: toast_fadein 0.5s, toast_fadeout 0.5s 2.5s;
}
@keyframes toast_fadein {
from {bottom: 0; opacity: 0;}
to {bottom: 30px; opacity: 1;}
}
@keyframes toast_fadeout {
from {bottom: 30px; opacity: 1;}
to {bottom: 0; opacity: 0;}
}