Commit 5fe7a611 authored by Emma's avatar Emma 🦉

more form tweaking

parent 1273f3da
Pipeline #55535680 passed with stages
in 17 minutes and 40 seconds
.form-control {
@height: calc(var(--font-size) * var(--line-height) + 1rem + 2px);
background-color: var(--bg-page); // todo
border: solid 1px var(--border);
color: var(--text);
display: block;
display: inline-block;
min-height: @height;
padding: 0.5rem;
transition: background-color .1s, box-shadow .1s, border-color .1s, color .1s;
input&:not([type]),
&[type="text"],
......@@ -16,7 +20,6 @@
textarea& {
-webkit-appearance: none; // disable ugly shade on iOS
border-radius: 0; // disable rounded corners on iOS
transition: box-shadow 0.1s, border-color 0.1s;
}
input&:not([type]),
......@@ -34,15 +37,12 @@
&[type="date"],
&[type="time"] {
min-height: calc(1rem + var(--font-size) * var(--line-height));
min-width: 5rem; // fix for iOS
}
textarea& {
min-height: calc(1rem + var(--font-size) * var(--line-height));
max-width: 100%;
resize: vertical;
transition: box-shadow 0.1s;
&:not([cols]) {
width: 100%;
......@@ -50,9 +50,13 @@
}
select&:not([multiple]) {
box-sizing: content-box;
height: calc(1rem + var(--font-size) * var(--line-height));
padding: 0 0.5rem;
// dropdown caret doesn't acknowledge min-height
height: @height;
// having vertical padding cuts off the text inside. having height set is
// enough to achieve a padding effect.
padding-top: 0;
padding-bottom: 0;
}
&:invalid {
......
......@@ -35,7 +35,7 @@ final class IpBanType extends AbstractType {
])
->add('expiryDate', DateTimeType::class, [
'date_widget' => 'single_text',
'label' => 'Expires at (YYYY-MM-DD hh:mm)',
'label' => 'label.expires',
'time_widget' => 'single_text',
'required' => false,
])
......
......@@ -136,7 +136,7 @@
{{- label|trans({}, translation_domain) -}}
{%- endif %}
{% if show_required_indicator -%}
<b class="required-indicator" role="presentation" title="{{ 'help.required_field'|trans }}">*</b>
<b class="required-indicator" role="presentation" title="{{ 'help.required_field'|trans }}" aria-label="{{ 'help.required_field'|trans }}">*</b>
{%- endif -%}
</{{ element|default('label') }}>
{%- endif -%}
......@@ -213,7 +213,7 @@
<div class="compound-form-widget">
{{- form_widget(form.first, { attr: attr|merge(form.first.vars.attr) }) -}}
{{- form_widget(form.second, { attr: attr|merge(form.second.vars.attr)|merge({
'placeholder': 'placeholder.repeat'|trans,
'placeholder': 'placeholder.repeat',
'aria-label': form.second.vars.label is defined
? form.second.vars.label|trans
: (form.second.vars.label_format is defined
......
......@@ -11,8 +11,6 @@ add_moderator:
ban_add:
title: Eine IP Adresse sperren
'Expires at (YYYY-MM-DD hh:mm)': Läuft um (YYYY-MM-DD hh:mm) ab
ban_list:
title: Sperrungen
ip: IP Adresse
......
......@@ -27,8 +27,6 @@ add_moderator:
ban_add:
title: Κάντε απαγόρευση μιας διεύθυνσης IP
'Expires at (YYYY-MM-DD hh:mm)': Λήγει σε (EEEE-ΜΜ-ΗΗ ΩΩ:ΛΛ)
ban_list:
title: Απαγορευσεις
ip: Διεύθυνση IP
......
......@@ -3,7 +3,6 @@
This submission is locked: This submission is locked
This submission is pinned: This submission is pinned
'Expires at (YYYY-MM-DD hh:mm)': Expires at (YYYY-MM-DD hh:mm)
action:
mark_as_trusted: Mark user as trusted
......
......@@ -31,8 +31,6 @@ add_moderator:
ban_add:
title: Forbari IP-adreson
'Expires at (YYYY-MM-DD hh:mm)': Finiĝos je (YYYY-MM-DD hh:mm)
ban_list:
title: Forbaroj
ip: IP-adreso
......
......@@ -35,8 +35,6 @@ add_moderator:
ban_add:
title: Veta una dirección IP
'Expires at (YYYY-MM-DD hh:mm)': Expira el (YYYY-MM-DD hh:mm)
ban_list:
title: Vetos
ip: Dirección IP
......
......@@ -12,8 +12,6 @@ add_moderator:
ban_add:
title: Bannaa IP-osoite
'Expires at (YYYY-MM-DD hh:mm)': Päättyy (VVVV-KK-PP hh:mm)
ban_list:
title: Bannit
ip: IP-osoite
......
......@@ -36,8 +36,6 @@ add_moderator:
ban_add:
title: Bannir une adresse IP
'Expires at (YYYY-MM-DD hh:mm)': Expire le (AAAA-MM-JJ hh:mm)
ban_list:
ip: Adresse IP
timestamp: Heure
......
......@@ -11,8 +11,6 @@ add_moderator:
ban_add:
title: Utesteng en IP-adresse
'Expires at (YYYY-MM-DD hh:mm)': Varer til (ÅÅÅÅ-MM-DD tt:mm)
ban_list:
title: Utestengelser
ip: IP-adresse
......
......@@ -11,8 +11,6 @@ add_moderator:
ban_add:
title: Verban een IP-adres
'Expires at (YYYY-MM-DD hh:mm)': Verloopt om (YYYY-MM-DD hh:mm)
ban_list:
title: Verbanningen
ip: IP-adres
......
......@@ -25,8 +25,6 @@ add_moderator:
ban_add:
title: Banir um endereço de IP
'Expires at (YYYY-MM-DD hh:mm)': Expira em (YYYY-MM-DD hh:mm)
ban_list:
title: Banimentos
ip: Endereços de IP
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment