fix checkbox

This commit is contained in:
panda committed 2022-12-13 06:43:02 +00:00
1 parent c1c68caee6
commit 514f5466a5
4 files changed
+6 -7

No files matched your search

@@ -63,6 +63,7 @@ $checkbox-size = 16px
margin-bottom: 0 margin-bottom: 0
line-height: 1.2 line-height: 1.2
padding: ((rem($compact-control-height) - (@line-height * @font-size)) / 2) 0 padding: ((rem($compact-control-height) - (@line-height * @font-size)) / 2) 0
margin: 0 !important
input input
margin: ((@line-height * @font-size - rem($checkbox-size)) / 2) 0 margin: ((@line-height * @font-size - rem($checkbox-size)) / 2) 0
@@ -11,10 +11,9 @@
</div> </div>
<div class="medium-2 columns"> <div class="medium-2 columns">
<label> <label>
{{ _('Highlight') }}
<br> <br>
<label class="checkbox"> <label class="checkbox">
<input type="checkbox" name="highlight" value="on" <input type="checkbox" name="highlight" value="on" class="checkbox"
{%- if ddoc.highlight %} checked{% endif -%} {%- if ddoc.highlight %} checked{% endif -%}
{%- if not handler.user.hasPerm(perm.PERM_HIGHLIGHT_DISCUSSION) %} disabled{% endif -%} {%- if not handler.user.hasPerm(perm.PERM_HIGHLIGHT_DISCUSSION) %} disabled{% endif -%}
>{{ _('Highlight') }} >{{ _('Highlight') }}
@@ -23,10 +22,9 @@
</div> </div>
<div class="medium-2 columns"> <div class="medium-2 columns">
<label> <label>
{{ _('Pin') }}
<br> <br>
<label class="checkbox"> <label class="checkbox">
<input type="checkbox" name="pin" value="on" <input type="checkbox" name="pin" value="on" class="checkbox"
{%- if ddoc.pin %} checked{% endif -%} {%- if ddoc.pin %} checked{% endif -%}
{%- if not handler.user.hasPerm(perm.PERM_PIN_DISCUSSION) %} disabled{% endif -%} {%- if not handler.user.hasPerm(perm.PERM_PIN_DISCUSSION) %} disabled{% endif -%}
>{{ _('Pin') }} >{{ _('Pin') }}
@@ -25,7 +25,7 @@
<label> <label>
<br> <br>
<label class="checkbox"> <label class="checkbox">
<input type="checkbox" name="hidden" value="on"{% if pdoc['hidden'] %} checked{% endif %}>{{ _('Hidden') }} <input type="checkbox" name="hidden" value="on"{% if pdoc['hidden'] %} checked{% endif %} class="checkbox">{{ _('Hidden') }}
</label> </label>
</label> </label>
</div> </div>
@@ -6,7 +6,7 @@
<div class="section__body"> <div class="section__body">
<form method="post"> <form method="post">
<div class="row"> <div class="row">
<div class="medium-5 columns"> <div class="medium-10 columns">
<label> <label>
{{ _('Title') }} {{ _('Title') }}
<input name="title" placeholder="{{ _('title') }}" value="{{ tdoc.title|default('') }}" class="textbox" autofocus> <input name="title" placeholder="{{ _('title') }}" value="{{ tdoc.title|default('') }}" class="textbox" autofocus>
@@ -16,7 +16,7 @@
<label> <label>
<br> <br>
<label class="checkbox"> <label class="checkbox">
<input type="checkbox" name="pin" value="on"{% if tdoc['hidden'] %} checked{% endif %}>{{ _('Pin') }} <input type="checkbox" name="pin" value="on"{% if tdoc['hidden'] %} checked{% endif %} class="checkbox">{{ _('Pin') }}
</label> </label>
</label> </label>
</div> </div>