style: format code with prettier

This commit is contained in:
github-actions[bot] committed 2023-09-22 00:18:32 +00:00
1 parent 7965d4e511
commit 7963027820
9 files changed
+2538 -1903

No files matched your search

+143 -60
View File
@@ -19,7 +19,8 @@
@var checkbox removeAds "Remove DeepL Ads" 0
@var checkbox removeGlossaryButton "Remove Glossary Button" 0
==/UserStyle== */
@-moz-document url-prefix("https://www.deepl.com/translator") {
@-moz-document url-prefix("https://www.deepl.com/translator")
{
:root {
#catppuccin(@flavor, @accentColor);
}
@@ -52,7 +53,7 @@
@base: #eff1f5;
@mantle: #e6e9ef;
@crust: #dce0e8;
}
};
@frappe: {
@rosewater: #f2d5cf;
@@ -81,7 +82,7 @@
@base: #303446;
@mantle: #292c3c;
@crust: #232634;
}
};
@macchiato: {
@rosewater: #f4dbd6;
@@ -110,7 +111,7 @@
@base: #24273a;
@mantle: #1e2030;
@crust: #181926;
}
};
@mocha: {
@rosewater: #f5e0dc;
@@ -139,8 +140,8 @@
@base: #1e1e2e;
@mantle: #181825;
@crust: #11111b;
}
}
};
};
#catppuccin(@lookup, @accent) {
@rosewater: @catppuccin[@@lookup][@rosewater];
@@ -174,7 +175,7 @@
@accent2: mix(@accent-Color, @text, 60%);
/* text highlight */
::selection {
background: fadeout(@accent-Color, 80%) !important;
color: @text !important;
@@ -297,9 +298,9 @@
.dark [class*="button--"].variant_text--gozza {
background-color: transparent;
}
/////
.eSEOtericText {
color: @overlay1;
}
@@ -453,7 +454,10 @@
border-color: @surface1;
}
.integratedLanguageSelectors .lmt--web .lmt__sides_container .lmt__language_container,
.integratedLanguageSelectors
.lmt--web
.lmt__sides_container
.lmt__language_container,
.dl_body--redesign .lmt--web .lmt__textarea_container,
.lmt__doc .lmt__language_container #doc-trans-source-panel,
[class^="docTrans__help_popup--"],
@@ -469,7 +473,7 @@
}
// new popup
.root--Frqwa {
background-color: @surface0;
}
@@ -482,7 +486,6 @@
color: @surface2;
}
.dl_body--redesign .lmt--web .lmt__source_textarea__length_marker {
color: @subtext0;
}
@@ -491,7 +494,10 @@
color: @overlay1;
}
.dl_body--redesign .lmt--web .lmt__language_select .lmt__language_select__active {
.dl_body--redesign
.lmt--web
.lmt__language_select
.lmt__language_select__active {
color: @subtext0;
}
@@ -519,17 +525,26 @@
color: @overlay2 !important;
}
.lmt__source_textarea_overlay .lmt__source_textarea_overlay__sentence--active {
.lmt__source_textarea_overlay
.lmt__source_textarea_overlay__sentence--active {
color: @accent2;
background-color: @base;
}
.integratedLanguageSelectors .lmt--web .lmt__sides_container .lmt__side_container.lmt__side_container--source .lmt__textarea_container {
.integratedLanguageSelectors
.lmt--web
.lmt__sides_container
.lmt__side_container.lmt__side_container--source
.lmt__textarea_container {
border-right-color: @surface1;
border-top-color: @surface1;
}
.integratedLanguageSelectors .lmt--web .lmt__sides_container .lmt__side_container.lmt__side_container--target .lmt__textarea_container {
.integratedLanguageSelectors
.lmt--web
.lmt__sides_container
.lmt__side_container.lmt__side_container--target
.lmt__textarea_container {
border-top-color: @surface1 !important;
}
@@ -542,9 +557,19 @@
color: @overlay1;
}
.dl_body--redesign .lmt--web .lmt__textarea_container.lmt__textarea_container--focus,
.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 {
.dl_body--redesign
.lmt--web
.lmt__textarea_container.lmt__textarea_container--focus,
.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;
}
@@ -554,35 +579,51 @@
@keyframes lmt_textarea__busy_animation_ctp {
0% {
box-shadow: inset 0 0 0px 0 @base, inset 0 0 0px 0px rgba(14, 43, 70, 0.0);
box-shadow:
inset 0 0 0px 0 @base,
inset 0 0 0px 0px rgba(14, 43, 70, 0);
}
10% {
box-shadow: inset 0 0 0px 1px @base, inset 0 0 0px 2px rgba(14, 43, 70, 0.5);
box-shadow:
inset 0 0 0px 1px @base,
inset 0 0 0px 2px rgba(14, 43, 70, 0.5);
}
20% {
box-shadow: inset 0 0 1px 3px @base, inset 0 0 1px 4px rgba(14, 43, 70, 0.5),
box-shadow:
inset 0 0 1px 3px @base,
inset 0 0 1px 4px rgba(14, 43, 70, 0.5);
}
40% {
box-shadow: inset 0 0 1px 8px @base, inset 0 0 1px 8px rgba(14, 43, 70, 0.3),
box-shadow:
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__side_container--target .lmt__inner_textarea_container {
.lmt--active_translation_request.lmt--active_translation_request--with_target_has_content
.lmt__side_container--target
.lmt__inner_textarea_container {
animation: lmt_textarea__busy_animation_ctp 1.5s 2.5s linear infinite;
box-shadow: inset 0 0 1px 14px @base, inset 0 0 0px rgba(0, 0, 0, 0);
box-shadow:
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 {
.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;
}
@@ -601,9 +642,9 @@
}
}
}
// language selector
.lmt__language_select__menu.lmt__language_select__menu_three_columns {
&,
input {
@@ -614,19 +655,34 @@
}
.lmt__language_select__menu .lmt__dropdown_item_inside_container,
.lmt__language_select__menu .lmt__formalitySwitch__menu_items > div > button,
.lmt__language_select__menu .lmt__formalitySwitch__menu_items > div > div > button,
.lmt__language_select__menu
.lmt__formalitySwitch__menu_items
> div
> button,
.lmt__language_select__menu
.lmt__formalitySwitch__menu_items
> div
> div
> button,
.lmt__language_select__menu > div > button,
.lmt__language_select__menu > div > div > button {
color: @subtext1;
}
.lmt__language_select__menu.lmt__language_select__menu_three_columns .lmt__language_wrapper .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 {
.lmt__language_select__menu.lmt__language_select__menu_three_columns
.lmt__language_wrapper
.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);
}
.lmt__language_select__menu.lmt__language_select__menu_three_columns .lmt__language_wrapper .lmt__language_select_column {
.lmt__language_select__menu.lmt__language_select__menu_three_columns
.lmt__language_wrapper
.lmt__language_select_column {
border-right-color: @surface1;
}
@@ -634,19 +690,23 @@
color: @accent-Color;
}
.lmt__language_select__menu.lmt__language_select__menu_three_columns .lmt__language_wrapper .lmt__language_select_column button .tick {
.lmt__language_select__menu.lmt__language_select__menu_three_columns
.lmt__language_wrapper
.lmt__language_select_column
button
.tick {
border-bottom-color: @accent-Color;
border-right-color: @accent-Color;
}
// glossary
.lmt__glossary_highlight {
color: @accent-Color;
}
.lmt__glossaryButton__desktop {
border-color: fadeout(@text, 12%)
border-color: fadeout(@text, 12%);
}
.lmt__glossary_button .lmt__glossary_button_label:hover {
@@ -692,7 +752,9 @@
}
}
.lmt_firstEntry-content .lmt__glossary_newEntry_langButton .lmt__glossary_arrowDown {
.lmt_firstEntry-content
.lmt__glossary_newEntry_langButton
.lmt__glossary_arrowDown {
border-bottom-color: @overlay2;
border-right-color: @overlay2;
}
@@ -740,12 +802,19 @@
}
}
.lmt__glossary_newEntry_langDropdown.lmt__language_select__menu button .langName {
.lmt__glossary_newEntry_langDropdown.lmt__language_select__menu
button
.langName {
color: @text !important;
}
.lmt__glossary_newEntry_langDropdown.lmt__language_select__menu button .langCodePair,
.lmt__glossary_newEntry_langDropdown.lmt__language_select__menu button .langCodePair .langCode {
.lmt__glossary_newEntry_langDropdown.lmt__language_select__menu
button
.langCodePair,
.lmt__glossary_newEntry_langDropdown.lmt__language_select__menu
button
.langCodePair
.langCode {
color: @subtext0;
}
@@ -757,21 +826,33 @@
}
}
.lmt__glossary_editor .lmt__glossary_editor_subBar_top .lmt__glossary_editor_glossarySelect .lmt__glossary_editor_glossaryNameWrapper .lmt__glossary_editor_glossaryName {
.lmt__glossary_editor
.lmt__glossary_editor_subBar_top
.lmt__glossary_editor_glossarySelect
.lmt__glossary_editor_glossaryNameWrapper
.lmt__glossary_editor_glossaryName {
color: @text;
}
.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
.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-right-color: @accent2;
}
.lmt__glossary_editor .lmt__glossary_editor_subBar_top,
.lmt__glossary_editor_subBar_bottom .lmt__glossary_editor [class^="form--"] {
.lmt__glossary_editor_subBar_bottom
.lmt__glossary_editor
[class^="form--"] {
background-color: @mantle;
}
.lmt__glossary_editor_subBar_bottom .lmt__glossary_editor_glossaryAddNewWrapper .lmt__glossary_editor_glossaryAddNew {
.lmt__glossary_editor_subBar_bottom
.lmt__glossary_editor_glossaryAddNewWrapper
.lmt__glossary_editor_glossaryAddNew {
color: @accent-Color;
}
@@ -832,9 +913,9 @@
.lmt__glossary_editorRow .iconButton {
color: @text;
}
/////
.combined_app_ad_mobile_and_desktop .dl_ad_pro_container,
.dl_pro__banner--2021--wrapper,
[class^="footerOuterContainer"],
@@ -851,9 +932,9 @@
.lmt_quote__source a {
color: @accent-Color;
}
// popup
.lmt__edit_text_popup {
background-color: @surface1;
}
@@ -867,9 +948,9 @@
.lmt__edit_text_popup .lmt__edit_text_popup__entry--active {
background-color: fadeout(@yellow, 0.3);
}
// dictionary
#lmt__dict_container {
[class^="content--"] {
.tag_lemma a,
@@ -901,9 +982,9 @@
color: @accent-Color;
}
}
// quotes
.lmt_quotes_nav_entry {
color: @overlay1;
background-color: @overlay0;
@@ -913,9 +994,9 @@
color: @accent-Color;
background-color: @accent-Color;
}
// footer
.dl_footerV2_container {
[class*="linkList--"] li {
&:not(:first-of-type) a {
@@ -932,9 +1013,9 @@
}
}
}
// fuck it we ball
[class*="bg-[#E1F0F5]"] {
background: fadeout(@accent-Color, 70%);
}
@@ -948,7 +1029,9 @@
#dl_menu_translator_simplified img,
.lmt_quote .lmt_quote__logo,
.lmt_quote__inner::before,
[class^="docTrans__help_popup__container--"] [class^="supportedIcons--"] > div,
[class^="docTrans__help_popup__container--"]
[class^="supportedIcons--"]
> div,
.dl_footerV2_container [class^="brandingContainer--"] a > img,
[class^="socialMediaContainer--"] a > img {
filter: invert(100%) hue-rotate(180deg);