commit
dbd590ec21
@ -1,61 +1,55 @@ |
||||
input.p-inputtext { |
||||
@apply bg-white border border-solid border-support-3 p-3.5 rounded-lg transition outline-none w-full |
||||
hover:border-primary focus:border-primary; |
||||
|
||||
&:focus, |
||||
&.p-filled { |
||||
~ { |
||||
label { |
||||
@apply text-caption text-primary; |
||||
} |
||||
} |
||||
} |
||||
.p-inputtext { |
||||
@apply border border-support-3 px-4 py-3 text-body-1 bg-white rounded-lg text-gray-90 transition w-full duration-200 |
||||
placeholder:text-support-3 |
||||
hover:border-primary hover:text-gray-90 hover:outline-0 hover:outline-none |
||||
focus:border-primary focus:text-gray-90 hover:outline-0 hover:outline-none; |
||||
|
||||
&.p-invalid.p-component { |
||||
@apply border-error text-error; |
||||
@apply border-error |
||||
placeholder:text-error; |
||||
} |
||||
|
||||
&.p-inputtext-sm { |
||||
@apply px-2 py-1; |
||||
@apply px-2 py-1.5 text-body-2; |
||||
} |
||||
|
||||
&.p-inputtext-lg { |
||||
@apply px-6 py-5; |
||||
} |
||||
|
||||
&.p-invalid { |
||||
~ label, |
||||
&:focus ~ label { |
||||
@apply text-error; |
||||
} |
||||
@apply py-4; |
||||
} |
||||
} |
||||
|
||||
.p-input-icon-right { |
||||
> .p-inputtext { |
||||
@apply pr-10; |
||||
.p-input-icon-left > i:first-of-type { |
||||
//left: nth($inputPadding, 2); |
||||
//color: $inputIconColor; |
||||
} |
||||
|
||||
> i:last-of-type { |
||||
@apply right-3; |
||||
} |
||||
.p-input-icon-left > .p-inputtext { |
||||
//padding-left: nth($inputPadding, 2) * 2 + $primeIconFontSize; |
||||
} |
||||
|
||||
.p-float-label { |
||||
input.p-inputtext { |
||||
@apply w-full; |
||||
.p-input-icon-left.p-float-label > label { |
||||
//left: nth($inputPadding, 2) * 2 + $primeIconFontSize; |
||||
} |
||||
|
||||
&:focus, |
||||
&.p-filled { |
||||
~ { |
||||
label { |
||||
@apply top-0; |
||||
.p-input-icon-right > i:last-of-type { |
||||
//right: nth($inputPadding, 2); |
||||
//color: $inputIconColor; |
||||
} |
||||
|
||||
.p-input-icon-right > .p-inputtext { |
||||
//padding-right: nth($inputPadding, 2) * 2 + $primeIconFontSize; |
||||
} |
||||
|
||||
.p-inputtext-sm { |
||||
.p-inputtext { |
||||
//@include scaledFontSize($inputTextFontSize, $scaleSM); |
||||
//@include scaledPadding($inputPadding, $scaleSM); |
||||
} |
||||
} |
||||
|
||||
> label { |
||||
@apply bg-white duration-200 left-2 px-1 text-support-3; |
||||
.p-inputtext-lg { |
||||
.p-inputtext { |
||||
//@include scaledFontSize($inputTextFontSize, $scaleLG); |
||||
//@include scaledPadding($inputPadding, $scaleLG); |
||||
} |
||||
} |
@ -0,0 +1,46 @@ |
||||
$color_1: #01579B; |
||||
$color_2: #1B5E20; |
||||
$color_3: #7f6003; |
||||
$color_4: #B71C1C; |
||||
|
||||
.p-toast { |
||||
@apply opacity-95; |
||||
|
||||
&-message { |
||||
@apply rounded-md mb-3.5 shadow-gray-30 shadow-md; |
||||
|
||||
&-content { |
||||
@apply py-4 px-6 gap-2.5; |
||||
|
||||
.p-toast-message-text { |
||||
@apply text-body-1; |
||||
} |
||||
.p-toast-message-icon { |
||||
} |
||||
.p-toast-summary { |
||||
@apply font-semibold; |
||||
} |
||||
.p-toast-detail { |
||||
} |
||||
} |
||||
|
||||
.p-toast-icon-close { |
||||
@apply rounded-full transition duration-200 w-4 h-6 |
||||
focus:outline-none; |
||||
} |
||||
|
||||
&.p-toast-message-info { |
||||
@apply bg-primary text-white; |
||||
} |
||||
|
||||
&.p-toast-message-success { |
||||
@apply bg-success text-white; |
||||
} |
||||
&.p-toast-message-warn { |
||||
@apply bg-warning text-gray-90; |
||||
} |
||||
&.p-toast-message-error { |
||||
@apply bg-error text-white; |
||||
} |
||||
} |
||||
} |
Loading…
Reference in new issue