Files
wekan/client/components/main/header.css
T
Lauri Ojansivu f62258b5cb Header bar: one star group, named view menus, and a Filter button that shuts.
The bar drew TWO stars in a row - one on the starred-boards dropdown and one
for the board you are on - which reads as a single control somehow drawn
twice. The dropdown has no star now: it is a caret and the COUNT of starred
boards, which is what it is about, and the count is shown even at zero
because it is the button's only label and a bare caret says nothing about
what it opens.

The board's own star sits immediately beside it, and the two are wrapped in a
rounded outline of their own, shaped like the phone/desktop toggle's but
WHITE where that one is black: the toggle is a white box sitting on the bar,
so a dark border shows against it, while these buttons sit on the bar's own
colour and need a light one. Without an outline the two read as unrelated
icons that happen to be adjacent - which is what made the two stars confusing
in the first place.

The star is its own template so the bar can place it here rather than among
the board's other controls further along. A Blaze event map only sees events
inside its own template, so its helpers and its click came with its markup,
and the copies left behind in boardHeaderButtons are gone.

The two view menus and Multi-Selection carry their name beside the icon
again. I had made them icon-only earlier and xet7 asked for the words back;
that is the better call - six view glyphs are six things to learn, a
check-box outline says nothing about multi-selection, and a tooltip is the
one place a name cannot be read without hovering. The bar wraps to a second
row when it runs out of width, which is what makes the word affordable now
and did not before. Sort, Search and Boards in Archive stay icons: those
glyphs are well known. A label does not wrap mid-button - two lines inside a
one-line button is worse than the tooltip was.

Clicking Filter while the filter sidebar is already showing closes it. It
only ever opened, so a second click did nothing visible and the only way back
was the sidebar's own X, somewhere else on screen from the thing you just
clicked. Not while a filter is ON, though: the sidebar is then the one place
that says WHAT is being hidden from the board, and closing it would leave a
board showing a subset of its cards with nothing on screen to say so - so it
stays open, and the X beside the button is what clears the filter.
"Showing the filter" is open AND on that view, because a sidebar open on
Activities is not showing the filter and clicking Filter there has to switch
to it rather than close the panel.

models/lib/filterButton.js holds that rule so "which way does this click go"
is answered once, and the guard checks all four combinations without a DOM.

tests/mobileModeConsistency stopped expecting js-star-board among the board
header buttons and says where it went instead; tests/headerBars pins the
group, its light-against-the-bar outline, the labels, and the filter toggle.

Thanks to xet7 !
2026-08-01 00:33:13 +03:00

1710 lines
65 KiB
CSS

#header {
color: #fff;
transition: background-color 0.4s;
background: #2980b9;
z-index: 17;
}
#header #header-main-bar {
/* Flex row (was float-based) so the right button group — which ends with the
sidebar hamburger — is always pinned to the right edge at every window width,
instead of drifting to the middle as floats wrap. */
display: flex;
align-items: center;
flex-wrap: wrap;
min-height: 40px;
/* No right padding: the right gap is owned by the hamburger's margin so it can
match the ~8px gap to the right of the top-bar user name.
The block padding is SYMMETRIC: with 7px above and none below, `align-items:
center` centred every item inside a content box that was itself 7px low, which
put the board title - the tallest item, so the one that shows it - visibly above
the middle of the bar. (top right bottom left) */
padding: 4px 0 4px 10px;
/* Space between the rows when the bar wraps; it used to be a top margin on the
button groups, which also pushed them below the title's centre line. */
row-gap: 4px;
}
#header #header-main-bar h1 {
font-size: 20px;
/* A flex box with its own centred line, so the title sits on the bar's middle with
everything else instead of on the middle of a line box far taller than its text. */
display: flex;
align-items: center;
line-height: 1.3;
padding: 0 10px;
margin: 0;
margin-inline-end: 10px;
float: inline-start;
border-radius: 3px;
/* A title longer than the whole bar wraps inside the h1 instead of overflowing
the viewport (flex items do not shrink below min-content without min-width:0). */
min-width: 0;
max-width: 100%;
overflow-wrap: break-word;
}
/* The board bar's button groups are ONE flex item (see boardHeader.jade), so a
board title long enough to fill the row pushes ALL the buttons down to the second
row together, under the title, instead of leaving the left group beside the title
and wrapping only the right group. When the title is short, title + buttons still
share one line exactly as before: this item's base size is its content width, so
it only moves down when it genuinely does not fit beside the title. */
#header #header-main-bar .board-header-btns-group {
display: flex;
align-items: center;
flex-wrap: wrap;
flex: 1 1 auto;
min-width: 0;
}
/* The sidebar hamburger comes right after the title in the markup, so that on a
phone it can share the first row with it (see boardHeader.css). On a wide screen
`order` puts it back at the end of the bar, and the auto start margin pins it to
the right edge - visually identical to when it lived inside the right group. */
#header #header-main-bar .board-header-sidebar-toggle {
order: 1;
flex: 0 0 auto;
margin-inline-start: auto;
}
#header #header-main-bar h1 .board-header-watch-icon {
padding-inline-start: 7px;
}
#header #header-main-bar h1 a.fa,
#header #header-main-bar h1 a i.fa {
color: #fff;
}
#header #header-main-bar h1 .back-btn {
font-size: 0.9em;
margin-inline-end: 10px;
}
#header #header-main-bar .wekan-logo {
margin: 3px auto auto;
width: 97px;
opacity: 0.6;
transition: opacity 0.15s;
float: inline-end;
}
#header #header-main-bar .wekan-logo:hover {
opacity: 0.9;
}
#header #header-main-bar .board-header-btns {
/* Flex so the buttons inside each group lay out (their float is ignored inside a
flex container) and the groups themselves are flex items of the header bar. */
display: flex;
align-items: center;
flex-wrap: wrap;
/* No top margin: a margin on one flex item is not centring, it is a shift, and it
is what set the buttons below the title. The bar's `row-gap` separates wrapped
rows instead. */
margin-top: 0;
width: auto;
}
#header #header-main-bar .board-header-btns.right {
/* Always hug the right edge (and, if the row wraps, the right of its row). */
margin-inline-start: auto;
}
/* The controls that moved INTO the first bar - the page's view menu, the starred
boards dropdown, the Admin Panel tabs and the sidebar hamburger - are
`.board-header-btn`s, and every rule that styled one was scoped to
`#header-main-bar`, the second bar. In the first bar they had no padding, no
height and no line-height, so they rendered as cramped bare glyphs jammed
against each other. Same look, stated for this bar too. */
#header-quick-access .board-header-btn {
border-radius: 3px;
color: #f2f2f2;
padding: 0 6px;
height: 28px;
font-size: 13px;
display: inline-flex;
align-items: center;
gap: 4px;
line-height: 28px;
margin: 0 4px;
white-space: nowrap;
}
#header-quick-access .board-header-btn:hover {
background: rgba(0, 0, 0, 0.15);
}
/* The button of the page you are ON keeps that background, permanently and a
shade darker, so the bar says which of the Admin Panel's four pages is open
without you having to hover over each one to find out. The tabs have marked
themselves `.active` all along, but the only rule that drew it was scoped to
`#header-main-bar` - the second bar, which these tabs no longer live in - so
the state has been computed and invisible since the move.
Darker than the hover, not the same: hovering the tab you are already on has
to still look like a hover, and the current page has to stand out from a
neighbour the pointer happens to be over. */
#header-quick-access .board-header-btn.active,
#header-quick-access .board-header-btn.active:hover {
background: rgba(0, 0, 0, 0.3);
}
/* The divider before the hamburger, which the second bar draws its own way. */
#header-quick-access .separator {
width: 1px;
height: 20px;
margin: 0 6px;
background: rgba(255, 255, 255, 0.4);
}
#header-quick-access .board-header-btns {
display: flex;
align-items: center;
}
/* Everything after the drag-handles toggle hugs the END of the bar: the right
edge in a left-to-right language, the LEFT edge in a right-to-left one.
`margin-inline-start` is a LOGICAL property, so the mirroring is what the
browser already does for the writing direction rather than a second rule to
keep in step with the first. The items before it - the home link and page
title, the logo, the phone/desktop toggle and the drag-handles toggle - stay
at the start.
It wraps with the bar: when the row breaks, this group takes the second row
and still sits at its end. */
#header-quick-access .header-quick-access-end {
display: flex;
align-items: center;
flex-wrap: wrap;
row-gap: 4px;
margin-inline-start: auto;
}
#header #header-main-bar .board-header-btn {
border-radius: 3px;
color: #f2f2f2;
padding: 0;
height: 28px;
font-size: 13px;
float: inline-start;
overflow: hidden;
line-height: 28px;
margin: 0 12px;
}
/* The sidebar hamburger sits at the far right; drop its wide 12px side margins so
there is no button-sized empty space to its left or right. The cog before it also
drops its right margin so the two sit snugly together at the edge. */
#header #header-main-bar .board-header-btn.js-toggle-sidebar {
/* Equal side margins, so the button is CENTRED in the space between the divider
and the end of the bar. With 8px at the end and 2px at the start it sat left of
that middle, with an empty strip to its right. */
margin-inline-start: 2px;
margin-inline-end: 2px;
}
#header #header-main-bar .board-header-btn i.fa {
float: inline-start;
display: block;
line-height: 28px;
color: #f2f2f2;
margin: 0 10px;
}
#header #header-main-bar .board-header-btn i.fa + span {
display: inline-block;
margin-top: 1px;
margin-inline-end: 10px;
}
#header #header-main-bar .board-header-btn .board-header-btn-close {
float: inline-end;
}
#header #header-main-bar .board-header-btn .board-header-btn-close i.fa {
margin: 0 6px;
}
#header #header-main-bar .board-header-btn .board-header-btn-icon {
float: inline-start;
display: block;
line-height: 28px;
color: #27ae60;
margin: 0 10px;
cursor: pointer;
}
#header #header-main-bar .board-header-btn.is-active,
#header #header-main-bar h1.is-clickable.is-active,
#header #header-main-bar .board-header-btn:hover:not(.is-disabled),
#header #header-main-bar h1.is-clickable:hover:not(.is-disabled) {
background: rgba(0,0,0,0.15);
}
#header #header-main-bar .board-header-btn.js-multiselection-active {
background: #1a5080;
}
#header #header-main-bar .board-header-btn.js-multiselection-active:hover {
background: #0f3a5f;
}
#header #header-main-bar .separator {
margin: 2px 4px;
border-inline-start: 1px solid rgba(255,255,255,0.3);
height: 24px;
float: inline-start;
}
/* On non-board pages (All Boards / home, public, my cards, …) the second bar
holds only a title (e.g. "My Boards"). The fixed 40px bar height plus the
floated h1 with a 1.7em line-height clipped the bottom of the text on iOS
Safari. Vertically center the title in a bar that can grow so it is never
cut off. Scoped to non-board-view so the board header (floated buttons) is
untouched. */
body:not(.board-view) #header #header-main-bar {
display: flex;
align-items: center;
height: auto;
min-height: 40px;
/* No padding override here: the bar's own symmetric block padding is what makes
`align-items: center` centre on the bar's true middle (see the rule above).
Zeroing it here - `.board-view` is set on <body> by nothing, so this selector
matches on EVERY page - is what kept the board title sitting high. */
}
body:not(.board-view) #header #header-main-bar h1 {
float: none;
}
#header-quick-access {
color: #fff;
transition: background-color 0.4s;
/* The SAME colour as the main bar below it, not a darker shade of it. Each
theme used to paint the two bars two tones apart; they are one bar's worth
of colour now, so the header reads as one header. The per-theme rules do
the same, by naming this bar in the selector list the main bar already has
(boardColors.css) rather than by restating each hex a second time. */
background: #2980b9;
font-size: 12px;
display: flex;
z-index: 1000;
padding: 10px 0px;
align-items: center;
/* WRAPS to a second row when its buttons do not fit.
It was nowrap + overflow:hidden, which was fine when this bar held a logo,
two toggles and the user menu: nothing ever ran out of room. It now also
carries the page title, the board's rename pencil, its ten controls, the
view menu, the starred-boards dropdown, the Admin Panel tabs and the
hamburger - and clipped is the worst way to run out of room, because a
button that is not drawn gives no sign that it exists.
The fixed height went with it: 28px is a CONTENT box, so it would clip the
second row even after the wrap. min-height keeps the one-row case as tall
as it was. */
flex-wrap: wrap;
row-gap: 4px;
min-height: 28px;
}
/* Mobile mode: everything in BOTH top bars sits on the vertical centre of its row.
The quick-access bar declares `height: 28px`, and with box-sizing globally unset
that 28px is the CONTENT box. Its children are taller than that on a phone (the
mode toggle and the action buttons are ~40-44px for touch), so they overflowed a
short box, were clipped by its `overflow: hidden`, and read as sitting high. Let
the bar take its content's height with a floor instead of pinning it. */
.mobile-mode #header-quick-access {
height: auto;
min-height: 48px;
/* Symmetric, so `align-items: center` centres on the bar's true middle. */
padding-block: 4px;
align-items: center;
}
/* Same for the board bar: it centred its items inside a content box that had 7px of
padding above and none below, which put everything half that distance high. */
.mobile-mode #header #header-main-bar {
padding-block: 4px;
align-items: center;
}
/* The board title is a flex item of that bar, so it centres with the rest - but only
if its own line box does not tower over the text. */
.mobile-mode #header #header-main-bar h1 {
display: flex;
align-items: center;
line-height: 1.3;
margin-block: 0;
}
#header-quick-access .home-icon {
display: flex;
align-items: center;
margin-inline-end: 1rem;
flex-shrink: 0;
}
#header-quick-access .home-icon a {
display: flex;
align-items: center;
text-decoration: none;
color: #fff;
padding: 4px 8px;
border-radius: 4px;
transition: background-color 0.2s ease;
}
#header-quick-access .home-icon a:hover {
background-color: rgba(255, 255, 255, 0.1);
}
#header-quick-access .home-icon .fa-home {
font-size: 16px;
margin-inline-end: 4px;
}
#header-quick-access .allBoards {
font-size: 14px;
padding: 4px 15px;
}
/* Mobile mode: the home ICON only, never the "All Boards" label.
`body.mobile-mode` is set by Utils.applyMobileMode() from the phone/desktop
toggle in this same bar, so it is a deliberate user choice and applies at ANY
viewport width - a narrow-viewport media query would miss it on a wide screen
in mobile mode, and miss the point: the user asked for mobile MODE, not for a
width. The label is the widest item in the bar and longer still in most
languages ("Kaikki taulut"), and the house icon alone is unambiguous.
The label is a bare text node inside the link, not a span, so it cannot be
selected on its own: font-size:0 on the link collapses it, and the icon's own
font-size brings the icon back. The text stays in the DOM, so screen readers
and the accessibility tree still announce "All Boards". */
body.mobile-mode #header-quick-access .home-icon a {
font-size: 0;
padding: 4px 6px;
}
body.mobile-mode #header-quick-access .home-icon a .fa-home,
body.mobile-mode #header-quick-access .home-icon .fa-home {
font-size: 16px;
margin-inline-end: 0;
}
body.mobile-mode #header-quick-access .allBoards {
padding: 4px 6px;
}
#header-quick-access a {
text-decoration: none;
}
#header-quick-access i.fa {
color: #fff;
}
#header-quick-access i.fa:hover {
color: #ccc;
}
/* Drag-handle toggle icons 30% smaller than the other quick-access icons. */
#header-quick-access .js-toggle-desktop-drag-handles .fa {
font-size: 0.7em;
}
#header-quick-access #header-user-bar,
#header-quick-access #header-new-board-icon,
#header-quick-access ul li {
color: #d4d4d4;
}
#header-quick-access #header-user-bar .fa,
#header-quick-access #header-new-board-icon .fa,
#header-quick-access ul li .fa {
color: inherit;
}
#header-quick-access #header-user-bar a:hover,
#header-quick-access #header-new-board-icon a:hover,
#header-quick-access ul li a:hover,
#header-quick-access #header-user-bar a.is-active,
#header-quick-access #header-new-board-icon a.is-active,
#header-quick-access ul li a.is-active {
color: #fff;
}
#header-quick-access ul.header-quick-access-list {
transition: opacity 0.2s;
white-space: nowrap;
padding: 10px;
margin: 10px;
flex: 1; /* Take up available space */
min-width: 0; /* Allow shrinking below content size */
display: flex; /* Use flexbox for better control */
align-items: center;
overflow-x: auto;
scrollbar-color: white #2573a7;
}
/* Hide scrollbar completely */
#header-quick-access ul.header-quick-access-list::-webkit-scrollbar {
display: flex;
}
#header-quick-access ul.header-quick-access-list {
-ms-overflow-style: thin; /* IE and Edge */
scrollbar-width: thin; /* Firefox */
}
#header-quick-access ul.header-quick-access-list li {
display: inline-block; /* Keep inline-block for proper spacing */
width: auto;
color: #d9d9d9;
padding: 12px 0px;
margin: -10px 0px;
flex-shrink: 0; /* Prevent items from shrinking */
white-space: nowrap; /* Prevent text wrapping within items */
}
#header-quick-access ul.header-quick-access-list li a {
padding: 12px 10px;
margin: -10px 0px;
}
#header-quick-access ul.header-quick-access-list li a .viewer {
display: inline;
white-space: nowrap;
}
#header-quick-access ul.header-quick-access-list li a .viewer p {
display: inline;
white-space: nowrap;
}
#header-quick-access ul.header-quick-access-list li.current {
color: #f2f2f2;
}
#header-quick-access ul.header-quick-access-list li.current.empty {
padding: 12px 10px 12px 10px;
flex: 1;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
cursor: default;
opacity: 0.85;
font-style: italic;
}
#header-quick-access ul.header-quick-access-list li:first-child .fa-home,
#header-quick-access ul.header-quick-access-list li:nth-child(3) .fa-globe {
margin-inline-end: 5px;
}
#header-quick-access ul.header-quick-access-list li a.js-create-board {
margin-inline-start: 5px;
}
#header-quick-access #header-user-bar,
#header-quick-access #header-new-board-icon {
flex-shrink: 0;
}
#header-quick-access #header-user-bar {
margin: 2px 0;
}
#header-quick-access #header-user-bar .header-user-bar-avatar {
float: inline-start;
position: relative;
top: -5px;
margin-inline-end: 5px;
}
#header-quick-access #header-user-bar .header-user-bar-avatar .member,
#header-quick-access #header-help {
width: 24px;
height: 24px;
margin: 0;
margin-top: 1px;
}
#header-quick-access #header-user-bar .header-user-bar-name,
#header-quick-access #header-help {
margin: 4px 8px 0 0;
float: inline-start;
}
/* Mobile Mode Toggle in Header */
#header-quick-access .mobile-mode-toggle {
display: flex;
align-items: center;
margin: 0 14px;
float: inline-start;
}
#header-quick-access .mobile-mode-toggle .board-header-btn {
padding: 5px 11px !important;
border-radius: 4px !important;
background: #fff !important;
border: 1px solid #000 !important;
transition: all 0.2s ease !important;
color: #000 !important;
height: auto !important;
line-height: normal !important;
margin: 0 !important;
float: none !important;
overflow: visible !important;
text-decoration: none !important;
display: flex !important;
align-items: center !important;
justify-content: center !important;
gap: 6px !important;
position: relative !important;
}
#header-quick-access .mobile-mode-toggle .board-header-btn i {
color: #666 !important;
float: none !important;
display: inline !important;
line-height: normal !important;
margin: 0 !important;
transition: all 0.2s ease !important;
font-size: 14px !important;
}
#header-quick-access .mobile-mode-toggle .board-header-btn i.active {
color: #000 !important;
font-weight: bold !important;
transform: scale(1.1) !important;
}
#header-quick-access .mobile-mode-toggle .board-header-btn:hover {
background: #000 !important;
border-color: #000 !important;
color: #fff !important;
}
#header-quick-access .mobile-mode-toggle .board-header-btn:hover i {
color: #ccc !important;
}
#header-quick-access .mobile-mode-toggle .board-header-btn:hover i.active {
color: #fff !important;
}
#header-quick-access .mobile-mode-toggle .board-header-btn.mobile-active {
background: #fff !important;
border-color: #000 !important;
color: #000 !important;
}
#header-quick-access .mobile-mode-toggle .board-header-btn.mobile-active i.mobile-icon {
color: #000 !important;
font-weight: bold !important;
transform: scale(1.1) !important;
}
#header-quick-access .mobile-mode-toggle .board-header-btn.mobile-active i.desktop-icon {
color: #666 !important;
}
#header-quick-access .mobile-mode-toggle .board-header-btn.desktop-active {
background: #fff !important;
border-color: #000 !important;
color: #000 !important;
}
#header-quick-access .mobile-mode-toggle .board-header-btn.desktop-active i.mobile-icon {
color: #666 !important;
}
#header-quick-access .mobile-mode-toggle .board-header-btn.desktop-active i.desktop-icon {
color: #000 !important;
font-weight: bold !important;
transform: scale(1.1) !important;
}
/* Which mode is ON, at a glance. The two icons differed only by colour - black
for the active one, #666 for the other - which on a phone, at 14px, is no
difference at all: the button showed a phone and a monitor and told you
nothing. The current mode is now a filled chip in the theme's own accent
colour and the other side is faded, so the answer is the shape that is lit. */
#header-quick-access .mobile-mode-toggle .board-header-btn i.mobile-icon,
#header-quick-access .mobile-mode-toggle .board-header-btn i.desktop-icon {
display: inline-flex !important;
align-items: center !important;
justify-content: center !important;
padding: 3px 6px !important;
border-radius: 4px !important;
opacity: 0.35 !important;
transition: opacity 0.2s ease, background-color 0.2s ease !important;
}
#header-quick-access .mobile-mode-toggle .board-header-btn.mobile-active i.mobile-icon,
#header-quick-access .mobile-mode-toggle .board-header-btn.desktop-active i.desktop-icon,
#header-quick-access .mobile-mode-toggle .board-header-btn i.mobile-icon.active,
#header-quick-access .mobile-mode-toggle .board-header-btn i.desktop-icon.active {
opacity: 1 !important;
/* The active theme, like the rest of the bar; the stock blue where no theme
has published an accent. */
background: var(--theme-accent, #2980b9) !important;
}
#header-quick-access .mobile-mode-toggle .board-header-btn.mobile-active i.mobile-icon .fa,
#header-quick-access .mobile-mode-toggle .board-header-btn.desktop-active i.desktop-icon .fa,
#header-quick-access .mobile-mode-toggle .board-header-btn i.mobile-icon.active .fa,
#header-quick-access .mobile-mode-toggle .board-header-btn i.desktop-icon.active .fa {
color: #fff !important;
}
#header-quick-access #header-user-bar .header-user-bar-name i.fa-chevron-down {
margin-inline-end: 4px;
}
#header-quick-access #header-new-board-icon {
flex-grow: 1;
margin: 6px 5px 0;
width: 12px;
}
@media screen and (max-width: 800px),
screen and (max-device-width: 932px) and (-webkit-min-device-pixel-ratio: 3) {
#header #header-main-bar {
/* #6419: taller bar so the action icons can use ~44px touch targets.
min-height, NOT height: the bar wraps to a second row when the board title and
the buttons do not fit on one, and a fixed height CLIPPED that second row - on
a phone the title or the icons simply were not there. It still sits on one row
whenever they fit, which is the normal case. */
min-height: 48px;
}
#header #header-main-bar .board-header-btns {
margin-top: 0px;
}
#header #header-main-bar .board-header-btn {
/* #6419: 32px tall / 15px was below the comfortable mobile touch-target and
readable-font minimum (~44px / 16px). Enlarged vertically + bigger font;
width is unchanged so this does not worsen the horizontal icon crowding. */
height: 44px;
line-height: 44px;
font-size: 16px;
}
#header #header-main-bar .board-header-btn i.fa {
line-height: 32px;
}
#header #header-main-bar .board-header-btn i.fa + span {
display: none;
}
#header-quick-access {
transition: background-color 0.4s;
width: 100%;
z-index: 30;
/* Wraps here too: on a phone these items cannot all fit on one row at any
size, and spilling off the edge hides them exactly as clipping did. */
flex-wrap: wrap !important;
}
/* Mobile home icon styling */
#header-quick-access .home-icon {
margin-inline-end: 0.5rem;
}
#header-quick-access .home-icon .fa-home {
font-size: 16px;
margin-inline-end: 4px;
}
#header-quick-access .home-icon a {
padding: 4px 8px;
font-size: 12px;
}
/* Ensure All Boards text is visible on mobile */
#header-quick-access .home-icon.allBoards {
display: flex;
align-items: center;
}
/* Adjust for very small screens */
@media screen and (max-width: 480px) {
#header-quick-access .home-icon a {
font-size: 11px;
padding: 3px 6px;
}
#header-quick-access .home-icon .fa-home {
font-size: 14px;
margin-inline-end: 3px;
}
}
/* Mobile - keep header text/icons at normal size (reverted #6426 oversizing) */
@media screen and (max-width: 800px),
screen and (max-device-width: 800px),
screen and (-webkit-min-device-pixel-ratio: 2) and (max-width: 800px),
screen and (max-width: 800px) and (orientation: portrait),
screen and (max-width: 800px) and (orientation: landscape) {
#header-quick-access {
/* A MINIMUM, not a fixed height: the bar wraps now, and a fixed height
clips whatever the wrap put on the second row. */
min-height: 48px !important;
flex-wrap: wrap !important;
align-items: center !important; /* Center align items */
padding: 8px 0px !important; /* Adjust padding for mobile */
}
#header-quick-access {
font-size: 1em !important; /* Normal size (reverted #6426 oversizing) */
}
#header-quick-access * {
font-size: inherit !important; /* Inherit the 2x scaling */
}
#header-quick-access .fa,
#header-quick-access .icon {
font-size: 1em !important; /* Normal icon size (reverted #6426 oversizing) */
}
#header-quick-access .home-icon a {
font-size: 1em !important; /* Use inherited 2x scaling */
}
#header-quick-access .home-icon .fa-home {
font-size: 1em !important; /* Use inherited 2x scaling */
}
#header-quick-access .mobile-mode-toggle .board-header-btn {
font-size: 1em !important; /* Use inherited 2x scaling */
}
#header-quick-access .mobile-mode-toggle .board-header-btn i {
font-size: 1em !important; /* Use inherited 2x scaling */
}
/* Mobile header wrapping and spacing */
#header-quick-access .home-icon {
flex-shrink: 0 !important;
margin-inline-end: 0.5rem !important;
margin-bottom: 4px !important;
}
#header-quick-access .mobile-mode-toggle {
flex-shrink: 0 !important;
margin: 0 0.5rem !important;
margin-bottom: 4px !important;
}
#header-quick-access #notifications {
flex-shrink: 0 !important;
margin: 0 0.5rem !important;
margin-bottom: 4px !important;
}
#header-quick-access #header-user-bar {
flex-shrink: 0 !important;
margin: 0 0.5rem !important;
margin-bottom: 4px !important;
}
#header-quick-access ul.header-quick-access-list {
flex-shrink: 0 !important;
margin: 0 0.5rem !important;
margin-bottom: 4px !important;
width: auto !important;
}
}
/* Mobile All Boards page - keep logo row at normal size (reverted #6426 oversizing) */
@media screen and (max-width: 800px),
screen and (max-device-width: 800px),
screen and (-webkit-min-device-pixel-ratio: 2) and (max-width: 800px),
screen and (max-width: 800px) and (orientation: portrait),
screen and (max-width: 800px) and (orientation: landscape) {
.wrapper ~ #header-quick-access,
body:not(.board-view) #header-quick-access {
font-size: 1em !important; /* Normal size (reverted #6426 oversizing) */
}
/* iPhone 12 Mini specific - keep All Boards logo row at normal size (reverted #6426) */
@media screen and (device-width: 375px) and (device-height: 812px), /* iPhone 12 Mini exact */
screen and (max-width: 375px) and (max-height: 812px), /* iPhone 12 Mini viewport */
screen and (-webkit-min-device-pixel-ratio: 3) and (max-width: 375px) /* iPhone 12 Mini Retina */ {
.wrapper ~ #header-quick-access,
body:not(.board-view) #header-quick-access {
font-size: 1em !important; /* Normal size (reverted #6426 oversizing) */
}
}
.wrapper ~ #header-quick-access *,
body:not(.board-view) #header-quick-access * {
font-size: inherit !important; /* Inherit the 2x scaling */
}
.wrapper ~ #header-quick-access .fa,
.wrapper ~ #header-quick-access .icon,
body:not(.board-view) #header-quick-access .fa,
body:not(.board-view) #header-quick-access .icon {
font-size: 1em !important; /* Normal icon size (reverted #6426 oversizing) */
}
.wrapper ~ #header-quick-access .home-icon a,
body:not(.board-view) #header-quick-access .home-icon a {
font-size: 1em !important; /* Use inherited 2x scaling */
}
.wrapper ~ #header-quick-access .home-icon .fa-home,
body:not(.board-view) #header-quick-access .home-icon .fa-home {
font-size: 1em !important; /* Use inherited 2x scaling */
}
.wrapper ~ #header-quick-access .mobile-mode-toggle .board-header-btn,
body:not(.board-view) #header-quick-access .mobile-mode-toggle .board-header-btn {
font-size: 1em !important; /* Use inherited 2x scaling */
}
.wrapper ~ #header-quick-access .mobile-mode-toggle .board-header-btn i,
body:not(.board-view) #header-quick-access .mobile-mode-toggle .board-header-btn i {
font-size: 1em !important; /* Use inherited 2x scaling */
}
.wrapper ~ #header-quick-access #notifications,
body:not(.board-view) #header-quick-access #notifications {
font-size: 1em !important; /* Use inherited 2x scaling */
}
.wrapper ~ #header-quick-access #notifications .fa,
body:not(.board-view) #header-quick-access #notifications .fa {
font-size: 1em !important; /* Use inherited 2x scaling */
}
.wrapper ~ #header-quick-access #header-user-bar,
body:not(.board-view) #header-quick-access #header-user-bar {
font-size: 1em !important; /* Use inherited 2x scaling */
}
.wrapper ~ #header-quick-access #header-user-bar .fa,
body:not(.board-view) #header-quick-access #header-user-bar .fa {
font-size: 1em !important; /* Use inherited 2x scaling */
}
}
/* iPhone 12 Mini specific - keep the header a normal compact single row */
@media screen and (device-width: 375px) and (device-height: 812px), /* iPhone 12 Mini exact */
screen and (max-width: 375px) and (max-height: 812px), /* iPhone 12 Mini viewport */
screen and (-webkit-min-device-pixel-ratio: 3) and (max-width: 375px), /* iPhone 12 Mini Retina */
screen and (max-width: 375px) and (orientation: portrait), /* iPhone 12 Mini portrait */
screen and (max-width: 375px) and (orientation: landscape) /* iPhone 12 Mini landscape */ {
#header-quick-access {
font-size: 1em !important; /* Normal size (reverted #6426 oversizing) */
/* A MINIMUM, not a fixed height, and the bar wraps: a phone is where the
buttons run out of room first, so it is the last place that should hide
the ones that did not fit. */
min-height: 48px !important;
flex-wrap: wrap !important;
align-items: center !important;
padding: 8px 0px !important;
}
#header-quick-access * {
font-size: inherit !important; /* Inherit the 2x scaling */
}
#header-quick-access .fa,
#header-quick-access .icon {
font-size: 1em !important; /* Normal icon size (reverted #6426 oversizing) */
}
#header-quick-access .home-icon a {
font-size: 1em !important; /* Use inherited 2x scaling */
}
#header-quick-access .home-icon .fa-home {
font-size: 1em !important; /* Use inherited 2x scaling */
}
#header-quick-access .mobile-mode-toggle .board-header-btn {
font-size: 1em !important; /* Use inherited 2x scaling */
}
#header-quick-access .mobile-mode-toggle .board-header-btn i {
font-size: 1em !important; /* Use inherited 2x scaling */
}
#header-quick-access #notifications {
font-size: 1em !important; /* Use inherited 2x scaling */
}
#header-quick-access #notifications .fa {
font-size: 1em !important; /* Use inherited 2x scaling */
}
#header-quick-access #header-user-bar {
font-size: 1em !important; /* Use inherited 2x scaling */
}
#header-quick-access #header-user-bar .fa {
font-size: 1em !important; /* Use inherited 2x scaling */
}
/* iPhone 12 Mini header wrapping and spacing */
#header-quick-access .home-icon {
flex-shrink: 0 !important;
margin-inline-end: 0.5rem !important;
margin-bottom: 6px !important;
}
#header-quick-access .mobile-mode-toggle {
flex-shrink: 0 !important;
margin: 0 0.5rem !important;
margin-bottom: 6px !important;
}
#header-quick-access #notifications {
flex-shrink: 0 !important;
margin: 0 0.5rem !important;
margin-bottom: 6px !important;
}
#header-quick-access #header-user-bar {
flex-shrink: 0 !important;
margin: 0 0.5rem !important;
margin-bottom: 6px !important;
}
#header-quick-access ul.header-quick-access-list {
flex-shrink: 0 !important;
margin: 0 0.5rem !important;
margin-bottom: 6px !important;
width: auto !important;
}
}
/* iPhone 12 Mini and very small screens - header element sizing */
@media screen and (max-width: 400px) and (max-height: 900px),
screen and (max-device-width: 400px) and (max-device-height: 900px),
screen and (-webkit-min-device-pixel-ratio: 2) and (max-width: 400px),
screen and (max-width: 400px) and (orientation: portrait),
screen and (max-width: 400px) and (orientation: landscape),
screen and (max-width: 430px) and (max-height: 950px), /* iPhone 12 Mini range */
screen and (max-width: 450px) and (max-height: 1000px), /* iPhone range */
screen and (-webkit-min-device-pixel-ratio: 3) and (max-width: 450px), /* Retina displays */
screen and (device-width: 375px) and (device-height: 812px), /* iPhone 12 Mini exact */
screen and (device-width: 390px) and (device-height: 844px), /* iPhone 12/13 */
screen and (device-width: 428px) and (device-height: 926px) /* iPhone 12 Pro Max */ {
#header-quick-access {
/* A MINIMUM: the bar wraps, and a fixed height would cut off whatever
the wrap put on the second row. */
min-height: 40px !important;
padding: 12px 0px !important;
}
#header-quick-access .home-icon a {
font-size: 16px !important; /* Much larger text */
padding: 8px 12px !important;
}
#header-quick-access .home-icon .fa-home {
font-size: 20px !important; /* Much larger icon */
margin-inline-end: 6px !important;
}
#header-quick-access .home-icon {
margin-inline-end: 1rem !important;
}
/* Make mobile mode toggle larger */
#header-quick-access .mobile-mode-toggle .board-header-btn {
padding: 7px 17px !important;
font-size: 16px !important;
}
#header-quick-access .mobile-mode-toggle .board-header-btn i {
font-size: 18px !important;
}
}
/* Fallback for iPhone devices using JavaScript detection */
.iphone-device #header-quick-access {
font-size: 1em !important; /* Normal size (reverted #6426 oversizing) */
/* A MINIMUM, not a fixed height, and the bar wraps: a phone is where the
buttons run out of room first, so it is the last place that should hide
the ones that did not fit. */
min-height: 48px !important;
flex-wrap: wrap !important;
align-items: center !important;
padding: 8px 0px !important;
}
.iphone-device #header-quick-access * {
font-size: inherit !important; /* Inherit the 2x scaling */
}
.iphone-device #header-quick-access .fa,
.iphone-device #header-quick-access .icon {
font-size: 1em !important; /* Normal icon size (reverted #6426 oversizing) */
}
.iphone-device #header-quick-access .home-icon a {
font-size: 1em !important; /* Use inherited 2x scaling */
}
.iphone-device #header-quick-access .home-icon .fa-home {
font-size: 1em !important; /* Use inherited 2x scaling */
}
.iphone-device #header-quick-access .mobile-mode-toggle .board-header-btn {
font-size: 1em !important; /* Use inherited 2x scaling */
}
.iphone-device #header-quick-access .mobile-mode-toggle .board-header-btn i {
font-size: 1em !important; /* Use inherited 2x scaling */
}
/* iPhone device header wrapping and spacing */
.iphone-device #header-quick-access .home-icon {
flex-shrink: 0 !important;
margin-inline-end: 0.5rem !important;
margin-bottom: 4px !important;
}
.iphone-device #header-quick-access .mobile-mode-toggle {
flex-shrink: 0 !important;
margin: 0 0.5rem !important;
margin-bottom: 4px !important;
}
.iphone-device #header-quick-access #notifications {
flex-shrink: 0 !important;
margin: 0 0.5rem !important;
margin-bottom: 4px !important;
}
.iphone-device #header-quick-access #header-user-bar {
flex-shrink: 0 !important;
margin: 0 0.5rem !important;
margin-bottom: 4px !important;
}
.iphone-device #header-quick-access ul.header-quick-access-list {
flex-shrink: 0 !important;
margin: 0 0.5rem !important;
margin-bottom: 4px !important;
width: auto !important;
}
/* iPhone 12 Mini specific - JavaScript detection fallback (normal compact row) */
.iphone-device #header-quick-access {
font-size: 1em !important; /* Normal size (reverted #6426 oversizing) */
/* A MINIMUM, not a fixed height, and the bar wraps: a phone is where the
buttons run out of room first, so it is the last place that should hide
the ones that did not fit. */
min-height: 48px !important;
flex-wrap: wrap !important;
align-items: center !important;
padding: 8px 0px !important;
}
.iphone-device #header-quick-access * {
font-size: inherit !important; /* Inherit the 2x scaling */
}
.iphone-device #header-quick-access .fa,
.iphone-device #header-quick-access .icon {
font-size: 1em !important; /* Normal icon size (reverted #6426 oversizing) */
}
.iphone-device #header-quick-access .home-icon a {
font-size: 1em !important; /* Use inherited 2x scaling */
}
.iphone-device #header-quick-access .home-icon .fa-home {
font-size: 1em !important; /* Use inherited 2x scaling */
}
.iphone-device #header-quick-access .mobile-mode-toggle .board-header-btn {
font-size: 1em !important; /* Use inherited 2x scaling */
}
.iphone-device #header-quick-access .mobile-mode-toggle .board-header-btn i {
font-size: 1em !important; /* Use inherited 2x scaling */
}
.iphone-device #header-quick-access #notifications {
font-size: 1em !important; /* Use inherited 2x scaling */
}
.iphone-device #header-quick-access #notifications .fa {
font-size: 1em !important; /* Use inherited 2x scaling */
}
.iphone-device #header-quick-access #header-user-bar {
font-size: 1em !important; /* Use inherited 2x scaling */
}
.iphone-device #header-quick-access #header-user-bar .fa {
font-size: 1em !important; /* Use inherited 2x scaling */
}
/* iPhone 12 Mini header wrapping and spacing - JavaScript fallback */
.iphone-device #header-quick-access .home-icon {
flex-shrink: 0 !important;
margin-inline-end: 0.5rem !important;
margin-bottom: 6px !important;
}
.iphone-device #header-quick-access .mobile-mode-toggle {
flex-shrink: 0 !important;
margin: 0 0.5rem !important;
margin-bottom: 6px !important;
}
.iphone-device #header-quick-access #notifications {
flex-shrink: 0 !important;
margin: 0 0.5rem !important;
margin-bottom: 6px !important;
}
.iphone-device #header-quick-access #header-user-bar {
flex-shrink: 0 !important;
margin: 0 0.5rem !important;
margin-bottom: 6px !important;
}
.iphone-device #header-quick-access ul.header-quick-access-list {
flex-shrink: 0 !important;
margin: 0 0.5rem !important;
margin-bottom: 6px !important;
width: auto !important;
}
/* iPhone 12 Mini All Boards page - keep logo row at normal size (reverted #6426) */
.iphone-device .wrapper ~ #header-quick-access,
.iphone-device body:not(.board-view) #header-quick-access {
font-size: 1em !important; /* Normal size (reverted #6426 oversizing) */
}
.iphone-device .wrapper ~ #header-quick-access *,
.iphone-device body:not(.board-view) #header-quick-access * {
font-size: inherit !important; /* Inherit the 2x scaling */
}
.iphone-device .wrapper ~ #header-quick-access .fa,
.iphone-device .wrapper ~ #header-quick-access .icon,
.iphone-device body:not(.board-view) #header-quick-access .fa,
.iphone-device body:not(.board-view) #header-quick-access .icon {
font-size: 1em !important; /* Normal icon size (reverted #6426 oversizing) */
}
.iphone-device .wrapper ~ #header-quick-access .home-icon a,
.iphone-device body:not(.board-view) #header-quick-access .home-icon a {
font-size: 1em !important; /* Use inherited 2x scaling */
}
.iphone-device .wrapper ~ #header-quick-access .home-icon .fa-home,
.iphone-device body:not(.board-view) #header-quick-access .home-icon .fa-home {
font-size: 1em !important; /* Use inherited 2x scaling */
}
.iphone-device .wrapper ~ #header-quick-access .mobile-mode-toggle .board-header-btn,
.iphone-device body:not(.board-view) #header-quick-access .mobile-mode-toggle .board-header-btn {
font-size: 1em !important; /* Use inherited 2x scaling */
}
.iphone-device .wrapper ~ #header-quick-access .mobile-mode-toggle .board-header-btn i,
.iphone-device body:not(.board-view) #header-quick-access .mobile-mode-toggle .board-header-btn i {
font-size: 1em !important; /* Use inherited 2x scaling */
}
.iphone-device .wrapper ~ #header-quick-access #notifications,
.iphone-device body:not(.board-view) #header-quick-access #notifications {
font-size: 1em !important; /* Use inherited 2x scaling */
}
.iphone-device .wrapper ~ #header-quick-access #notifications .fa,
.iphone-device body:not(.board-view) #header-quick-access #notifications .fa {
font-size: 1em !important; /* Use inherited 2x scaling */
}
.iphone-device .wrapper ~ #header-quick-access #header-user-bar,
.iphone-device body:not(.board-view) #header-quick-access #header-user-bar {
font-size: 1em !important; /* Use inherited 2x scaling */
}
.iphone-device .wrapper ~ #header-quick-access #header-user-bar .fa,
.iphone-device body:not(.board-view) #header-quick-access #header-user-bar .fa {
font-size: 1em !important; /* Use inherited 2x scaling */
}
#header-quick-access ul {
width: calc(100% - 60px);
margin-inline-end: 10px;
}
#header-quick-access ul li {
height: 100%;
}
#header-quick-access ul li a {
height: 100%;
}
#header-quick-access #header-new-board-icon {
display: none;
}
#header-quick-access #header-user-bar {
inset-inline-end: auto;
padding: 10px;
margin: 0 0.5rem;
}
/* ---- Small-screen quick-access bar (ALL browsers, width-based) ----
These rules use width-based selectors (not the .iphone-device class) so
they apply to every browser at small width — Fairphone/Android, narrow
desktop and iPhone alike.
This used to force `flex-wrap: wrap !important` ("so ~7 items fit in two
wrapped rows"), which was the reason the avatar dropped to a second line
even with space left beside the bell: an !important wrap beats any nowrap,
and a wrapping row breaks BEFORE the last item rather than shrinking. The
items are now made to fit instead (icon-only home link, capped logo, trimmed
bell and username hidden below), so the bar can stay one row: ~320px of a
375px iPhone 12 mini bar. `overflow: visible` stays, so if a translation or
a custom logo ever does overflow, the items spill rather than disappear. */
#header-quick-access {
height: auto !important;
min-height: 28px !important;
overflow: visible !important;
/* ...and it wraps after all. The note above is why it stopped: with ~7
items an !important wrap broke the row before the last one. That is no
longer the trade - this bar now carries the page title, the board's
controls, the view menu and the rest - so a second row is the answer. */
flex-wrap: wrap !important;
align-items: center !important;
row-gap: 4px !important;
}
/* The All Boards page scales this bar up to 2em-3em for every browser, which
is too big. Tame it to a moderate size so ~7 items fit in two wrapped rows.
(.iphone-device variants also cover the board view on detected iPhones.) */
body:not(.board-view) #header-quick-access,
.wrapper ~ #header-quick-access,
.iphone-device #header-quick-access,
.iphone-device .wrapper ~ #header-quick-access,
.iphone-device body:not(.board-view) #header-quick-access {
font-size: 1em !important;
}
body:not(.board-view) #header-quick-access .fa,
body:not(.board-view) #header-quick-access .icon,
.wrapper ~ #header-quick-access .fa,
.wrapper ~ #header-quick-access .icon,
.iphone-device #header-quick-access .fa,
.iphone-device #header-quick-access .icon,
.iphone-device .wrapper ~ #header-quick-access .fa,
.iphone-device .wrapper ~ #header-quick-access .icon,
.iphone-device body:not(.board-view) #header-quick-access .fa,
.iphone-device body:not(.board-view) #header-quick-access .icon {
font-size: 1.2em !important;
}
/* Zoom (100%), drag-handle toggle and mobile/desktop toggle 30% smaller than
the other quick-access controls at small width — for all browsers. */
body:not(.board-view) #header-quick-access .js-toggle-desktop-drag-handles .fa,
body:not(.board-view) #header-quick-access .mobile-mode-toggle .fa,
.wrapper ~ #header-quick-access .js-toggle-desktop-drag-handles .fa,
.wrapper ~ #header-quick-access .mobile-mode-toggle .fa,
.iphone-device #header-quick-access .js-toggle-desktop-drag-handles .fa,
.iphone-device #header-quick-access .mobile-mode-toggle .fa,
.iphone-device .wrapper ~ #header-quick-access .js-toggle-desktop-drag-handles .fa,
.iphone-device .wrapper ~ #header-quick-access .mobile-mode-toggle .fa,
.iphone-device body:not(.board-view) #header-quick-access .js-toggle-desktop-drag-handles .fa,
.iphone-device body:not(.board-view) #header-quick-access .mobile-mode-toggle .fa {
font-size: 1.05em !important; /* ~30% smaller than the 1.5em icons */
}
/* ── One-row quick-access bar on phones (#6522) ─────────────────────────────
The bar wrapped to two rows on an iPhone 12 mini: the home link carried its
full "All Boards" label (longer still in most languages), the logo was
allowed 120px of a 375px bar, and several items had 0.5rem margins on BOTH
sides. layouts.css now makes the row fit; these repeat it for the
`.iphone-device` fallback, which sets font-size and per-item margins with
!important and would otherwise re-expand the bar straight back to two rows.
`.iphone-device` is added by boardBody.js, so it is present on a board page
and absent on All Boards - both paths have to agree, or the header would
change height when navigating between them.
The home LABEL is a bare text node, not a span, so it cannot be selected:
font-size:0 on the link collapses it and the icon's own size brings the icon
back. The text stays in the DOM, so screen readers still announce it. */
.iphone-device #header-quick-access .home-icon a {
font-size: 0 !important;
padding: 4px 6px !important;
}
.iphone-device #header-quick-access .home-icon a .fa-home,
.iphone-device #header-quick-access .home-icon .fa-home {
font-size: 16px !important;
margin-inline-end: 0 !important;
}
/* One auto margin, so the user menu still sits at the end when there is room
and collapses to nothing when there is not. */
.iphone-device #header-quick-access #header-user-bar {
margin-inline-start: auto !important;
}
.iphone-device #header-quick-access img {
max-height: 20px !important;
max-width: 84px !important;
}
}
/* ── Tablet widths: keep the board bar (second bar) on ONE line ──────────────
Reported on iPad landscape: the board title, edit, visibility, watch, star and
sort sat on the first row and Filter / Search / view / dependencies /
multi-selection / hamburger wrapped onto a second row.
Measured from that screenshot (1180 CSS px viewport): the two rows needed
~613px + ~691px = ~1304px on one line, i.e. ~124px more than the viewport. But
most of that is per-button CHROME, not text - every .board-header-btn carries
12px side margins (24px), its icon another 10px on each side (20px) and a 10px
gap after the label: ~54px of empty space around a ~60px icon+label. Halving
that chrome frees ~295px, which puts the bar on one line at 1180px with room to
spare for languages whose labels are longer than the Finnish ones.
Only the empty space shrinks - icon and label sizes are untouched, so a button
is still a comfortable target, and rows below 801px keep the existing phone
treatment (that block already hides the labels and grows the buttons to 44px).
Bounded at 1400px so wide desktops, which have never wrapped, look exactly as
before; 1400px covers iPad Pro 12.9" landscape (1366px). */
@media screen and (min-width: 801px) and (max-width: 1400px) {
#header #header-main-bar .board-header-btn {
margin: 0 6px;
}
#header #header-main-bar .board-header-btn i.fa {
margin: 0 5px;
}
#header #header-main-bar .board-header-btn i.fa + span {
margin-inline-end: 5px;
}
#header #header-main-bar h1 {
padding: 0 5px;
margin-inline-end: 5px;
}
#header #header-main-bar .separator {
margin: 2px 2px;
}
}
/* Tablet PORTRAIT (e.g. iPad 820px, iPad Pro 12.9" 1024px is wide enough for the
labels): even with the chrome halved above, ~1009px of icons+labels does not
fit. Drop the labels to icons only - the same thing the phone block does below
801px - so the bar still holds one line instead of wrapping. The title, the
tooltips and the popups are unchanged, so nothing becomes unreachable. */
@media screen and (min-width: 801px) and (max-width: 1000px) {
#header #header-main-bar .board-header-btn i.fa + span {
display: none;
}
}
@media print {
#header-quick-access .allBoards,
#header-quick-access ul,
#header-quick-access .js-toggle-desktop-drag-handles,
#header-quick-access #notifications,
#header-quick-access #header-new-board-icon,
#header #header-main-bar .board-header-btns {
display: none;
}
#header #header-user-bar {
float: inline-end;
}
}
.announcement .viewer {
display: inline-block;
}
.announcement,
.offline-warning {
width: 100%;
text-align: center;
padding: 0;
margin: 0;
background: #f8ecbd;
clear: both;
}
.announcement p,
.offline-warning p {
margin: 7px;
padding: 0;
}
#headerIsSettingDatabaseCallDone {
display: none;
}
/* ── Small screens: home ICON only, never the "All Boards" label ─────────────
This block is last in the file on purpose.
The label lives in the quick-access bar as a BARE TEXT NODE inside the home
link (not a span), so it cannot be selected on its own. Collapsing the link's
font-size hides it and the icon's own font-size brings the icon back; the text
stays in the DOM, so screen readers still announce "All Boards".
Doing that needs !important and the last word, because eleven other rules in
this file set a font-size on the same link and most of them are !important -
including three that target the All Boards page specifically via
`body:not(.board-view)` / `.wrapper ~`, and one that sets 16px "Much larger
text". A plain rule (which is what the first attempt at this used) loses to
every one of them, so the label kept showing on exactly the page it was
reported on. Each competing selector shape is repeated here so that where
specificity ties, source order decides in favour of hiding.
Width, not mobile MODE: this is for "all smartphones, small width". The
separate `body.mobile-mode` rule above covers the explicit phone/desktop
toggle at any width. */
@media screen and (max-width: 800px) {
#header-quick-access .home-icon a,
.wrapper ~ #header-quick-access .home-icon a,
body:not(.board-view) #header-quick-access .home-icon a,
.iphone-device #header-quick-access .home-icon a,
.iphone-device .wrapper ~ #header-quick-access .home-icon a,
.iphone-device body:not(.board-view) #header-quick-access .home-icon a {
font-size: 0 !important;
padding: 4px 6px !important;
}
#header-quick-access .home-icon a .fa-home,
#header-quick-access .home-icon .fa-home,
.wrapper ~ #header-quick-access .home-icon .fa-home,
body:not(.board-view) #header-quick-access .home-icon .fa-home,
.iphone-device #header-quick-access .home-icon .fa-home,
.iphone-device .wrapper ~ #header-quick-access .home-icon .fa-home,
.iphone-device body:not(.board-view) #header-quick-access .home-icon .fa-home {
font-size: 16px !important;
margin-inline-end: 0 !important;
padding: 0 !important;
}
#header-quick-access .home-icon,
#header-quick-access .allBoards {
margin-inline-end: 0 !important;
padding-inline-start: 0 !important;
padding-inline-end: 0 !important;
}
/* The notification bell sat in 36px of margin around a 28px icon: 10px on each
side of the button itself (notifications.css) PLUS 0.5rem on each side of its
`#notifications` wrapper, applied by several of the mobile blocks above. That
is more empty space than icon, and on a 375px bar it is space the other
buttons need. Both layers are trimmed here; 2px each side keeps the icons
from touching without wasting a tenth of the bar. */
#header-quick-access #notifications,
.wrapper ~ #header-quick-access #notifications,
body:not(.board-view) #header-quick-access #notifications,
.iphone-device #header-quick-access #notifications,
.iphone-device .wrapper ~ #header-quick-access #notifications,
.iphone-device body:not(.board-view) #header-quick-access #notifications {
margin: 0 !important;
}
#header-quick-access #notifications .notifications-drawer-toggle,
.iphone-device #header-quick-access #notifications .notifications-drawer-toggle {
margin: 0 2px !important;
}
/* Avatar only - no username/full name beside it. The template already hides it
`unless isMiniScreen`, but that is a JS/Session decision (Utils.isMiniScreen
also weighs mobile mode and device), so it can be true while the bar is
narrow. A full name is easily 100px+ of a 375px bar, which is what pushed the
avatar onto a second row. Same bare-text-node situation as the home link:
font-size:0 on the link collapses the name, and the avatar has its own size,
so it is unaffected. The name stays in the DOM for screen readers. */
#header-quick-access #header-user-bar .header-user-bar-name,
.wrapper ~ #header-quick-access #header-user-bar .header-user-bar-name,
body:not(.board-view) #header-quick-access #header-user-bar .header-user-bar-name,
.iphone-device #header-quick-access #header-user-bar .header-user-bar-name,
.iphone-device body:not(.board-view) #header-quick-access #header-user-bar .header-user-bar-name {
font-size: 0 !important;
gap: 0 !important;
padding-inline-end: 0 !important;
}
#header-quick-access #header-user-bar .header-user-bar-avatar,
.iphone-device #header-quick-access #header-user-bar .header-user-bar-avatar {
font-size: 12px !important;
margin-inline-end: 0 !important;
}
}
#header-quick-access #notifications,
#header-quick-access #header-user-bar {
margin-inline-start: 0 !important;
}
/* ── The quick-access bar must FIT the phone ─────────────────────────────────
On a small screen this bar is `flex-wrap: nowrap` with `overflow: visible`
(deliberately, above: an item that does not fit should spill rather than
disappear) and every item declares `flex-shrink: 0 !important`. Nothing could
give way, so the row was simply wider than the screen - and a visible overflow
is scrollable overflow: the whole PAGE could be dragged sideways, the avatar
sat past the right edge, and the board list under it moved with the page.
So the widest items give way instead. The zoom pill was the biggest by far:
an 80px fixed input plus its own padding took ~113px of a 375px bar, more than
the home icon, the mode toggle and the bell together. "100%" needs about half
of that. The bell and the avatar never shrink - they are the two the user came
for, and they are last in the row, so they are what an overflow pushes out.
The pill itself must NOT shrink below its contents, only be smaller: letting it
(`flex: 0 1 auto; min-width: 0`) put the white rounded background at one width
and the number at another - "100%" was laid out to the RIGHT of the white area,
in tiny type, half of it under the notification bell. The pill is sized by what
is in it, and what is in it is made small: a compact "100%" at the bar's own
text size, and a 46px input for when it is clicked to be edited. */
@media screen and (max-width: 800px),
screen and (max-device-width: 800px),
screen and (max-device-width: 932px) and (-webkit-min-device-pixel-ratio: 3) {
#header-quick-access .mobile-mode-toggle {
margin: 0 4px !important;
}
/* The bell and the avatar sit the SAME way in both modes, and the free space
of the row is shared around them: one auto margin on each side of the bell
puts it midway between the zoom pill and the avatar, and the avatar keeps a
small, fixed gap to the right edge instead of being flung against it. The
`.iphone-device` variants are named because that fallback sets these margins
with `!important` and one class more, so it would win outright. */
#header-quick-access #notifications,
.iphone-device #header-quick-access #notifications,
.wrapper ~ #header-quick-access #notifications,
body:not(.board-view) #header-quick-access #notifications,
.iphone-device .wrapper ~ #header-quick-access #notifications,
.iphone-device body:not(.board-view) #header-quick-access #notifications {
margin-inline-start: auto !important;
margin-inline-end: auto !important;
margin-block: 0 !important;
flex-shrink: 0 !important;
}
#header-quick-access #header-user-bar,
.iphone-device #header-quick-access #header-user-bar,
.wrapper ~ #header-quick-access #header-user-bar,
body:not(.board-view) #header-quick-access #header-user-bar,
.iphone-device .wrapper ~ #header-quick-access #header-user-bar,
.iphone-device body:not(.board-view) #header-quick-access #header-user-bar {
/* No second auto margin: two of them would each swallow half the row and
push the pair apart again. */
margin-inline-start: 0 !important;
margin-inline-end: 12px !important;
/* The mobile blocks above give these items a 4-6px BOTTOM margin, which in a
centred row lifts them by half of it - the avatar sat visibly higher than
the bell and the zoom pill beside it. With no block margin the row's own
`align-items: center` puts it where it belongs. */
margin-block: 0 !important;
flex-shrink: 0 !important;
}
/* The avatar is lifted 5px by `top: -5px` on its wrapper (a leftover from the
desktop bar, where the username sits beside it), so on a phone it floated
above the bell it is supposed to line up with. It sits on the row's own
centre line now.
And it is moved LEFT: the wrapper's 10px of padding is 20px of a 375px bar
spent on nothing, which is what pushed the avatar against - and past - the
right edge. The 12px end margin on the bar is the gap to the edge; the
padding here only ate into it. */
#header-quick-access #header-user-bar .header-user-bar-avatar,
.iphone-device #header-quick-access #header-user-bar .header-user-bar-avatar {
top: 0 !important;
margin-inline-end: 0 !important;
}
#header-quick-access #header-user-bar,
.iphone-device #header-quick-access #header-user-bar,
.iphone-device body:not(.board-view) #header-quick-access #header-user-bar {
padding: 0 !important;
}
/* The chips behind the mode-toggle icons cost width too - enough of it to be
the difference between the row fitting and the avatar being cut off. Small
enough to still read as a filled chip. */
#header-quick-access .mobile-mode-toggle .board-header-btn i.mobile-icon,
#header-quick-access .mobile-mode-toggle .board-header-btn i.desktop-icon {
padding: 2px 4px !important;
}
/* The button GROUPS are `display: contents`, so each button is a flex item of
the BAR: they start immediately to the right of the title and wrap as
individual buttons. As one group they were a single unbreakable item, so the
whole set dropped below the title and the hamburger after them ended up on a
row of its own - four rows for a title and eleven icons.
This too has to be in THIS file: boardHeader.css says the same thing, but
`#header #header-main-bar .board-header-btns-group { display: flex }` a few
hundred lines above here has equal specificity and this file loads later, so
the flex won and the groups never became contents. Not the hamburger: it is
positioned, and `display: contents` would remove the box being positioned. */
#header #header-main-bar .board-header-btns-group,
#header #header-main-bar .board-header-btns:not(.board-header-sidebar-toggle) {
display: contents !important;
}
/* The board bar's buttons, sized HERE rather than in boardHeader.css: Meteor
loads client/components/boards/ before client/components/main/, so at equal
specificity this file wins, and the `margin: 0 6px` a few blocks above would
otherwise beat the 2px written there. `!important` also settles it against
`.mobile-mode .board-header-btn`, which gives every one of these buttons
9px/21px of padding - 42px of a 375px bar per button.
44px target + 2px each side = 48px, so seven fit a row and eleven icons take
two rows, in BOTH modes. */
#header #header-main-bar .board-header-btn {
margin: 0 2px !important;
padding: 0 !important;
min-width: 44px !important;
height: 44px !important;
line-height: 44px !important;
display: inline-flex !important;
align-items: center !important;
justify-content: center !important;
}
#header #header-main-bar .board-header-btn i.fa {
margin: 0 !important;
line-height: 1 !important;
float: none !important;
}
/* The drag-handle toggle in the TOP bar is a `.board-header-btn` too, so in
mobile mode it picked up that same 9px/21px padding - 42px of the row for one
icon, which is what pushed the avatar off the right edge there while desktop
mode fitted. It is the size it looks in both modes now. */
#header-quick-access .js-toggle-desktop-drag-handles {
padding: 4px 6px !important;
min-width: 0 !important;
height: auto !important;
line-height: 1 !important;
}
/* The logo is the one item that may lose width without losing meaning. */
#header-quick-access img {
flex: 0 1 auto;
min-width: 0;
}
/* The drag-handle toggle is ONE button: a four-arrows glyph and the check or
ban that says whether handles are on. They were breaking onto two lines,
which reads as two buttons and makes the bar taller than its own row. */
#header-quick-access .js-toggle-desktop-drag-handles {
white-space: nowrap !important;
display: inline-flex !important;
align-items: center !important;
gap: 2px;
}
/* What is left of the overflow that pushed the avatar off the right edge. The
mode toggle is the widest item after the zoom pill - 21px of padding on each
side of two icons at this width - and the logo is decorative. Together they
give back about 60px of a 375px bar, which is what the avatar needs to be
whole. */
#header-quick-access .mobile-mode-toggle .board-header-btn {
padding: 5px 8px !important;
}
#header-quick-access img,
.iphone-device #header-quick-access img,
.wrapper ~ #header-quick-access img,
body:not(.board-view) #header-quick-access img {
/* The `.iphone-device` fallback sets 84px with `!important` and one class more
than a bare `#header-quick-access img`, so it has to be named here or it
simply wins. */
max-width: 64px !important;
max-height: 20px !important;
}
}
/* The star group: the starred-boards dropdown and this board's own star, drawn
as one thing. They are about the same thing - how many boards you have
starred, and whether this one is among them - and without an outline they
read as two unrelated icons that happen to be adjacent, which is exactly how
the two stars that used to be here read.
Shaped like the phone/desktop toggle beside it, but WHITE where that one is
black: the toggle is a white box sitting on the bar, so a dark border shows
against it; these buttons sit on the bar's own colour, so theirs has to be
light against that. */
#header-quick-access .header-star-group {
display: flex;
align-items: center;
border: 1px solid rgba(255, 255, 255, 0.7);
border-radius: 4px;
/* The buttons inside keep their own padding; the group adds none, so it hugs
them the way the toggle's border hugs its two halves. */
margin: 0 4px;
}
/* Their own margins would push them off the outline they now sit inside. */
#header-quick-access .header-star-group .board-header-btn {
margin: 0;
}
/* The hover has to stay inside the rounded corners, or a square highlight is
drawn over them. */
#header-quick-access .header-star-group .board-header-btn:first-child {
border-start-start-radius: 3px;
border-end-start-radius: 3px;
}
#header-quick-access .header-star-group .board-header-btn:last-child {
border-start-end-radius: 3px;
border-end-end-radius: 3px;
}
/* The visible name beside a view menu's or Multi-Selection's icon. A tooltip is
the one place a name cannot be read without hovering, and the bar wraps to a
second row when it runs out of width, which is what makes the word
affordable. It does not wrap mid-word: a two-line label inside a one-line
button is worse than the tooltip was. */
#header-quick-access .board-header-btn-label {
white-space: nowrap;
}