1
0
Fork 0
mirror of https://git.sr.ht/~azikx/userstyles synced 2024-10-30 13:26:22 +00:00
userstyles/stylus/stylus.user.css

311 lines
17 KiB
CSS
Raw Normal View History

2024-10-08 11:49:12 +00:00
/* ==UserStyle==
@name Stylus paradisa
@namespace github.com/axax-loll/userstyles/
@homepageURL https://github.com/axax-loll/userstyles/tree/main
@version 1.0.1
@updateURL https://github.com/axax-loll/userstyles/tree/main/stylus/stylus.user.css
@supportURL https://github.com/axax-loll/userstyles/tree/main
@description Paradise for Stylus
@author azikx
@license MIT
@preprocessor less
@var select darkFlavor "Dark Flavor" ["paradisa:paradisa"]
@var select accentColor "Accent" ["rosewater:Rosewater", "flamingo:Flamingo", "pink:Pink", "mauve:Mauve*", "red:Red", "maroon:Maroon", "peach:Peach", "yellow:Yellow", "green:Green", "teal:Teal", "blue:Blue", "sapphire:Sapphire", "sky:Sky", "lavender:Lavender", "subtext0:Gray"]
==/UserStyle== */
@-moz-document url-prefix("moz-extension://"), url-prefix(chrome-extension://)
{
:root {
&[data-ui-theme="dark"] {
#paradisa(@darkFlavor, @accentColor);
}
}
#paradisa(@lookup, @accent) {
@rosewater: @paradisa[@@lookup][@rosewater];
@flamingo: @paradisa[@@lookup][@flamingo];
@pink: @paradisa[@@lookup][@pink];
@mauve: @paradisa[@@lookup][@mauve];
@red: @paradisa[@@lookup][@red];
@maroon: @paradisa[@@lookup][@maroon];
@peach: @paradisa[@@lookup][@peach];
@yellow: @paradisa[@@lookup][@yellow];
@green: @paradisa[@@lookup][@green];
@teal: @paradisa[@@lookup][@teal];
@sky: @paradisa[@@lookup][@sky];
@sapphire: @paradisa[@@lookup][@sapphire];
@blue: @paradisa[@@lookup][@blue];
@lavender: @paradisa[@@lookup][@lavender];
@text: @paradisa[@@lookup][@text];
@subtext1: @paradisa[@@lookup][@subtext1];
@subtext0: @paradisa[@@lookup][@subtext0];
@overlay2: @paradisa[@@lookup][@overlay2];
@overlay1: @paradisa[@@lookup][@overlay1];
@overlay0: @paradisa[@@lookup][@overlay0];
@surface2: @paradisa[@@lookup][@surface2];
@surface1: @paradisa[@@lookup][@surface1];
@surface0: @paradisa[@@lookup][@surface0];
@base: @paradisa[@@lookup][@base];
@mantle: @paradisa[@@lookup][@mantle];
@crust: @paradisa[@@lookup][@crust];
@accent-color: @paradisa[@@lookup][@@accent];
color-scheme: if(@lookup = latte, light, dark);
::selection {
background-color: fade(@accent-color, 30%);
}
input,
textarea {
&::placeholder {
color: @subtext0 !important;
}
}
--bg: @base;
--fg: @text;
--c30: @subtext1;
--c40: @overlay0;
--c45: @surface2;
--c50: @subtext0;
--c60: @subtext0;
--c65: @surface2;
--c75: @overlay1;
--c80: @surface1;
--c85: @surface0;
--c90: @base;
--c95: @mantle;
--c97: @mantle;
--c98: @base;
--c99: @base;
--c100: @base;
--red1: @red;
--accent-1: @accent-color;
--accent-2: @accent-color;
--accent-3: fade(@accent-color, 25%);
.slider {
--color-on: fade(@accent-color, 25%);
--color-off: @surface2;
}
:focus {
--focus-color1: @accent-color !important;
--focus-color2: fade(@accent-color, 25%) !important;
}
.active #filters-stats,
.dirty #save-button,
.dirty #save-button + button {
background-color: @accent-color;
border-color: @accent-color;
color: @base;
}
#header-resizer {
color: @surface1;
}
#message-box-title::before {
@fade_color: fade(@accent-color, 67%);
@svg: escape(
'<svg version="1.1" viewBox="0 0 34.5 34.5" xmlns="http://www.w3.org/2000/svg"><g transform="translate(1.5 1.5)"><path d="M.68 13.5h.14a.68.68 135 0 0 .68-.68V3.68c0-.375-.012-.988.053-1.357.139-.786.622-2.01 2.27-2.272.37-.06.982-.05 1.357-.05h21.64c.375 0 .987-.009 1.358.049 1.676.26 2.15 1.485 2.279 2.273.06.37.043.982.043 1.357v9.14a.68.68 45 0 0 .68.68h.14a.68.68 45 0 1 .68.68v3.64a.68.68 135 0 1-.68.68h-.14a.68.68 135 0 0-.68.68v9.14c0 .375.017.988-.044 1.358-.13.787-.604 2.013-2.279 2.273-.37.057-.982.05-1.358.05H5.18c-.375 0-.987.007-1.358-.052-1.644-.264-2.128-1.487-2.268-2.272-.066-.37-.054-.982-.054-1.357v-9.14a.68.68 45 0 0-.68-.68H.68a.68.68 45 0 1-.68-.68v-3.64a.68.68 135 0 1 .68-.68z" stroke="@{base}" fill="@{accent-color}" stroke-linejoin="round" stroke-width="2.25" paint-order="stroke fill markers"/><path d="M2.788 15h1.175a.54.54 135 0 0 .537-.537V5.538c0-.297-.017-.78.024-1.074.094-.66.475-1.72 1.94-1.928.294-.042.777-.036 1.074-.036h16.925c.296 0 .78-.006 1.073.038 1.426.211 1.821 1.268 1.928 1.927.047.292.036.776.036 1.072v8.925a.54.54 45 0 0 .538.538h1.175a.54.54 45 0 1 .537.537v.925a.54.54 135 0 1-.537.538h-1.175a.54.54 135 0 0-.538.537v8.925c0 .297.01.78-.04 1.073-.111.658-.51 1.714-1.925 1.927-.293.044-.776.038-1.072.038H7.538c-.297 0-.78.006-1.074-.037-1.434-.211-1.826-1.27-1.93-1.928-.046-.292-.034-.776-.034-1.073v-8.925A.54.54 45 0 0 3.963 17H2.788a.54.54 45 0 1-.538-.538v-.925A.54.54 135 0 1 2.788 15z" fill="black" stroke-linejoin="round" stroke="@{base}" stroke-width="2" paint-order="stroke fill markers"/><path d="M2.788 15h1.175a.54.54 135 0 0 .537-.537V5.538c0-.297-.017-.78.024-1.074.094-.66.475-1.72 1.94-1.928.294-.042.777-.036 1.074-.036h16.925c.296 0 .78-.006 1.073.038 1.426.211 1.821 1.268 1.928 1.927.047.292.036.776.036 1.072v8.925a.54.54 45 0 0 .538.538h1.175a.54.54 45 0 1 .537.537v.925a.54.54 135 0 1-.537.538h-1.175a.54.54 135 0 0-.538.537v8.925c0 .297.01.78-.04 1.073-.111.658-.51 1.714-1.925 1.927-.293.044-.776.038-1.072.038H7.538c-.297 0-.78.006-1.074-.037-1.434-.211-1.826-1.27-1.93-1.928-.046-.292-.034-.776-.034-1.073v-8.925A.54.54 45 0 0 3.963 17H2.788a.54.54 45 0 1-.538-.538v-.925A.54.54 135 0 1 2.788 15z" fill="@{fade_color}" stroke-linejoin="round" stroke="@{base}" stroke-width="2" paint-order="stroke fill markers"/><path d="M21.715 4.974c-1.156-.414-3.115-.889-5.815-.75-.74.039-1.94.174-2.656.366-3.022.81-4.142 2.93-4.516 4.402-.183.716-.217 1.939-.079 2.666.277 1.462 1.486 3.747 6.737 6.126.675.306 1.823.772 2.29 1.34q.07.085.137.181c.422.603.666 1.937.21 2.487a2.2 2.2 0 0 1-.487.424c-.616.405-1.829.62-2.57.65-.895.034-2.145-.023-3.445-.42-.709-.216-1.458.073-1.716.768l-.659 1.775c-.258.695.008 1.641.68 1.951 1.132.522 3.136 1.104 6.159.815.738-.07 1.93-.262 2.637-.482 3.15-.981 4.36-3.28 4.822-4.747.221-.706.333-1.916.24-2.65-.192-1.514-.978-3.965-3.922-5.497-.657-.342-1.812-.69-2.509-.942-.912-.332-2.091-.853-2.759-1.515-.507-.503-.47-1.826-.072-2.445a2.4 2.4 0 0 1 1.253-.976c.695-.247 1.925-.167 2.653-.03.667.125 1.38.305 1.976.476.712.204 1.473-.141 1.72-.84l.466-1.317c.248-.7-.202-1.608-.9-1.857Z" stroke="@{base}" stroke-width="2" fill="@{accent-color}" paint-order="stroke fill markers"/></g></svg>'
);
background-image: url("data:image/svg+xml,@{svg}");
}
[src="moz-extension://8fc71d5e-96b2-44a4-8d6f-ead6ff4d3c56/images/icon/16.png"], img[src="/images/icon/128.png"]
{
@fade_color: fade(@accent-color, 67%);
@svg: escape(
'<svg version="1.1" viewBox="0 0 34.5 34.5" xmlns="http://www.w3.org/2000/svg"><g transform="translate(1.5 1.5)"><path d="M.68 13.5h.14a.68.68 135 0 0 .68-.68V3.68c0-.375-.012-.988.053-1.357.139-.786.622-2.01 2.27-2.272.37-.06.982-.05 1.357-.05h21.64c.375 0 .987-.009 1.358.049 1.676.26 2.15 1.485 2.279 2.273.06.37.043.982.043 1.357v9.14a.68.68 45 0 0 .68.68h.14a.68.68 45 0 1 .68.68v3.64a.68.68 135 0 1-.68.68h-.14a.68.68 135 0 0-.68.68v9.14c0 .375.017.988-.044 1.358-.13.787-.604 2.013-2.279 2.273-.37.057-.982.05-1.358.05H5.18c-.375 0-.987.007-1.358-.052-1.644-.264-2.128-1.487-2.268-2.272-.066-.37-.054-.982-.054-1.357v-9.14a.68.68 45 0 0-.68-.68H.68a.68.68 45 0 1-.68-.68v-3.64a.68.68 135 0 1 .68-.68z" stroke="@{base}" fill="@{accent-color}" stroke-linejoin="round" stroke-width="2.25" paint-order="stroke fill markers"/><path d="M2.788 15h1.175a.54.54 135 0 0 .537-.537V5.538c0-.297-.017-.78.024-1.074.094-.66.475-1.72 1.94-1.928.294-.042.777-.036 1.074-.036h16.925c.296 0 .78-.006 1.073.038 1.426.211 1.821 1.268 1.928 1.927.047.292.036.776.036 1.072v8.925a.54.54 45 0 0 .538.538h1.175a.54.54 45 0 1 .537.537v.925a.54.54 135 0 1-.537.538h-1.175a.54.54 135 0 0-.538.537v8.925c0 .297.01.78-.04 1.073-.111.658-.51 1.714-1.925 1.927-.293.044-.776.038-1.072.038H7.538c-.297 0-.78.006-1.074-.037-1.434-.211-1.826-1.27-1.93-1.928-.046-.292-.034-.776-.034-1.073v-8.925A.54.54 45 0 0 3.963 17H2.788a.54.54 45 0 1-.538-.538v-.925A.54.54 135 0 1 2.788 15z" fill="black" stroke-linejoin="round" stroke="@{base}" stroke-width="2" paint-order="stroke fill markers"/><path d="M2.788 15h1.175a.54.54 135 0 0 .537-.537V5.538c0-.297-.017-.78.024-1.074.094-.66.475-1.72 1.94-1.928.294-.042.777-.036 1.074-.036h16.925c.296 0 .78-.006 1.073.038 1.426.211 1.821 1.268 1.928 1.927.047.292.036.776.036 1.072v8.925a.54.54 45 0 0 .538.538h1.175a.54.54 45 0 1 .537.537v.925a.54.54 135 0 1-.537.538h-1.175a.54.54 135 0 0-.538.537v8.925c0 .297.01.78-.04 1.073-.111.658-.51 1.714-1.925 1.927-.293.044-.776.038-1.072.038H7.538c-.297 0-.78.006-1.074-.037-1.434-.211-1.826-1.27-1.93-1.928-.046-.292-.034-.776-.034-1.073v-8.925A.54.54 45 0 0 3.963 17H2.788a.54.54 45 0 1-.538-.538v-.925A.54.54 135 0 1 2.788 15z" fill="@{fade_color}" stroke-linejoin="round" stroke="@{base}" stroke-width="2" paint-order="stroke fill markers"/><path d="M21.715 4.974c-1.156-.414-3.115-.889-5.815-.75-.74.039-1.94.174-2.656.366-3.022.81-4.142 2.93-4.516 4.402-.183.716-.217 1.939-.079 2.666.277 1.462 1.486 3.747 6.737 6.126.675.306 1.823.772 2.29 1.34q.07.085.137.181c.422.603.666 1.937.21 2.487a2.2 2.2 0 0 1-.487.424c-.616.405-1.829.62-2.57.65-.895.034-2.145-.023-3.445-.42-.709-.216-1.458.073-1.716.768l-.659 1.775c-.258.695.008 1.641.68 1.951 1.132.522 3.136 1.104 6.159.815.738-.07 1.93-.262 2.637-.482 3.15-.981 4.36-3.28 4.822-4.747.221-.706.333-1.916.24-2.65-.192-1.514-.978-3.965-3.922-5.497-.657-.342-1.812-.69-2.509-.942-.912-.332-2.091-.853-2.759-1.515-.507-.503-.47-1.826-.072-2.445a2.4 2.4 0 0 1 1.253-.976c.695-.247 1.925-.167 2.653-.03.667.125 1.38.305 1.976.476.712.204 1.473-.141 1.72-.84l.466-1.317c.248-.7-.202-1.608-.9-1.857Z" stroke="@{base}" stroke-width="2" fill="@{accent-color}" paint-order="stroke fill markers"/></g></svg>'
);
content: url("data:image/svg+xml,@{svg}");
}
#message-box.danger {
#message-box-title {
background-color: @red;
color: @base;
&::before {
@fade_color: fade(@red, 67%);
@svg: escape(
'<svg version="1.1" viewBox="0 0 34.5 34.5" xmlns="http://www.w3.org/2000/svg"><g transform="translate(1.5 1.5)"><path d="M.68 13.5h.14a.68.68 135 0 0 .68-.68V3.68c0-.375-.012-.988.053-1.357.139-.786.622-2.01 2.27-2.272.37-.06.982-.05 1.357-.05h21.64c.375 0 .987-.009 1.358.049 1.676.26 2.15 1.485 2.279 2.273.06.37.043.982.043 1.357v9.14a.68.68 45 0 0 .68.68h.14a.68.68 45 0 1 .68.68v3.64a.68.68 135 0 1-.68.68h-.14a.68.68 135 0 0-.68.68v9.14c0 .375.017.988-.044 1.358-.13.787-.604 2.013-2.279 2.273-.37.057-.982.05-1.358.05H5.18c-.375 0-.987.007-1.358-.052-1.644-.264-2.128-1.487-2.268-2.272-.066-.37-.054-.982-.054-1.357v-9.14a.68.68 45 0 0-.68-.68H.68a.68.68 45 0 1-.68-.68v-3.64a.68.68 135 0 1 .68-.68z" stroke="@{base}" fill="@{red}" stroke-linejoin="round" stroke-width="2.25" paint-order="stroke fill markers"/><path d="M2.788 15h1.175a.54.54 135 0 0 .537-.537V5.538c0-.297-.017-.78.024-1.074.094-.66.475-1.72 1.94-1.928.294-.042.777-.036 1.074-.036h16.925c.296 0 .78-.006 1.073.038 1.426.211 1.821 1.268 1.928 1.927.047.292.036.776.036 1.072v8.925a.54.54 45 0 0 .538.538h1.175a.54.54 45 0 1 .537.537v.925a.54.54 135 0 1-.537.538h-1.175a.54.54 135 0 0-.538.537v8.925c0 .297.01.78-.04 1.073-.111.658-.51 1.714-1.925 1.927-.293.044-.776.038-1.072.038H7.538c-.297 0-.78.006-1.074-.037-1.434-.211-1.826-1.27-1.93-1.928-.046-.292-.034-.776-.034-1.073v-8.925A.54.54 45 0 0 3.963 17H2.788a.54.54 45 0 1-.538-.538v-.925A.54.54 135 0 1 2.788 15z" fill="black" stroke-linejoin="round" stroke="@{base}" stroke-width="2" paint-order="stroke fill markers"/><path d="M2.788 15h1.175a.54.54 135 0 0 .537-.537V5.538c0-.297-.017-.78.024-1.074.094-.66.475-1.72 1.94-1.928.294-.042.777-.036 1.074-.036h16.925c.296 0 .78-.006 1.073.038 1.426.211 1.821 1.268 1.928 1.927.047.292.036.776.036 1.072v8.925a.54.54 45 0 0 .538.538h1.175a.54.54 45 0 1 .537.537v.925a.54.54 135 0 1-.537.538h-1.175a.54.54 135 0 0-.538.537v8.925c0 .297.01.78-.04 1.073-.111.658-.51 1.714-1.925 1.927-.293.044-.776.038-1.072.038H7.538c-.297 0-.78.006-1.074-.037-1.434-.211-1.826-1.27-1.93-1.928-.046-.292-.034-.776-.034-1.073v-8.925A.54.54 45 0 0 3.963 17H2.788a.54.54 45 0 1-.538-.538v-.925A.54.54 135 0 1 2.788 15z" fill="@{fade_color}" stroke-linejoin="round" stroke="@{base}" stroke-width="2" paint-order="stroke fill markers"/><path d="M21.715 4.974c-1.156-.414-3.115-.889-5.815-.75-.74.039-1.94.174-2.656.366-3.022.81-4.142 2.93-4.516 4.402-.183.716-.217 1.939-.079 2.666.277 1.462 1.486 3.747 6.737 6.126.675.306 1.823.772 2.29 1.34q.07.085.137.181c.422.603.666 1.937.21 2.487a2.2 2.2 0 0 1-.487.424c-.616.405-1.829.62-2.57.65-.895.034-2.145-.023-3.445-.42-.709-.216-1.458.073-1.716.768l-.659 1.775c-.258.695.008 1.641.68 1.951 1.132.522 3.136 1.104 6.159.815.738-.07 1.93-.262 2.637-.482 3.15-.981 4.36-3.28 4.822-4.747.221-.706.333-1.916.24-2.65-.192-1.514-.978-3.965-3.922-5.497-.657-.342-1.812-.69-2.509-.942-.912-.332-2.091-.853-2.759-1.515-.507-.503-.47-1.826-.072-2.445a2.4 2.4 0 0 1 1.253-.976c.695-.247 1.925-.167 2.653-.03.667.125 1.38.305 1.976.476.712.204 1.473-.141 1.72-.84l.466-1.317c.248-.7-.202-1.608-.9-1.857Z" stroke="@{base}" stroke-width="2" fill="@{red}" paint-order="stroke fill markers"/></g></svg>'
);
background: url("data:image/svg+xml,@{svg}") !important;
}
}
#message-box-close-icon i {
color: var(--c40);
&:hover {
color: var(--bg);
}
}
}
#filters label:hover,
#filters .filter-selection:hover {
background-color: @surface0;
}
.oldUI .disabled h2::after,
.entry.usercss .style-name-link::after {
background-color: fade(@accent-color, 25%);
}
/* Syntax highlighting */
.CodeMirror-activeline-background {
background: @mantle;
}
.CodeMirror-linenumber {
color: @subtext0;
}
div.CodeMirror span.CodeMirror-matchingbracket {
color: @green;
}
.cm-s-default {
.cm-string {
color: @green;
}
.cm-qualifier {
color: @yellow;
}
.cm-variable-2 {
color: @mauve;
}
.cm-keyword {
color: @mauve;
}
.cm-atom {
color: @red;
}
.cm-number {
color: @peach;
}
.cm-def {
color: @mauve;
}
.cm-tag {
color: @blue;
}
.cm-builtin {
color: @red;
}
.cm-variable-3 {
color: @teal;
}
.cm-comment {
color: @overlay2;
}
.cm-operator {
color: @yellow;
}
.cm-variable {
color: @blue;
}
.cm-property {
color: @blue;
}
}
button:disabled,
select:disabled,
option:disabled,
select[disabled] > option {
color: @subtext0;
}
.applies-to input,
.applies-to select {
background: @base;
border-color: @surface0;
color: @subtext0;
}
button {
color: @text !important;
background: @mantle !important;
border-color: @surface0;
&:hover {
border-color: @text;
}
}
#save-button[disabled] {
background: @surface0 !important;
}
#message-box-title {
color: @text;
}
.svg-icon {
fill: @overlay0;
&:hover {
fill: @overlay1;
}
}
.onoffswitch input:checked + span {
background-color: fade(@accent-color, 25%);
&::before {
background-color: @accent-color;
}
}
#options-title {
color: @base;
}
h2 {
color: @accent-color !important;
}
.installed .configure-usercss {
i {
color: @accent-color;
}
svg,
&:hover svg {
fill: @accent-color !important;
}
}
#live-reload-install-hint {
color: @teal;
}
#menu.delete {
header {
background: fade(@red, 25%);
}
> div,
[data-cmd="delete"] {
border-color: @red;
}
}
.entry.odd {
background-color: fade(@surface0, 25%);
}
.updater-icons > :not(.check-update)::after {
border-color: @yellow;
background: @base;
}
.split-btn-menu {
border-color: @accent-color;
> :hover {
background: fade(@accent-color, 25%);
}
}
#help-popup .title {
background: @mantle;
}
#toc li:hover {
background: fade(@accent-color, 20%);
}
input:invalid {
background: fade(@red, 10%);
color: @red;
}
}
}
/* prettier-ignore */
@paradisa: {
@paradisa: { @rosewater: #BBB6B6; @flamingo: #A988B0; @pink: #A988B0; @mauve: #A988B0; @red: #B66467; @maroon: #B66467; @peach: #B66467; @yellow: #D9BC8C; @green: #8C977D; @teal: #8AA6A2; @sky: #8AA6A2; @sapphire: #8DA3B9; @blue: #8DA3B9; @lavender: #8DA3B9; @text: #E8E3E3; @subtext1: #BBB6B6; @subtext0: #BBB6B6; @overlay2: #424242; @overlay1: #424242; @overlay0: #424242; @surface2: #2E2E2E; @surface1: #2E2E2E; @surface0: #2E2E2E; @base: #151515; @mantle: #1F1F1F; @crust: #1F1F1F; };
}