module_de_visualisation / style /template_modern_style.css
bilca's picture
Create template_modern_style.css
23059c0 verified
raw
history blame
2.42 kB
/* Modern Aesthetic CSS */
/* Widget container styling */
.ply-widget-container {
position: relative;
width: 100%;
height: 0;
padding-bottom: var(--aspect-percent);
/* Optional: a subtle shadow to lift the widget */
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}
/* GIF Preview styling */
.gif-preview-container {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
border: none;
border-radius: 12px;
overflow: hidden;
cursor: pointer;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.gif-preview-container img {
width: 100%;
height: 100%;
object-fit: cover;
}
/* Viewer Container styling */
.viewer-container {
display: none;
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: #ffffff;
border: none;
border-radius: 12px;
overflow: hidden;
box-sizing: border-box;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
/* Canvas fills the viewer container */
.ply-canvas {
width: 100%;
height: 100%;
display: block;
/* Background is set by JS using JSON */
}
/* Progress dialog styling */
.progress-dialog {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
border: none;
background: #ffffff;
padding: 20px;
border-radius: 8px;
z-index: 1000;
display: none;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
/* Menu (instructions) content styling */
.menu-content {
display: none;
position: absolute;
top: 70px;
right: 15px;
background: #ffffff;
border: none;
border-radius: 8px;
padding: 10px;
font-size: 15px;
line-height: 1.4;
color: #333;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
/* Button styling */
.widget-button {
position: absolute;
width: 45px;
height: 45px;
background-color: #007BFF;
border: none;
border-radius: 50%;
cursor: pointer;
font-size: 16px;
color: #ffffff;
display: flex;
align-items: center;
justify-content: center;
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}
/* Positions for specific buttons */
.close-btn {
top: 17px;
left: 15px;
font-family: sans-serif;
}
.fullscreen-toggle {
top: 17px;
right: 15px;
}
.help-toggle {
top: 17px;
right: 70px;
font-size: 20px;
}
.reset-camera-btn {
top: 17px;
right: 123px;
font-size: 20px;
line-height: normal;
padding: 0;
}
/* Adjust the reset icon position */
.reset-icon {
display: inline-block;
transform: translateY(-3px);
}