2018-06-17 00:00:35 +00:00
|
|
|
textarea, select, input, button {
|
|
|
|
outline: none;
|
|
|
|
}
|
|
|
|
|
2018-06-21 06:05:35 +00:00
|
|
|
input[type=number]::-webkit-outer-spin-button,
|
|
|
|
input[type=number]::-webkit-inner-spin-button {
|
|
|
|
-webkit-appearance: none !important;
|
|
|
|
margin: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
input[type=number] {
|
|
|
|
-moz-appearance: textfield !important;
|
|
|
|
}
|
|
|
|
|
2018-05-26 22:00:41 +00:00
|
|
|
/**
|
|
|
|
* Styles for the login form open input boxes. Label floats up above it when content
|
|
|
|
* is input and then sinks back down into the field if left empty.
|
|
|
|
*/
|
|
|
|
.input-open {
|
|
|
|
@apply .w-full .px-3 .relative;
|
|
|
|
}
|
|
|
|
|
|
|
|
.input-open > .input {
|
2019-02-09 23:17:38 +00:00
|
|
|
@apply .appearance-none .block .w-full .text-neutral-800 .border-b-2 .border-neutral-200 .py-3 .mb-3;
|
2018-05-26 22:00:41 +00:00
|
|
|
|
|
|
|
&:focus {
|
2019-02-09 22:44:35 +00:00
|
|
|
@apply .border-primary-400;
|
2018-05-26 22:00:41 +00:00
|
|
|
outline: 0;
|
|
|
|
transition: border 500ms ease-out;
|
|
|
|
}
|
|
|
|
|
|
|
|
&:focus + label, &:valid + label, &.has-content + label {
|
2019-02-09 22:32:18 +00:00
|
|
|
@apply .text-neutral-800 .px-0 .cursor-pointer;
|
2018-05-26 22:00:41 +00:00
|
|
|
transform:translateY(-26px)
|
|
|
|
}
|
|
|
|
|
|
|
|
&:required {
|
|
|
|
box-shadow: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.input-open > label {
|
2019-02-09 22:48:47 +00:00
|
|
|
@apply .block .uppercase .tracking-wide .text-neutral-500 .text-xs .mb-2 .absolute;
|
2018-05-26 22:00:41 +00:00
|
|
|
top: 14px;
|
|
|
|
transition: transform 200ms ease-out;
|
|
|
|
}
|
2018-06-12 05:36:43 +00:00
|
|
|
|
2018-06-17 00:00:35 +00:00
|
|
|
/**
|
|
|
|
* Styling for other forms throughout the Panel.
|
|
|
|
*/
|
2018-06-16 19:43:32 +00:00
|
|
|
.input:not(.open-label) {
|
2019-02-09 23:17:38 +00:00
|
|
|
@apply .appearance-none .p-3 .rounded .border .border-neutral-200 .text-neutral-800 .w-full;
|
|
|
|
transition: border 150ms linear;
|
2018-06-12 05:36:43 +00:00
|
|
|
|
|
|
|
&:focus {
|
2019-02-09 22:44:35 +00:00
|
|
|
@apply .border-primary-400;
|
2018-06-12 05:36:43 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
&:required, &:invalid {
|
|
|
|
box-shadow: none;
|
|
|
|
}
|
2018-06-17 23:53:24 +00:00
|
|
|
|
|
|
|
&.error {
|
2019-02-09 22:48:47 +00:00
|
|
|
@apply .text-red-600 .border-red-500;
|
2018-06-17 23:53:24 +00:00
|
|
|
}
|
2018-06-12 05:36:43 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.input-label {
|
2019-02-09 23:17:38 +00:00
|
|
|
@apply .block .uppercase .tracking-wide .text-neutral-800 .text-xs .font-bold .mb-2;
|
2018-06-12 05:36:43 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.input-help {
|
2019-02-09 23:17:38 +00:00
|
|
|
@apply .text-xs .text-neutral-400 .pt-2;
|
2018-06-17 23:53:24 +00:00
|
|
|
|
|
|
|
&.error {
|
2019-02-09 22:32:18 +00:00
|
|
|
@apply .text-red-600;
|
2018-06-17 23:53:24 +00:00
|
|
|
}
|
2018-06-12 05:36:43 +00:00
|
|
|
}
|
2019-02-09 23:17:38 +00:00
|
|
|
|
2019-02-10 01:07:11 +00:00
|
|
|
a.btn {
|
|
|
|
@apply .no-underline;
|
|
|
|
}
|
|
|
|
|
2019-02-09 23:17:38 +00:00
|
|
|
.btn {
|
|
|
|
@apply .rounded .p-2;
|
|
|
|
transition: all 150ms linear;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Button Colors
|
|
|
|
*/
|
|
|
|
&.btn-primary {
|
|
|
|
@apply .bg-primary-500 .border-primary-600 .border .text-white;
|
|
|
|
|
2019-02-10 01:07:11 +00:00
|
|
|
&:hover:not(:disabled) {
|
2019-02-09 23:17:38 +00:00
|
|
|
@apply .bg-primary-600 .border-primary-800;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&.btn-green {
|
|
|
|
@apply .bg-green-500 .border-green-600 .border .text-white;
|
|
|
|
|
2019-02-10 01:07:11 +00:00
|
|
|
&:hover:not(:disabled) {
|
2019-02-09 23:17:38 +00:00
|
|
|
@apply .bg-green-600 .border-green-800;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&.btn-red {
|
|
|
|
&:not(.btn-secondary) {
|
|
|
|
@apply .bg-red-500 .border-red-600 .border .text-white;
|
|
|
|
}
|
|
|
|
|
2019-02-10 01:07:11 +00:00
|
|
|
&:hover:not(:disabled) {
|
2019-02-09 23:17:38 +00:00
|
|
|
@apply .bg-red-600 .border-red-800;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&.btn-secondary {
|
2019-02-10 01:07:11 +00:00
|
|
|
@apply .border .border-neutral-200 .text-neutral-400;
|
2019-02-09 23:17:38 +00:00
|
|
|
|
2019-02-10 01:07:11 +00:00
|
|
|
&:hover:not(:disabled) {
|
|
|
|
@apply .border-neutral-500 .text-neutral-700;
|
2019-02-09 23:17:38 +00:00
|
|
|
}
|
|
|
|
|
2019-02-10 01:07:11 +00:00
|
|
|
&.btn-red:hover:not(:disabled) {
|
2019-02-09 23:17:38 +00:00
|
|
|
@apply .bg-red-600 .border-red-800 .text-white;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Button Sizes
|
|
|
|
*/
|
|
|
|
&.btn-jumbo {
|
|
|
|
@apply .p-4 .w-full .uppercase .tracking-wide .text-sm;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.btn-lg {
|
|
|
|
@apply .p-4 .uppercase .tracking-wide .text-sm;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.btn-sm {
|
|
|
|
@apply .px-6 .py-3 .uppercase .tracking-wide .text-sm;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.btn-xs {
|
|
|
|
@apply .py-2 .px-2 .uppercase .text-xs;
|
|
|
|
}
|
|
|
|
|
|
|
|
&:disabled, &.disabled {
|
|
|
|
opacity: 0.55;
|
|
|
|
cursor: default;
|
|
|
|
}
|
|
|
|
}
|