From fd52bc6d20faf0fcde8f9c974deb0ca57b4d9f54 Mon Sep 17 00:00:00 2001 From: Koh Date: Thu, 26 Sep 2024 14:59:23 +0800 Subject: [PATCH] Update 5 files - Adjust fonts (common.css L20-43). - Adjust styles for Poll, Activity Banner, Data Table & Proposal (common.css L255, L455-479, L541-542, L555-565). - Adjust styles for header (moeskin.css). - Remove styles for buttons, inputs & selects (vector.css). - Clean. --- common.css | 64 +++++++++++++++++++++++++++++++++++++++-------------- common.js | 17 -------------- moeskin.css | 13 +++++------ vector.css | 13 +++++------ vector.js | 8 +------ 5 files changed, 60 insertions(+), 55 deletions(-) diff --git a/common.css b/common.css index 54308e9..9dad06d 100644 --- a/common.css +++ b/common.css @@ -1,11 +1,9 @@ -@import url('https://cdn.jsdelivr.net/gh/MoegirlPediaInterfaceAdmins/MoegirlPediaInterfaceCodes@master/src/gadgets/Navigation_popups/MediaWiki:Gadget-popups.css'); - /* NintendoFont */ -@import url("https://mzh.moegirl.org.cn/index.php?title=User:Xzonn/NintendoFont.css&action=raw&ctype=text/css"); +@import url("/index.php?title=User:Xzonn/NintendoFont.css&action=raw&ctype=text/css"); /* MoeSkinPlus - for MoeSkin */ -@import url("https://mzh.moegirl.org.cn/index.php?title=User:鬼影233/moeskinplus.css&action=raw&ctype=text/css"); +@import url("/index.php?title=User:鬼影233/moeskinplus.css&action=raw&ctype=text/css"); /* MoeLatte - for MoeSkin */ -@import url("https://mzh.moegirl.org.cn/index.php?title=User:GuoPC/MoeLatte.css&action=raw&ctype=text/css"); +@import url("/index.php?title=User:GuoPC/MoeLatte.css&action=raw&ctype=text/css"); /* Specific font for certain characters: - Em Dash (2014) @@ -19,12 +17,12 @@ } /* Customized fonts */ -body {font-family: "SHSans Full-Width Punctuation", "IBM Plex Sans", Inter, sans-serif, "Noto Unicode", "Segoe UI Emoji", "Segoe UI Symbol", "Apple Color Emoji", NospzGothicMoe, "Sukima Gothic", "MiSans L3" !important;} +body {font-family: "SHSans Full-Width Punctuation", "IBM Plex Sans", Inter, sans-serif, "Noto Unicode", "Segoe UI Emoji", "Segoe UI Symbol", "Apple Color Emoji", NospzGothicMoe, "MiSans L3" !important;} span[lang="ja"] {font-family: YakuHanJP, "Kozuka Gothic Pro", sans-serif, "Sukima Gothic", "MiSans L3";} span[lang="ko"] {font-family: "Gowun Dodum", HGSGothicM, sans-serif;} span[lang="zh-Hant"], span[lang="zh-TW"] {font-family: "Taipei Sans TC Beta", sans-serif;} span[lang="zh-HK"] {font-family: "Chiron Sans HK Pro VF", sans-serif;} -span[lang="el"], span[lang="ru"] {font-family: "Open Sans", sans-serif;} +span[lang="el"], span[lang="grc"], span[lang="ru"] {font-family: "Open Sans", sans-serif;} html i span[lang="ja"], html span[lang="ja"] i, html [style*="italic"] span[lang="ja"], html span[lang="ja"] [style*="italic"], html span[lang="ja"][style*="italic"] { font-family: YakuHanRP, "Rounded Mplus 1c", sans-serif, NospzGothicMoe, "Sukima Gothic", "MiSans L3" !important; font-size: 1.05em; @@ -34,13 +32,15 @@ html i span[lang="ja"], html span[lang="ja"] i, html [style*="italic"] span[lang sup[class^="markrights"], sup.detailedBlockInfo {font-family: "LXGW WenKai", sans-serif;} #mw-content-text[lang="en"] {font-family: "SHSans Full-Width Punctuation", "IBM Plex Sans", Inter, sans-serif;} .ace_editor, .ace_editor *, pre, code, kbd, samp, tt {font-family: "Sarasa Term SC", monospace !important;} +.bilibili-video-container.exec {font-family: "Pingfang SC", sans-serif, "Noto Unicode", "Segoe UI Emoji", "Segoe UI Symbol", "Apple Color Emoji", NospzGothicMoe, "MiSans L3";} .CtxtMenu_MenuArrow {font-family: inherit !important;} -.diff-context div, .diff-addedline div, .diff-deletedline div, .diffchange, .mw-charinsert-item {font-family: monospace;} +.diff-context div, .diff-addedline div, .diff-deletedline div, .diffchange, .mw-charinsert-item {font-family: monospace, NospzGothicMoe, "MiSans L3";} .diff-lineno, .mw-_addText-preview-loading {font-family: initial;} .disambig-box {font-family: Inter, sans-serif;} .fans-medal-item {font-family: "HarmonyOS Sans SC", sans-serif !important;} .kancolle-nav-title {font-family: serif !important;} .MoeNotification-notice span {font-family: Inter, "LXGW Neo XiHei", sans-serif;} +.mw-_addText-preview-loading {font-family: inherit !important;} .mw-parser-output .chem {font-family: "Cambria Math", serif !important;} .mw-parser-output .ztdh .ztdh-title {font-family: sans-serif !important;} .railway_station_name span[lang="ja-Latn"] {font-family: Inter, sans-serif !important;} @@ -252,6 +252,7 @@ code, fieldset, pre, .ajaxpoll, .ajaxpoll .ajaxpoll-answer-vote, .ajaxpoll .ajaxpoll-answer-vote div, .ajaxpoll .ajaxpoll-hover-revoke, +.ajaxpoll .ajaxpoll-hover-vote, .bilibili-video-container.exec, .errorbox, .infobox, .infoBox, .mmdPreviewer-hoverbox, @@ -436,12 +437,6 @@ table.mw-changeslist-line {background: inherit;} td.mw-changeslist-line-inner {width: 100%;} td.mw-enhanced-rc-nested > p {display: inline-block;} #profile {transition: all .2s ease-out;} -#topicpath { - border: none !important; - background: #FFFA !important; - margin: .6em 0 !important; - box-shadow: 0 -.2em 0 #0002 inset; -} #wikiPreview .annotation {position: relative;} .annotation > .annotation-content {display: none;} .annotation > span:first-child:hover ~ .annotation-content { @@ -457,9 +452,31 @@ td.mw-enhanced-rc-nested > p {display: inline-block;} width: 11em; padding: .6em; } -.ActivityBannerArrow {border-radius: 0 !important;} -.ActivityBannerContainer:hover .ActivityBannerArrow {background-color: #0001 !important;} -.ajaxpoll input {vertical-align: baseline;} +.ActivityBannerArrow { + border-radius: 0 !important; + transition: color ease-in-out .2s !important; +} +.ActivityBannerArrow:hover { + color: #2870E9 !important; + transition: color ease-in-out .2s; +} +.ActivityBannerContainer:hover .ActivityBannerArrow {background-color: inherit !important;} +.ActivityBannerSwitcher > .ActivityBannerHoverable, +.ActivityBannerSwitcherItem {transition: background-color ease-in-out .2s;} +.ActivityBannerSwitcher > .ActivityBannerHoverable:hover { + background-color: #2870E9 !important; + transition: background-color ease-in-out .2s; +} +.ActivityBannerSwitcherItem:hover { + background-color: #E6E6E6 !important; + transition: background-color ease-in-out .2s; +} +.ajaxpoll {display: flow-root;} +.ajaxpoll label { + transition: background ease-in .2s; + padding: .1em .3em; +} +.ajaxpoll .ajaxpoll-hover-vote {color: #FFF;} .common-box, .mw-notification, .navpopup {box-shadow: 0 0 .5rem #0002 !important;} .citation-comment {display: inline !important;} .diff-addedline, .diff-deletedline, .diff-context {vertical-align: middle;} @@ -521,6 +538,8 @@ td.mw-enhanced-rc-nested > p {display: inline-block;} .mw-changeslist p {margin: 0 !important;} .mw-collapsible.wikitable th .infoBox b {font-weight: bold;} .mw-datatable.TablePager {display: table;} +.mw-datatable tr td, +.mw-datatable tr:hover td {transition: background-color .1s ease-in;} .mw-parser-output .fakelink {cursor: not-allowed !important;} .mw-parser-output .fakelink::after { content: ''; @@ -533,6 +552,17 @@ td.mw-enhanced-rc-nested > p {display: inline-block;} clip-path: path('M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM7 11V13H17V11H7Z'); background: #0645AD; } +.mw-parser-output .提案删, .mw-parser-output .prop-del, +.mw-parser-output .prop-delete { + background-color: #FFEDEE !important; + text-decoration: line-through #8B0007 dashed !important; +} +.mw-parser-output .提案增, .mw-parser-output .prop-add { + background-color: #DAFBED !important; + text-decoration: underline #108C57 dashed !important; +} +.mw-parser-output .提案疑, .mw-parser-output .prop-q, +.mw-parser-output .prop-question {background-color: #FFF4AA !important;} .mw-tag-markers {font-size: 90%;} .need-comma a::after {content: none !important;} .need-comma > span::after {content: "、";} diff --git a/common.js b/common.js index 5012d1b..dc97da3 100644 --- a/common.js +++ b/common.js @@ -22,20 +22,6 @@ if ($('.Lyrics-translated > span').attr('lang') == 'zh') { } $('.Lyrics-column-zh > span').removeAttr('lang'); -// Decode free links -if ($('a.free').length > 0) { - $('a.free').each(function() { - var text = $(this).text(); - var decodedText = decodeURIComponent(text); - if (decodedText == text) { - return; - } else { - $(this).addClass('decoded'); - $(this).text(decodedText); - } - }); -} - // Popups小工具 window.popupStructure = 'menus'; window.popupShortcutKeys = true; @@ -89,9 +75,6 @@ mw.loader.load('/index.php?title=User:星海子/js/Wordcount.js&action=raw&ctype // BgInfo mw.loader.load('/index.php?title=User:GuoPC/js/BgInfo.js&action=raw&ctype=text/javascript'); -// MouseRippleToggle -mw.loader.load('/index.php?title=User:GuoPC/js/MouseRippleToggle.js&action=raw&ctype=text/javascript'); - // TSIndicator mw.loader.load('/index.php?title=User:GuoPC/js/TSIndicator.js&action=raw&ctype=text/javascript'); diff --git a/moeskin.css b/moeskin.css index cebf7df..58e9d54 100644 --- a/moeskin.css +++ b/moeskin.css @@ -12,11 +12,7 @@ .catlinks#catlinks > div > ul#not-listed-articles-list > li:hover a {color: var(--color);} /* Header */ -#moe-full-container #moe-global-header, #moe-user-dropdown-body, .sidenav-inner { - backdrop-filter: blur(3px); - background: #FFFD; -} -#moe-user-dropdown {padding: 1px;} +#moe-user-dropdown {padding: 2px;} .user-contrib-stats {background: transparent !important;} .n-tab-pane.sitenotice #moeskin-sitenotice ul.scrollDiv li {font-size: .9em;} .n-tab-pane.sitenotice #moeskin-sitenotice ul { @@ -109,6 +105,7 @@ body.skin-moeskin #moe-custom-sidenav-block-list > li#wphl-settings a {color: #4 #mobile-page-actions .purgecache.n-button { background: var(--theme-button-color) !important; color: var(--theme-accent-link-color) !important; + --n-border-radius: 0.5rem !important; } #mobile-page-actions .purgecache.n-button::before { content: ''; @@ -151,7 +148,7 @@ body {overflow: initial !important;} body div.fc-ab-root {display: none !important;} /* Other */ -body {background: #F7FAFD;} +/* body {background: #F7FAFD;} */ body.heimu_toggle_on span.heimu a, body.heimu_toggle_on a span.heimu, span.heimu:hover a, @@ -160,7 +157,9 @@ kbd, kbd:active {all: revert !important;} /* article div[data-v-app], .adsbyezoic, .google-auto-placed, #ezcnxplayer, */ .desktop-only .n-badge, .mobile-only .n-badge, .namespaces-links-list > li:empty, -#moe-global-background, #moe-open-in-app {display: none;} +.user-avatar-container .avatar-frame, +.user-avatar-wrapper .avatar-frame, +#moe-open-in-app {display: none;} /* .adsbygoogle, .moe-card[style*="relative"] {display: none !important;} */ .keyboard-key {vertical-align: initial;} .navbox {border-collapse: separate;} diff --git a/vector.css b/vector.css index 0c87c2c..f65a81f 100644 --- a/vector.css +++ b/vector.css @@ -26,13 +26,6 @@ h1, h2, h3, h4, h5, h6 {color: #222;} h1, h2 {border-image: linear-gradient(to right, #EB8097, #E88849, #BF9D24, #7CAE58, #25B49A) 1;} .mw-body-content h2 {padding-top: .1em;} -/* Customized buttons, inputs & selects */ -button, input, select { - border: 1px solid #DDD; - border-radius: 2px; - transition: border .3s; -} - /* Customized personal label */ #p-personal { display: flex; @@ -120,4 +113,10 @@ body.ns-2 div#catlinks:has(ul) { border: #F7AD64 1px solid; } span.popup_contribs > a.popupNavLink {display: block;} +#topicpath { + border: none !important; + background: #FFFA !important; + margin: .6em 0 !important; + box-shadow: 0 -.2em 0 #0002 inset; +} .mw-body {border: none !important;} \ No newline at end of file diff --git a/vector.js b/vector.js index fa3c108..9f86f37 100644 --- a/vector.js +++ b/vector.js @@ -90,11 +90,5 @@ mw.loader.load('/index.php?title=User:Leranjun/js/RedirectContribsToggle.js&acti // RefToggle mw.loader.load('/index.php?title=User:Leranjun/js/RefToggle.js&action=raw&ctype=text/javascript'); -// AccesskeyVec -mw.loader.load('/index.php?title=User:GuoPC/js/AccesskeyVec.js&action=raw&ctype=text/javascript'); - // ExtBoardInPortal -mw.loader.load('/index.php?title=User:GuoPC/js/ExtBoardInPortal.js&action=raw&ctype=text/javascript'); - -// MakeItGray -mw.loader.load('/index.php?title=User:GuoPC/js/MakeItGray.js&action=raw&ctype=text/javascript'); \ No newline at end of file +mw.loader.load('/index.php?title=User:GuoPC/js/ExtBoardInPortal.js&action=raw&ctype=text/javascript'); \ No newline at end of file