Skip to content
Open
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
2 changes: 1 addition & 1 deletion apps/files/css/files.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion apps/files/css/files.css.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

28 changes: 20 additions & 8 deletions apps/files/css/files.scss
Original file line number Diff line number Diff line change
Expand Up @@ -1245,17 +1245,29 @@ table.dragshadow td.size {
}

/* Grid view toggle */
#view-toggle {
/*
* The toggle is sticky and floats on top of the scrolling file list and the
* breadcrumbs. The button itself is pill-shaped, so its transparent corners
* used to let the content behind it bleed through at the edges. This wrapper
* sits behind the button and paints an opaque backing across the whole area,
* masking anything that scrolls underneath it.
*/
#view-toggle-wrapper {
position: sticky;
float: right;
top: 0;
right: 0;
z-index: 100;
background-color: var(--color-main-background-translucent);
}

#view-toggle {
display: block;
background-color: var(--color-main-background);
border: none;
margin: 0;
margin: 2px;
padding: 22px;
opacity: .5;
float: right;
right: var(--default-grid-baseline);
top: var(--default-grid-baseline);
z-index: 100;
position: sticky;

&:hover,
&:focus,
Expand Down Expand Up @@ -1294,7 +1306,7 @@ table.dragshadow td.size {
}

/* Right-align view toggle on link share page */
#view-toggle {
#view-toggle-wrapper {
position: absolute;
right: 0;
top: 0;
Expand Down
2 changes: 1 addition & 1 deletion apps/files/css/merged.css

Large diffs are not rendered by default.

Loading
Loading