refactor(tree-wide): misc improvements (#1547)

This commit is contained in:
uncenter authored and GitHub committed 2024-12-31 17:52:08 -05:00
1 parent 3e6ecfbf86
commit 6121f23d7c
126 files changed
+8047 -8021

No files matched your search

+138 -139
View File
@@ -16,39 +16,48 @@
==/UserStyle== */
@-moz-document domain("picrew.me") {
#catppuccin(@lookup, @accent) {
@rosewater: @catppuccin[@@lookup][@rosewater];
@flamingo: @catppuccin[@@lookup][@flamingo];
@pink: @catppuccin[@@lookup][@pink];
@mauve: @catppuccin[@@lookup][@mauve];
@red: @catppuccin[@@lookup][@red];
@maroon: @catppuccin[@@lookup][@maroon];
@peach: @catppuccin[@@lookup][@peach];
@yellow: @catppuccin[@@lookup][@yellow];
@green: @catppuccin[@@lookup][@green];
@teal: @catppuccin[@@lookup][@teal];
@sky: @catppuccin[@@lookup][@sky];
@sapphire: @catppuccin[@@lookup][@sapphire];
@blue: @catppuccin[@@lookup][@blue];
@lavender: @catppuccin[@@lookup][@lavender];
@text: @catppuccin[@@lookup][@text];
@subtext1: @catppuccin[@@lookup][@subtext1];
@subtext0: @catppuccin[@@lookup][@subtext0];
@overlay2: @catppuccin[@@lookup][@overlay2];
@overlay1: @catppuccin[@@lookup][@overlay1];
@overlay0: @catppuccin[@@lookup][@overlay0];
@surface2: @catppuccin[@@lookup][@surface2];
@surface1: @catppuccin[@@lookup][@surface1];
@surface0: @catppuccin[@@lookup][@surface0];
@base: @catppuccin[@@lookup][@base];
@mantle: @catppuccin[@@lookup][@mantle];
@crust: @catppuccin[@@lookup][@crust];
@accent-color: @catppuccin[@@lookup][@@accent];
:root {
@media (prefers-color-scheme: light) {
#catppuccin(@lightFlavor);
}
@media (prefers-color-scheme: dark) {
#catppuccin(@darkFlavor);
}
}
color-scheme: if(@lookup = latte, light, dark);
#catppuccin(@flavor) {
@rosewater: @catppuccin[@@flavor][@rosewater];
@flamingo: @catppuccin[@@flavor][@flamingo];
@pink: @catppuccin[@@flavor][@pink];
@mauve: @catppuccin[@@flavor][@mauve];
@red: @catppuccin[@@flavor][@red];
@maroon: @catppuccin[@@flavor][@maroon];
@peach: @catppuccin[@@flavor][@peach];
@yellow: @catppuccin[@@flavor][@yellow];
@green: @catppuccin[@@flavor][@green];
@teal: @catppuccin[@@flavor][@teal];
@sky: @catppuccin[@@flavor][@sky];
@sapphire: @catppuccin[@@flavor][@sapphire];
@blue: @catppuccin[@@flavor][@blue];
@lavender: @catppuccin[@@flavor][@lavender];
@text: @catppuccin[@@flavor][@text];
@subtext1: @catppuccin[@@flavor][@subtext1];
@subtext0: @catppuccin[@@flavor][@subtext0];
@overlay2: @catppuccin[@@flavor][@overlay2];
@overlay1: @catppuccin[@@flavor][@overlay1];
@overlay0: @catppuccin[@@flavor][@overlay0];
@surface2: @catppuccin[@@flavor][@surface2];
@surface1: @catppuccin[@@flavor][@surface1];
@surface0: @catppuccin[@@flavor][@surface0];
@base: @catppuccin[@@flavor][@base];
@mantle: @catppuccin[@@flavor][@mantle];
@crust: @catppuccin[@@flavor][@crust];
@accent: @catppuccin[@@flavor][@@accentColor];
color-scheme: if(@flavor = latte, light, dark);
::selection {
background-color: fade(@accent-color, 30%);
background-color: fade(@accent, 30%);
}
input,
@@ -119,7 +128,7 @@
background: @overlay1 !important;
&.is-active {
background: @accent-color !important;
background: @accent !important;
}
}
#home {
@@ -132,7 +141,7 @@
}
.sp_title a,
.page-info a {
color: @accent-color !important;
color: @accent !important;
}
.rankA::before {
color: @text !important;
@@ -146,7 +155,7 @@
background: @mantle !important;
.sitetop-appDL_Header .sitetop-appDL_Title .fa {
color: @accent-color !important;
color: @accent !important;
}
}
/* "Featured Tags" section - directly above Discovery */
@@ -154,14 +163,14 @@
background: @mantle !important;
.sitetop-tags_Header .sitetop-tags_Title .fa {
color: @accent-color !important;
color: @accent !important;
}
.recommended-tag-list .recommended-tag-list-item a {
border-color: @accent-color !important;
border-color: @accent !important;
/* tag icon before tag name */
&::before {
color: @accent-color !important;
color: @accent !important;
}
}
}
@@ -171,16 +180,16 @@
.sitetop-Discovery_Header {
.sitetop-Discovery_Title .fa {
color: @accent-color !important;
color: @accent !important;
}
.sitetop-DiscoveryList_More a {
background-color: @accent-color !important;
background-color: @accent !important;
color: @base !important;
}
.sitetop-Discovery_More {
color: @accent-color !important;
color: @accent !important;
}
}
}
@@ -189,7 +198,7 @@
}
/* "Hot Now" section (image is a graph) */
.sitetop-Hot_Title .fa {
color: @accent-color !important;
color: @accent !important;
}
.sitetop-Hot_CountrySwitch {
background-color: @base !important;
@@ -199,12 +208,12 @@
}
.sitetop-Hot_CountrySwitch_all span::after {
color: @accent-color !important;
color: @accent !important;
}
input:last-of-type + label span {
filter: brightness(-20%) !important;
color: @accent-color !important;
color: @accent !important;
}
}
/* "Updated Image Makers (image (.fa) is bullhorn) */
@@ -212,7 +221,7 @@
background: @mantle !important;
}
.sitetop-ImagemakerList_Title .fa {
color: @accent-color !important;
color: @accent !important;
}
.c_btn {
background: @surface1 !important;
@@ -225,7 +234,7 @@
border-color: @surface2 !important;
}
&:focus {
box-shadow: 0 0 0 1px @accent-color !important;
box-shadow: 0 0 0 1px @accent !important;
}
}
.sitetop-info {
@@ -255,12 +264,12 @@
color: @text !important;
}
.st-Terms {
border-color: @accent-color !important;
border-color: @accent !important;
border-radius: 2px !important;
}
.st-Terms_Wrapper .st-Terms a,
.st-Terms_Wrapper .st-Terms .st-Terms_Body strong {
color: @accent-color !important;
color: @accent !important;
}
.c_select select {
background: @mantle !important;
@@ -289,17 +298,17 @@
}
.popup {
background-color: @base !important;
border-color: @accent-color !important;
border-color: @accent !important;
}
.popup-header {
background-color: @mantle !important;
}
.popup-body .content a {
color: @accent-color !important;
color: @accent !important;
}
.bellicon {
color: @accent-color !important;
border-color: @accent-color !important;
color: @accent !important;
border-color: @accent !important;
}
.close-btn {
border-color: @overlay0 !important;
@@ -341,10 +350,10 @@
.login-container {
.login-form-container {
.c_text_right a {
color: @accent-color !important;
color: @accent !important;
}
.login-form input:focus {
box-shadow: 0 0 0 1px @accent-color !important;
box-shadow: 0 0 0 1px @accent !important;
}
}
hr.sw_hr01 {
@@ -369,7 +378,7 @@
background: @base !important;
.search-Form_Keyword .search-Form_KeywordInput:focus {
box-shadow: 0 0 0 1px @accent-color !important;
box-shadow: 0 0 0 1px @accent !important;
}
}
.search-Form_Keyword {
@@ -427,7 +436,7 @@
background-color: @base !important;
.radioBox_label::before {
background: @accent-color !important;
background: @accent !important;
}
.radioBox_label::after {
border-color: @overlay1 !important;
@@ -447,7 +456,7 @@
background: @base !important;
}
.c_pagination_num.is_current span {
background: @accent-color !important;
background: @accent !important;
color: @base !important;
}
/* creator registration page */
@@ -455,7 +464,7 @@
.email-register-container
.email-register-form
input:not([type="checkbox"], [type="radio"]):focus {
box-shadow: 0 0 0 1px @accent-color !important;
box-shadow: 0 0 0 1px @accent !important;
}
.creator-content
.email-register-container
@@ -509,16 +518,16 @@
.creator-content {
.success {
background: @surface0 !important;
border-color: @accent-color !important;
border-color: @accent !important;
&::after {
border-left-color: @accent-color !important;
border-bottom-color: @accent-color !important;
border-left-color: @accent !important;
border-bottom-color: @accent !important;
}
}
/* "Terms of Use" and "Privacy Policy" links */
.email-register-container .email-register-form fieldset a {
color: @accent-color !important;
color: @accent !important;
}
}
/* creator page */
@@ -581,7 +590,7 @@
border-top-color: @surface2 !important;
}
.small > a {
color: @accent-color !important;
color: @accent !important;
}
/* "Creator Informations" pages (creator/info page) */
.card-header {
@@ -632,7 +641,7 @@
color: @text !important;
&:focus {
border-color: @accent-color !important;
border-color: @accent !important;
}
}
.tc_canvas-square,
@@ -641,8 +650,8 @@
}
/* image maker "type" (creator) */
.tc_imagemaker_register_type li :checked + label {
border-color: @accent-color !important;
box-shadow: 0 0 0 2px @accent-color !important;
border-color: @accent !important;
box-shadow: 0 0 0 2px @accent !important;
color: @surface1 !important;
}
.tc_imagemaker_register_type
@@ -650,8 +659,8 @@
:checked
+ label
.tc_imagemaker_register_type_name {
background-color: @accent-color !important;
border-bottom-color: @accent-color !important;
background-color: @accent !important;
border-bottom-color: @accent !important;
color: @surface1 !important;
}
.tc_imagemaker_register_type li label {
@@ -678,8 +687,8 @@
}
.btn-primary,
.btn-primary:hover {
background-color: @accent-color !important;
border-color: @accent-color !important;
background-color: @accent !important;
border-color: @accent !important;
color: @surface1 !important;
}
/* image maker list (creator) */
@@ -713,7 +722,7 @@
}
}
.btn-info:focus {
box-shadow: 0 0 0 0.1rem @accent-color !important;
box-shadow: 0 0 0 0.1rem @accent !important;
}
.badge-default,
.tc_badge_default {
@@ -728,12 +737,12 @@
color: @text !important;
}
.btn-warning {
background-color: @accent-color !important;
border-color: @accent-color !important;
background-color: @accent !important;
border-color: @accent !important;
color: @base !important;
&:focus {
box-shadow: 0 0 0 0.1rem @accent-color !important;
box-shadow: 0 0 0 0.1rem @accent !important;
}
}
.tc_im_parts_eye .tc_im_parts_eye_icon {
@@ -769,7 +778,7 @@
color: @subtext0 !important;
}
.tc_c_textmenu li a {
color: @accent-color !important;
color: @accent !important;
}
.btn:disabled,
.btn:disabled:hover {
@@ -791,10 +800,10 @@
/* "bulk upload" (creator) */
.tc_bulkupload_type_select .tc_bulkupload_type_tab label {
background-color: @surface0 !important;
border-color: @accent-color !important;
border-color: @accent !important;
}
.tc_bulkupload_color_select li input[type="radio"]:checked + label {
box-shadow: inset 0 0 0 2px @accent-color;
box-shadow: inset 0 0 0 2px @accent;
}
.tc_color_chip,
.tc_bulkupload_option h4 {
@@ -815,16 +824,16 @@
color: @subtext1 !important;
}
.tc_radio_switch label:first-child input[type="radio"] + span {
background-color: @accent-color !important;
background-color: @accent !important;
color: @base !important;
&::before {
box-shadow: inset 0 0 0 1px @accent-color, -2px 0 1px @crust !important;
box-shadow: inset 0 0 0 1px @accent, -2px 0 1px @crust !important;
}
}
/* image maker "rules" (creator) */
.text-info {
color: @accent-color !important;
color: @accent !important;
}
/* image maker "color palette" (creator) */
.tc_colorgp_detail_parts_deselect li {
@@ -871,8 +880,8 @@
color: @text !important;
}
.page-item.active .page-link {
background: @accent-color !important;
border-color: @accent-color !important;
background: @accent !important;
border-color: @accent !important;
color: @surface0 !important;
}
.tc_items_itemlist.is_style_detail
@@ -910,8 +919,8 @@
border-color: @subtext0 !important;
}
input[type="radio"]:checked + .tc_radio_label {
border-color: @accent-color !important;
color: @accent-color !important;
border-color: @accent !important;
color: @accent !important;
}
}
/* image maker publication (creator) */
@@ -925,7 +934,7 @@
color: @red !important;
}
.text-navy {
color: @accent-color !important;
color: @accent !important;
}
/* discovery page */
.discovery_header .discovery_description {
@@ -958,16 +967,16 @@
}
/* "play" button (outer image maker) */
.imagemaker_info_btn_start {
background: @accent-color !important;
border-color: @accent-color !important;
box-shadow: 0 4px 0 @accent-color !important;
background: @accent !important;
border-color: @accent !important;
box-shadow: 0 4px 0 @accent !important;
color: @base !important;
}
.imagemaker_info_creator a {
color: @accent-color !important;
color: @accent !important;
}
.imagemaker_info_description a {
color: @accent-color !important;
color: @accent !important;
}
/* tags (outer image maker) */
.imagemaker_info_use_range li.is_can > div {
@@ -986,11 +995,11 @@
}
/* tag icon (outer image maker) */
.imagemaker_info_use_range li.is_can > div::before {
color: @accent-color !important;
color: @accent !important;
}
}
.is_info_show .imagemaker_info_show_btn {
background: @accent-color !important;
background: @accent !important;
color: @overlay0 !important;
}
/* outer bookmark button (outer image maker) */
@@ -1020,25 +1029,25 @@
background-color: @surface0 !important;
&::before {
box-shadow: inset 0 -5px 0 -1px @accent-color !important;
box-shadow: inset 0 -5px 0 -1px @accent !important;
}
}
li.selected::after {
box-shadow: inset 0 0 0 3px @accent-color !important;
box-shadow: inset 0 0 0 3px @accent !important;
}
/* switch to outer image maker (inner image maker) */
.imagemaker_info_show_btn {
background-color: @accent-color !important;
border-color: @accent-color !important;
background-color: @accent !important;
border-color: @accent !important;
color: @overlay0 !important;
}
/* bookmark button (inner image maker) */
.play-Imagemaker .bookmark {
background-color: @accent-color !important;
border-color: @accent-color !important;
background-color: @accent !important;
border-color: @accent !important;
}
.imagemaker_ctrl_btns .btn_show_itemlist.selected {
background-color: @accent-color !important;
background-color: @accent !important;
color: @overlay0 !important;
}
/* move image element (background) (inner image maker) */
@@ -1049,7 +1058,7 @@
.ctrlbtn-rotate_left,
.ctrlbtn-rotate_right {
background: @surface0 !important;
color: @accent-color !important;
color: @accent !important;
}
/* move image element (buttons) (inner image maker) */
.control_position_wrapper .ctrlbtn_position_inner::before,
@@ -1060,7 +1069,7 @@
.ctrlbtn-move_down,
.ctrlbtn-move_right,
.ctrlbtn-move_left {
color: @accent-color !important;
color: @accent !important;
}
.imagemaker_controller_reset,
.imagemaker_controller_reset:hover {
@@ -1070,7 +1079,7 @@
/* "Done" button (inner image maker) */
.imagemaker_complete_btn,
.imagemaker_complete_btn:hover {
background: @accent-color !important;
background: @accent !important;
color: @surface0 !important;
}
/* load screen after clicking "Done" (image complete) */
@@ -1084,9 +1093,9 @@
/* download button (image complete) */
.complete-Download_Btn,
.complete-Download_Btn:hover {
background: @accent-color !important;
border-color: @accent-color !important;
box-shadow: 0 4px 0 @accent-color !important;
background: @accent !important;
border-color: @accent !important;
box-shadow: 0 4px 0 @accent !important;
color: @surface1 !important;
}
/* "add to bookmarks" area (image complete) */
@@ -1139,17 +1148,17 @@
/* "Search by tag" (image complete) */
.st-Related_Tags .st-Related_Tag a {
background: @surface0 !important;
border-color: @accent-color !important;
border-color: @accent !important;
color: @text !important;
}
/* "Copied to clipboard" popup (image complete) */
.toasted.sw-Toast.bubble {
background-color: @accent-color !important;
background-color: @accent !important;
color: @surface0 !important;
}
/* fix for bookmark icon (bookmarks page) */
.bookmark-inner h2 .fa {
color: @accent-color !important;
color: @accent !important;
}
/* support.picrew.me page */
.site-branding {
@@ -1170,7 +1179,7 @@
color: @text !important;
}
.bogo-language-name a {
color: @accent-color !important;
color: @accent !important;
}
.main-navigation {
background-color: @mantle !important;
@@ -1181,16 +1190,16 @@
}
a:hover,
ul > :hover > a {
color: @accent-color !important;
color: @accent !important;
}
/* "what is picrew?" page (support) */
li.current_page_item > a::before,
li.current-menu-item > a::before {
border-bottom-color: @accent-color !important;
border-bottom-color: @accent !important;
}
.nav-menu > li > a::after,
.menu > li > a::after {
color: @accent-color !important;
color: @accent !important;
}
}
.picrew_front-page-content-area.content-area
@@ -1199,19 +1208,19 @@
background-color: @mantle !important;
}
.widget_linkblock {
border-color: @accent-color !important;
box-shadow: 0 0 0 0 @accent-color inset !important;
border-color: @accent !important;
box-shadow: 0 0 0 0 @accent inset !important;
color: @text !important;
.widget_linkblock_title {
color: @accent-color !important;
color: @accent !important;
}
.widget_linkblock_text {
color: @subtext1 !important;
}
&:hover {
border-color: @accent-color !important;
box-shadow: 0 0 0 4px @accent-color inset !important;
border-color: @accent !important;
box-shadow: 0 0 0 4px @accent inset !important;
color: @text !important;
}
}
@@ -1234,7 +1243,7 @@
}
.widget-title,
a:hover {
color: @accent-color !important;
color: @accent !important;
}
}
/* aaaaaaaaaaaaaa */
@@ -1244,7 +1253,7 @@
color: @text !important;
&:focus {
border-color: @accent-color !important;
border-color: @accent !important;
}
}
#searchsubmit > button,
@@ -1271,12 +1280,12 @@
color: @text !important;
&::after {
background: @accent-color !important;
background: @accent !important;
}
}
.entry-content h2 {
background: @surface0 !important;
border-bottom-color: @accent-color !important;
border-bottom-color: @accent !important;
color: @text !important;
}
.content-wrapper.full-width .hentry::after {
@@ -1288,7 +1297,7 @@
border-color: @surface2 !important;
a {
color: @accent-color !important;
color: @accent !important;
}
p.toc_title {
color: @text !important;
@@ -1301,7 +1310,7 @@
}
h3 {
border-bottom-color: @surface2 !important;
border-left-color: @accent-color !important;
border-left-color: @accent !important;
color: @text !important;
}
h4 {
@@ -1309,7 +1318,7 @@
}
h4::before,
a {
color: @accent-color !important;
color: @accent !important;
}
}
/* "Create your image maker" page (support) */
@@ -1320,7 +1329,7 @@
border-top-color: @overlay2 !important;
> a {
color: @accent-color !important;
color: @accent !important;
}
}
/* "list of creator functions" page (support) */
@@ -1332,7 +1341,7 @@
}
.blog {
.entry-title a {
color: @accent-color !important;
color: @accent !important;
}
.entry-body {
color: @subtext1 !important;
@@ -1340,17 +1349,17 @@
}
.wp-pagenavi {
span.current {
background: @accent-color !important;
border-color: @accent-color !important;
background: @accent !important;
border-color: @accent !important;
color: @surface1 !important;
}
a {
background-color: @base !important;
border-color: @accent-color !important;
border-color: @accent !important;
color: @text !important;
&:hover {
background-color: @accent-color !important;
background-color: @accent !important;
color: @surface1 !important;
}
}
@@ -1361,23 +1370,13 @@
color: @text !important;
}
.entry-title a {
color: @accent-color !important;
color: @accent !important;
}
.entry-body {
color: @text !important;
}
}
}
@media (prefers-color-scheme: light) {
:root {
#catppuccin(@lightFlavor, @accentColor);
}
}
@media (prefers-color-scheme: dark) {
:root {
#catppuccin(@darkFlavor, @accentColor);
}
}
}
/* deno-fmt-ignore */