-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.css
More file actions
218 lines (187 loc) · 4.92 KB
/
Copy pathmain.css
File metadata and controls
218 lines (187 loc) · 4.92 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
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
/* ==========================================================================
1. FONTS & ROOT
========================================================================== */
@font-face {
font-family: "Roboto Slab";
src: url("./fonts/RobotoSlab/RobotoSlab-VariableFont_wght.ttf") format("truetype");
font-weight: 100 900;
font-display: swap;
}
html {
font-size: 112.5%;
font-family: Arial, sans-serif;
box-sizing: border-box;
scroll-behavior: smooth;
}
*, *::before, *::after { box-sizing: inherit; }
body {
margin: 0;
overflow-x: hidden;
width: 100%;
}
/* ==========================================================================
2. HEADER & NAVIGATION
========================================================================== */
header {
display: flex;
justify-content: space-between;
align-items: center;
max-width: 68.75rem;
margin: 0 auto;
padding: 0 1rem;
}
nav { display: flex; }
header nav a {
padding: 0 1rem;
height: 3rem;
display: flex;
align-items: center;
color: #1a73e8;
text-decoration: none;
font-size: 0.95rem;
}
header nav a:hover {
color: #000;
}
header > a[href*="github.com"] {
padding: 0 1rem;
color: #1a73e8;
text-decoration: underline;
font-size: 0.95rem;
}
.disabled {
color: #888 !important;
opacity: 0.6;
pointer-events: none;
text-decoration: none !important;
}
/* ==========================================================================
3. HERO / SPLASH (Desktop Grid)
========================================================================== */
#splash {
grid-column: 1 / -1;
height: 940px;
background: url("./angola.jpg") no-repeat center bottom / cover;
display: grid;
grid-template-columns: 1fr repeat(3, 21.58rem) 1fr;
align-items: center;
text-align: center;
}
#splash h1 {
grid-column: 2 / -2;
color: white;
font-family: "Roboto Slab", serif;
font-weight: 800;
font-size: 4.5rem;
line-height: 1.1;
letter-spacing: 0.02em;
margin-bottom: 2rem;
}
/* ==========================================================================
4. BUTTON CARDS (Tightened Icon & Centering)
========================================================================== */
.buttons {
background: white;
border-radius: 8px;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
min-height: 140px;
box-shadow: 0 4px 15px rgba(0,0,0,0.1);
margin: 0 10px;
}
.buttons a {
display: inline-flex;
align-items: center;
justify-content: center;
width: 100%;
color: black;
text-decoration: none;
font-size: 1.4rem;
padding: 5px 0;
}
.buttons i {
margin-left: 8px;
font-size: 1.25rem;
}
/* Add this below .buttons i */
.tud-logo {
height: 2.8rem; /* Since your button text is 1.4rem, 2.8rem is exactly twice the height */
width: auto; /* Keeps the logo proportional */
margin-left: 10px; /* Space between the word "Textbook" and the logo */
}
/* This ensures the larger logo doesn't touch the top/bottom of the card */
#buttons-textbook {
padding: 10px 0;
}
#buttons-textbook { grid-column: 2; }
#buttons-codebook { grid-column: 3; }
#buttons-quizbook { grid-column: 4; }
/* ==========================================================================
5. CONTENT AREA (Minimized Gaps)
========================================================================== */
main {
display: grid;
grid-template-columns: 1fr minmax(0, 68.75rem) 1fr;
}
main > section {
grid-column: 2;
padding: 0 1.5rem;
}
h2 {
font-family: "Roboto Slab", serif;
font-weight: 700;
font-size: 2rem;
margin: 2rem 0 0.8rem 0;
}
p {
margin: 0 0 1rem 0;
line-height: 1.6;
}
address p { margin-bottom: 0 !important; }
footer {
text-align: center;
padding: 3rem 0;
color: #666;
font-size: 0.9rem;
}
/* ==========================================================================
6. RESPONSIVE DESIGN (Slimmed Mobile Buttons)
========================================================================== */
@media (max-width: 1600px) {
#splash {
display: flex;
flex-direction: column;
height: auto;
min-height: 100vh;
padding: 6rem 1rem 4rem 1rem;
}
#splash h1 { font-size: 3.5rem; }
.buttons { width: 320px; margin: 0 auto 1.2rem auto; }
}
@media (max-width: 600px) {
html { font-size: 15px; }
header { flex-direction: column; padding: 0.5rem; }
/* Synced Nav Font Sizes */
header nav a,
header > a[href*="github.com"] {
height: 1.8rem;
font-size: 0.8rem;
}
#splash h1 { font-size: 2.3rem; }
/* SLIMMER BUTTONS FOR MOBILE */
.buttons {
width: 90%;
max-width: 300px;
min-height: 90px; /* Reduced from 110px back to original slim height */
margin: 0 auto 1rem auto;
}
.buttons a {
font-size: 1.2rem; /* Slightly smaller text so it doesn't feel cramped */
}
.buttons i {
font-size: 1.1rem; /* Proportional icon resize */
}
h2 { margin: 1.5rem 0 0.5rem 0; font-size: 1.6rem; }
}