From a9422337a5727700b21e932dfbf9e65c96cf49a0 Mon Sep 17 00:00:00 2001 From: Anna Dabrowska Date: Mon, 28 Feb 2022 20:50:29 +0100 Subject: [PATCH] Lighter font for readonly inputs --- view/date.twig | 4 ++-- view/datetime.twig | 4 ++-- view/email.twig | 4 ++-- view/numberinput.twig | 4 ++-- view/textarea.twig | 4 ++-- view/textinput.twig | 4 ++-- view/time.twig | 4 ++-- 7 files changed, 14 insertions(+), 14 deletions(-) diff --git a/view/date.twig b/view/date.twig index 957738f..eecda74 100644 --- a/view/date.twig +++ b/view/date.twig @@ -13,7 +13,7 @@ id="{{ id }}" name="{{ id }}" value="{{ value }}" - class="input form-input{% if is_readonly%} is-static has-text-grey{% endif %} {{ errors is not empty ? 'is-danger' }}" + class="input form-input{% if is_readonly%} is-static has-text-grey-light{% endif %} {{ errors is not empty ? 'is-danger' }}" data-calendar-type="date" {% if is_readonly%}readonly{% endif %} {% if placeholder is not empty -%} @@ -22,4 +22,4 @@ {{ renderError(errors) }} - \ No newline at end of file + diff --git a/view/datetime.twig b/view/datetime.twig index cfc15c7..4b93975 100644 --- a/view/datetime.twig +++ b/view/datetime.twig @@ -13,7 +13,7 @@ id="{{ id }}" name="{{ id }}" value="{{ value }}" - class="input form-input{% if is_readonly%} is-static has-text-grey{% endif %} {{ errors is not empty ? 'is-danger' }}" + class="input form-input{% if is_readonly%} is-static has-text-grey-light{% endif %} {{ errors is not empty ? 'is-danger' }}" data-calendar-type="datetime" {% if is_readonly%}readonly{% endif %} {% if placeholder is not empty -%} @@ -22,4 +22,4 @@ {{ renderError(errors) }} - \ No newline at end of file + diff --git a/view/email.twig b/view/email.twig index 4dfb448..73a1655 100644 --- a/view/email.twig +++ b/view/email.twig @@ -13,7 +13,7 @@ id="{{ id }}" name="{{ id }}" value="{{ value }}" - class="input form-input{% if is_readonly%} is-static has-text-grey{% endif %} {{ errors is not empty ? 'is-danger' }}" + class="input form-input{% if is_readonly%} is-static has-text-grey-light{% endif %} {{ errors is not empty ? 'is-danger' }}" {% if is_readonly%}readonly{% endif %} {% if placeholder is not empty -%} placeholder="{{ placeholder ~ (is_required and label is empty ? ' *') }}" @@ -21,4 +21,4 @@ {{ renderError(errors) }} - \ No newline at end of file + diff --git a/view/numberinput.twig b/view/numberinput.twig index 0aac537..4df87cf 100644 --- a/view/numberinput.twig +++ b/view/numberinput.twig @@ -13,7 +13,7 @@ id="{{ id }}" name="{{ id }}" value="{{ value }}" - class="input form-input{% if is_readonly%} is-static has-text-grey{% endif %} {{ errors is not empty ? 'is-danger' }}" + class="input form-input{% if is_readonly%} is-static has-text-grey-light{% endif %} {{ errors is not empty ? 'is-danger' }}" {% if is_readonly%}readonly{% endif %} {% if placeholder is not empty -%} placeholder="{{ placeholder ~ (is_required and label is empty ? ' *') }}" @@ -21,4 +21,4 @@ {{ renderError(errors) }} - \ No newline at end of file + diff --git a/view/textarea.twig b/view/textarea.twig index 2843d63..f08df5f 100644 --- a/view/textarea.twig +++ b/view/textarea.twig @@ -13,7 +13,7 @@ name="{{ id }}" {{ cols is defined ? 'cols='~cols }} {{ rows is defined ? 'rows='~rows }} - class="textarea form-input{% if is_readonly%} is-static has-text-grey{% endif %} {{ errors is not empty ? 'is-danger' }}" + class="textarea form-input{% if is_readonly%} is-static has-text-grey-light{% endif %} {{ errors is not empty ? 'is-danger' }}" {% if is_readonly%}readonly{% endif %} {% if placeholder is not empty -%} placeholder="{{ placeholder ~ (is_required and label is empty ? ' *') }}" @@ -24,4 +24,4 @@ {{ renderError(errors) }} - \ No newline at end of file + diff --git a/view/textinput.twig b/view/textinput.twig index 9f1144f..d78585d 100644 --- a/view/textinput.twig +++ b/view/textinput.twig @@ -13,7 +13,7 @@ id="{{ id }}" name="{{ id }}" value="{{ value }}" - class="input form-input{% if is_readonly%} is-static has-text-grey{% endif %} {{ errors is not empty ? 'is-danger' }}" + class="input form-input{% if is_readonly%} is-static has-text-grey-light{% endif %} {{ errors is not empty ? 'is-danger' }}" {% if is_readonly%}readonly{% endif %} {% if placeholder is not empty -%} placeholder="{{ placeholder ~ (is_required and label is empty ? ' *') }}" @@ -21,4 +21,4 @@ {{ renderError(errors) }} - \ No newline at end of file + diff --git a/view/time.twig b/view/time.twig index 9cc38de..d30f358 100644 --- a/view/time.twig +++ b/view/time.twig @@ -13,7 +13,7 @@ id="{{ id }}" name="{{ id }}" value="{{ value }}" - class="input form-input{% if is_readonly%} is-static has-text-grey{% endif %} {{ errors is not empty ? 'is-danger' }}" + class="input form-input{% if is_readonly%} is-static has-text-grey-light{% endif %} {{ errors is not empty ? 'is-danger' }}" data-calendar-type="time" {% if is_readonly%}readonly{% endif %} {% if placeholder is not empty -%} @@ -22,4 +22,4 @@ {{ renderError(errors) }} - \ No newline at end of file +