Skip to content

Commit

Permalink
Shows plugin params descriptions.
Browse files Browse the repository at this point in the history
  • Loading branch information
kalvn committed Sep 6, 2020
1 parent 4520486 commit e0999c2
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 6 deletions.
4 changes: 3 additions & 1 deletion material/editlink.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@
{/if}
<input type="hidden" name="token" value="{$token}">
<input type="hidden" name="source" value="{$source}">
{if="$http_referer"}<input type="hidden" name="returnurl" value="{$http_referer}">{/if}
{if="$http_referer"}
<input type="hidden" name="returnurl" value="{$http_referer}">
{/if}

<div class="card-header">
{if="!$link_is_new"}Edit a link{else}Add a new link{/if}
Expand Down
1 change: 1 addition & 0 deletions material/pluginsadmin.html
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ <h2>{function="str_replace('_', ' ', $key)"}</h2>
<div class="row plugin-param">
<div class="col-sm-4 plugin-param-key">
<label for="{$key}" {if="isset($value.desc)"}title="{$value.desc}"{/if}>{function="str_replace('_', ' ', $key)"}</label>
{if="isset($value.desc)"}<div class="sublabel">{$value.desc}</div>{/if}
</div>
<div class="col-sm-8">
<input type="text" name="{$key}" value="{$value.value}" id="{$key}" {if="isset($value.desc)"}placeholder="{$value.desc}"{/if}>
Expand Down
22 changes: 17 additions & 5 deletions src/scss/components/_structure.scss
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,6 @@
line-height: 20px;
}


/* Errors */
.errors{
color: #fff;
Expand Down Expand Up @@ -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{
Expand Down Expand Up @@ -177,4 +189,4 @@
}
#button-filter i {
margin-right: 3px;
}
}

0 comments on commit e0999c2

Please sign in to comment.