From be0404d884c69f28d83d4d5c07e6c50fdd286635 Mon Sep 17 00:00:00 2001 From: ArthurHoaro Date: Fri, 14 Oct 2016 14:22:54 +0200 Subject: [PATCH] Responsive plugin administration page --- tpl/default/css/shaarli.css | 17 ++++++ tpl/default/pluginsadmin.html | 110 ++++++++++++++++++++++------------ 2 files changed, 89 insertions(+), 38 deletions(-) diff --git a/tpl/default/css/shaarli.css b/tpl/default/css/shaarli.css index f57c0bb0..0719ccf7 100644 --- a/tpl/default/css/shaarli.css +++ b/tpl/default/css/shaarli.css @@ -948,4 +948,21 @@ pre { */ .tools-item { margin: 10px 0; +} + +/** + * PLUGIN ADMIN + */ +#pluginform .mobile-row { + font-size: 0.9em; +} + +@media screen and (max-width: 64em) { + #pluginform .main-row, #pluginform .main-row td { + border-bottom-style: none; + } + + #pluginform .mobile-row, #pluginform .mobile-row td { + border-top-style: none; + } } \ No newline at end of file diff --git a/tpl/default/pluginsadmin.html b/tpl/default/pluginsadmin.html index 189c103b..ec0728bd 100644 --- a/tpl/default/pluginsadmin.html +++ b/tpl/default/pluginsadmin.html @@ -31,35 +31,48 @@ {else} - - - - - - + + + + + + - {loop="$enabledPlugins"} - - - - - - - {/loop} + {loop="$enabledPlugins"} + + + + + + + + + + {/loop} + + + + + + + +
{'Disable'|t}{'Order'|t}{'Name'|t}{'Description'|t}
{'Disable'|t}{'Name'|t}
{'Description'|t}
{'Order'|t}
- {if="count($enabledPlugins)>1"} - - ▲ - - - ▼ - - {/if} - -
+ +
+ {if="count($enabledPlugins)>1"} + + ▲ + + + ▼ + + {/if} + +
{'Disable'|t}{'Name'|t}
{'Description'|t}
{'Order'|t}
{/if} @@ -73,18 +86,36 @@

{'No plugin disabled.'|t}

{else} - - - - - - {loop="$disabledPlugins"} - - - - - - {/loop} + + + + + + + + + {loop="$disabledPlugins"} + + + + + + + + + {/loop} + + + + + + + +
{'Enable'|t}{'Name'|t}{'Description'|t}
{'Enable'|t}{'Name'|t}
{'Description'|t}
+ +
+ +
{'Enable'|t}{'Name'|t}
{'Description'|t}
{/if} @@ -118,6 +149,9 @@
-- 2.41.0