|
@@ -243,7 +243,8 @@ img.bx-std-api {
|
|
|
/*
|
|
/*
|
|
|
* Page menu on narrow screens (the columns themselves are in page_columns.css).
|
|
* Page menu on narrow screens (the columns themselves are in page_columns.css).
|
|
|
* Tablet: a vertical strip of square tiles (as wide as the strip's items, 88px), the 32px icon and a small label centred in each.
|
|
* Tablet: a vertical strip of square tiles (as wide as the strip's items, 88px), the 32px icon and a small label centred in each.
|
|
|
- * Phone: a horizontal, scrollable row of tabs with 28px tiles and 16px glyphs.
|
|
|
|
|
|
|
+ * Phone: a horizontal, scrollable row of 48px tabs, each its 32px tile alone (the link's aria-label names it); the active tab shows its
|
|
|
|
|
+ * label beside the tile, so the row stays one even line whatever the labels' length.
|
|
|
*/
|
|
*/
|
|
|
@media (max-width: 1023px) {
|
|
@media (max-width: 1023px) {
|
|
|
div.bx-std-pmen-item {
|
|
div.bx-std-pmen-item {
|
|
@@ -260,7 +261,7 @@ img.bx-std-api {
|
|
|
justify-content: center;
|
|
justify-content: center;
|
|
|
|
|
|
|
|
height: 100%;
|
|
height: 100%;
|
|
|
- padding: 0.5rem 0.25rem; /* room for a two-line label under the tile */
|
|
|
|
|
|
|
+ padding: 0.5rem; /* the 8px inset all round, as beside the tile on wide screens; the label wraps to two lines under the tile */
|
|
|
}
|
|
}
|
|
|
div.bx-std-pmen-item .bx-std-pmen-ic-icon,
|
|
div.bx-std-pmen-item .bx-std-pmen-ic-icon,
|
|
|
.bx-dir-rtl div.bx-std-pmen-item .bx-std-pmen-ic-icon {
|
|
.bx-dir-rtl div.bx-std-pmen-item .bx-std-pmen-ic-icon {
|
|
@@ -291,26 +292,40 @@ img.bx-std-api {
|
|
|
div.bx-std-pcm-menu > .bx-clear {
|
|
div.bx-std-pcm-menu > .bx-clear {
|
|
|
display: none;
|
|
display: none;
|
|
|
}
|
|
}
|
|
|
|
|
+ div.bx-std-pcm-menu::after {
|
|
|
|
|
+ content: '';
|
|
|
|
|
+ -webkit-flex: 0 0 0.375rem;
|
|
|
|
|
+ flex: 0 0 0.375rem; /* with the 2px gap, 8px after the last tab: the column's inset is not part of the row's scroll range */
|
|
|
|
|
+ }
|
|
|
div.bx-std-pmen-item {
|
|
div.bx-std-pmen-item {
|
|
|
-webkit-flex: 0 0 auto;
|
|
-webkit-flex: 0 0 auto;
|
|
|
flex: 0 0 auto;
|
|
flex: 0 0 auto;
|
|
|
|
|
|
|
|
- height: auto; /* tabs, not squares */
|
|
|
|
|
- min-width: 4rem;
|
|
|
|
|
|
|
+ height: 3rem; /* the 32px tile with 8px around it, like the wide-screen list */
|
|
|
margin-top: 0;
|
|
margin-top: 0;
|
|
|
}
|
|
}
|
|
|
div.bx-std-pmen-item-cnt {
|
|
div.bx-std-pmen-item-cnt {
|
|
|
- height: auto;
|
|
|
|
|
- padding: 0.375rem 0.5rem;
|
|
|
|
|
|
|
+ -webkit-flex-direction: row;
|
|
|
|
|
+ flex-direction: row;
|
|
|
|
|
+ -webkit-justify-content: flex-start;
|
|
|
|
|
+ justify-content: flex-start;
|
|
|
}
|
|
}
|
|
|
- div.bx-std-pmen-item .bx-std-pmen-ic-icon {
|
|
|
|
|
- width: 1.75rem;
|
|
|
|
|
- height: 1.75rem;
|
|
|
|
|
- padding: 0.375rem; /* 16px glyph in the 28px tile */
|
|
|
|
|
|
|
+ div.bx-std-pmen-item .bx-std-pmen-ic-title {
|
|
|
|
|
+ display: none; /* icon only */
|
|
|
}
|
|
}
|
|
|
- div.bx-std-pmen-item .bx-std-tile-btn > .sys-icon {
|
|
|
|
|
|
|
+ div.bx-std-pmen-item.bx-menu-tab-active .bx-std-pmen-ic-title {
|
|
|
|
|
+ display: block;
|
|
|
|
|
+ -webkit-line-clamp: unset;
|
|
|
|
|
+ max-width: none;
|
|
|
|
|
+ margin: 0 0.25rem 0 0.75rem; /* beside the tile, like the wide-screen list, with 4px of air before the tab's end */
|
|
|
|
|
+
|
|
|
font-size: 1rem;
|
|
font-size: 1rem;
|
|
|
- line-height: 1rem;
|
|
|
|
|
|
|
+ line-height: 1.5rem;
|
|
|
|
|
+ text-align: start;
|
|
|
|
|
+ white-space: nowrap;
|
|
|
|
|
+ }
|
|
|
|
|
+ .bx-dir-rtl div.bx-std-pmen-item.bx-menu-tab-active .bx-std-pmen-ic-title {
|
|
|
|
|
+ margin: 0 0.75rem 0 0.25rem;
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|