2023-05-23 13:42:39 +03:00
|
|
|
.antiButton {
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
flex-shrink: 0;
|
|
|
|
min-width: 1.375rem;
|
|
|
|
white-space: nowrap;
|
2023-07-06 10:01:27 +03:00
|
|
|
font-size: .8125rem;
|
|
|
|
color: var(--theme-content-color);
|
2023-05-23 13:42:39 +03:00
|
|
|
background-color: transparent;
|
|
|
|
border: 1px solid transparent;
|
|
|
|
transition-property: border, background-color, color, box-shadow;
|
2023-07-06 10:01:27 +03:00
|
|
|
transition-duration: .15s;
|
2023-05-23 13:42:39 +03:00
|
|
|
|
2023-05-26 06:04:17 +03:00
|
|
|
&.inline {
|
|
|
|
height: 1.375rem;
|
2023-07-06 10:01:27 +03:00
|
|
|
font-size: .75rem;
|
|
|
|
line-height: .75rem;
|
|
|
|
&.only-icon { width: 1.375rem; }
|
2023-05-26 06:04:17 +03:00
|
|
|
}
|
|
|
|
&.x-small {
|
|
|
|
height: 1.5rem;
|
2023-07-06 10:01:27 +03:00
|
|
|
font-size: .75rem;
|
|
|
|
&.only-icon { width: 1.5rem; }
|
2023-05-26 06:04:17 +03:00
|
|
|
}
|
|
|
|
&.small {
|
|
|
|
height: 1.75rem;
|
2023-07-06 10:01:27 +03:00
|
|
|
font-size: .8125rem;
|
|
|
|
&.only-icon { width: 1.75rem; }
|
2023-05-26 06:04:17 +03:00
|
|
|
}
|
2023-08-25 12:49:14 +03:00
|
|
|
&.medium:not(.stepper) {
|
2023-05-26 06:04:17 +03:00
|
|
|
height: 2rem;
|
2023-07-06 10:01:27 +03:00
|
|
|
&.only-icon { width: 2rem; }
|
2023-05-26 06:04:17 +03:00
|
|
|
}
|
|
|
|
&.large {
|
|
|
|
height: 2.25rem;
|
2023-07-06 10:01:27 +03:00
|
|
|
&.only-icon { width: 2.25rem; }
|
2023-05-26 06:04:17 +03:00
|
|
|
}
|
|
|
|
&.x-large {
|
|
|
|
height: 2.75rem;
|
2023-07-06 10:01:27 +03:00
|
|
|
&.only-icon { width: 2.75rem; }
|
2023-05-26 06:04:17 +03:00
|
|
|
}
|
|
|
|
|
2023-07-11 13:27:49 +03:00
|
|
|
&.iconL:not(.iconR, .only-icon) { padding: 0 1rem 0 .75rem; }
|
|
|
|
&.iconR:not(.iconL, .only-icon) { padding: 0 .75rem 0 1rem; }
|
2023-05-23 13:42:39 +03:00
|
|
|
.btn-icon {
|
|
|
|
color: var(--theme-content-color);
|
2023-07-06 10:01:27 +03:00
|
|
|
transition: color .15s;
|
2023-05-23 13:42:39 +03:00
|
|
|
pointer-events: none;
|
|
|
|
}
|
|
|
|
.btn-right-icon {
|
2023-07-06 10:01:27 +03:00
|
|
|
margin-left: .5rem;
|
2023-05-23 13:42:39 +03:00
|
|
|
color: var(--theme-halfcontent-color);
|
2023-07-06 10:01:27 +03:00
|
|
|
transition: color .15s;
|
2023-05-23 13:42:39 +03:00
|
|
|
pointer-events: none;
|
|
|
|
}
|
2023-07-06 10:01:27 +03:00
|
|
|
&:not(.only-icon) .btn-icon:not(.spinner) { margin-right: .375rem; }
|
|
|
|
&:not(.only-icon) .btn-right-icon { margin-left: .375rem; }
|
2023-05-23 13:42:39 +03:00
|
|
|
|
2023-07-06 10:01:27 +03:00
|
|
|
&.short { max-width: 8.5rem; }
|
|
|
|
&.accent { font-weight: 500; }
|
|
|
|
&.sh-no-shape { border-radius: .25rem; }
|
2023-08-25 12:49:14 +03:00
|
|
|
&.sh-round-sm { border-radius: .375rem; }
|
2023-07-06 10:01:27 +03:00
|
|
|
&.sh-round { border-radius: .5rem; }
|
|
|
|
&.sh-round2 { border-radius: .75rem; }
|
|
|
|
&.sh-circle { border-radius: 1rem; }
|
2023-05-23 13:42:39 +03:00
|
|
|
&.sh-rectangle-right {
|
2023-07-06 10:01:27 +03:00
|
|
|
border-top-left-radius: .25rem;
|
|
|
|
border-bottom-left-radius: .25rem;
|
2023-05-23 13:42:39 +03:00
|
|
|
}
|
|
|
|
&.sh-rectangle-left {
|
2023-07-06 10:01:27 +03:00
|
|
|
border-top-right-radius: .25rem;
|
|
|
|
border-bottom-right-radius: .25rem;
|
2023-05-23 13:42:39 +03:00
|
|
|
}
|
2023-07-06 10:01:27 +03:00
|
|
|
&.sh-filter { border-radius: 0 0 .5rem .5rem; }
|
2023-05-23 13:42:39 +03:00
|
|
|
|
|
|
|
&.highlight {
|
2023-07-06 10:01:27 +03:00
|
|
|
box-shadow: inset 0 0 1px 1px var(--accented-button-outline);
|
|
|
|
&:hover { box-shadow: inset 0 0 1px 2px var(--accented-button-outline); }
|
2023-05-23 13:42:39 +03:00
|
|
|
}
|
|
|
|
|
2023-07-06 10:01:27 +03:00
|
|
|
&:hover .btn-icon { color: var(--theme-caption-color); }
|
|
|
|
&:not(.no-focus):focus {
|
|
|
|
&:not(.sh-filter) { box-shadow: 0 0 0 2px var(--accented-button-outline); }
|
|
|
|
&.sh-filter { border-color: var(--accented-button-outline); }
|
2023-05-23 13:42:39 +03:00
|
|
|
}
|
|
|
|
|
2023-07-06 10:01:27 +03:00
|
|
|
&.bs-solid { border-style: solid; }
|
|
|
|
&.bs-dashed { border-style: dashed; }
|
|
|
|
&.jf-left { justify-content: flex-start; }
|
|
|
|
&.jf-center { justify-content: center; }
|
2023-07-11 13:27:49 +03:00
|
|
|
&.only-icon {
|
|
|
|
flex-shrink: 0 !important;
|
2023-08-25 12:49:14 +03:00
|
|
|
|
|
|
|
&:not(.stepper) { padding: 0; }
|
2023-07-11 13:27:49 +03:00
|
|
|
}
|
2023-05-23 13:42:39 +03:00
|
|
|
|
2023-07-06 10:01:27 +03:00
|
|
|
&.regular {
|
|
|
|
background-color: var(--theme-button-default);
|
2023-05-23 13:42:39 +03:00
|
|
|
border-color: var(--theme-button-border);
|
|
|
|
|
2023-07-06 10:01:27 +03:00
|
|
|
&:hover { background-color: var(--theme-button-hovered); }
|
|
|
|
&:active { background-color: var(--theme-button-pressed); }
|
2023-05-23 13:42:39 +03:00
|
|
|
&:focus {
|
|
|
|
background-color: var(--theme-button-focused);
|
2023-07-06 10:01:27 +03:00
|
|
|
border-color: var(--theme-button-focused-border);
|
2023-05-23 13:42:39 +03:00
|
|
|
}
|
2023-07-06 10:01:27 +03:00
|
|
|
&:disabled { background-color: var(--theme-button-disabled); }
|
2023-05-23 13:42:39 +03:00
|
|
|
&.selected {
|
2023-08-21 09:35:53 +03:00
|
|
|
color: var(--theme-button-contrast-color);
|
|
|
|
background-color: var(--theme-accent-color);
|
|
|
|
.btn-icon { color: var(--theme-button-contrast-color); }
|
|
|
|
&:hover { color: var(--theme-button-contrast-color); }
|
2023-05-23 13:42:39 +03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
&.no-border {
|
|
|
|
color: var(--theme-content-color);
|
2023-07-06 10:01:27 +03:00
|
|
|
background-color: var(--theme-button-default);
|
2023-05-23 13:42:39 +03:00
|
|
|
box-shadow: var(--button-shadow);
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
color: var(--theme-caption-color);
|
|
|
|
background-color: var(--theme-button-hovered);
|
|
|
|
|
2023-07-06 10:01:27 +03:00
|
|
|
.btn-icon { color: var(--theme-caption-color); }
|
2023-05-23 13:42:39 +03:00
|
|
|
}
|
|
|
|
&:disabled {
|
|
|
|
color: var(--theme-trans-color);
|
|
|
|
background-color: var(--theme-list-button-color);
|
|
|
|
cursor: default;
|
2023-07-06 10:01:27 +03:00
|
|
|
|
|
|
|
.btn-icon { color: var(--theme-trans-color); }
|
2023-05-23 13:42:39 +03:00
|
|
|
&:hover {
|
|
|
|
color: var(--theme-trans-color);
|
2023-07-06 10:01:27 +03:00
|
|
|
.btn-icon { color: var(--theme-trans-color); }
|
2023-05-23 13:42:39 +03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2023-08-25 12:49:14 +03:00
|
|
|
&.ghost, &.stepper {
|
2023-07-06 10:01:27 +03:00
|
|
|
&:hover { background-color: var(--theme-button-hovered); }
|
|
|
|
&:active { background-color: var(--theme-button-pressed); }
|
|
|
|
&.selected { background-color: var(--highlight-select); }
|
|
|
|
&.selected:hover { background-color: var(--highlight-select-hover); }
|
2023-05-23 13:42:39 +03:00
|
|
|
}
|
|
|
|
&.link {
|
|
|
|
padding: 0 0.875rem;
|
|
|
|
&:hover {
|
|
|
|
color: var(--theme-caption-color);
|
|
|
|
background-color: var(--theme-bg-color);
|
|
|
|
border-color: var(--theme-divider-color);
|
2023-07-06 10:01:27 +03:00
|
|
|
|
|
|
|
.btn-icon { color: var(--theme-content-color); }
|
2023-05-23 13:42:39 +03:00
|
|
|
}
|
|
|
|
&:disabled {
|
|
|
|
color: var(--theme-dark-color);
|
|
|
|
background-color: transparent;
|
|
|
|
border-color: transparent;
|
|
|
|
cursor: auto;
|
|
|
|
|
2023-07-06 10:01:27 +03:00
|
|
|
.btn-icon { color: var(--theme-content-color); }
|
2023-05-31 11:40:47 +03:00
|
|
|
}
|
2023-07-06 10:01:27 +03:00
|
|
|
&.small { padding: 0 .25rem; }
|
2023-05-23 13:42:39 +03:00
|
|
|
}
|
|
|
|
&.link-bordered {
|
2023-07-06 10:01:27 +03:00
|
|
|
padding: 0 .5rem;
|
2023-05-23 13:42:39 +03:00
|
|
|
color: var(--theme-content-color);
|
|
|
|
background-color: var(--theme-link-button-color);
|
|
|
|
border-color: var(--theme-button-border);
|
2023-07-06 10:01:27 +03:00
|
|
|
|
2023-05-23 13:42:39 +03:00
|
|
|
&:hover {
|
|
|
|
color: var(--theme-caption-color);
|
|
|
|
background-color: var(--theme-link-button-hover);
|
|
|
|
border-color: var(--theme-list-divider-color);
|
2023-07-06 10:01:27 +03:00
|
|
|
|
|
|
|
.btn-icon { color: var(--theme-caption-color); }
|
2023-05-23 13:42:39 +03:00
|
|
|
}
|
2023-07-06 10:01:27 +03:00
|
|
|
// &.small { padding: 0 .25rem; }
|
2023-05-23 13:42:39 +03:00
|
|
|
}
|
|
|
|
&.list {
|
2023-07-06 10:01:27 +03:00
|
|
|
padding: 0 .625em;
|
2023-05-23 13:42:39 +03:00
|
|
|
color: var(--theme-content-color);
|
2023-07-06 10:01:27 +03:00
|
|
|
background-color: var(--theme-button-default);
|
|
|
|
border-color: var(--theme-button-border);
|
2023-05-23 13:42:39 +03:00
|
|
|
border-radius: 1.5rem;
|
|
|
|
|
2023-06-02 10:03:46 +03:00
|
|
|
&:not(.inline, .x-small) { min-height: 1.75rem; }
|
|
|
|
.btn-icon { color: var(--theme-dark-color); }
|
2023-05-23 13:42:39 +03:00
|
|
|
&:hover {
|
|
|
|
color: var(--theme-caption-color);
|
|
|
|
background-color: var(--theme-button-hovered);
|
|
|
|
border-color: var(--theme-button-border);
|
|
|
|
}
|
2023-06-02 10:03:46 +03:00
|
|
|
&:not(.no-focus):focus { box-shadow: none; }
|
2023-05-23 13:42:39 +03:00
|
|
|
}
|
2023-07-07 08:33:55 +03:00
|
|
|
&.accented, &.brand, &.positive, &.negative {
|
|
|
|
&:hover, &:active, &:focus {
|
|
|
|
color: var(--accented-button-color);
|
2023-09-20 20:01:09 +03:00
|
|
|
|
|
|
|
.btn-icon,
|
|
|
|
.btn-right-icon { color: var(--accented-button-color); }
|
2023-07-07 08:33:55 +03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
&.regular, &.ghost {
|
|
|
|
&:hover, &:active, &:focus { color: var(--theme-caption-color); }
|
|
|
|
}
|
2023-07-06 10:01:27 +03:00
|
|
|
&.accented,
|
|
|
|
&.brand,
|
|
|
|
&.positive,
|
|
|
|
&.negative {
|
|
|
|
padding: 0 1.5rem;
|
2023-07-07 08:33:55 +03:00
|
|
|
color: var(--accented-button-content-color);
|
2023-07-06 10:01:27 +03:00
|
|
|
border-color: var(--accented-button-border);
|
2023-05-23 13:42:39 +03:00
|
|
|
|
2023-09-20 20:01:09 +03:00
|
|
|
.btn-icon,
|
|
|
|
.btn-right-icon { color: var(--accented-button-content-color); }
|
2023-07-06 10:01:27 +03:00
|
|
|
}
|
|
|
|
&.accented {
|
|
|
|
background-color: var(--accented-button-default);
|
|
|
|
&:hover { background-color: var(--accented-button-hovered); }
|
|
|
|
&:active { background-color: var(--accented-button-pressed); }
|
|
|
|
&:focus { background-color: var(--accented-button-focused); }
|
|
|
|
&:disabled {
|
|
|
|
color: var(--accented-button-disabled-color);
|
|
|
|
background-color: var(--accented-button-disabled);
|
2023-05-23 13:42:39 +03:00
|
|
|
}
|
2023-07-06 10:01:27 +03:00
|
|
|
}
|
|
|
|
&.brand {
|
|
|
|
background-color: var(--brand-button-default);
|
|
|
|
&:hover { background-color: var(--brand-button-hovered); }
|
|
|
|
&:active { background-color: var(--brand-button-pressed); }
|
|
|
|
&:focus { background-color: var(--brand-button-focused); }
|
|
|
|
&:disabled {
|
|
|
|
color: var(--brand-button-disabled-color);
|
|
|
|
background-color: var(--brand-button-disabled);
|
2023-05-23 13:42:39 +03:00
|
|
|
}
|
2023-07-06 10:01:27 +03:00
|
|
|
}
|
|
|
|
&.positive {
|
|
|
|
background-color: var(--positive-button-default);
|
|
|
|
&:hover { background-color: var(--positive-button-hovered); }
|
|
|
|
&:active { background-color: var(--positive-button-pressed); }
|
|
|
|
&:focus { background-color: var(--positive-button-focused); }
|
|
|
|
&:disabled {
|
|
|
|
color: var(--positive-button-disabled-color);
|
|
|
|
background-color: var(--positive-button-disabled);
|
2023-05-23 13:42:39 +03:00
|
|
|
}
|
2023-07-06 10:01:27 +03:00
|
|
|
}
|
|
|
|
&.negative {
|
|
|
|
background-color: var(--negative-button-default);
|
|
|
|
&:hover { background-color: var(--negative-button-hovered); }
|
|
|
|
&:active { background-color: var(--negative-button-pressed); }
|
|
|
|
&:focus { background-color: var(--negative-button-focused); }
|
2023-05-23 13:42:39 +03:00
|
|
|
&:disabled {
|
2023-07-06 10:01:27 +03:00
|
|
|
color: var(--negative-button-disabled-color);
|
|
|
|
background-color: var(--negative-button-disabled);
|
2023-05-23 13:42:39 +03:00
|
|
|
}
|
|
|
|
}
|
2023-06-06 20:09:35 +03:00
|
|
|
&.contrast {
|
|
|
|
padding: .75rem 1rem;
|
|
|
|
font-weight: 500;
|
|
|
|
color: var(--theme-button-contrast-color);
|
|
|
|
background-color: var(--theme-button-contrast-enabled);
|
|
|
|
border-color: var(--theme-button-contrast-border);
|
|
|
|
|
2023-09-20 20:01:09 +03:00
|
|
|
.btn-icon,
|
|
|
|
.btn-right-icon { color: var(--theme-button-contrast-color); }
|
2023-07-06 10:01:27 +03:00
|
|
|
|
|
|
|
&:hover { background-color: var(--theme-button-contrast-hovered); }
|
|
|
|
&:active { background-color: var(--theme-button-contrast-pressed); }
|
|
|
|
&:focus { background-color: var(--theme-button-contrast-hovered); }
|
2023-06-06 20:09:35 +03:00
|
|
|
&:disabled {
|
|
|
|
color: var(--theme-button-contrast-disabled-color);
|
|
|
|
background-color: var(--theme-button-contrast-disabled);
|
|
|
|
}
|
|
|
|
}
|
2023-08-25 12:49:14 +03:00
|
|
|
&.stepper {
|
|
|
|
padding: 0;
|
|
|
|
width: 1rem;
|
|
|
|
height: .8125rem;
|
|
|
|
min-width: 1rem;
|
|
|
|
|
|
|
|
&:focus { box-shadow: 0 0 0 1px var(--accented-button-outline); }
|
|
|
|
}
|
2023-05-23 13:42:39 +03:00
|
|
|
|
|
|
|
&.notSelected {
|
|
|
|
color: var(--theme-dark-color);
|
|
|
|
|
2023-07-06 10:01:27 +03:00
|
|
|
.btn-icon { color: var(--theme-darker-color); }
|
2023-05-23 13:42:39 +03:00
|
|
|
&:hover,
|
2023-07-06 10:01:27 +03:00
|
|
|
&:hover .btn-icon { color: var(--theme-content-color); }
|
2023-05-23 13:42:39 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
&.dangerous {
|
|
|
|
color: var(--white-color);
|
|
|
|
background-color: var(--dangerous-bg-color);
|
|
|
|
border-color: var(--dangerous-bg-color);
|
|
|
|
|
2023-07-06 10:01:27 +03:00
|
|
|
&:hover { background-color: var(--dangerous-bg-hover); }
|
|
|
|
&:not(.no-focus):focus { box-shadow: var(--dangerous-shadow); }
|
2023-05-23 13:42:39 +03:00
|
|
|
}
|
|
|
|
|
2023-07-06 10:01:27 +03:00
|
|
|
&:disabled {
|
2023-07-07 08:33:55 +03:00
|
|
|
color: var(--theme-darker-color);
|
2023-07-06 10:01:27 +03:00
|
|
|
border-color: transparent;
|
|
|
|
cursor: not-allowed;
|
|
|
|
|
2023-09-20 20:01:09 +03:00
|
|
|
.btn-icon,
|
|
|
|
.btn-right-icon { opacity: .5; }
|
2023-05-23 13:42:39 +03:00
|
|
|
}
|
2023-07-06 10:01:27 +03:00
|
|
|
|
|
|
|
.resetIconSize { font-size: 16px; }
|
2023-05-23 13:42:39 +03:00
|
|
|
}
|