Template:3DCube/style.css
From SNCApedia, the shit nobody cares about encyclopedia
Jump to navigationJump to search
/* Template:3DCube/style.css
cc: shorthand term for "CSS Cube", modular and transparent */
.cc-scene {
margin: 25px auto;
}
.cc-cube {
width: 100%;
height: 100%;
position: relative;
}
.cc-center {
animation: cc-3DSpin 12s linear infinite;
width: 100%;
height: 100%;
}
.cc-side {
position: absolute;
width: 100%;
height: 100%;
background-color: transparent;
outline: 1px solid rgba(200, 200, 200, 0.5);
display: flex;
justify-content: center;
align-items: center;
text-align: center;
}
/*
Target ONLY the standard MediaWiki image wrappers.
This removes white backgrounds on images, but leaves
audio/video player buttons safe and visible!
*/
.cc-side a.image,
.cc-side figure {
background: transparent !important;
background-color: transparent !important;
border: none !important;
box-shadow: none !important;
padding: 0 !important;
margin: 0 !important;
}
/* Ensures images and videos automatically scale to fit the cube */
.cc-side img,
.cc-side video {
width: 100%;
height: 100%;
object-fit: contain;
}
/* Spin animation */
@keyframes cc-3DSpin {
from { transform: rotate(0deg); }
to { transform: rotate(360deg); }
}
/* Optional text styling */
.cc-text {
margin: 0;
font-family: 'Georgia', serif;
font-size: 3em;
line-height: 1;
font-weight: bold;
}