From e0999c2efb384fafe19cff51bd952b4e8aab783e Mon Sep 17 00:00:00 2001 From: kalvn Date: Sun, 6 Sep 2020 16:48:05 +0200 Subject: [PATCH] Shows plugin params descriptions. --- material/editlink.html | 4 +++- material/pluginsadmin.html | 1 + src/scss/components/_structure.scss | 22 +++++++++++++++++----- 3 files changed, 21 insertions(+), 6 deletions(-) diff --git a/material/editlink.html b/material/editlink.html index 8b1c7bb..d17d301 100644 --- a/material/editlink.html +++ b/material/editlink.html @@ -14,7 +14,9 @@ {/if} - {if="$http_referer"}{/if} + {if="$http_referer"} + + {/if}
{if="!$link_is_new"}Edit a link{else}Add a new link{/if} diff --git a/material/pluginsadmin.html b/material/pluginsadmin.html index 4c6a265..5d68323 100644 --- a/material/pluginsadmin.html +++ b/material/pluginsadmin.html @@ -86,6 +86,7 @@

{function="str_replace('_', ' ', $key)"}

+ {if="isset($value.desc)"}
{$value.desc}
{/if}
diff --git a/src/scss/components/_structure.scss b/src/scss/components/_structure.scss index 081962d..84ffe8d 100644 --- a/src/scss/components/_structure.scss +++ b/src/scss/components/_structure.scss @@ -79,7 +79,6 @@ line-height: 20px; } - /* Errors */ .errors{ color: #fff; @@ -124,9 +123,22 @@ } /* Plugin administration */ -.plugin-param:focus-within { - .plugin-param-key label { - color: $color-primary; +.plugin-param { + label { + margin-bottom: 0; + line-height: 1.2; + } + + .sublabel { + margin-top: 0; + text-align: left; + line-height: 1.5; + } + + &:focus-within { + .plugin-param-key label { + color: $color-primary; + } } } .plugin-param-key{ @@ -177,4 +189,4 @@ } #button-filter i { margin-right: 3px; -} \ No newline at end of file +}