-
Notifications
You must be signed in to change notification settings - Fork 0
/
style2.css
217 lines (182 loc) · 3.49 KB
/
style2.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
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
body {
font-family: 'Helvetica';
}
.main {
display: grid;
grid-template-columns: 1fr 10fr;
justify-items: left;
align-items: start;
padding-top: 10vh;
}
.header {
display: grid;
grid-template-columns: max-content;
align-items: start;
height: max-content; /* Changed from 100% to max-content */
border-right: 1px solid rgb(236, 234, 234);
padding-right: 4vw;
}
.header ul {
margin-block-start: 0em;
}
.header li {
list-style-type: none;
line-height: 2em;
height: auto;
text-align: right;
}
.header ul li a{
text-decoration: none;
}
/* Work page specific styles */
.content ul {
margin-block-start: 0em;
}
.content ul a {
text-decoration: none;
}
.content li {
display: grid;
grid-template-columns: auto 8fr 1fr;
list-style-type: none;
line-height: 2em;
height: auto;
}
.content li div {
padding-right: 2em;
}
.content li div.title {
text-align: left;
}
.content li div.summary {
text-align: right;
}
.content li div.date {
text-align: right;
}
.content ul a:hover li {
background-color: rgb(236, 234, 234);
}
/* Add a subtle transition for a smoother effect */
.content li {
transition: background-color 0.2s ease;
}
.content.about {
display: grid;
grid-template-columns: auto 1fr;
gap: 2em;
height: calc(100vh - 10vh);
padding-left: 2em; /* Reduced from 4vw to match work page spacing */
}
.image-section {
height: 25vh;
padding-right: 2em;
}
.image-section img {
height: 100%;
width: auto;
object-fit: cover;
}
.text-section {
padding: 0 2em;
}
.text-section h1 {
margin-top: 0;
font-size: 2em;
margin-bottom: 1em;
}
/* Common styles */
a {
color: black;
}
/* Mobile styles */
@media(max-width:840px) {
.main {
grid-template-columns: 1fr;
padding-top: 2vh;
}
.header {
border-right: none;
padding-right: 0;
width: 100%;
margin-bottom: 2vh;
}
.header ul {
display: flex;
justify-content: center;
padding: 0;
margin: 0;
border-bottom: 1px solid rgb(236, 234, 234);
padding-bottom: 1vh;
}
.header li {
text-align: center;
padding: 0 1em;
}
/* Mobile Work page styles */
.content {
grid-template-columns: minmax(320px, 1fr);
gap: 0px;
padding: 0 1em;
max-width: 840px;
margin: 0 auto;
}
.content li {
display: grid;
grid-template-columns: 1fr 100px;
gap: 0.5em;
margin-bottom: 1.5em;
}
.content li div.title {
grid-column: 1;
grid-row: 1;
text-align: left;
padding-right: 0;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.content li div.date {
grid-column: 2;
grid-row: 1;
text-align: right;
padding-right: 0;
white-space: nowrap;
}
.content li div.date::before {
content: "-";
margin: 0 0.5em;
}
.content li div.summary {
grid-column: 1 / -1;
grid-row: 2;
text-align: left;
padding-top: 0.5em;
}
/* Mobile About page styles */
.content.about {
grid-template-columns: 1fr;
height: auto;
padding: 0 1em;
}
.text-section {
padding: 0;
order: 1;
}
.text-section h1 {
display: none;
}
.image-section {
height: auto;
max-height: 50vh;
padding-right: 0;
order: 2;
margin-top: 2em;
}
.image-section img {
width: 100%;
height: auto;
max-height: 50vh;
object-fit: contain;
}
}