MediaWiki:Common.css: Difference between revisions

From Fate/Starry Night Wiki
Jump to navigation Jump to search
Placed warning box code in wrong spot
No edit summary
Line 99: Line 99:
/* Manual Warning Template Style */
/* Manual Warning Template Style */
.manual-warning-box {
.manual-warning-box {
     background-color: #fee7e6;
     background-color: #fee7e6;  
     border: 1px solid #fbc5c3;
     border: 1px solid #fbc5c3;
    border-left: 10px solid #d33;
     color: #202122;          
     color: #000;
     margin: 1em 0;
     margin: 1em 0;
     padding: 15px;
     padding: 12px 15px;
     display: flex;
     display: flex;
     align-items: center;
     align-items: flex-start;  
     border-radius: 4px;
     border-radius: 2px;
}
}


.manual-warning-icon {
.manual-warning-icon {
     font-size: 24px;
     font-size: 1.2em;
     margin-right: 15px;
     margin-right: 12px;
     flex-shrink: 0;
     flex-shrink: 0;          
    line-height: 1.5;         
}
}


.manual-warning-content {
.manual-warning-content {
     flex-grow: 1;
     flex-grow: 1;
    line-height: 1.5;       
}
.manual-warning-content b {
    color: #000;
}
}

Revision as of 17:59, 16 February 2026

/* CSS placed here will be applied to all skins */

:root {
  --page-max: 1234px;
  --sidebar-width: 140px;
  --content-left: calc(100vw - var(--sidebar-width) /2 + 70px)
}


/*****************************
 *        CONTAINER          *
 *****************************/
html body {
	max-width: 1234px;
	min-height: calc(100% - 80px);
	height: auto;
	padding-bottom: 80px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
}
/*****************************
 *           LOGO            *
 *****************************/
#p-logo a { background-size: cover; }
.mw-wiki-logo { margin-top: 10px; }

/*****************************
 *        LANGUAGES          *
 *****************************/
#p-variants, #p-lang { display: none; }

/*****************************
 *         SIDEBAR           *
 *****************************/
/* Set defaults */
.emptyPortlet { 
	display: block; 
}
.portal .vector-menu-heading {
    background-image: none !important;
    padding: none !important;
    /* Category underline */
    padding: 0.2em 0 !important;
    margin: 0.5em 0.6em 0 0.66666667em !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.35) !important;
}
.portal .vector-menu-content { margin: 0 0 0 0.5em !important; }
/* Category - default */
.portal .vector-menu-heading::after {
    content: "▾";
    margin-left: auto;
    opacity: 0.6;
    transition: transform 0.2s ease, opacity 0.2s ease;
}
/* Category - collapsed */
.portal.collapsed .vector-menu-heading::after {
    content: "▸";
    opacity: 0.4;
}
.portal.collapsed .vector-menu-heading,
.portal.collapsed .vector-menu-heading a{
    color: #4d4d4d !important;
}
/* Hover effect */
.portal.collapsed .vector-menu-heading:hover,
.portal.collapsed .vector-menu-heading a:hover{
    text-decoration: none !important;
}
.portal .vector-menu-heading:hover::after {
    opacity: 0.85;
}

/*****************************
 *      TOC - FLOATING       *
 *****************************/
/* Floating TOC styling */
#toc.toc-floating {
  position: fixed;
  bottom: 10px;            
  transform: translateX(calc((100vw - min(var(--content-left), var(--page-max))) / 2 + 10px - var(--toc-left)));
  max-width: 135px;
  max-height: calc(100vh - 120px);
  overflow: auto;
  z-index: 100;
  background: var(--mw-body-background, #fff);
  padding: 0.5em 0.75em;
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.10);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  #toc.toc-floating {
    transition: none;
  }
}

/* Manual Warning Template Style */
.manual-warning-box {
    background-color: #fee7e6; 
    border: 1px solid #fbc5c3;
    color: #202122;            
    margin: 1em 0;
    padding: 12px 15px;
    display: flex;
    align-items: flex-start; 
    border-radius: 2px;
}

.manual-warning-icon {
    font-size: 1.2em;
    margin-right: 12px;
    flex-shrink: 0;            
    line-height: 1.5;          
}

.manual-warning-content {
    flex-grow: 1;
    line-height: 1.5;         
}

.manual-warning-content b {
    color: #000;
}