worlio-themes/core/css/buttons.css
2024-03-26 02:19:42 -05:00

253 lines
4.1 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;
}
.widebutton {
width: 140px;
font-size: 16px;
margin: 2px 4px;
}
.longbutton a, .smallbutton a, .widebutton 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, .widebutton > a {
color: var(--main-text);
text-decoration: none;
display: flex !important;
align-items: center;
}
.longbutton > a, .smallbutton >a {
height: 24px;
}
.longbutton > a, .widebutton > a {
width: 120px;
}
.longbutton > a img, .smallbutton > a img, .widebutton > 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;
}
}
*.wdropdown > button {
min-width: 130px;
min-height: 30px;
background: var(--primary-container-background);
border: var(--primary-container-border);
cursor: pointer;
text-align: left;
margin: 2px 0;
}
*.wdropdown > div.select {
position: absolute;
display: none;
flex-direction: column;
background: var(--secondary-container-background);
border: var(--secondary-container-border);
border-top: none;
overflow-y: auto;
max-height: 280px;
}
*.wdropdown.active > div.select {
display: inline;
}
*.wdropdown.active > div.select > * {
display: block;
}
*.wdropdown > div.select > button {
background: none;
border: none;
cursor: pointer;
margin: 4px;
text-align: left;
}