Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions photomap/frontend/static/css/grid-view.css
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,14 @@
}

/* The sheets are hidden in fullscreen, so the grid gets the whole height. */
html.mobile-sheets:fullscreen #gridViewSwiper,
html.mobile-sheets:-webkit-full-screen #gridViewSwiper {
/* (:is() keeps an unknown prefixed pseudo-class from dropping the rule; see
seek-slider.css.) */
html.mobile-sheets:is(:fullscreen, :-webkit-full-screen) #gridViewSwiper {
height: var(--visible-viewport-height, 100dvh);
}

/* The badge is hidden in fullscreen (seek-slider.css), so give the row back. */
:fullscreen #gridViewSwiper,
:-webkit-full-screen #gridViewSwiper {
:is(:fullscreen, :-webkit-full-screen) #gridViewSwiper {
--grid-top-reserve: 0px;
}

Expand Down
6 changes: 3 additions & 3 deletions photomap/frontend/static/css/mobile-sheets.css
Original file line number Diff line number Diff line change
Expand Up @@ -87,9 +87,9 @@
outline-offset: -2px;
}

/* Hidden with the rest of the controls in fullscreen. */
html.mobile-sheets:fullscreen .mobile-sheet,
html.mobile-sheets:-webkit-full-screen .mobile-sheet {
/* Hidden with the rest of the controls in fullscreen. (:is() keeps an unknown
prefixed pseudo-class from dropping the rule; see seek-slider.css.) */
html.mobile-sheets:is(:fullscreen, :-webkit-full-screen) .mobile-sheet {
display: none !important;
}

Expand Down
11 changes: 7 additions & 4 deletions photomap/frontend/static/css/seek-slider.css
Original file line number Diff line number Diff line change
Expand Up @@ -118,11 +118,14 @@
flex-direction: column;
}

/* Fullscreen selectors go inside :is(), whose selector list is forgiving: a
browser drops just the alternative it does not know there. In a plain
selector list one unknown pseudo-class (Firefox rejects
:-webkit-full-screen, Chromium :-moz-full-screen) throws out the whole rule
(#442). The prefixed form is for Safari before 16.4. */

/* Hide score display in fullscreen mode */
:fullscreen .fixed-score-display,
:-webkit-full-screen .fixed-score-display,
:-moz-full-screen .fixed-score-display,
:-ms-fullscreen .fixed-score-display {
:is(:fullscreen, :-webkit-full-screen) .fixed-score-display {
display: none !important;
}

Expand Down
Loading