MediaWiki:Common.css: Difference between revisions

From Fate/Starry Night Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
 
(49 intermediate revisions by 2 users not shown)
Line 1: Line 1:
/* CSS placed here will be applied to all skins */
/* CSS placed here will be applied to all skins */
/*  
 
   Logo
:root {
*/
  /*--page-max: 1234px;*/
  --page-max: 1150px;
   --sidebar-width: 140px;
  --content-left: calc(100vw - var(--sidebar-width) /2 + 70px);
  --body-background: #0b0f13CC;
}
 
 
/*****************************
*        CONTAINER          *
*****************************/
html body {
max-width: var(--page-max);
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; }
#p-logo a { background-size: cover; }
.mw-wiki-logo { margin-top: 10px; }
.mw-wiki-logo { margin-top: 10px; }


/*  
/*****************************
  Sidebar
*        LANGUAGES          *
*/
*****************************/
/* Remove defaults */
#p-variants, #p-lang { display: none; }
 
/*****************************
*        SIDEBAR          *
*****************************/
/* Set defaults */
.emptyPortlet {
display: block;
}
.portal .vector-menu-heading {
.portal .vector-menu-heading {
     background-image: none !important;
     background-image: none !important;
     padding: none !important;
     padding: none !important;
}
    /* Category underline */
#p-tb .vector-menu-content { margin: 0 0 0 0.5em !important; }
/* Category underline */
.portal .vector-menu-heading {
     padding: 0.2em 0 !important;
     padding: 0.2em 0 !important;
     margin: 0.5em 0.6em 0 0.66666667em !important;
     margin: 0.5em 0.6em 0 0.66666667em !important;
     border-bottom: 1px solid rgba(0, 0, 0, 0.35) !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 */
/* Category - default */
.portal .vector-menu-heading::after {
.portal .vector-menu-heading::after {
Line 29: Line 57:
}
}
/* Category - collapsed */
/* Category - collapsed */
.portal .collapsed .vector-menu-heading::after {
.portal.collapsed .vector-menu-heading::after {
     transform: rotate(-90deg);
     content: "▸";
     opacity: 0.4;
     opacity: 0.4;
}
}
.portal .collapsed .vector-menu-heading a {
.portal.collapsed .vector-menu-heading,
.portal.collapsed .vector-menu-heading a{
     color: #4d4d4d !important;
     color: #4d4d4d !important;
}
}
/* Hover effect */
/* Hover effect */
.portal .collapsed .vector-menu-heading a:hover {
.portal.collapsed .vector-menu-heading:hover,
     border-bottom: none !important;
.portal.collapsed .vector-menu-heading a:hover{
     text-decoration: none !important;
}
}
.portal .vector-menu-heading:hover::after {
.portal .vector-menu-heading:hover::after {
     opacity: 0.85;
     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;
}
.toc.toc-floating ul ul { margin-left: 0 !important; }
/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  #toc.toc-floating {
    transition: none;
  }
}
/*****************************
*          THEMING          *
*****************************/
/*
html {
background-image: url(https://starrynightrp.netlify.app/_media/kaminami_yoshitaka.jpg);
height: 100vh;
    background-position: 50%;
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
}
html body {
    background: var(--body-background);
}
#content {
background: linear-gradient(rgba(26,30,36,.8),rgba(14,16,19,.8));
}
*/

Latest revision as of 23:48, 23 February 2026

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

:root {
  /*--page-max: 1234px;*/
  --page-max: 1150px;
  --sidebar-width: 140px;
  --content-left: calc(100vw - var(--sidebar-width) /2 + 70px);
  --body-background: #0b0f13CC;
}


/*****************************
 *        CONTAINER          *
 *****************************/
html body {
	max-width: var(--page-max);
	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;
}
.toc.toc-floating ul ul { margin-left: 0 !important; }
/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  #toc.toc-floating {
    transition: none;
  }
}







/*****************************
 *          THEMING          *
 *****************************/
/*
html {
	background-image: url(https://starrynightrp.netlify.app/_media/kaminami_yoshitaka.jpg);
	height: 100vh;
    background-position: 50%;
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
}
html body {
    background: var(--body-background);
}
#content {
	background: linear-gradient(rgba(26,30,36,.8),rgba(14,16,19,.8));
}
*/