Skip to content

Commit 35d4153

Browse files
authored
Merge pull request #87 from johndoh/breakpoints
fix usage of breakpoints to be smallest first
2 parents 3312f21 + 792a648 commit 35d4153

3 files changed

Lines changed: 49 additions & 41 deletions

File tree

_config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ libs: {
1818
url: 'https://cdn.jsdelivr.net/npm/less@4.2.0/dist/less.min.js',
1919
sri: 'sha384-SlYTcCEsC10TwMfcpGjqd+bWfA2QdB0CInBtPX6erDT3NnEkhX2X3gJ83UyHtXs3'
2020
},
21-
css: '/styles/styles.min.css?v=2024021800',
21+
css: '/styles/styles.min.css?v=2026041800',
2222
bootstrap: {
2323
css: {
2424
url: 'https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css',

styles/styles.less

Lines changed: 47 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,13 @@
22
@nav-height: 66px;
33
@nav-offset: 6rem;
44
@thumbnail-width: 140px;
5+
@icon-margin: .25rem;
56

6-
@max-width-md: 991px;
7-
@max-width-sm: 767px;
8-
@max-width-xs: 575px;
7+
@min-width-sm: 576px;
8+
@min-width-md: 768px;
9+
@min-width-lg: 992px;
10+
@min-width-xl: 1200px;
11+
@min-width-xxl: 1400px;
912

1013
@color-primary: #37beff;
1114
@color-background-alt: rgba(0, 0, 0, 0.05);
@@ -98,25 +101,25 @@ a:not(.btn):not(.nav-link):not(.dropdown-item),
98101

99102
> .container > .grid {
100103
display: grid;
101-
grid-template-columns: 1fr 1fr;
102-
grid-template-rows: auto 1fr;
104+
grid-template-columns: auto;
105+
grid-template-rows: auto;
103106

104107
> .logo {
105108
grid-column: 1;
106109
grid-row: 1;
107110
}
108111

109112
> .image {
110-
grid-column: 2;
111-
grid-row: 1 / 3;
113+
grid-column: 1;
114+
grid-row: 2;
112115
}
113116

114117
> .download {
115118
grid-column: 1;
116-
grid-row: 2;
119+
grid-row: 3;
117120
}
118121

119-
@media (max-width: @max-width-md) {
122+
@media (min-width: @min-width-md) {
120123
grid-template-columns: 1fr 1.5fr;
121124

122125
> .logo {
@@ -135,23 +138,23 @@ a:not(.btn):not(.nav-link):not(.dropdown-item),
135138
}
136139
}
137140

138-
@media (max-width: @max-width-sm) {
139-
grid-template-columns: auto;
140-
grid-template-rows: auto;
141+
@media (min-width: @min-width-lg) {
142+
grid-template-columns: 1fr 1fr;
143+
grid-template-rows: auto 1fr;
141144

142145
> .logo {
143146
grid-column: 1;
144147
grid-row: 1;
145148
}
146149

147150
> .image {
148-
grid-column: 1;
149-
grid-row: 2;
151+
grid-column: 2;
152+
grid-row: 1 / 3;
150153
}
151154

152155
> .download {
153156
grid-column: 1;
154-
grid-row: 3;
157+
grid-row: 2;
155158
}
156159
}
157160
}
@@ -293,11 +296,11 @@ footer {
293296
}
294297

295298
.rc-icon::before {
296-
margin-right: .25rem;
299+
margin-right: @icon-margin;
297300
}
298301

299302
.rc-icon::after {
300-
margin-left: .25rem;
303+
margin-left: @icon-margin;
301304
}
302305

303306
a.back-link::before {
@@ -362,13 +365,21 @@ a.current-theme::after {
362365
}
363366

364367
&.btn-sm {
365-
@media (max-width: @max-width-xs) {
368+
& > span {
369+
display: none;
370+
}
371+
372+
&::before {
373+
margin-right: 0;
374+
}
375+
376+
@media (min-width: @min-width-sm) {
366377
& > span {
367-
display: none;
378+
display: inline;
368379
}
369380

370381
&::before {
371-
margin-right: 0;
382+
margin-right: .5rem;
372383
}
373384
}
374385
}
@@ -450,25 +461,29 @@ div.color-modes > ul.dropdown-menu {
450461
}
451462

452463
table.download-table {
464+
tbody th,
465+
tbody td {
466+
vertical-align: middle;
467+
}
468+
453469
th.package {
470+
width: 55%;
471+
}
472+
473+
td.link {
454474
width: 20%;
455475
}
456476

457-
td.link,
458477
td.size {
459-
width: 15%;
478+
width: 20%;
460479
}
461480

462481
td.checksum {
463482
font-size: 0.9em;
483+
width: 5%;
464484
}
465485

466-
tbody th,
467-
tbody td {
468-
vertical-align: middle;
469-
}
470-
471-
@media (max-width: @max-width-md) {
486+
@media (min-width: @min-width-md) {
472487
th.package {
473488
width: 40%;
474489
}
@@ -482,25 +497,18 @@ table.download-table {
482497
}
483498

484499
td.checksum {
485-
width: 5%;
500+
width: auto;
486501
}
487502
}
488503

489-
@media (max-width: @max-width-xs) {
504+
@media (min-width: @min-width-lg) {
490505
th.package {
491-
width: 55%;
492-
}
493-
494-
td.link {
495506
width: 20%;
496507
}
497508

509+
td.link,
498510
td.size {
499-
width: 20%;
500-
}
501-
502-
td.checksum {
503-
width: 5%;
511+
width: 15%;
504512
}
505513
}
506514
}

styles/styles.min.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)