parent
690d7c97d2
commit
90eac8773d
@ -0,0 +1,31 @@ |
||||
.badge { |
||||
@apply font-semibold py-1 px-4 rounded-full text-white; |
||||
|
||||
&--default { |
||||
@apply bg-gray-50; |
||||
} |
||||
|
||||
&--error { |
||||
@apply bg-error; |
||||
} |
||||
|
||||
&--success { |
||||
@apply bg-success; |
||||
} |
||||
|
||||
&--warning { |
||||
@apply bg-warning; |
||||
} |
||||
|
||||
&--info { |
||||
@apply bg-info; |
||||
} |
||||
|
||||
&--primary { |
||||
@apply bg-primary; |
||||
} |
||||
|
||||
&--secondary { |
||||
@apply bg-secondary; |
||||
} |
||||
} |
@ -0,0 +1,70 @@ |
||||
.btn { |
||||
@apply font-semibold px-6 py-3.5 rounded-md text-center transition; |
||||
|
||||
&--primary { |
||||
@apply bg-primary text-white; |
||||
|
||||
&:hover, |
||||
&:focus { |
||||
@apply bg-support-4; |
||||
} |
||||
|
||||
&:disabled { |
||||
@apply bg-gray-25 cursor-default select-none text-gray-50; |
||||
} |
||||
} |
||||
|
||||
&--primary-outline { |
||||
@apply bg-white border border-primary text-primary; |
||||
|
||||
&:hover, |
||||
&:focus { |
||||
@apply bg-primary text-white; |
||||
} |
||||
|
||||
&:disabled, |
||||
&.disabled{ |
||||
@apply bg-gray-10 border-gray-25 text-gray-50; |
||||
} |
||||
} |
||||
|
||||
&--secondary { |
||||
@apply bg-secondary text-white; |
||||
|
||||
&:hover, |
||||
&:focus { |
||||
@apply bg-support-5; |
||||
} |
||||
|
||||
&:disabled { |
||||
@apply bg-gray-25 cursor-default select-none text-gray-50; |
||||
} |
||||
} |
||||
|
||||
&--secondary-outline { |
||||
@apply bg-white border border-secondary text-secondary; |
||||
|
||||
&:hover, |
||||
&:focus { |
||||
@apply bg-secondary text-white; |
||||
} |
||||
|
||||
&:disabled, |
||||
&.disabled{ |
||||
@apply bg-gray-10 border-gray-25 text-gray-50; |
||||
} |
||||
} |
||||
|
||||
&--gray { |
||||
@apply bg-gray-90 text-white; |
||||
|
||||
&:hover, |
||||
&:focus { |
||||
@apply bg-black; |
||||
} |
||||
|
||||
&:disabled { |
||||
@apply bg-gray-25 cursor-default select-none text-gray-50; |
||||
} |
||||
} |
||||
} |
@ -0,0 +1,61 @@ |
||||
form { |
||||
.form__field { |
||||
@apply w-full; |
||||
} |
||||
|
||||
input { |
||||
@apply w-full; |
||||
} |
||||
} |
||||
|
||||
// input switch |
||||
.p-inputswitch { |
||||
@apply align-middle h-4 w-8; |
||||
|
||||
.p-inputswitch-slider { |
||||
@apply bg-gray-50 rounded-full transition-none; |
||||
|
||||
&:before { |
||||
@apply bg-white duration-200 h-3 left-0.5 -mt-1.5 rounded-full w-3; |
||||
} |
||||
} |
||||
|
||||
&.p-inputswitch-checked { |
||||
.p-inputswitch-slider { |
||||
@apply bg-secondary; |
||||
|
||||
&:before { |
||||
@apply translate-x-4; |
||||
} |
||||
} |
||||
} |
||||
|
||||
&.p-focus { |
||||
.p-inputswitch-slider { |
||||
@apply outline-none outline-offset-0; |
||||
} |
||||
} |
||||
|
||||
~ label { |
||||
@apply ml-4; |
||||
} |
||||
} |
||||
|
||||
.p-inputwrapper { |
||||
@apply w-full; |
||||
} |
||||
|
||||
// input text |
||||
.p-inputtext { |
||||
@apply appearance-none rounded-md transition w-full; |
||||
} |
||||
|
||||
.p-input-icon-right { |
||||
> .p-inputtext { |
||||
@apply pr-10; |
||||
} |
||||
|
||||
> i:last-of-type { |
||||
@apply right-3; |
||||
} |
||||
} |
Loading…
Reference in new issue