-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhello.css
More file actions
119 lines (100 loc) · 2.05 KB
/
hello.css
File metadata and controls
119 lines (100 loc) · 2.05 KB
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
:root {
--bg: #1e1f24;
--panel: #2a2d37;
--border: #3a3f4b;
--text: #c7cbd4;
--muted: #9aa1ab;
--accent: #ffffff;
--cpp: #086692;
--rust: #2f241c;
--cs: #9b4f96;
}
/* Base page layout */
html,
body {
height: 100%;
margin: 0;
background: var(--bg);
color: var(--text);
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
font-size: 14px;
}
/* Two-column layout (with hacks to force equal width) */
.container {
display: flex !important;
flex-direction: row !important;
width: 100% !important;
box-sizing: border-box;
}
.box {
flex: 1 1 0 !important;
min-width: 0 !important;
width: 50vw !important;
max-width: 50vw !important;
margin: 0 !important;
padding: 12px !important;
box-sizing: border-box !important;
background: var(--panel);
box-shadow: inset 0 0 0 1px var(--border);
font-size: 14px !important; /* same in both boxes */
}
/* Left and right column tweaks */
.text-box {
background: #333744;
}
.code-box {
background: var(--panel);
}
/* Output / preformatted text */
pre {
margin: 0;
white-space: pre-wrap;
}
/* Answer buttons in the C# lessons */
.text-box .ans {
width: 600px;
max-width: 100%;
height: 30px;
border-radius: 20px;
background-color: var(--cpp);
border: none;
color: #fff;
font: inherit;
cursor: pointer;
display: none; /* JS shows them when needed */
}
.text-box .ans:hover {
background-color: #0a7fb5;
}
/* Language launch buttons on the homepage */
.cpp,
.rust,
.cs,
.qc {
width: 150px;
height: 20px;
border-radius: 5px;
border: none;
color: #fff;
font: inherit;
cursor: pointer;
}
.cpp {
background-color: var(--cpp);
}
.rust {
background-color: var(--rust);
}
.cs {
background-color: var(--cs);
}
.qc {
background: linear-gradient(90deg,
#0e639c 0%,
#0e639c 33%,
#c76b29 33%,
#c76b29 66%,
#9b4f96 66%,
#9b4f96 100%
);
}