mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
fix checkbox
This commit is contained in:
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
|
||||
line-height: 1.2
|
||||
padding: ((rem($compact-control-height) - (@line-height * @font-size)) / 2) 0
|
||||
margin: 0 !important
|
||||
|
||||
input
|
||||
margin: ((@line-height * @font-size - rem($checkbox-size)) / 2) 0
|
||||
|
||||
@@ -11,10 +11,9 @@
|
||||
</div>
|
||||
<div class="medium-2 columns">
|
||||
<label>
|
||||
{{ _('Highlight') }}
|
||||
<br>
|
||||
<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 not handler.user.hasPerm(perm.PERM_HIGHLIGHT_DISCUSSION) %} disabled{% endif -%}
|
||||
>{{ _('Highlight') }}
|
||||
@@ -23,10 +22,9 @@
|
||||
</div>
|
||||
<div class="medium-2 columns">
|
||||
<label>
|
||||
{{ _('Pin') }}
|
||||
<br>
|
||||
<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 not handler.user.hasPerm(perm.PERM_PIN_DISCUSSION) %} disabled{% endif -%}
|
||||
>{{ _('Pin') }}
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
<label>
|
||||
<br>
|
||||
<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>
|
||||
</div>
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
<div class="section__body">
|
||||
<form method="post">
|
||||
<div class="row">
|
||||
<div class="medium-5 columns">
|
||||
<div class="medium-10 columns">
|
||||
<label>
|
||||
{{ _('Title') }}
|
||||
<input name="title" placeholder="{{ _('title') }}" value="{{ tdoc.title|default('') }}" class="textbox" autofocus>
|
||||
@@ -16,7 +16,7 @@
|
||||
<label>
|
||||
<br>
|
||||
<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>
|
||||
</div>
|
||||
|
||||
Reference in new issue
Block a user