Skip to content
This repository has been archived by the owner on Jan 13, 2025. It is now read-only.

Commit

Permalink
Improve: Dark mode style on project portal
Browse files Browse the repository at this point in the history
  • Loading branch information
AnYiEE committed Feb 17, 2023
1 parent 609a5f5 commit 16ec3ba
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions static/wikimirror.css
Original file line number Diff line number Diff line change
Expand Up @@ -396,6 +396,10 @@ pre, .mw-code, .mw-highlight, .ve-init-mw-desktopArticleTarget .CodeMirror-code,
.anyi-darkmode .phui-theme-blue .phabricator-main-menu-background {
background: #ffffff;
}
/* project portal */
.anyi-darkmode body[id*="www"] [data-el-section="other projects"] .other-project-icon {
filter: invert(0.95) hue-rotate(0.5turn);
}
/* stream */
.anyi-darkmode #eventstreams-ui-app .nav-bar {
background-color: #ffffff;
Expand Down
2 changes: 1 addition & 1 deletion static/wikimirror.js
Original file line number Diff line number Diff line change
Expand Up @@ -689,7 +689,7 @@ AnYiMirrorPrivateMain = (time = 0) => {
return new Promise(resolve => {
const isBanSite = /developer|techblog/.test(location.host);
!isBanSite && AnYiMirrorPrivateMethod.darkMode('check') && (document.documentElement.style.filter = 'invert(.95) hue-rotate(.5turn)');
AnYiMirrorPrivateMethod.setCss('/wikimirror.css?date=20230214', 'url').then(() => console.log('AnYiMirror basic stylesheet load succeeded.')).catch(() => console.log('AnYiMirror basic stylesheet load failed.'));
AnYiMirrorPrivateMethod.setCss('/wikimirror.css?date=20230217', 'url').then(() => console.log('AnYiMirror basic stylesheet load succeeded.')).catch(() => console.log('AnYiMirror basic stylesheet load failed.'));
const dc = () => {
const buttonDom = document.getElementById('wpSave'),
doClick = () => {
Expand Down

0 comments on commit 16ec3ba

Please sign in to comment.