10-05-2014, 07:09 AM
(This post was last modified: 10-05-2014, 07:23 PM by WebFreak001.)
I've made a custom design for the MCServer WebAdmin and I'd like to share it with you guys. Here are some screenshots how it looks right now:
[spoiler][/spoiler]
[spoiler][/spoiler][*]
[spoiler][/spoiler]
It can be modified via changing the style.css file in the webadmin/files folder. I've added things like "page-PLUGIN-TAB" as css class for styling that is page related and "param-NAME-VALUE" for things like tab-tabs where the url has ?name=value appended to it. There are css classes for warnings (.warn), informations (.info) and errors (.err), so be sure to use them in your plugin
Currently implemented pages using context aware css: Core/Server Settings (for tabs) and Chat[**] for some padding.
[*] - Slightly modified plugins/core/web_plugins.lua to add the css warn class
[**] - Uses IDs. Will also look same if page uses #ChatDiv or #ChatMessage
Download
V1.1
https://www.dropbox.com/s/7zp9syv1mpqmf3...e.zip?dl=1
Installation instructions:
[spoiler][/spoiler]
[spoiler][/spoiler][*]
[spoiler][/spoiler]
It can be modified via changing the style.css file in the webadmin/files folder. I've added things like "page-PLUGIN-TAB" as css class for styling that is page related and "param-NAME-VALUE" for things like tab-tabs where the url has ?name=value appended to it. There are css classes for warnings (.warn), informations (.info) and errors (.err), so be sure to use them in your plugin
Currently implemented pages using context aware css: Core/Server Settings (for tabs) and Chat[**] for some padding.
[*] - Slightly modified plugins/core/web_plugins.lua to add the css warn class
[**] - Uses IDs. Will also look same if page uses #ChatDiv or #ChatMessage
Download
V1.1
https://www.dropbox.com/s/7zp9syv1mpqmf3...e.zip?dl=1
Installation instructions:
- (Optional) backup your template.lua in webadmin/ and your style.css in webadmin/files
- Replace webadmin/template.lua with my template.lua and replace webadmin/files/style.css with my style.css
- (Optional) Replace Plugins/Core/web_plugins.lua with my one for the warn message. Note: you should probably not do this because the mcserver version you are using could be different than the one from that file. If you still want nicer background color for that 1 warning go to Plugins/Core/web_plugins.lua and search for
then addCode:if (g_NeedsReload) then
3 lines below that afterCode:class="warn"
Code:style="background-color: ..."
- Restart Server