forked from glitch-soc/mastodon
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix links in quotes, separate out CSS
- Loading branch information
1 parent
3f1cd4b
commit 44a37e7
Showing
5 changed files
with
153 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
app/javascript/flavours/glitch/styles/neuromatchstodon/index.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
@import 'latex'; | ||
@import 'bigger_collapsed_statuses'; | ||
@import 'better_code_blocks'; | ||
@import 'quotes'; |
79 changes: 79 additions & 0 deletions
79
app/javascript/flavours/glitch/styles/neuromatchstodon/quotes.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
/* | ||
This stylesheet required more than usual injection of styles into | ||
stuff that can get overridden by upstream. | ||
That includes stuff in these files, findable by ctrl+f'ing "quote" | ||
unless indicated otherwise. | ||
- componenents.scss | ||
- contrast/diff.scss | ||
- mastodon-light/diff.scss | ||
+ dismissable-banner (L435) | ||
*/ | ||
|
||
$header-gap: 0.2em; | ||
$header-font-size: 15px; | ||
|
||
.status__quote { | ||
margin-top: 0.5em; | ||
border: 1px solid var(--background-border-color); | ||
border-radius: 8px; | ||
padding: 8px; | ||
|
||
.quote { | ||
&__header { | ||
display: flex; | ||
font-size: $header-font-size; | ||
gap: $header-gap; | ||
} | ||
|
||
&__author { | ||
display: flex; | ||
font-size: $header-font-size; | ||
gap: $header-gap; | ||
|
||
&:hover { | ||
text-decoration: none; | ||
|
||
& .quote__display-name { | ||
text-decoration: underline; | ||
} | ||
} | ||
|
||
// quote icon has its own left padding | ||
svg { | ||
margin-left: -5px; | ||
} | ||
} | ||
|
||
&__spacer { | ||
margin: 0 0.25em; | ||
} | ||
|
||
&__display-name { | ||
&:hover { | ||
text-decoration: underline; | ||
} | ||
|
||
& > .icon { | ||
// needs to match below: &:is(blockquote) | ||
color: $highlight-text-color; | ||
} | ||
} | ||
|
||
&__content-link:hover { | ||
text-decoration: none; | ||
} | ||
} | ||
|
||
.deemphasized { | ||
color: $action-button-color; | ||
text-decoration: none; | ||
} | ||
|
||
// see below: .status_quote|&:is(blockquote) | ||
&:is(blockquote) { | ||
border-left-color: $highlight-text-color; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters