204 lines
3.3 KiB
CSS
204 lines
3.3 KiB
CSS
.button {
|
|
background: var(--default-button-background);
|
|
border: var(--default-button-border);
|
|
font-family: var(--primary-font);
|
|
width: 44px;
|
|
height: 44px;
|
|
font-size: 12px;
|
|
font-weight: normal;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
button.formbutton {
|
|
background: var(--default-button-background);
|
|
border: var(--default-button-border);
|
|
font-family: var(--primary-font);
|
|
cursor: pointer;
|
|
height: 28px;
|
|
width: 128px;
|
|
padding: 0px;
|
|
margin: 2px;
|
|
text-align: left;
|
|
font-size: 12px;
|
|
font-weight: normal;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
button.formbutton.small {
|
|
width: 28px;
|
|
}
|
|
|
|
button.formbutton img {
|
|
vertical-align: middle;
|
|
}
|
|
|
|
button.formbutton a {
|
|
margin: 4px;
|
|
position: relative;
|
|
top: 2px;
|
|
}
|
|
|
|
.button:hover > a > img:nth-of-type(1) {
|
|
filter: contrast(50%);
|
|
}
|
|
|
|
.button:active > a > img:nth-of-type(1) {
|
|
filter: brightness(50%) saturate(0%);
|
|
}
|
|
|
|
.button > a {
|
|
display: block;
|
|
width: 144px;
|
|
height: 48px;
|
|
margin: -2px;
|
|
}
|
|
|
|
.button > a > img:nth-of-type(1) {
|
|
display: inline;
|
|
width: 48px;
|
|
height: 48px;
|
|
margin-right: 2px;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.popbutton {
|
|
width: 44px;
|
|
text-overflow: clip;
|
|
overflow: hidden;
|
|
transition-duration: 0.1s;
|
|
}
|
|
|
|
.longbutton, .smallbutton {
|
|
display: inline-block !important;
|
|
padding: 2px;
|
|
height: 20px;
|
|
}
|
|
|
|
.longbutton {
|
|
width: 116px;
|
|
}
|
|
|
|
.smallbutton {
|
|
width: 20px;
|
|
}
|
|
|
|
.longbutton a, .smallbutton a {
|
|
display: flex;
|
|
align-items: center;
|
|
height: 100% !important;
|
|
width: 100% !important;
|
|
margin: 0px -2px;
|
|
}
|
|
|
|
.longbutton.txt a {
|
|
display: inline-block !important;
|
|
width: 100%; height: 100%;
|
|
font-family: var(--primary-font);
|
|
text-decoration: none;
|
|
text-align: center;
|
|
color: var(--main-text, #000000);
|
|
vertical-align: middle;
|
|
}
|
|
|
|
.longbutton > a > img, .smallbutton > a > img {
|
|
width: 24px !important;
|
|
height: 24px !important;
|
|
}
|
|
|
|
.longbutton > a, .smallbutton > a {
|
|
color: var(--main-text);
|
|
text-decoration: none;
|
|
display: flex !important;
|
|
align-items: center;
|
|
height: 24px;
|
|
width: 120px;
|
|
}
|
|
|
|
.longbutton > a img, .smallbutton > a img {
|
|
margin-right: 4px;
|
|
}
|
|
|
|
.button:hover, .button.selected, button.formbutton:hover {
|
|
background: var(--hover-button-background);
|
|
border: var(--hover-button-border);
|
|
}
|
|
|
|
.button:active, button.formbutton:active {
|
|
background: var(--active-button-background);
|
|
border: var(--active-button-border);
|
|
}
|
|
|
|
.button.disabled, .longbutton.disabled, .smallbutton.disabled, button.formbutton.disabled {
|
|
background: var(--disabled-button-background);
|
|
border: var(--disabled-button-border);
|
|
}
|
|
|
|
@media only screen and (orientation: landscape) {
|
|
.button {
|
|
display: block;
|
|
margin: 2px;
|
|
}
|
|
|
|
.button a {
|
|
display: block;
|
|
width: 48px;
|
|
height: 48px;
|
|
}
|
|
|
|
.popbutton {
|
|
font-size: 16px;
|
|
margin: 2px 4px;
|
|
}
|
|
|
|
.popbutton:hover {
|
|
width: 140px;
|
|
}
|
|
|
|
.popbutton > a {
|
|
color: var(--main-text);
|
|
text-decoration: none;
|
|
display: flex;
|
|
align-items: center;
|
|
height: 48px;
|
|
width: 144px;
|
|
}
|
|
|
|
.popbutton > a img {
|
|
margin-right: 4px;
|
|
}
|
|
|
|
.oddbutton {
|
|
top: 8px;
|
|
left: calc(64px + 8px);
|
|
}
|
|
}
|
|
|
|
@media only screen and (orientation: portrait) {
|
|
.button {
|
|
display: inline-block;
|
|
margin: 2px;
|
|
}
|
|
|
|
.popbutton {
|
|
margin: 4px 2px;
|
|
}
|
|
|
|
.popbutton:hover {
|
|
width: 44px;
|
|
}
|
|
|
|
.popbutton a:nth-of-type(2) {
|
|
display: none;
|
|
}
|
|
|
|
.oddbutton {
|
|
top: calc(64px + 8px);
|
|
left: 8px;
|
|
}
|
|
|
|
.longbutton.collapse {
|
|
width: 20px;
|
|
margin: 2px !important;
|
|
font-size: 0px;
|
|
}
|
|
} |