Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
lakejason0 committed Oct 26, 2021
1 parent edf30d0 commit 5b915f1
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 1 deletion.
23 changes: 23 additions & 0 deletions resources/themeDesigner.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
#lakeus-theme-designer {
position: fixed;
left: 32px;
bottom: 32px;
user-select: none;
z-index: 199;
}

#lakeus-theme-designer #lakeus-theme-designer-button {
color: #fff;
background: #fff;
text-align: center;
height: 45px;
width: 45px;
font-size: 20px;
border: 0;
border-radius: 50%;
box-shadow: 0 0 5px grey;
text-shadow: 0 0 2px #4c4c4c;
padding: 0;
margin: 0;
cursor: pointer;
}
10 changes: 9 additions & 1 deletion resources/themeDesigner.js
Original file line number Diff line number Diff line change
@@ -1 +1,9 @@
window.Lakeus = window.Lakeus || {};
window.Lakeus = window.Lakeus || {};

Lakeus.initThemeDesigner = function () {
console.log("[Lakeus] Theme Designer is loading...");
var stylePath = mw.config.get('stylepath');
$('head').append('<link rel="stylesheet" href="' + stylePath + '/Lakeus/resources/themeDesigner.css' + '" type="text/css" />');
$("body").append('<div id="lakeus-theme-designer"><button id="lakeus-theme-designer-modal-button">🖌️</button></div>');
console.log("[Lakeus] Theme Designer is loaded.");
};

0 comments on commit 5b915f1

Please sign in to comment.