2022-07-04 02:11:13 +00:00
|
|
|
.btn {
|
2022-08-10 04:12:20 +00:00
|
|
|
@apply !outline-none;
|
|
|
|
@apply border border-solid border-transparent;
|
|
|
|
|
2022-08-12 03:47:56 +00:00
|
|
|
border-radius: 8px;
|
2022-07-04 02:11:13 +00:00
|
|
|
display: inline-flex;
|
|
|
|
justify-content: space-around;
|
2022-07-06 14:05:00 +00:00
|
|
|
align-items: center;
|
2022-07-04 02:11:13 +00:00
|
|
|
gap: 5px;
|
|
|
|
}
|
|
|
|
|
2022-08-12 03:47:56 +00:00
|
|
|
.btn.disabled,
|
|
|
|
.btn[disabled],
|
|
|
|
fieldset[disabled] .btn {
|
|
|
|
@apply opacity-40;
|
|
|
|
pointer-events: none;
|
|
|
|
touch-action: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
.btn:hover {
|
|
|
|
color: var(--text-button-hover-color);
|
2022-07-04 02:11:13 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.btn.active {
|
|
|
|
box-shadow: none;
|
|
|
|
}
|
|
|
|
|
2022-08-24 04:40:50 +00:00
|
|
|
.btn.btn-primary {
|
2022-08-12 03:47:56 +00:00
|
|
|
@apply text-white bg-blue-8 border-blue-8;
|
|
|
|
@apply hover:text-white hover:bg-blue-9 hover:border-blue-9;
|
2022-08-10 04:12:20 +00:00
|
|
|
@apply th-dark:hover:bg-blue-7 th-dark:hover:border-blue-7;
|
2022-07-04 02:11:13 +00:00
|
|
|
}
|
|
|
|
|
2022-08-24 04:40:50 +00:00
|
|
|
.btn.btn-primary:active,
|
|
|
|
.btn.btn-primary.active,
|
2022-07-04 02:11:13 +00:00
|
|
|
.open > .dropdown-toggle.btn-primary {
|
2022-08-10 04:12:20 +00:00
|
|
|
@apply bg-blue-9 border-blue-5;
|
2022-07-04 02:11:13 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.nav-pills > li.active > a,
|
|
|
|
.nav-pills > li.active > a:hover,
|
|
|
|
.nav-pills > li.active > a:focus {
|
2022-08-10 04:12:20 +00:00
|
|
|
@apply bg-blue-8;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Button Secondary */
|
2022-08-24 04:40:50 +00:00
|
|
|
.btn.btn-secondary {
|
2022-08-10 04:12:20 +00:00
|
|
|
@apply border border-solid;
|
|
|
|
|
|
|
|
@apply text-blue-9 bg-blue-2 border-blue-8;
|
2022-08-12 03:47:56 +00:00
|
|
|
@apply hover:bg-blue-3;
|
2022-08-10 04:12:20 +00:00
|
|
|
|
|
|
|
@apply th-dark:text-blue-3 th-dark:bg-gray-10 th-dark:border-blue-7;
|
|
|
|
@apply th-dark:hover:bg-blue-11;
|
2022-07-04 02:11:13 +00:00
|
|
|
}
|
|
|
|
|
2022-08-24 04:40:50 +00:00
|
|
|
.btn.btn-danger {
|
2022-08-10 04:12:20 +00:00
|
|
|
@apply bg-error-8 border-error-8;
|
|
|
|
@apply hover:bg-error-7 hover:border-error-7 hover:text-white;
|
2022-07-04 02:11:13 +00:00
|
|
|
}
|
|
|
|
|
2022-08-24 04:40:50 +00:00
|
|
|
.btn.btn-danger:active,
|
|
|
|
.btn.btn-danger.active,
|
2022-08-10 04:12:20 +00:00
|
|
|
.open > .dropdown-toggle.btn-danger {
|
|
|
|
@apply bg-error-8 text-white border-blue-5;
|
2022-07-04 02:11:13 +00:00
|
|
|
}
|
|
|
|
|
2022-08-24 04:40:50 +00:00
|
|
|
.btn.btn-dangerlight {
|
2022-08-10 04:12:20 +00:00
|
|
|
@apply text-error-9 th-dark:text-white;
|
|
|
|
@apply bg-error-3 th-dark:bg-error-9;
|
|
|
|
@apply hover:bg-error-2 th-dark:hover:bg-error-11;
|
|
|
|
@apply border-error-5 th-dark:border-error-7 th-highcontrast:border-error-7;
|
|
|
|
@apply border border-solid;
|
2022-07-04 02:11:13 +00:00
|
|
|
}
|
|
|
|
|
2022-08-24 04:40:50 +00:00
|
|
|
.btn.btn-success {
|
2022-08-10 04:12:20 +00:00
|
|
|
background-color: var(--ui-success-7);
|
2022-07-04 02:11:13 +00:00
|
|
|
}
|
|
|
|
|
2022-08-24 04:40:50 +00:00
|
|
|
.btn.btn-success:hover {
|
2022-08-12 03:47:56 +00:00
|
|
|
color: var(--white-color);
|
|
|
|
}
|
|
|
|
|
|
|
|
/* secondary-grey */
|
2022-08-24 04:40:50 +00:00
|
|
|
.btn.btn-default,
|
|
|
|
.btn.btn-light {
|
|
|
|
@apply bg-white border-gray-5 text-gray-9;
|
2022-08-12 03:47:56 +00:00
|
|
|
@apply hover:bg-gray-3 hover:border-gray-5 hover:text-gray-10;
|
|
|
|
|
|
|
|
/* dark mode */
|
|
|
|
@apply th-dark:bg-gray-warm-10 th-dark:border-gray-warm-7 th-dark:text-gray-warm-4;
|
|
|
|
@apply th-dark:hover:bg-gray-warm-9 th-dark:hover:border-gray-6 th-dark:hover:text-gray-warm-4;
|
2022-08-18 10:39:54 +00:00
|
|
|
|
|
|
|
@apply th-highcontrast:bg-black th-highcontrast:border-gray-2 th-highcontrast:text-white;
|
|
|
|
@apply th-highcontrast:hover:bg-gray-9 th-highcontrast:hover:border-gray-6 th-highcontrast:hover:text-gray-warm-4;
|
2022-07-04 02:11:13 +00:00
|
|
|
}
|
|
|
|
|
2022-08-24 04:40:50 +00:00
|
|
|
.btn.btn-light:active,
|
|
|
|
.btn.btn-light.active,
|
2022-07-04 02:11:13 +00:00
|
|
|
.open > .dropdown-toggle.btn-light {
|
|
|
|
background-color: var(--ui-gray-3);
|
|
|
|
}
|
|
|
|
|
2022-08-24 04:40:50 +00:00
|
|
|
.btn.btn-link {
|
2022-08-22 04:52:24 +00:00
|
|
|
@apply text-blue-8 hover:text-blue-9 disabled:text-gray-5;
|
|
|
|
@apply th-dark:text-blue-8 th-dark:hover:text-blue-7;
|
|
|
|
@apply th-highcontrast:text-blue-8 th-highcontrast:hover:text-blue-7;
|
|
|
|
}
|
|
|
|
|
2022-08-12 03:47:56 +00:00
|
|
|
.btn-group {
|
|
|
|
display: inline-flex;
|
|
|
|
}
|
|
|
|
|
|
|
|
.input-group-btn .btn.active,
|
|
|
|
.btn-group .btn.active {
|
|
|
|
@apply bg-blue-2 text-blue-10 border-blue-5;
|
|
|
|
@apply th-dark:bg-blue-11 th-dark:text-blue-2 th-dark:border-blue-9;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* focus */
|
|
|
|
|
2022-08-24 04:40:50 +00:00
|
|
|
.btn.btn-primary:focus,
|
|
|
|
.btn.btn-secondary:focus,
|
|
|
|
.btn.btn-light:focus {
|
2022-08-12 03:47:56 +00:00
|
|
|
@apply border-blue-5;
|
|
|
|
}
|
|
|
|
|
2022-08-24 04:40:50 +00:00
|
|
|
.btn.btn-danger:focus,
|
|
|
|
.btn.btn-dangerlight:focus {
|
2022-08-12 03:47:56 +00:00
|
|
|
@apply border-blue-6;
|
|
|
|
}
|
|
|
|
|
2022-08-24 04:40:50 +00:00
|
|
|
.btn.btn-primary:focus,
|
|
|
|
.btn.btn-secondary:focus,
|
|
|
|
.btn.btn-light:focus,
|
|
|
|
.btn.btn-danger:focus,
|
|
|
|
.btn.btn-dangerlight:focus {
|
2022-08-12 03:47:56 +00:00
|
|
|
--btn-focus-color: var(--ui-blue-3);
|
|
|
|
box-shadow: 0px 0px 0px 4px var(--btn-focus-color);
|
|
|
|
}
|
|
|
|
|
2022-08-24 04:40:50 +00:00
|
|
|
[theme='dark'] .btn.btn-primary:focus,
|
|
|
|
[theme='dark'] .btn.btn-secondary:focus,
|
|
|
|
[theme='dark'] .btn.btn-light:focus,
|
|
|
|
[theme='dark'] .btn.btn-danger:focus,
|
|
|
|
[theme='dark'] .btn.btn-dangerlight:focus {
|
2022-08-12 03:47:56 +00:00
|
|
|
--btn-focus-color: var(--ui-blue-11);
|
|
|
|
}
|
2022-08-24 04:40:50 +00:00
|
|
|
|
|
|
|
a.no-link,
|
|
|
|
a[ng-click] {
|
|
|
|
@apply text-current;
|
|
|
|
@apply hover:no-underline hover:text-current;
|
|
|
|
@apply focus:no-underline focus:text-current;
|
|
|
|
}
|
|
|
|
|
|
|
|
a,
|
|
|
|
a.hyperlink {
|
|
|
|
@apply text-blue-8 hover:text-blue-9;
|
|
|
|
@apply hover:underline cursor-pointer;
|
|
|
|
}
|