Display: Fix styles for messages

pull/5672/head
Angel Fernando Quiroz Campos 1 year ago
parent 25ea0fc037
commit 5335ca1d3b
No known key found for this signature in database
GPG Key ID: B284841AE3E562CD
  1. 61
      assets/css/scss/atoms/_messages.scss

@ -2,22 +2,65 @@
@apply mb-4 shadow-sm rounded-md border-0;
&-wrapper {
@apply gap-3.5 py-3 px-4;
@apply flex items-center; // gap-3.5;
}
&-close {
@apply rounded-full transition duration-200 min-w-[1rem] min-h-[1rem];
& &-wrapper {
@apply py-3 px-4;
}
&-icon {
@apply shrink-0;
}
& &-icon {
@apply text-body-1 mr-2;
&:hover {
&:not(.p-message-close-icon) {
@apply w-6 h-6;
}
}
&:focus {
@apply outline-none outline-offset-0 shadow-none;
&-close {
@apply flex items-center justify-center shrink-0; // rounded-full transition duration-200 min-w-[1rem] min-h-[1rem];
&.p-link {
@apply ml-auto overflow-hidden relative;
}
}
&-text {
@apply w-full;
& &-close {
@apply w-8 h-8 rounded-full bg-transparent transition-none outline-transparent
hover:bg-white/50
focus-visible:outline-none focus-visible:outline-offset-0 focus-visible:drop-shadow-lg;
}
&-enter-from {
@apply opacity-0;
}
&-enter-active {
@apply transition-opacity duration-300;
}
&.p-message-leave-from {
@apply max-h-96;
}
&.p-message-leave-to {
@apply max-h-0 opacity-0 m-0;
}
&-leave-active {
@apply overflow-hidden transition;
}
&-leave-active &-close {
@apply hidden;
}
& &-text {
@apply text-body-2 w-full;
a {
@apply font-semibold;
@ -29,7 +72,7 @@
}
&.p-message-info {
@apply bg-primary text-white;
@apply bg-info text-white;
.p-message-icon,
.p-message-close {

Loading…
Cancel
Save