Skip to content

Commit

Permalink
Forced scrollbars in disclosure (#194)
Browse files Browse the repository at this point in the history
* scrollbars

* macos screenshots

---------

Co-authored-by: Shane Osbourne <[email protected]>
  • Loading branch information
shakyShane and Shane Osbourne authored Oct 15, 2024
1 parent 15c0dfe commit acb35e4
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 10 deletions.
14 changes: 9 additions & 5 deletions build/app/public/css/popup.css
Original file line number Diff line number Diff line change
Expand Up @@ -3893,11 +3893,13 @@ body.environment--macos, body.environment--browser, body.environment--windows, b
overflow-y: scroll;
border-radius: 6px;
border: 1px solid rgba(0, 0, 0, 0.1);
background: rgba(0, 0, 0, 0.01);
/* NOTE: this is not using alpha because the custom scrollbars need to stack */
background: rgb(252, 252, 252);
padding: 16px 20px 20px 16px;
}
.body--theme-dark .scrollable {
background: rgba(255, 255, 255, 0.03);
/* NOTE: this is not using alpha because the custom scrollbars need to stack */
background: rgb(57, 57, 57);
border-color: rgba(255, 255, 255, 0.09);
}

Expand Down Expand Up @@ -3972,17 +3974,19 @@ body.environment--macos, body.environment--browser, body.environment--windows, b
margin-bottom: 16px;
}
.toggle-report__scroller .scrollable::-webkit-scrollbar {
width: 10px;
width: 14px;
}
.toggle-report__scroller .scrollable::-webkit-scrollbar-track {
border-radius: 6px;
}
.toggle-report__scroller .scrollable::-webkit-scrollbar-thumb {
border: 1px solid rgba(0, 0, 0, 0.1);
background: rgba(0, 0, 0, 0.1);
/* NOTE: this is not using alpha because the custom scrollbars need to stack */
border: 2px solid rgb(252, 252, 252);
border-radius: 6px;
}
.body--theme-dark .toggle-report__scroller .scrollable::-webkit-scrollbar-thumb {
border: 1px solid rgba(0, 0, 0, 0.1);
/* NOTE: this is not using alpha because the custom scrollbars need to stack */
border-color: rgb(57, 57, 57);
background: rgba(0, 0, 0, 0.3);
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 4 additions & 2 deletions shared/js/ui/components/_stack.scss
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,13 @@
overflow-y: scroll;
border-radius: 6px;
border: 1px solid rgba(0, 0, 0, 0.1);
background: rgba(0, 0, 0, 0.01);
/* NOTE: this is not using alpha because the custom scrollbars need to stack */
background: rgba(252, 252, 252, 1);
padding: 16px 20px 20px 16px;

.body--theme-dark & {
background: rgba(255, 255, 255, 0.03);
/* NOTE: this is not using alpha because the custom scrollbars need to stack */
background: rgba(57, 57, 57, 1);
border-color: rgba(255, 255, 255, 0.09);
}

Expand Down
8 changes: 5 additions & 3 deletions shared/js/ui/components/toggle-report/toggle-report.scss
Original file line number Diff line number Diff line change
Expand Up @@ -24,21 +24,23 @@

.scrollable {
&::-webkit-scrollbar {
width: 10px;
width: 14px;
}

&::-webkit-scrollbar-track {
border-radius: 6px;
}

&::-webkit-scrollbar-thumb {
border: 1px solid rgba(0, 0, 0, 0.1);
background: rgba(0, 0, 0, 0.1);
/* NOTE: this is not using alpha because the custom scrollbars need to stack */
border: 2px solid rgba(252, 252, 252, 1);
border-radius: 6px;
}

.body--theme-dark &::-webkit-scrollbar-thumb {
border: 1px solid rgba(0, 0, 0, 0.1);
/* NOTE: this is not using alpha because the custom scrollbars need to stack */
border-color: rgba(57, 57, 57, 1);
background: rgba(0, 0, 0, 0.3);
}
}
Expand Down

0 comments on commit acb35e4

Please sign in to comment.