Template:3DCube/style.css: Difference between revisions
From SNCApedia, the shit nobody cares about encyclopedia
Jump to navigationJump to search
SomebodyRum (talk | contribs) No edit summary |
SomebodyRum (talk | contribs) No edit summary |
||
| Line 25: | Line 25: | ||
background-color: transparent; | background-color: transparent; | ||
outline: 1px solid rgba(200, 200, 200, 0.5); | outline: 1px solid rgba(200, 200, 200, 0.5); | ||
/* PREVENTS LEAKING: Cuts off anything that tries to escape the boundaries */ | |||
overflow: hidden; | |||
display: flex; | display: flex; | ||
| Line 32: | Line 35: | ||
} | } | ||
/* | /* | ||
PREVENTS WHITE BACKGROUNDS: | |||
Forces MediaWiki's image links to drop their default wiki skin styles | |||
*/ | |||
.cc-side a, | |||
.cc-side a.image, | |||
.cc-side img { | .cc-side img { | ||
background: transparent !important; | |||
background-color: transparent !important; | |||
object-fit: | border: none !important; | ||
outline: none !important; | |||
padding: 0 !important; | |||
margin: 0 !important; | |||
} | |||
/* Ensures images perfectly fill the face without stretching */ | |||
.cc-side img { | |||
width: 100%; | |||
height: 100%; | |||
object-fit: cover; | |||
} | } | ||
| Line 45: | Line 63: | ||
} | } | ||
/* Optional text styling | /* Optional text styling */ | ||
.cc-text { | .cc-text { | ||
margin: 0; | margin: 0; | ||
Revision as of 20:25, 13 April 2026
/* 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 10s 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);
/* PREVENTS LEAKING: Cuts off anything that tries to escape the boundaries */
overflow: hidden;
display: flex;
justify-content: center;
align-items: center;
text-align: center;
}
/*
PREVENTS WHITE BACKGROUNDS:
Forces MediaWiki's image links to drop their default wiki skin styles
*/
.cc-side a,
.cc-side a.image,
.cc-side img {
background: transparent !important;
background-color: transparent !important;
border: none !important;
outline: none !important;
padding: 0 !important;
margin: 0 !important;
}
/* Ensures images perfectly fill the face without stretching */
.cc-side img {
width: 100%;
height: 100%;
object-fit: cover;
}
/* 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;
}