Skip to content

Commit 321dfdc

Browse files
committed
Update _duckcon7.scss
- improved table view on mobile
1 parent dfa03fd commit 321dfdc

1 file changed

Lines changed: 39 additions & 6 deletions

File tree

_sass/pages/_duckcon7.scss

Lines changed: 39 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -178,8 +178,19 @@
178178
grid-template-columns: var(--first-column-width) 1.7fr 1fr 1fr;
179179

180180
@media (max-width: 940px) {
181-
grid-template-columns: var(--first-column-width) 1fr;
182-
grid-template-rows: 1fr 1fr;
181+
grid-template-columns: 70px 1fr;
182+
}
183+
}
184+
185+
thead tr {
186+
@media (max-width: 940px) {
187+
grid-template-columns: 1fr;
188+
}
189+
}
190+
191+
thead th {
192+
@media (max-width: 940px) {
193+
padding-left: 0;
183194
}
184195
}
185196

@@ -200,19 +211,37 @@
200211
color: var(--main-text-secondary-color, #B2B2B2);
201212
}
202213

214+
td:nth-child(2) {
215+
@media (max-width: 940px) {
216+
padding-bottom: 2px;
217+
}
218+
}
219+
203220
td:nth-child(3) {
204221
color: var(--main-text-tertiary-color);
205222

206223
@media (max-width: 940px) {
207-
grid-column: span 2;
208-
text-align: center;
224+
grid-column: 2;
225+
padding-top: 0;
226+
}
227+
228+
&:empty {
229+
@media (max-width: 940px) {
230+
display: none;
231+
}
209232
}
210233
}
211234

212235
td:nth-child(4) {
213236
@media (max-width: 940px) {
214-
grid-column: span 2;
215-
text-align: center;
237+
grid-column: 2;
238+
padding-top: 0;
239+
}
240+
241+
&:empty {
242+
@media (max-width: 940px) {
243+
display: none;
244+
}
216245
}
217246
}
218247
}
@@ -224,6 +253,10 @@
224253
.table-section-title {
225254
margin-left: calc(var(--first-column-width) + var(--td-padding));
226255
margin-bottom: 30px;
256+
257+
@media (max-width: 940px) {
258+
margin-left: 0;
259+
}
227260
}
228261

229262
.table-title {

0 commit comments

Comments
 (0)