-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhello.css
More file actions
165 lines (146 loc) · 3.09 KB
/
hello.css
File metadata and controls
165 lines (146 loc) · 3.09 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
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
158
159
160
161
162
163
164
165
: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%
);
}
table {
border-collapse: collapse;
margin: 25px 0;
font-size: 0.9em;
font-family: sans-serif;
min-width: 400px;
background-color: var(--panel);
color: var(--text);
border: 1px solid var(--border);
box-shadow: 0 0 20px rgba(0, 0, 0, 0.15);
}
table thead tr {
background-color: var(--accent);
color: #ffffff;
text-align: left;
}
table th, table td {
padding: 12px 15px;
border-bottom: 1px solid var(--border);
}
table tbody tr {
border-bottom: 1px solid var(--border);
}
table tbody tr:nth-of-type(even) {
background-color: var(--panel-alt);
}
blockquote {
background-color: var(--panel);
border-left: 4px solid var(--accent);
color: var(--output-text);
margin: 1.5em 0;
padding: 1em 1.5em;
border-radius: 0 10px 10px 0;
font-size: 1.1em;
line-height: 1.6;
}
blockquote {
background-color: var(--panel);
border-left: 4px solid var(--accent);
color: var(--output-text);
margin: 1.5em 0;
padding: 1em 1.5em;
border-radius: 0 10px 10px 0;
font-size: 1.1em;
line-height: 1.6;
}