Files
GlModelViewer/modules/glmv.css
2024-11-16 16:45:11 -07:00

235 lines
4.1 KiB
CSS

.AddingHotspot {
cursor: crosshair !important;
}
.DeletingHotspot {
cursor: not-allowed !important;
}
.Hotspot{
background: #00000080;
border-radius: 100%;
border: #FFFFFF 1px solid;
box-shadow: rgba(0, 0, 0, 0.25) 0 2px 4px;
box-sizing: border-box;
color: #FFFFFF;
cursor: pointer;
font-weight: bold;
font-size: 16px;
height: 24px;
position: relative;
padding: 0;
transition: opacity 0.3s;
width: 24px;
display: flex;
justify-content: center;
align-items: center;
&[hidden] {
display: none !important;
}
& span {
padding-top: 2px;
pointer-events: none;
}
}
.HotspotAnnotation{
background: rgb(255, 255, 255);
border-radius: 4px;
box-shadow: rgba(0, 0, 0, 0.25) 0 2px 4px;
color: rgba(0, 0, 0, 0.8);
display: block;
font-family: Futura, "Helvetica Neue", sans-serif;
left: calc(100% + 1em);
max-width: 128px;
opacity: 1;
overflow-wrap: break-word;
padding: 0.5em 1em;
pointer-events: none;
position: absolute;
top: 50%;
transform: translateY(-50%);
transition: height 0.3s;
width: max-content;
}
.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;
}
.button-show-model.button-used{
opacity: 0;
display: none;
}
.gallerybox .gallerytext div:has(model-viewer) {
display: none;
}
.glmv-container {
position: relative;
background: white;
& .full-show {
display: none !important;
}
&:fullscreen .full-hide {
display: none !important;
}
&:fullscreen .full-show {
display: flex !important;
}
}
.glmv-menu {
border: solid 2px #0000008F;
background: #FFFFFFCC;
overflow: hidden;
height: 32px;
width: 32px;
font-weight: bold;
border-radius: 6px;
transition: width .5s;
position: absolute;
bottom: 50px;
left: 0;
display: flex;
flex-direction: row;
justify-content: flex-start;
&:hover {
width: 196px;
& .glmv-menu-image {
transform: rotate(180deg);
}
}
}
.glmv-menu-image {
width: 32px;
height: 32px;
position: relative;
transition: transform .5s;
flex: 0 0 32px;
}
.glmv-menu-button {
width: 28px;
height: 28px;
position: relative;
margin: 2px;
flex: 0 0 28px;
border-radius: 2px;
& img {
width: 100%;
height: 100%;
pointer-events: none;
}
&[toggled] {
background: #00000033;
}
&[disabled] {
pointer-events: none;
opacity: .3;
}
}
.glmv-act-button {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
width: 52px;
height: 52px;
padding: 6px;
background: #FFFFFF90;
border-radius: 100%;
display: flex;
justify-content: center;
align-items: center;
cursor: pointer;
& img {
pointer-events: none;
}
}
.prev-hs img {
transform: scaleX(-1);
}
.preview-button {
margin: 2px;
}
.glmv-file-link {
position: absolute;
right: 0;
bottom: 0;
}
@media (pointer: coarse) {
.Hotspot {
width: 1.25em;
height: 1.25em;
font-size: 2.25em;
}
.HotspotAnnotation{
font-size: .5em;
max-width: 240px;
width: auto;
}
.glmv-menu {
height: 48px;
width: 48px;
border-radius: 9px;
&:hover {
width: 294px;
}
}
.glmv-menu-image {
width: 48px;
height: 48px;
flex: 0 0 48px;
}
.glmv-menu-button {
width: 42px;
height: 42px;
margin: 3px;
flex: 0 0 42px;
border-radius: 3px;
}
.glmv-act-button {
width: 75px;
height: 75px;
padding: 9px;
}
}