commit
dbd590ec21
@ -1,61 +1,55 @@ |
|||||||
input.p-inputtext { |
.p-inputtext { |
||||||
@apply bg-white border border-solid border-support-3 p-3.5 rounded-lg transition outline-none w-full |
@apply border border-support-3 px-4 py-3 text-body-1 bg-white rounded-lg text-gray-90 transition w-full duration-200 |
||||||
hover:border-primary focus:border-primary; |
placeholder:text-support-3 |
||||||
|
hover:border-primary hover:text-gray-90 hover:outline-0 hover:outline-none |
||||||
&:focus, |
focus:border-primary focus:text-gray-90 hover:outline-0 hover:outline-none; |
||||||
&.p-filled { |
|
||||||
~ { |
|
||||||
label { |
|
||||||
@apply text-caption text-primary; |
|
||||||
} |
|
||||||
} |
|
||||||
} |
|
||||||
|
|
||||||
&.p-invalid.p-component { |
&.p-invalid.p-component { |
||||||
@apply border-error text-error; |
@apply border-error |
||||||
|
placeholder:text-error; |
||||||
} |
} |
||||||
|
|
||||||
&.p-inputtext-sm { |
&.p-inputtext-sm { |
||||||
@apply px-2 py-1; |
@apply px-2 py-1.5 text-body-2; |
||||||
} |
} |
||||||
|
|
||||||
&.p-inputtext-lg { |
&.p-inputtext-lg { |
||||||
@apply px-6 py-5; |
@apply py-4; |
||||||
} |
|
||||||
|
|
||||||
&.p-invalid { |
|
||||||
~ label, |
|
||||||
&:focus ~ label { |
|
||||||
@apply text-error; |
|
||||||
} |
|
||||||
} |
} |
||||||
} |
} |
||||||
|
|
||||||
.p-input-icon-right { |
.p-input-icon-left > i:first-of-type { |
||||||
> .p-inputtext { |
//left: nth($inputPadding, 2); |
||||||
@apply pr-10; |
//color: $inputIconColor; |
||||||
} |
} |
||||||
|
|
||||||
> i:last-of-type { |
.p-input-icon-left > .p-inputtext { |
||||||
@apply right-3; |
//padding-left: nth($inputPadding, 2) * 2 + $primeIconFontSize; |
||||||
} |
|
||||||
} |
} |
||||||
|
|
||||||
.p-float-label { |
.p-input-icon-left.p-float-label > label { |
||||||
input.p-inputtext { |
//left: nth($inputPadding, 2) * 2 + $primeIconFontSize; |
||||||
@apply w-full; |
} |
||||||
|
|
||||||
&:focus, |
.p-input-icon-right > i:last-of-type { |
||||||
&.p-filled { |
//right: nth($inputPadding, 2); |
||||||
~ { |
//color: $inputIconColor; |
||||||
label { |
|
||||||
@apply top-0; |
|
||||||
} |
} |
||||||
|
|
||||||
|
.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 { |
.p-inputtext-lg { |
||||||
@apply bg-white duration-200 left-2 px-1 text-support-3; |
.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