Skip to content

Commit 5d40c04

Browse files
authored
Sort font size 'once and for all' (#28)
1 parent 52043f3 commit 5d40c04

1 file changed

Lines changed: 31 additions & 5 deletions

File tree

src/beeware_docs_tools/overrides/assets/stylesheets/beeware_theme.css

Lines changed: 31 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -331,11 +331,6 @@
331331
color: unset;
332332
}
333333

334-
/* Site name */
335-
.site-name {
336-
font-size: 20px;
337-
}
338-
339334
/* Version number */
340335
.version-number {
341336
overflow-wrap: anywhere;
@@ -392,6 +387,10 @@
392387
margin-right: 0.2rem;
393388
}
394389

390+
.small .site-name {
391+
font-size: 24px;
392+
}
393+
395394
/* Embiggen homepage logo */
396395
.md-nav__title .md-nav__button.md-logo img {
397396
height: unset;
@@ -442,11 +441,34 @@
442441
text-align: start;
443442
}
444443

444+
/* Site name */
445445
.site-name {
446+
font-size: 20px;
446447
text-align: center;
447448
}
448449
}
449450

451+
/* Site name font size on mid-sized displays */
452+
@media screen and (max-width: 1599.99px)
453+
and (min-width: 1220px) {
454+
.site-name {
455+
font-size: 19px;
456+
}
457+
}
458+
459+
@media screen and (max-width: 1999.99px)
460+
and (min-width: 1600px) {
461+
.site-name {
462+
font-size: 21px;
463+
}
464+
}
465+
466+
@media screen and (min-width: 2000px) {
467+
.site-name {
468+
font-size: 22px;
469+
}
470+
}
471+
450472
/* Adjustments for smaller displays */
451473
@media screen and (max-width: 1219.99px) {
452474
.md-nav--primary .md-nav__title[for="__drawer"] {
@@ -482,6 +504,10 @@
482504
align-items: center;
483505
}
484506

507+
.site-name {
508+
font-size: 24px;
509+
}
510+
485511
.md-nav__title .md-nav__button.md-logo img {
486512
height: unset;
487513
max-width: unset;

0 commit comments

Comments
 (0)