-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
201 lines (171 loc) · 4.03 KB
/
Copy pathstyle.css
File metadata and controls
201 lines (171 loc) · 4.03 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
:root {
--sidebar-width: 20%; /* Set within your 25%-35% target range */
--bg-sidebar: #7c8285ff;
--bg-content: #7c8285ff;
--text-primary: #292929ff;
--text-sidebar: #292929ff;
--text-muted: #8d99ae;
--accent-color: #4db0ee;
}
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
html {
/* Enables smooth scrolling when clicking navigation anchors */
scroll-behavior: smooth;
}
body {
font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
color: var(--text-primary);
display: flex;
min-height: 100vh;
}
/* Fixed Left Sidebar */
.sidebar {
position: fixed;
top: 0;
left: 0;
width: var(--sidebar-width);
height: 100vh;
background-color: var(--bg-sidebar);
color: var(--text-sidebar);
padding: 3rem 2rem;
display: flex;
flex-direction: column;
justify-content: space-between;
justify-content: normal;
}
.sidebar-logo {
/* Set your preferred relative size (e.g., % of sidebar, or viewport units like vw) */
width: 100%;
max-width: 480px; /* Upper limit so it doesn't get massive on large screens */
min-width: 64px; /* Lower limit to stay legible */
height: auto; /* Preserves SVG aspect ratio automatically */
display: block;
}
.brand h1 {
font-size: 1.8rem;
font-weight: 700;
margin-bottom: 0.25rem;
}
.brand p {
color: var(--text-muted);
font-size: 0.95rem;
}
.nav-menu {
display: flex;
flex-direction: column;
gap: 1rem;
align-items: flex-end; /* Keeps hover hitboxes fitted to the text length */
text-align: right;
margin-top: 2rem;
}
.nav-menu a {
color: var(--text-sidebar);
text-decoration: none;
font-size: 1.1rem;
font-size: 2.0rem;
font-weight: bold;
transition: color 0.2s ease, transform 0.2s ease;
}
.nav-menu a:hover {
color: var(--accent-color);
/* transform: translateX(4px); */
}
.sidebar-footer {
margin-top: auto;
font-size: 0.85rem;
color: var(--text-sidebar);
}
/* Right Content Column */
.content {
/* Offset content by the exact width of the fixed sidebar */
margin-left: var(--sidebar-width);
width: calc(100% - var(--sidebar-width));
padding: 3rem 4rem;
background-color: var(--bg-content);
}
.section {
min-height: 20vh; /* Gives each section breathing room for scrolling */
padding-bottom: 4rem;
/* border-bottom: 1px solid #e9ecef; */
}
.section:last-child {
border-bottom: none;
}
.section h2 {
font-size: 3rem;
margin-bottom: 1rem;
color: var(--text-primary);
}
.section p, li {
line-height: 1.6;
margin-bottom: 1rem;
font-size: 1.3rem;
color: var(--text-primary);
}
.section li {
line-height: 1.2;
}
.section ul {
padding-left: 1.5rem; /* Adjusts how far the whole list indents from the left */
}
.card {
/* background: #f8f9fa;
border: 1px solid #e9ecef;
border-radius: 6px; */
padding: 1.5rem;
margin-bottom: 1rem;
}
.card h3 {
font-size: 2rem;
margin-bottom: 1.5rem;
}
.card p {
font-size: 1.1rem;
}
.card a {
color: var(--accent-color);
text-decoration: none;
}
.card a:hover {
text-decoration: underline;
}
.image-gallery {
display: flex;
flex-wrap: wrap; /* Allows items to drop down when space runs out */
gap: 1rem; /* Adds spacing between the images both horizontally & vertically */
margin-top: 1rem;
}
.image-gallery img {
/* Controls image sizing */
width: 640px; /* Base small size for each image */
height: 480px; /* Fixed height for uniform square thumbnails */
object-fit: cover; /* Prevents stretching/distortion */
border-radius: 6px; /* Optional rounded corners */
/* Flex item behavior */
flex: 1 1 640px; /* Flex-grow, flex-shrink, and base width */
max-width: 640x; /* Prevents single images from becoming giant on full wrap */
}
/* Responsive collapse for smaller screens */
@media (max-width: 768px) {
body {
flex-direction: column;
}
.sidebar {
position: relative;
width: 100%;
height: auto;
padding: 2rem 1.5rem;
}
.content {
margin-left: 0;
width: 100%;
padding: 2rem 1.5rem;
}
.section {
min-height: auto;
}
}