Display: Fix textarea styles

pull/6032/head
Angel Fernando Quiroz Campos 10 months ago
parent c04c17f138
commit a94122c0f4
No known key found for this signature in database
GPG Key ID: B284841AE3E562CD
  1. 22
      assets/css/app.scss
  2. 3
      assets/css/scss/atoms/_form.scss
  3. 10
      assets/css/scss/atoms/_input_text.scss
  4. 5
      src/CoreBundle/Resources/views/Layout/form-theme.html.twig

@ -520,33 +520,13 @@
} }
form .field { form .field {
.help-text {
color: #666;
font-family: 'Arial', sans-serif;
font-size: 14px;
line-height: 1.6;
background-color: #f8f8f8;
border-left: 4px solid #007bff;
padding: 10px 15px;
margin-bottom: 20px;
border-radius: 5px;
box-shadow: 0 2px 4px rgba(0,0,0,0.1);
max-width: 80%;
display: inline-block;
}
textarea {
width: 100%;
}
.freeze { .freeze {
display: block; display: block;
padding-top: 10px; padding-top: 10px;
} }
.freeze + label, .freeze + label,
.advmultiselect + label, .advmultiselect + label
textarea + label.settings-label
{ {
font-size: 13px; font-size: 13px;
@apply absolute top-0 left-0 text-support-3 text-caption px-1 bg-white text-primary; @apply absolute top-0 left-0 text-support-3 text-caption px-1 bg-white text-primary;

@ -57,7 +57,8 @@
.field { .field {
@apply mb-4; @apply mb-4;
> small { > small,
.help-text {
@apply text-caption text-primary mt-1; @apply text-caption text-primary mt-1;
} }

@ -64,3 +64,13 @@
.p-inputnumber-input { .p-inputnumber-input {
@apply flex-1; @apply flex-1;
} }
.p-inputtextarea {
&-resizable {
@apply overflow-hidden resize-none;
}
.p-fluid & {
@apply w-full;
}
}

@ -40,3 +40,8 @@ vendor/symfony/twig-bridge/Resources/views/Form/tailwind_2_layout.html.twig #}
{%- block checkbox_widget -%} {%- block checkbox_widget -%}
<input type="checkbox" {{ block('widget_attributes') }}{% if value is defined %} value="{{ value }}"{% endif %}{% if checked %} checked="checked"{% endif %} /> <input type="checkbox" {{ block('widget_attributes') }}{% if value is defined %} value="{{ value }}"{% endif %}{% if checked %} checked="checked"{% endif %} />
{%- endblock checkbox_widget -%} {%- endblock checkbox_widget -%}
{%- block textarea_widget -%}
{%- set attr = attr|merge({ class: attr.class|default('p-inputtextarea p-inputtext p-component p-filled') }) -%}
{{- parent() -}}
{%- endblock textarea_widget -%}

Loading…
Cancel
Save