mirror of
https://github.com/redphx/better-xcloud.git
synced 2025-06-06 23:57:19 +02:00
131 lines
2.7 KiB
Stylus
131 lines
2.7 KiB
Stylus
.bx-button {
|
|
background-color: var(--bx-default-button-color);
|
|
user-select: none;
|
|
-webkit-user-select: none;
|
|
color: #fff;
|
|
font-family: var(--bx-title-font-semibold);
|
|
font-size: 14px;
|
|
border: none;
|
|
font-weight: 400;
|
|
height: var(--bx-button-height);
|
|
border-radius: 4px;
|
|
padding: 0 8px;
|
|
text-transform: uppercase;
|
|
cursor: pointer;
|
|
overflow: hidden;
|
|
|
|
&:focus {
|
|
outline: none !important;
|
|
}
|
|
|
|
&:hover, &.bx-focusable:focus {
|
|
background-color: var(--bx-default-button-hover-color);
|
|
}
|
|
|
|
&:disabled {
|
|
cursor: default;
|
|
background-color: var(--bx-default-button-disabled-color);
|
|
}
|
|
|
|
&.bx-ghost {
|
|
background-color: transparent;
|
|
|
|
&:hover, &.bx-focusable:focus {
|
|
background-color: var(--bx-default-button-hover-color);
|
|
}
|
|
}
|
|
|
|
&.bx-primary {
|
|
background-color: var(--bx-primary-button-color);
|
|
|
|
&:hover, &.bx-focusable:focus {
|
|
background-color: var(--bx-primary-button-hover-color);
|
|
}
|
|
|
|
&:disabled {
|
|
background-color: var(--bx-primary-button-disabled-color);
|
|
}
|
|
}
|
|
|
|
&.bx-danger {
|
|
background-color: var(--bx-danger-button-color);
|
|
|
|
&:hover, &.bx-focusable:focus {
|
|
background-color: var(--bx-danger-button-hover-color);
|
|
}
|
|
|
|
&:disabled {
|
|
background-color: var(--bx-danger-button-disabled-color);
|
|
}
|
|
}
|
|
|
|
&.bx-tall {
|
|
height: calc(var(--bx-button-height) * 1.5) !important;
|
|
}
|
|
|
|
svg {
|
|
display: inline-block;
|
|
width: 16px;
|
|
height: var(--bx-button-height);
|
|
}
|
|
|
|
span {
|
|
display: inline-block;
|
|
/* height: var(--bx-button-height); */
|
|
line-height: var(--bx-button-height);
|
|
vertical-align: middle;
|
|
/* vertical-align: -webkit-baseline-middle; */
|
|
color: #fff;
|
|
overflow: hidden;
|
|
white-space: nowrap;
|
|
|
|
&:not(:only-child) {
|
|
margin-left: 10px;
|
|
}
|
|
}
|
|
}
|
|
|
|
.bx-focusable {
|
|
position: relative;
|
|
|
|
&::after {
|
|
border: 2px solid transparent;
|
|
border-radius: 4px;
|
|
}
|
|
|
|
&:focus::after {
|
|
content: '';
|
|
border-color: white;
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
}
|
|
}
|
|
|
|
a.bx-button {
|
|
display: inline-block;
|
|
|
|
&.bx-full-width {
|
|
text-align: center;
|
|
}
|
|
}
|
|
|
|
button.bx-inactive {
|
|
pointer-events: none;
|
|
opacity: 0.2;
|
|
background: transparent !important;
|
|
}
|
|
|
|
.bx-button-shortcut {
|
|
max-width: max-content;
|
|
margin: 10px 0 0 0;
|
|
}
|
|
|
|
@media (min-width: 568px) and (max-height: 480px) {
|
|
.bx-button-shortcut {
|
|
margin: 8px 0 0 10px;
|
|
}
|
|
}
|