Skip to content

Commit

Permalink
Update 5 files
Browse files Browse the repository at this point in the history
- 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.
  • Loading branch information
GuoPCinGitHub committed Sep 26, 2024
1 parent b209e08 commit fd52bc6
Show file tree
Hide file tree
Showing 5 changed files with 60 additions and 55 deletions.
64 changes: 47 additions & 17 deletions common.css
Original file line number Diff line number Diff line change
@@ -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)
Expand All @@ -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;
Expand All @@ -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;}
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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 {
Expand All @@ -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;}
Expand Down Expand Up @@ -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: '';
Expand All @@ -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: "、";}
Expand Down
17 changes: 0 additions & 17 deletions common.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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');

Expand Down
13 changes: 6 additions & 7 deletions moeskin.css
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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: '';
Expand Down Expand Up @@ -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,
Expand All @@ -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;}
Expand Down
13 changes: 6 additions & 7 deletions vector.css
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;}
8 changes: 1 addition & 7 deletions vector.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
mw.loader.load('/index.php?title=User:GuoPC/js/ExtBoardInPortal.js&action=raw&ctype=text/javascript');

0 comments on commit fd52bc6

Please sign in to comment.