Display: Fix styles for icons, buttons and forms

pull/6059/merge
Angel Fernando Quiroz Campos 9 months ago
parent f6452e7191
commit fb2cf66e78
No known key found for this signature in database
GPG Key ID: B284841AE3E562CD
  1. 29
      assets/css/scss/atoms/_buttons.scss
  2. 4
      assets/css/scss/molecules/_course_tool.scss
  3. 6
      assets/css/scss/molecules/_empty_state.scss
  4. 2
      assets/css/scss/molecules/_toolbar.scss
  5. 4
      public/main/inc/lib/formvalidator/FormValidator.class.php

@ -1,6 +1,9 @@
.btn { .btn {
@apply cursor-default font-semibold gap-2 inline-flex justify-center px-6 py-2 rounded-md transition flex-none; @apply cursor-default font-semibold gap-2 inline-flex justify-center px-6 py-2 rounded-md transition flex-none text-base;
font-size: 16px;
.mdi {
@apply text-base;
}
&--primary { &--primary {
@apply bg-primary text-white; @apply bg-primary text-white;
@ -231,8 +234,6 @@ $border-color_12: #9333EA;
@include filled-style('primary', 'support-4'); @include filled-style('primary', 'support-4');
@apply cursor-pointer font-semibold gap-2 inline-flex justify-center items-center px-4 py-2 rounded-md transition; @apply cursor-pointer font-semibold gap-2 inline-flex justify-center items-center px-4 py-2 rounded-md transition;
font-size: 16px;
&:focus { &:focus {
@apply outline-none; @apply outline-none;
} }
@ -259,16 +260,28 @@ $border-color_12: #9333EA;
&.p-button-sm { &.p-button-sm {
@apply px-2 py-1; @apply px-2 py-1;
font-size: 13px;
.p-button-icon,
.p-button-label {
font-size: 13px;
}
} }
&.p-button-lg { &.p-button-lg {
@apply px-8 py-4; @apply px-8 py-4;
font-size: 18px;
.p-button-icon,
.p-button-label {
font-size: 18px;
}
}
.p-button-icon {
@apply text-base;
} }
.p-button-label { .p-button-label {
@apply align-middle font-semibold; @apply align-middle font-semibold text-base;
} }
&.p-button-icon-only { &.p-button-icon-only {
@ -289,7 +302,7 @@ $border-color_12: #9333EA;
@apply bg-gray-10; @apply bg-gray-10;
.p-button-label { .p-button-label {
text-decoration: underline; @apply underline;
} }
} }
} }

@ -13,13 +13,9 @@
&__icon { &__icon {
@apply text-transparent bg-clip-text bg-gradient-to-br from-primary to-primary-gradient leading-none; @apply text-transparent bg-clip-text bg-gradient-to-br from-primary to-primary-gradient leading-none;
&,
&.mdi { &.mdi {
font-size: 52px; font-size: 52px;
} }
&::before {
}
} }
&__title { &__title {

@ -7,7 +7,11 @@
} }
&__icon { &__icon {
@apply mb-4 text-9xl text-transparent bg-clip-text bg-gradient-to-br from-primary to-primary-gradient w-32 h-32; @apply mb-4 text-transparent bg-clip-text bg-gradient-to-br from-primary to-primary-gradient w-32 h-32;
&.mdi {
font-size: 8rem;
}
} }
&__summary { &__summary {

@ -3,7 +3,7 @@
&-group-left, &-group-left,
&-group-right { &-group-right {
@apply flex flex-row flex-wrap gap-2; @apply flex flex-row flex-wrap gap-2 items-center;
} }
&-separator { &-separator {

@ -50,10 +50,8 @@ class FormValidator extends HTML_QuickForm
switch ($layout) { switch ($layout) {
case self::LAYOUT_BOX_SEARCH: case self::LAYOUT_BOX_SEARCH:
$attributes['class'] = 'form--search';
break;
case self::LAYOUT_INLINE: case self::LAYOUT_INLINE:
$attributes['class'] = 'flex flex-row gap-3 '; $attributes['class'] = 'flex flex-row gap-3 items-center ';
break; break;
case self::LAYOUT_BOX: case self::LAYOUT_BOX:
$attributes['class'] = 'ch flex gap-1 '; $attributes['class'] = 'ch flex gap-1 ';

Loading…
Cancel
Save