mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-10-28 16:12:25 -05:00
[bugfix/frontend] Fix text-shadow on dark mode themes (#4216)
Just deals with a few remaining straggler bits of css fuckery that I introduced in https://codeberg.org/superseriousbusiness/gotosocial/pulls/4201 Reviewed-on: https://codeberg.org/superseriousbusiness/gotosocial/pulls/4216 Co-authored-by: tobi <tobi.smethurst@protonmail.com> Co-committed-by: tobi <tobi.smethurst@protonmail.com>
This commit is contained in:
parent
2c73bb3602
commit
3ff6f6e421
5 changed files with 14 additions and 0 deletions
|
|
@ -3,6 +3,9 @@
|
|||
theme-description: Looks suspiciously like a certain operating system
|
||||
*/
|
||||
|
||||
/* Use dark code highlights. */
|
||||
@import url("../dist/_prism-dark.css");
|
||||
|
||||
:root {
|
||||
/* Define our color palette */
|
||||
--ecks-pee-blurple: #3833ac;
|
||||
|
|
|
|||
|
|
@ -3,6 +3,9 @@
|
|||
theme-description: Woah
|
||||
*/
|
||||
|
||||
/* Use dark code highlights. */
|
||||
@import url("../dist/_prism-dark.css");
|
||||
|
||||
/* Theme colors */
|
||||
:root {
|
||||
--acid-green: rgb(63, 255, 0);
|
||||
|
|
|
|||
|
|
@ -3,6 +3,9 @@
|
|||
theme-description: Ominous dark blue / black with a tinge of blood red. You may think it all a mere bad dream.
|
||||
*/
|
||||
|
||||
/* Use dark code highlights. */
|
||||
@import url("../dist/_prism-dark.css");
|
||||
|
||||
:root {
|
||||
/* Define our palette */
|
||||
--bleached-bone: #f3e3d4;
|
||||
|
|
|
|||
|
|
@ -7,6 +7,9 @@
|
|||
color names as reference
|
||||
v1.0 by xmgz at github */
|
||||
|
||||
/* Use dark code highlights. */
|
||||
@import url("../dist/_prism-dark.css");
|
||||
|
||||
:root {
|
||||
/* color definitions */
|
||||
--dgreen1: #003333;
|
||||
|
|
|
|||
|
|
@ -3,3 +3,5 @@ https://prismjs.com/download.html#themes=prism-tomorrow&languages=markup+css+cli
|
|||
code[class*=language-],pre[class*=language-]{color:#ccc;background:0 0;font-family:Consolas,Monaco,'Andale Mono','Ubuntu Mono',monospace;font-size:1em;text-align:left;white-space:pre;word-spacing:normal;word-break:normal;word-wrap:normal;line-height:1.5;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-hyphens:none;-moz-hyphens:none;-ms-hyphens:none;hyphens:none}pre[class*=language-]{padding:1em;margin:.5em 0;overflow:auto}:not(pre)>code[class*=language-],pre[class*=language-]{background:#2d2d2d}:not(pre)>code[class*=language-]{padding:.1em;border-radius:.3em;white-space:normal}.token.block-comment,.token.cdata,.token.comment,.token.doctype,.token.prolog{color:#999}.token.punctuation{color:#ccc}.token.attr-name,.token.deleted,.token.namespace,.token.tag{color:#e2777a}.token.function-name{color:#6196cc}.token.boolean,.token.function,.token.number{color:#f08d49}.token.class-name,.token.constant,.token.property,.token.symbol{color:#f8c555}.token.atrule,.token.builtin,.token.important,.token.keyword,.token.selector{color:#cc99cd}.token.attr-value,.token.char,.token.regex,.token.string,.token.variable{color:#7ec699}.token.entity,.token.operator,.token.url{color:#67cdcc}.token.bold,.token.important{font-weight:700}.token.italic{font-style:italic}.token.entity{cursor:help}.token.inserted{color:green}
|
||||
.token.cr,.token.lf,.token.space,.token.tab:not(:empty){position:relative}.token.cr:before,.token.lf:before,.token.space:before,.token.tab:not(:empty):before{color:grey;opacity:.6;position:absolute}.token.tab:not(:empty):before{content:'\21E5'}.token.cr:before{content:'\240D'}.token.crlf:before{content:'\240D\240A'}.token.lf:before{content:'\240A'}.token.space:before{content:'\00B7'}
|
||||
div.code-toolbar{position:relative}div.code-toolbar>.toolbar{position:absolute;z-index:10;top:.3em;right:.2em;transition:opacity .3s ease-in-out;opacity:0}div.code-toolbar:hover>.toolbar{opacity:1}div.code-toolbar:focus-within>.toolbar{opacity:1}div.code-toolbar>.toolbar>.toolbar-item{display:inline-block}div.code-toolbar>.toolbar>.toolbar-item>a{cursor:pointer}div.code-toolbar>.toolbar>.toolbar-item>button{background:0 0;border:0;color:inherit;font:inherit;line-height:normal;overflow:visible;padding:0;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none}div.code-toolbar>.toolbar>.toolbar-item>a,div.code-toolbar>.toolbar>.toolbar-item>button,div.code-toolbar>.toolbar>.toolbar-item>span{color:#bbb;font-size:.8em;padding:0 .5em;background:#f5f2f0;background:rgba(224,224,224,.2);box-shadow:0 2px 0 0 rgba(0,0,0,.2);border-radius:.5em}div.code-toolbar>.toolbar>.toolbar-item>a:focus,div.code-toolbar>.toolbar>.toolbar-item>a:hover,div.code-toolbar>.toolbar>.toolbar-item>button:focus,div.code-toolbar>.toolbar>.toolbar-item>button:hover,div.code-toolbar>.toolbar>.toolbar-item>span:focus,div.code-toolbar>.toolbar>.toolbar-item>span:hover{color:inherit;text-decoration:none}
|
||||
/* Override text shadow if light theme was imported before dark theme. */
|
||||
code[class*="language-"],pre[class*="language-"]{text-shadow:none}
|
||||
Loading…
Add table
Add a link
Reference in a new issue