New mission: revamp the portals to make them look actually tolerable to the eye. They are currently placeholders as of now.
The Gold Network: Soyworld | SNCApedia | SoyPlace


I'm not dead, just inactive for the moment. Faggot (talk) 20:16, 9 April 2026 (UTC)

Template:3DCube/style.css: Difference between revisions

From SNCApedia, the shit nobody cares about encyclopedia
Jump to navigationJump to search
No edit summary
No edit summary
Line 13: Line 13:


.cc-center {
.cc-center {
     animation: cc-3DSpin 10s linear infinite;
     animation: cc-3DSpin 12s linear infinite;
     width: 100%;
     width: 100%;
     height: 100%;
     height: 100%;
Line 24: Line 24:
      
      
     background-color: transparent;  
     background-color: transparent;  
   
    /* A subtle outline so you can see the cube's shape.
      Change this to "none" if you want pure floating images! */
     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 36: Line 36:


/*  
/*  
   PREVENTS WHITE BACKGROUNDS:
   THE FIX: Nuke all backgrounds, borders, and shadows from EVERY MediaWiki
   Forces MediaWiki's image links to drop their default wiki skin styles
   wrapper (<span>, <a>, <figure>) that tries to wrap the image.
*/
*/
.cc-side a,
.cc-side * {
.cc-side a.image,
.cc-side img {
     background: transparent !important;
     background: transparent !important;
     background-color: transparent !important;
     background-color: transparent !important;
     border: none !important;
     border: none !important;
     outline: none !important;
     box-shadow: none !important;
     padding: 0 !important;
     padding: 0 !important;
     margin: 0 !important;
     margin: 0 !important;
}
}


/* Ensures images perfectly fill the face without stretching */
/*  
  'contain' ensures the image scales perfectly to fit inside the  
  cube without cutting off the edges or leaking outside!
*/
.cc-side img {
.cc-side img {
     width: 100%;
     width: 100%;
     height: 100%;
     height: 100%;
     object-fit: cover;  
     object-fit: contain;  
}
}



Revision as of 20:28, 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 12s linear infinite;
    width: 100%;
    height: 100%;
}

.cc-side {
    position: absolute;
    width: 100%;
    height: 100%;
    
    background-color: transparent; 
    
    /* A subtle outline so you can see the cube's shape. 
       Change this to "none" if you want pure floating images! */
    outline: 1px solid rgba(200, 200, 200, 0.5); 
    
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

/* 
  THE FIX: Nuke all backgrounds, borders, and shadows from EVERY MediaWiki 
  wrapper (<span>, <a>, <figure>) that tries to wrap the image.
*/
.cc-side * {
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* 
  'contain' ensures the image scales perfectly to fit inside the 
  cube without cutting off the edges or leaking outside!
*/
.cc-side img {
    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;
}