Skip to content

Commit 65e48e4

Browse files
committed
Compact navbar widgets on narrow phones
1 parent 9cd203d commit 65e48e4

1 file changed

Lines changed: 20 additions & 0 deletions

File tree

great_docs/assets/great-docs.scss

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1170,6 +1170,26 @@ body.quarto-light .navbar .navbar-toggler-icon {
11701170
flex-wrap: nowrap;
11711171
}
11721172

1173+
/* Compact widget tray on narrow phones (iPhone portrait) */
1174+
@media (max-width: 430px) {
1175+
.navbar .container-fluid {
1176+
flex-wrap: wrap;
1177+
}
1178+
.navbar-brand.navbar-brand-logo {
1179+
padding-right: 100%;
1180+
}
1181+
.quarto-navbar-tools {
1182+
flex: 0 0 100%;
1183+
justify-content: center;
1184+
order: 99;
1185+
padding-top: 4px;
1186+
padding-bottom: 4px;
1187+
}
1188+
#gd-navbar-widgets {
1189+
justify-content: center;
1190+
}
1191+
}
1192+
11731193
/* Uniform sizing for all direct widget children in the tray */
11741194
#gd-navbar-widgets > #dark-mode-toggle-container,
11751195
#gd-navbar-widgets > #gd-keyboard-btn-container {

0 commit comments

Comments
 (0)