You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

156 lines
3.1 KiB
CSS

/*
This Source Code Form is subject to the terms of the Mozilla Public
License, v. 2.0. If a copy of the MPL was not distributed with this
file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
:root {
--playerinfo-height: 70px;
--playerinfo-fullheight: calc(var(--playerinfo-height) + 10px);
}
.dark-popup {
background-color: rgba(23, 23, 23, 0.75);
}
.solid-popup {
background-color: rgba(23, 23, 23, 1);
}
#menu-popup {
overflow-y: hidden;
}
#mainmenu-items .mainmenu-item {
text-align: center;
font-size: 16pt;
border-radius: 5px;
border: 1px solid white;
padding: 1em;
margin-bottom: 1em;
}
#mainmenu-items .mainmenu-item-sm {
font-size: 14pt;
padding: 0.5em;
}
#playerinfo {
position: absolute;
left: 0;
top: var(--f7-statusbar-height);
padding: 10px;
padding-right: 20px;
padding-bottom: 20px;
width: 20em;
height: var(--playerinfo-height);
max-width: 90vw;
background-image: url(../img/player-info-bg.svg);
background-size: 100% 65px;
background-repeat: no-repeat;
background-position: top 5px left 0px;
}
#playerinfo .usericon {
flex-shrink: 0;
}
#playerinfo .username-healthbar {
margin-bottom: 20px;
font-size: 16px;
vertical-align: middle;
width: 100%;
}
.username-healthbar .username {
padding: 0px 10px;
overflow: hidden;
white-space: nowrap;
}
.username-healthbar .healthbar {
width: 100%;
max-width: 20em;
background: rgba(23, 23, 23, 0.25);
border-top-right-radius: 4px;
border-bottom-right-radius: 4px;
border: 1px solid white;
border-left: none;
}
.healthbar span {
border-top-right-radius: 2px;
border-bottom-right-radius: 2px;
}
#player-level-badge {
margin-bottom: 4px;
margin-left: auto;
}
#messagebar {
background-color: rgba(23, 23, 23, 0.75);
}
#messagebar #messages-content {
max-height: 33vh;
overflow-y: auto;
}
#messagebar #chatbox {
overflow-y: hidden;
}
#messagebar .toggle-messages {
width: 64px;
}
#messagebar .message-avatar {
border-radius: 50%;
border: 1px solid rgba(255,255,255,0.25);
}
#place-info {
width: 100%;
}
#place-info .progressbar {
height: 8px;
border-radius: 8px;
border: 2px solid rgba(255,255,255,0.5);
background: rgba(23, 23, 23, 0.25);
}
#place-popup {
margin-top: var(--playerinfo-fullheight);
height: calc(100% - var(--f7-statusbar-height) - var(--playerinfo-fullheight));
}
#place-popup .action-button {
border-radius: var(--f7-button-border-radius);
text-align: center;
cursor: pointer;
}
#place-info #place-image {
width: 100%;
max-height: 15em;
margin-bottom: 5px;
background-image: url(../img/place/background.png);
background-size: contain;
background-repeat: no-repeat;
background-position-y: bottom;
background-position-x: center;
object-fit: contain;
}
#place-popup .action-button .game-icon {
vertical-align: middle;
}
@media (min-width: 630px) and (min-height: 630px) {
#place-popup {
margin-top: calc(-1 * var(--f7-popup-tablet-height)/ 2);
height: var(--f7-popup-tablet-height);
}
}