Skip to content

Commit

Permalink
Fix collapsable column borders in Safari and improve Safari scrollbars (
Browse files Browse the repository at this point in the history
  • Loading branch information
vmstan authored Aug 13, 2024
1 parent d767439 commit 7d4b602
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 31 deletions.
15 changes: 9 additions & 6 deletions app/javascript/styles/mastodon/components.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4503,10 +4503,19 @@ a.status-card {
opacity: 1;
z-index: 1;
position: relative;
border-left: 1px solid var(--background-border-color);
border-right: 1px solid var(--background-border-color);
border-bottom: 1px solid var(--background-border-color);

@media screen and (max-width: $no-gap-breakpoint) {
border-left: 0;
border-right: 0;
}

&.collapsed {
max-height: 0;
opacity: 0.5;
border-bottom: 0;
}

&.animating {
Expand All @@ -4523,13 +4532,7 @@ a.status-card {
}

.column-header__collapsible-inner {
border: 1px solid var(--background-border-color);
border-top: 0;

@media screen and (max-width: $no-gap-breakpoint) {
border-left: 0;
border-right: 0;
}
}

.column-header__setting-btn {
Expand Down
31 changes: 6 additions & 25 deletions app/javascript/styles/mastodon/reset.scss
Original file line number Diff line number Diff line change
Expand Up @@ -54,40 +54,21 @@ table {
}

html {
scrollbar-color: lighten($ui-base-color, 4%) rgba($base-overlay-background, 0.1);
scrollbar-color: var(--background-border-color);
}

::-webkit-scrollbar {
width: 12px;
height: 12px;
width: 4px;
height: 4px;
}

::-webkit-scrollbar-thumb {
background: lighten($ui-base-color, 4%);
border: 0px none $base-border-color;
border-radius: 50px;
}

::-webkit-scrollbar-thumb:hover {
background: lighten($ui-base-color, 6%);
}

::-webkit-scrollbar-thumb:active {
background: lighten($ui-base-color, 4%);
background-color: $ui-highlight-color;
opacity: .25;
}

::-webkit-scrollbar-track {
border: 0px none $base-border-color;
border-radius: 0;
background: rgba($base-overlay-background, 0.1);
}

::-webkit-scrollbar-track:hover {
background: $ui-base-color;
}

::-webkit-scrollbar-track:active {
background: $ui-base-color;
background-color: var(--background-border-color);
}

::-webkit-scrollbar-corner {
Expand Down

0 comments on commit 7d4b602

Please sign in to comment.