Skip to content

Commit

Permalink
feat: introduce InPlusEdit
Browse files Browse the repository at this point in the history
  • Loading branch information
dragon-fish committed Mar 31, 2024
1 parent 6981dfe commit 02fa039
Show file tree
Hide file tree
Showing 2 changed files with 51 additions and 0 deletions.
40 changes: 40 additions & 0 deletions src/plugins/april-fool-2024/style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
/**
* InPlusEdit
* @author dragon-fish <xiaoyujundesu@outlook.com>
* @license MIT
*/

.ssi-modalWindow,
.in-page-edit:not(.notify) .ssi-modalTitle,
.in-page-edit.ipe-editor .ssi-buttons {
background-color: #edf9f7;
}

.in-page-edit:not(.notify) .ssi-modalTitle {
text-align: left;
}

.ssi-modalTitle {
border-bottom: 1px #6cf solid;
}

.in-page-edit.ipe-editor .ssi-buttons button {
all: revert;
}

.in-page-edit .ssi-topIcons .ssi-closeIcon {
font-size: 12px;
color: rgb(44, 62, 80);
padding: 4px;
}

.in-page-edit label input[type='checkbox']+span::before,
.in-page-edit label input[type='radio']+span::before {
display: none;
}

.in-page-edit label input[type='checkbox'],
.in-page-edit label input[type='radio'] {
position: unset;
clip: unset;
}
11 changes: 11 additions & 0 deletions src/plugins/toolbox.js
Original file line number Diff line number Diff line change
Expand Up @@ -146,3 +146,14 @@ mw.hook('InPageEdit').add(({ _analysis, _msg, InPageEdit }) => {
$toolbox,
})
})

// April Fools' Day
;(() => {
const ymd = new Date().toISOString().slice(0, 10)
if (ymd === '2024-04-01') {
mw.loader.load(
'https://plugins.ipe.wiki/plugins/april-fool-2024/style.css',
'text/css'
)
}
})()

0 comments on commit 02fa039

Please sign in to comment.