-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
113 lines (99 loc) · 1.95 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
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: "Space Mono", Courier, monospace;
line-height: 1.8em;
}
:root {
--pageBg: #1a1c22;
--containerBg: #222125;
--complementaryColor: #ffdf00;
--fontColor: #f7f7f7;
--containerBorderColor: #28272b;
--containerRadius: 5px;
--responsibleFontSize: clamp(1rem, 2vw, 1.3rem);
--scrollBarBtnColor: #3b3a3f;
--errorFontColor: #9e0000;
}
body {
/* from bgjar.com */
min-height: 100vh;
overflow: hidden;
background: var(--pageBg);
color: var(--fontColor);
}
header {
height: 20vh;
display: flex;
justify-content: center;
align-items: center;
}
header h1 {
position: relative;
padding: 2%;
color: var(--complementaryColor);
font-size: clamp(30px, 3vw, 50px);
line-height: 3rem;
text-align: center;
}
main {
width: 75vw;
height: 60vh;
overflow-y: scroll;
background: var(--containerBg);
padding: 2%;
margin: 0 auto 10vh auto;
border: 3px solid var(--containerBorderColor);
border-radius: var(--containerRadius);
font-size: var(--responsibleFontSize);
}
.line {
margin-bottom: 2% 0;
}
.line span:nth-child(1) {
font-weight: 700;
}
.marked {
color: var(--complementaryColor);
font-weight: 700;
animation: flashing 1s infinite linear;
}
.line.has-answer {
display: flex;
}
.line.error {
color: var(--errorFontColor);
}
.answer {
min-width: 50%;
background: transparent;
border: none;
outline: none;
caret-color: var(--fontColor);
font-size: var(--responsibleFontSize);
color: var(--fontColor);
word-break: break-all;
cursor: text;
caret-color: var(--complementaryColor);
}
/* scroll bar */
main::-webkit-scrollbar {
background: var(--containerBorderColor);
}
main::-webkit-scrollbar-thumb {
background-color: var(--scrollBarBtnColor);
border-left: 3px solid var(--containerBorderColor);
border-radius: 15px;
}
@keyframes flashing {
0% {
opacity: 1;
}
50% {
opacity: 0;
}
100% {
opacity: 1;
}
}