Skip to content

Commit

Permalink
Fixup leftover CSS references to glitch-soc's now-removed collapsed p…
Browse files Browse the repository at this point in the history
…ost feature, in favor of the upstream version
  • Loading branch information
neatchee committed Jan 4, 2025
1 parent abb2baa commit 0422aeb
Show file tree
Hide file tree
Showing 7 changed files with 34 additions and 30 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -629,7 +629,7 @@ html {
}
}

.status.collapsed .status__content::after {
.status__content .status__content.status__content--collapsed::after {
background: linear-gradient(
rgba(color.adjust($ui-base-color, $lightness: 13%), 0),
rgba(color.adjust($ui-base-color, $lightness: 13%), 1)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -629,7 +629,7 @@ html {
}
}

.status.collapsed .status__content::after {
.status__content .status__content.status__content--collapsed::after {
background: linear-gradient(
rgba(color.adjust($ui-base-color, $lightness: 13%), 0),
rgba(color.adjust($ui-base-color, $lightness: 13%), 1)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -629,7 +629,7 @@ html {
}
}

.status.collapsed .status__content::after {
.status__content .status__content.status__content--collapsed::after {
background: linear-gradient(
rgba(color.adjust($ui-base-color, $lightness: 13%), 0),
rgba(color.adjust($ui-base-color, $lightness: 13%), 1)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -629,7 +629,7 @@ html {
}
}

.status.collapsed .status__content::after {
.status__content .status__content.status__content--collapsed::after {
background: linear-gradient(
rgba(color.adjust($ui-base-color, $lightness: 13%), 0),
rgba(color.adjust($ui-base-color, $lightness: 13%), 1)
Expand Down
22 changes: 16 additions & 6 deletions app/javascript/flavours/glitch/styles/modern-glitch-fixes.scss
Original file line number Diff line number Diff line change
Expand Up @@ -53,16 +53,18 @@ body.app-body.flavour-glitch > #mastodon .compose-form__submit button {
padding: 10px 20px;
}

body.app-body.flavour-glitch > #mastodon .collapsed .status__content {
body.app-body.flavour-glitch
> #mastodon
.status__content.stats__content--collapsed {
height: auto !important;
overflow: visible;
mask: unset !important;
}

body.app-body.flavour-glitch
> #mastodon
.collapsed
.status__content
.status__content.status__content--collapsed
.status__content__text {
mask: linear-gradient(to bottom, #000 50px, transparent) !important;
-webkit-mask: linear-gradient(to bottom, #000 50px, transparent) !important;
Expand All @@ -71,23 +73,31 @@ body.app-body.flavour-glitch

body.app-body.flavour-glitch
> #mastodon
.collapsed
.status__content
.status__content.status__content--collapsed
p:not(:last-child) {
margin-bottom: 0.4em;
}

body.app-body.flavour-glitch > #mastodon .collapsed .status__content br {
body.app-body.flavour-glitch
> #mastodon
.status__content
.status__content.status__content--collapsed
br {
display: block;
}

body.app-body.flavour-glitch > #mastodon .collapsed .status__content::after {
body.app-body.flavour-glitch
> #mastodon
.status__content
.status__content.status__content--collapsed::after {
content: unset;
}

body.app-body.flavour-glitch
> #mastodon
.collapsed.muted
.muted
.status__content.status__content--collapsed
.status__content__text
~ * {
display: none;
Expand Down
30 changes: 14 additions & 16 deletions app/javascript/flavours/glitch/styles/modern-urusai-fixes.scss
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,6 @@ body.app-body.flavour-glitch > #mastodon .notification__message > span,
gap: unset !important;
}

.status.collapsed .status__content {
max-height: unset !important;
}

.status.collapsed .status__content .status__content__translate-button,
.status.collapsed .status__content .status-card,
.status.collapsed .status__content .video-player {
display: none;
}

body.app-body.flavour-glitch > #mastodon .reactions-bar button:not(.active) {
background: color.adjust($ui-base-color, $lightness: 12%);
}
Expand Down Expand Up @@ -65,8 +55,7 @@ body.app-body.flavour-glitch

body.app-body.flavour-glitch
> #mastodon
.collapsed
.status__content
.status__content.status__content--collapsed
p:not(:last-child) {
margin-top: 0.4em;
}
Expand All @@ -76,10 +65,6 @@ body.app-body.flavour-glitch > #mastodon .compose-form__submit {
margin-top: unset !important;
}

body.app-body.flavour-glitch > #mastodon .collapsed .status__content {
padding: 12px 14px !important;
}

@media (width <= 889px) {
.tabs-bar__wrapper {
top: -1px !important;
Expand Down Expand Up @@ -116,3 +101,16 @@ body.app-body.flavour-glitch > #mastodon .notification-ungrouped {
.notification-request {
margin-top: 60px;
}

.status__content.status__content--collapsed {
.status__content__text {
overflow: hidden;
mask: linear-gradient(to bottom, #000 65%, transparent);
}

.status__content__translate-button,
.status-card,
.video-player {
display: none;
}
}
4 changes: 0 additions & 4 deletions app/javascript/flavours/glitch/styles/urusai-fixes.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,6 @@
width: 100% !important;
}

.status__wrapper.collapsed .status__content {
overflow: visible !important;
}

.status__content--zoom-emojis-on-hover .emojione:hover {
transform: scale(1.8);
filter: drop-shadow(0 0 3px #0c0c0c);
Expand Down

0 comments on commit 0422aeb

Please sign in to comment.