summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Stanclift <mx@vmstan.com>2024-08-13 16:54:03 -0500
committerGitHub <noreply@github.com>2024-08-13 21:54:03 +0000
commit7d4b602cb28675da01df6ae27faacff8d70c1711 (patch)
treefc44901f7f0a3116a1d6c4b30ef15b6a585d1393
parentd7674392059f8a3939fdfa8d835b1d31f883c094 (diff)
Fix collapsable column borders in Safari and improve Safari scrollbars (#31389)
-rw-r--r--app/javascript/styles/mastodon/components.scss15
-rw-r--r--app/javascript/styles/mastodon/reset.scss31
2 files changed, 15 insertions, 31 deletions
diff --git a/app/javascript/styles/mastodon/components.scss b/app/javascript/styles/mastodon/components.scss
index 6ef498c79be..b049635d163 100644
--- a/app/javascript/styles/mastodon/components.scss
+++ b/app/javascript/styles/mastodon/components.scss
@@ -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 {
@@ -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 {
diff --git a/app/javascript/styles/mastodon/reset.scss b/app/javascript/styles/mastodon/reset.scss
index f54ed5bc79b..f8a4a08ced6 100644
--- a/app/javascript/styles/mastodon/reset.scss
+++ b/app/javascript/styles/mastodon/reset.scss
@@ -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 {