worlio-themes/core/css/buttons.css

276 lines
4.6 KiB
CSS
Raw Normal View History

.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;
}
2023-07-29 20:17:27 -04:00
button.formbutton {
background: var(--default-button-background);
border: var(--default-button-border);
font-family: var(--primary-font);
cursor: pointer;
2023-07-29 20:26:17 -04:00
height: 28px;
width: 128px;
2023-07-29 20:17:27 -04:00
padding: 0px;
margin: 2px;
2023-07-29 20:26:17 -04:00
text-align: left;
font-size: 12px;
font-weight: normal;
flex-shrink: 0;
}
button.formbutton.small {
width: 28px;
}
button.formbutton img {
vertical-align: middle;
2023-07-29 20:17:27 -04:00
}
2023-07-29 20:34:22 -04:00
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 {
2023-04-26 18:57:59 -04:00
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;
}
2024-03-26 03:19:42 -04:00
.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;
}
2024-03-26 03:19:42 -04:00
.longbutton > a, .smallbutton > a, .widebutton > a {
color: var(--main-text);
text-decoration: none;
display: flex !important;
align-items: center;
2024-03-26 03:19:42 -04:00
}
.longbutton > a, .smallbutton >a {
height: 24px;
2024-03-26 03:19:42 -04:00
}
.longbutton > a, .widebutton > a {
width: 120px;
}
2024-03-26 03:19:42 -04:00
.longbutton > a img, .smallbutton > a img, .widebutton > a img {
margin-right: 4px;
}
2023-07-29 20:17:27 -04:00
.button:hover, .button.selected, button.formbutton:hover {
background: var(--hover-button-background);
border: var(--hover-button-border);
}
2023-07-29 20:17:27 -04:00
.button:active, button.formbutton:active {
background: var(--active-button-background);
border: var(--active-button-border);
}
2023-07-29 20:17:27 -04:00
.button.disabled, .longbutton.disabled, .smallbutton.disabled, button.formbutton.disabled {
background: var(--disabled-button-background);
border: var(--disabled-button-border);
2023-04-26 18:57:59 -04:00
}
@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);
}
2023-04-26 18:57:59 -04:00
}
@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;
}
2024-03-10 18:59:30 -04:00
}
*.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;
2024-05-01 22:49:46 -04:00
z-index: 10;
2024-03-10 18:59:30 -04:00
}
2024-05-17 19:38:57 -04:00
*.wdropdown.active > button {
border-bottom: none;
}
2024-03-10 18:59:30 -04:00
*.wdropdown.active > div.select {
display: inline;
}
*.wdropdown.active > div.select > * {
display: block;
}
*.wdropdown > div.select > button:not(.usercard) {
2024-03-10 18:59:30 -04:00
background: none;
border: none;
}
*.wdropdown > div.select > button {
2024-03-10 18:59:30 -04:00
cursor: pointer;
text-align: left;
width: 100%;
2024-05-08 04:14:42 -04:00
}
.wbtngroup { display: inline-block; }
.wbtngroup input { display: none; }
.wbtngroup > *:first-child {
display: inline-block;
background: var(--primary-container-background);
border: var(--primary-container-border);
border-right: none;
}
.wbtngroup > * {
margin: 0px;
height: 24px;
padding: 0px 4px;
2023-04-26 18:57:59 -04:00
}