Fix hotspot styles on mobile

Signed-off-by: Justin Georgi <justin.georgi@gmail.com>
This commit is contained in:
2024-10-31 19:30:43 -07:00
parent d59958f110
commit 75b5b1b279

View File

@@ -22,9 +22,9 @@
& [hidden] {
display: none;
}
}
}
.HotspotAnnotation{
.HotspotAnnotation{
background: rgb(255, 255, 255);
border-radius: 4px;
box-shadow: rgba(0, 0, 0, 0.25) 0 2px 4px;
@@ -42,41 +42,41 @@
transform: translateY(-50%);
transition: height 0.3s;
width: max-content;
}
}
.HiddenAnnotation{
height: 0;
opacity: 0;
}
.HiddenAnnotation{
height: 0;
opacity: 0;
}
.material-symbols-outlined.button-show-model{
position: absolute;
left: 50%;
top: 50%;
transform: translate3d(-50%, -50%, 0);
background: #00000080;
font-size: 50px;
color: white;
width: 50px;
height: 50px;
cursor: pointer;
transition: opacity 0.3s, display 0s;
}
.material-symbols-outlined.button-show-model{
position: absolute;
left: 50%;
top: 50%;
transform: translate3d(-50%, -50%, 0);
background: #00000080;
font-size: 50px;
color: white;
width: 50px;
height: 50px;
cursor: pointer;
transition: opacity 0.3s, display 0s;
}
.button-show-model.button-used{
opacity: 0;
display: none;
}
.gallerybox .gallerytext div:has(model-viewer) {
.button-show-model.button-used{
opacity: 0;
display: none;
}
}
.glmv-container {
.gallerybox .gallerytext div:has(model-viewer) {
display: none;
}
.glmv-container {
position: relative;
}
}
.glmv-menu {
.glmv-menu {
border: solid 2px #0000008F;
background: #FFFFFFCC;
overflow: hidden;
@@ -99,17 +99,17 @@
transform: rotate(180deg);
}
}
}
}
.glmv-menu-image {
.glmv-menu-image {
width: 32px;
height: 32px;
position: relative;
transition: transform .5s;
flex: 0 0 32px;
}
}
.glmv-menu-button {
.glmv-menu-button {
width: 28px;
height: 28px;
position: relative;
@@ -131,8 +131,21 @@
pointer-events: none;
opacity: .3;
}
}
}
.prev-hs img {
.prev-hs img {
transform: scaleX(-1);
}
}
@media (pointer: coarse) {
.Hotspot {
width: 60px;
height: 60px;
font-size: 40px;
}
.HotspotAnnotation{
max-width: 240px;
width: auto;
}
}