Update catppuccin.user.css (#177)

This commit is contained in:
Ren authored and GitHub committed 2023-09-13 18:44:28 +01:00
1 parent 5e5d2f520d
commit cca980c0b6
1 file changed
+123 -130
+123 -130
View File
@@ -2,7 +2,7 @@
@name DeepL Catppuccin @name DeepL Catppuccin
@namespace github.com/catppuccin/userstyles/styles/deepl @namespace github.com/catppuccin/userstyles/styles/deepl
@homepageURL https://github.com/catppuccin/userstyles/tree/main/styles/deepl @homepageURL https://github.com/catppuccin/userstyles/tree/main/styles/deepl
@version 0.2.2 @version 0.2.3
@description Soothing pastel theme for DeepL @description Soothing pastel theme for DeepL
@author Catppuccin @author Catppuccin
@updateURL https://github.com/catppuccin/userstyles/raw/main/styles/deepl/catppuccin.user.css @updateURL https://github.com/catppuccin/userstyles/raw/main/styles/deepl/catppuccin.user.css
@@ -19,8 +19,7 @@
@var checkbox removeAds "Remove DeepL Ads" 0 @var checkbox removeAds "Remove DeepL Ads" 0
@var checkbox removeGlossaryButton "Remove Glossary Button" 0 @var checkbox removeGlossaryButton "Remove Glossary Button" 0
==/UserStyle== */ ==/UserStyle== */
@-moz-document url-prefix("https://www.deepl.com/translator") @-moz-document url-prefix("https://www.deepl.com/translator") {
{
:root { :root {
#catppuccin(@flavor, @accentColor); #catppuccin(@flavor, @accentColor);
} }
@@ -53,7 +52,8 @@
@base: #eff1f5; @base: #eff1f5;
@mantle: #e6e9ef; @mantle: #e6e9ef;
@crust: #dce0e8; @crust: #dce0e8;
}; }
@frappe: { @frappe: {
@rosewater: #f2d5cf; @rosewater: #f2d5cf;
@flamingo: #eebebe; @flamingo: #eebebe;
@@ -81,7 +81,8 @@
@base: #303446; @base: #303446;
@mantle: #292c3c; @mantle: #292c3c;
@crust: #232634; @crust: #232634;
}; }
@macchiato: { @macchiato: {
@rosewater: #f4dbd6; @rosewater: #f4dbd6;
@flamingo: #f0c6c6; @flamingo: #f0c6c6;
@@ -109,7 +110,8 @@
@base: #24273a; @base: #24273a;
@mantle: #1e2030; @mantle: #1e2030;
@crust: #181926; @crust: #181926;
}; }
@mocha: { @mocha: {
@rosewater: #f5e0dc; @rosewater: #f5e0dc;
@flamingo: #f2cdcd; @flamingo: #f2cdcd;
@@ -137,8 +139,8 @@
@base: #1e1e2e; @base: #1e1e2e;
@mantle: #181825; @mantle: #181825;
@crust: #11111b; @crust: #11111b;
}; }
}; }
#catppuccin(@lookup, @accent) { #catppuccin(@lookup, @accent) {
@rosewater: @catppuccin[@@lookup][@rosewater]; @rosewater: @catppuccin[@@lookup][@rosewater];
@@ -172,6 +174,7 @@
@accent2: mix(@accent-Color, @text, 60%); @accent2: mix(@accent-Color, @text, 60%);
/* text highlight */ /* text highlight */
::selection { ::selection {
background: fadeout(@accent-Color, 80%) !important; background: fadeout(@accent-Color, 80%) !important;
color: @text !important; color: @text !important;
@@ -194,6 +197,7 @@
& when (@lookup ="latte") { & when (@lookup ="latte") {
--inlineLabelColor: #fff !important; --inlineLabelColor: #fff !important;
} }
--inlineLabelColor: @crust; --inlineLabelColor: @crust;
--outline-color: @accent; --outline-color: @accent;
--background: @overlay1; --background: @overlay1;
@@ -209,6 +213,7 @@
& when (@lookup ="latte") { & when (@lookup ="latte") {
background: #fff; background: #fff;
} }
background: @crust; background: @crust;
} }
} }
@@ -227,7 +232,7 @@
--option-icon-color: @accent; --option-icon-color: @accent;
background: @surface0; background: @surface0;
[class^="option--"][class*="unavailable--"] { [class^="option--"][class*="unavilable--"] {
--option-color: @overlay1; --option-color: @overlay1;
--option-icon-color: @subtext0; --option-icon-color: @subtext0;
} }
@@ -243,6 +248,7 @@
& when (@lookup ="latte") { & when (@lookup ="latte") {
color: @base; color: @base;
} }
color: @crust; color: @crust;
background: @accent2; background: @accent2;
@@ -283,13 +289,17 @@
& when (@lookup ="latte") { & when (@lookup ="latte") {
color: #fff; color: #fff;
} }
color: @crust; color: @crust;
} }
[class*="button--"].variant_text--gozza, [class*="button--"].variant_text--gozza,
.dark [class*="button--"].variant_text--gozza { .dark [class*="button--"].variant_text--gozza {
background-color: transparent; background-color: transparent;
} ///// }
/////
.eSEOtericText { .eSEOtericText {
color: @overlay1; color: @overlay1;
} }
@@ -315,12 +325,14 @@
& when (@lookup ="latte") { & when (@lookup ="latte") {
color: #fff; color: #fff;
} }
color: @crust; color: @crust;
&:hover { &:hover {
background-color: darken(@accent-Color, 30%); background-color: darken(@accent-Color, 30%);
& when (@lookup ="latte") { & when (@lookup ="latte") {
color: #fff; color: #fff;
} }
color: @crust; color: @crust;
} }
} }
@@ -353,6 +365,7 @@
& when (@lookup ="latte") { & when (@lookup ="latte") {
color: #fff; color: #fff;
} }
color: @crust; color: @crust;
} }
@@ -397,6 +410,7 @@
} }
} }
} }
.lmt--web .lmt__language_container .lmt__language_container_switch:hover, .lmt--web .lmt__language_container .lmt__language_container_switch:hover,
.lmt--web .lmt__language_container .lmt__language_container_switch:focus { .lmt--web .lmt__language_container .lmt__language_container_switch:focus {
color: @accent-Color; color: @accent-Color;
@@ -439,10 +453,7 @@
border-color: @surface1; border-color: @surface1;
} }
.integratedLanguageSelectors .integratedLanguageSelectors .lmt--web .lmt__sides_container .lmt__language_container,
.lmt--web
.lmt__sides_container
.lmt__language_container,
.dl_body--redesign .lmt--web .lmt__textarea_container, .dl_body--redesign .lmt--web .lmt__textarea_container,
.lmt__doc .lmt__language_container #doc-trans-source-panel, .lmt__doc .lmt__language_container #doc-trans-source-panel,
[class^="docTrans__help_popup--"], [class^="docTrans__help_popup--"],
@@ -457,17 +468,21 @@
} }
} }
/* new popup */ // new popup
.root--Frqwa { .root--Frqwa {
background-color: @surface0; background-color: @surface0;
} }
.selected--bDLH4 { .selected--bDLH4 {
background-color: @surface1; background-color: @surface1;
} }
.divider--v710V { .divider--v710V {
color: @surface2; color: @surface2;
} }
.dl_body--redesign .lmt--web .lmt__source_textarea__length_marker { .dl_body--redesign .lmt--web .lmt__source_textarea__length_marker {
color: @subtext0; color: @subtext0;
} }
@@ -476,10 +491,7 @@
color: @overlay1; color: @overlay1;
} }
.dl_body--redesign .dl_body--redesign .lmt--web .lmt__language_select .lmt__language_select__active {
.lmt--web
.lmt__language_select
.lmt__language_select__active {
color: @subtext0; color: @subtext0;
} }
@@ -507,26 +519,17 @@
color: @overlay2 !important; color: @overlay2 !important;
} }
.lmt__source_textarea_overlay .lmt__source_textarea_overlay .lmt__source_textarea_overlay__sentence--active {
.lmt__source_textarea_overlay__sentence--active {
color: @accent2; color: @accent2;
background-color: @base; background-color: @base;
} }
.integratedLanguageSelectors .integratedLanguageSelectors .lmt--web .lmt__sides_container .lmt__side_container.lmt__side_container--source .lmt__textarea_container {
.lmt--web
.lmt__sides_container
.lmt__side_container.lmt__side_container--source
.lmt__textarea_container {
border-right-color: @surface1; border-right-color: @surface1;
border-top-color: @surface1; border-top-color: @surface1;
} }
.integratedLanguageSelectors .integratedLanguageSelectors .lmt--web .lmt__sides_container .lmt__side_container.lmt__side_container--target .lmt__textarea_container {
.lmt--web
.lmt__sides_container
.lmt__side_container.lmt__side_container--target
.lmt__textarea_container {
border-top-color: @surface1 !important; border-top-color: @surface1 !important;
} }
@@ -539,19 +542,9 @@
color: @overlay1; color: @overlay1;
} }
.dl_body--redesign .dl_body--redesign .lmt--web .lmt__textarea_container.lmt__textarea_container--focus,
.lmt--web .integratedLanguageSelectors .lmt--web .lmt__sides_container.lmt__sides_container--focus_source .lmt__side_container.lmt__side_container--source .lmt__textarea_container,
.lmt__textarea_container.lmt__textarea_container--focus, .integratedLanguageSelectors .lmt--web .lmt__sides_container.lmt__sides_container--focus_target .lmt__side_container.lmt__side_container--target .lmt__textarea_container {
.integratedLanguageSelectors
.lmt--web
.lmt__sides_container.lmt__sides_container--focus_source
.lmt__side_container.lmt__side_container--source
.lmt__textarea_container,
.integratedLanguageSelectors
.lmt--web
.lmt__sides_container.lmt__sides_container--focus_target
.lmt__side_container.lmt__side_container--target
.lmt__textarea_container {
border: 1px solid @accent-Color !important; border: 1px solid @accent-Color !important;
} }
@@ -561,37 +554,36 @@
@keyframes lmt_textarea__busy_animation_ctp { @keyframes lmt_textarea__busy_animation_ctp {
0% { 0% {
box-shadow: box-shadow: inset 0 0 0px 0 @base, inset 0 0 0px 0px rgba(14, 43, 70, 0.0);
inset 0 0 0px 0 @base,
inset 0 0 0px 0px rgba(14, 43, 70, 0);
} }
10% { 10% {
box-shadow: box-shadow: inset 0 0 0px 1px @base, inset 0 0 0px 2px rgba(14, 43, 70, 0.5);
inset 0 0 0px 1px @base,
inset 0 0 0px 2px rgba(14, 43, 70, 0.5);
} }
20% { 20% {
box-shadow: box-shadow: inset 0 0 1px 3px @base, inset 0 0 1px 4px rgba(14, 43, 70, 0.5),
inset 0 0 1px 3px @base,
inset 0 0 1px 4px rgba(14, 43, 70, 0.5);
} }
40% { 40% {
box-shadow: box-shadow: inset 0 0 1px 8px @base, inset 0 0 1px 8px rgba(14, 43, 70, 0.3),
inset 0 0 1px 8px @base,
inset 0 0 1px 8px rgba(14, 43, 70, 0.3);
} }
} }
.lmt--active_translation_request.lmt--active_translation_request--with_target_has_content .lmt--active_translation_request.lmt--active_translation_request--with_target_has_content .lmt__side_container--target .lmt__inner_textarea_container {
.lmt__side_container--target
.lmt__inner_textarea_container {
animation: lmt_textarea__busy_animation_ctp 1.5s 2.5s linear infinite; animation: lmt_textarea__busy_animation_ctp 1.5s 2.5s linear infinite;
box-shadow: box-shadow: inset 0 0 1px 14px @base, inset 0 0 0px rgba(0, 0, 0, 0);
inset 0 0 1px 14px @base, }
inset 0 0 0px rgba(0, 0, 0, 0); // toolbar?
.local_undo_redo_DF-3361 .lmt__source_toolbar,
.local_undo_redo_DF-3361 .lmt__target_toolbar {
background-color: @base;
}
.local_undo_redo_DF-3361 .lmt__toolbar_container.is_sticky .lmt__source_toolbar,
.local_undo_redo_DF-3361 .lmt__toolbar_container.is_sticky .lmt__target_toolbar {
border-top-color: @surface1;
} }
.lmt__toolbar_container, .lmt__toolbar_container,
@@ -608,44 +600,33 @@
color: @accent-Color; color: @accent-Color;
} }
} }
} // language selector }
// language selector
.lmt__language_select__menu.lmt__language_select__menu_three_columns { .lmt__language_select__menu.lmt__language_select__menu_three_columns {
&, &,
input { input {
background-color: @base; background-color: @base;
} }
border-color: @surface1; border-color: @surface1;
} }
.lmt__language_select__menu .lmt__dropdown_item_inside_container, .lmt__language_select__menu .lmt__dropdown_item_inside_container,
.lmt__language_select__menu .lmt__language_select__menu .lmt__formalitySwitch__menu_items > div > button,
.lmt__formalitySwitch__menu_items .lmt__language_select__menu .lmt__formalitySwitch__menu_items > div > div > button,
> div
> button,
.lmt__language_select__menu
.lmt__formalitySwitch__menu_items
> div
> div
> button,
.lmt__language_select__menu > div > button, .lmt__language_select__menu > div > button,
.lmt__language_select__menu > div > div > button { .lmt__language_select__menu > div > div > button {
color: @subtext1; color: @subtext1;
} }
.lmt__language_select__menu.lmt__language_select__menu_three_columns .lmt__language_select__menu.lmt__language_select__menu_three_columns .lmt__language_wrapper .lmt__language_select_column button:hover,
.lmt__language_wrapper .lmt__language_select__menu.lmt__language_select__menu_three_columns .lmt__language_wrapper .lmt__language_select_column button.highlighted {
.lmt__language_select_column
button:hover,
.lmt__language_select__menu.lmt__language_select__menu_three_columns
.lmt__language_wrapper
.lmt__language_select_column
button.highlighted {
background-color: fadeout(@yellow, 0.3); background-color: fadeout(@yellow, 0.3);
} }
.lmt__language_select__menu.lmt__language_select__menu_three_columns .lmt__language_select__menu.lmt__language_select__menu_three_columns .lmt__language_wrapper .lmt__language_select_column {
.lmt__language_wrapper
.lmt__language_select_column {
border-right-color: @surface1; border-right-color: @surface1;
} }
@@ -653,20 +634,19 @@
color: @accent-Color; color: @accent-Color;
} }
.lmt__language_select__menu.lmt__language_select__menu_three_columns .lmt__language_select__menu.lmt__language_select__menu_three_columns .lmt__language_wrapper .lmt__language_select_column button .tick {
.lmt__language_wrapper
.lmt__language_select_column
button
.tick {
border-bottom-color: @accent-Color; border-bottom-color: @accent-Color;
border-right-color: @accent-Color; border-right-color: @accent-Color;
} // glossary }
// glossary
.lmt__glossary_highlight { .lmt__glossary_highlight {
color: @accent-Color; color: @accent-Color;
} }
.lmt__glossaryButton__desktop { .lmt__glossaryButton__desktop {
border-color: fadeout(@text, 12%); border-color: fadeout(@text, 12%)
} }
.lmt__glossary_button .lmt__glossary_button_label:hover { .lmt__glossary_button .lmt__glossary_button_label:hover {
@@ -678,12 +658,14 @@
& when (@lookup ="latte") { & when (@lookup ="latte") {
color: #fff; color: #fff;
} }
color: @crust; color: @crust;
.lmt__glossary_editorClose { .lmt__glossary_editorClose {
& when (@lookup ="latte") { & when (@lookup ="latte") {
color: #fff; color: #fff;
} }
color: @crust; color: @crust;
} }
} }
@@ -710,9 +692,7 @@
} }
} }
.lmt_firstEntry-content .lmt_firstEntry-content .lmt__glossary_newEntry_langButton .lmt__glossary_arrowDown {
.lmt__glossary_newEntry_langButton
.lmt__glossary_arrowDown {
border-bottom-color: @overlay2; border-bottom-color: @overlay2;
border-right-color: @overlay2; border-right-color: @overlay2;
} }
@@ -737,6 +717,7 @@
& when (@lookup ="latte") { & when (@lookup ="latte") {
color: #fff; color: #fff;
} }
color: @crust; color: @crust;
} }
@@ -759,19 +740,12 @@
} }
} }
.lmt__glossary_newEntry_langDropdown.lmt__language_select__menu .lmt__glossary_newEntry_langDropdown.lmt__language_select__menu button .langName {
button
.langName {
color: @text !important; color: @text !important;
} }
.lmt__glossary_newEntry_langDropdown.lmt__language_select__menu .lmt__glossary_newEntry_langDropdown.lmt__language_select__menu button .langCodePair,
button .lmt__glossary_newEntry_langDropdown.lmt__language_select__menu button .langCodePair .langCode {
.langCodePair,
.lmt__glossary_newEntry_langDropdown.lmt__language_select__menu
button
.langCodePair
.langCode {
color: @subtext0; color: @subtext0;
} }
@@ -783,33 +757,21 @@
} }
} }
.lmt__glossary_editor .lmt__glossary_editor .lmt__glossary_editor_subBar_top .lmt__glossary_editor_glossarySelect .lmt__glossary_editor_glossaryNameWrapper .lmt__glossary_editor_glossaryName {
.lmt__glossary_editor_subBar_top
.lmt__glossary_editor_glossarySelect
.lmt__glossary_editor_glossaryNameWrapper
.lmt__glossary_editor_glossaryName {
color: @text; color: @text;
} }
.lmt__glossary_editor .lmt__glossary_editor .lmt__glossary_editor_subBar_top .lmt__glossary_editor_glossarySelect .lmt__glossary_editor_glossaryNameWrapper .lmt__glossary_editor_glossarySelectChevron.lmt__glossary_arrowDown {
.lmt__glossary_editor_subBar_top
.lmt__glossary_editor_glossarySelect
.lmt__glossary_editor_glossaryNameWrapper
.lmt__glossary_editor_glossarySelectChevron.lmt__glossary_arrowDown {
border-bottom-color: @accent2; border-bottom-color: @accent2;
border-right-color: @accent2; border-right-color: @accent2;
} }
.lmt__glossary_editor .lmt__glossary_editor_subBar_top, .lmt__glossary_editor .lmt__glossary_editor_subBar_top,
.lmt__glossary_editor_subBar_bottom .lmt__glossary_editor_subBar_bottom .lmt__glossary_editor [class^="form--"] {
.lmt__glossary_editor
[class^="form--"] {
background-color: @mantle; background-color: @mantle;
} }
.lmt__glossary_editor_subBar_bottom .lmt__glossary_editor_subBar_bottom .lmt__glossary_editor_glossaryAddNewWrapper .lmt__glossary_editor_glossaryAddNew {
.lmt__glossary_editor_glossaryAddNewWrapper
.lmt__glossary_editor_glossaryAddNew {
color: @accent-Color; color: @accent-Color;
} }
@@ -833,10 +795,12 @@
& when (@lookup ="latte") { & when (@lookup ="latte") {
border-bottom-color: @base; border-bottom-color: @base;
} }
border-bottom-color: @crust; border-bottom-color: @crust;
& when (@lookup ="latte") { & when (@lookup ="latte") {
border-right-color: @base; border-right-color: @base;
} }
border-right-color: @crust; border-right-color: @crust;
} }
@@ -867,7 +831,10 @@
.lmt__glossary_editorRow .iconButton { .lmt__glossary_editorRow .iconButton {
color: @text; color: @text;
} ///// }
/////
.combined_app_ad_mobile_and_desktop .dl_ad_pro_container, .combined_app_ad_mobile_and_desktop .dl_ad_pro_container,
.dl_pro__banner--2021--wrapper, .dl_pro__banner--2021--wrapper,
[class^="footerOuterContainer"], [class^="footerOuterContainer"],
@@ -883,7 +850,10 @@
.lmt_quote__source a { .lmt_quote__source a {
color: @accent-Color; color: @accent-Color;
} // popup }
// popup
.lmt__edit_text_popup { .lmt__edit_text_popup {
background-color: @surface1; background-color: @surface1;
} }
@@ -896,13 +866,21 @@
.lmt__edit_text_popup .lmt__edit_text_popup__entry--active { .lmt__edit_text_popup .lmt__edit_text_popup__entry--active {
background-color: fadeout(@yellow, 0.3); background-color: fadeout(@yellow, 0.3);
} // dictionary }
// dictionary
#lmt__dict_container { #lmt__dict_container {
[class^="content--"] { [class^="content--"] {
.tag_lemma a, .tag_lemma a,
.isForeignTerm .tag_trans, .isForeignTerm .tag_trans,
.isForeignTerm .tag_trans a .isForeignTerm .tag_t, .isForeignTerm .tag_trans a .isForeignTerm .tag_t,
.tag_t a { .tag_t a,
.isForeignTerm .tag_trans,
.isForeignTerm .tag_trans a,
.isForeignTerm .tag_t,
.isForeignTerm .tag_t a,
.isForeignTerm .tag_trans {
color: @accent-Color; color: @accent-Color;
} }
@@ -922,7 +900,10 @@
span > span > button:hover { span > span > button:hover {
color: @accent-Color; color: @accent-Color;
} }
} // quotes }
// quotes
.lmt_quotes_nav_entry { .lmt_quotes_nav_entry {
color: @overlay1; color: @overlay1;
background-color: @overlay0; background-color: @overlay0;
@@ -931,7 +912,10 @@
.lmt_quotes_nav_entry--active { .lmt_quotes_nav_entry--active {
color: @accent-Color; color: @accent-Color;
background-color: @accent-Color; background-color: @accent-Color;
} // footer }
// footer
.dl_footerV2_container { .dl_footerV2_container {
[class*="linkList--"] li { [class*="linkList--"] li {
&:not(:first-of-type) a { &:not(:first-of-type) a {
@@ -943,24 +927,33 @@
& when (@lookup ="latte") { & when (@lookup ="latte") {
color: #fff; color: #fff;
} }
color: @crust; color: @crust;
} }
} }
} }
// fuck it we ball
[class*="bg-[#E1F0F5]"] {
background: fadeout(@accent-Color, 70%);
}
[class*="text-[#25282D]"] {
color: @text;
}
& when (@lookup ="latte") { & when (@lookup ="latte") {
#dl_menu_logo img, #dl_menu_logo img,
#dl_menu_translator_simplified img, #dl_menu_translator_simplified img,
.lmt_quote .lmt_quote__logo, .lmt_quote .lmt_quote__logo,
.lmt_quote__inner::before, .lmt_quote__inner::before,
[class^="docTrans__help_popup__container--"] [class^="docTrans__help_popup__container--"] [class^="supportedIcons--"] > div,
[class^="supportedIcons--"]
> div,
.dl_footerV2_container [class^="brandingContainer--"] a > img, .dl_footerV2_container [class^="brandingContainer--"] a > img,
[class^="socialMediaContainer--"] a > img { [class^="socialMediaContainer--"] a > img {
filter: invert(100%) hue-rotate(180deg); filter: invert(100%) hue-rotate(180deg);
} }
} } // options
// options
& when (@quotes =1) { & when (@quotes =1) {
#dl_quotes_container { #dl_quotes_container {
display: none; display: none;