Difference between revisions of "MediaWiki:Vector.css"

From Sapiens Wiki
Jump to navigation Jump to search
Line 1: Line 1:
#mw-panel .portal {
/* Update: 2023-07-06.1
     font-size: 20px;
/* Main Vector Components Style */
 
/*********************************************\
*                Global Changes              *
\*********************************************/
 
#content h1 {
        font-family: var(--header-font);
        color: var(--header-color);
        background-color: var(--header-background-color);
    }
 
/* Use the SapiensLight font for other headers */
#content h2, #content h3, #content h4, #content h5, #content h6 {
        font-family: var(--sub-header-font);
        color: var(--header-color);
        background-color: var(--header-background-color);
    }
 
.mw-broken-media {
        background-color: var(--game-bad-red);
        font-family: var(--code-font-family);
        font-size: var(--main-font-size);
        color: var(--main-color);
    }
 
/*The caption underneath an image. */
figure[typeof~='mw:File/Thumb'] > figcaption, figure[typeof~='mw:File/Frame'] > figcaption {
        background-color: var(--header-background-color);
        font-family: var(--main-font);
        font-size: 0.8em;
        font-style: italic;
        color: var(--main-color);     
    }
   
/* Hyperlink Colors */
a {
    color: var(--unvisited-link-color);
}
a:visited {
    color: var(--visited-link-color);
}
a:hover {
    color:var(--mouseover-link-color);
}
a:active {
    color: var(--selected-link-color);
}
a.new, a.new:visited, a.new:hover, a.new:active {
    color: var(--non-existent-link-color);
}
a.external.text {
    color: var(--ext-link-color); /* replace with your desired color */
}
a.external.text:visited {
    color: var(--ext-link-visited-color); /* replace with your desired color for visited links */
}
 
/*  Login Page */
.page-Special_UserLogin {
    background-color: var(--background-color);
    color: var(--main-color);
}
 
 
 
/*********************************************\
*                Header Section                *
\*********************************************/
 
#mw-head {
    font-family: var(--main-font);
    background-color: var(--background-color);
    color: var(--main-color);
}
 
#p-personal .vector-menu-content-list a {
    color: var(--unvisited-link-color);
    background-color: var(--background-color);
}
 
.vector-menu-tabs li a {
    color: var(--unvisited-link-color);
    background-color: var(--background-color);
    font-family: var(--main-font);
    /*font-size: calc(1em*0.7);*/
}
 
.vector-menu-tabs li.selected a {
    color: var(--unvisited-link-color);
    font-family: var(--main-font);
}
 
.vector-menu-tabs-legacy .selected a, .vector-menu-tabs-legacy .selected a:visited {
    color: var(--dark-header-color);
    background-color: var(--background-color);
    font-family: var(--main-font);
}
 
.vector-menu-tabs-legacy .new a, .vector-menu-tabs-legacy .new a:visited {
    color: var(--unvisited-link-color);
}
 
.vector-search-box-input {
    background-color: white;
    color: black;
}
 
 
 
/*********************************************\
*                Body Section                *
\*********************************************/
 
.page-Main_Page .firstHeading {
        display: none;
}
 
  /* Use the main font for content */
body, p, li, td, th {
        font-family: var(--main-font);
        /* font-size: var(--main-font-size); */
        color: var(--main-color);
        background-color: var(--background-color);
    }
 
/* Table of Contents */
.toc, .tocnumber {
        font-family: var(--main-font);
        background-color: var(--background-color);
        color: var(--main-color);
}
 
#content{
        font-family: var(--main-font);
        background-color: var(--background-color);
        color: var(--main-color);
        font-size: var(--main-font-size);
    }
 
 
#mw-content-text {
        font-family: var(--main-font);
        background-color: var(--background-color);
        color: var(--main-color);
        font-size: var(--main-font-size);
    }
 
/* The code preview box on css editing pages like Common.css */
pre.mw-code.mw-css {
        background-color:  var(--background-color);
        font-family: var(--code-font-family);
        font-size: var(--main-font-size);
        color: var(--code-color);
    }
 
pre, code, .mw-code {
        background-color:  var(--background-color);
        font-family: var(--code-font-family);
        font-size: var(--main-font-size);
        color: var(--code-color);
    }
 
.catlinks {
        background-color: var(--background-color);
    }
 
    /* File Page Menu */
#filetoc {
        background-color: var(--background-color);
    }
 
/* Styles for the wikitable */
.wikitable {
        background-color: var(--background-color); /* replace with your table's background color */
        font-family: var(--main-font); /* replace with your font family */
        font-size: var(--main-font-size); /* replace with your font size */
    }
 
    /* Styles for the header row in the wikitable */
.wikitable > tr > th, .wikitable > * > tr > th {
        background-color: var(--header-background-color); /* replace with your header's background color */
        font-family: var(--sub-header-font); /* replace with your header's font family */
        color: var(--header-color);
        font-size: var(--main-font-size); /* replace with your header's font size */
    }
 
/* Styles for the other cells in the wikitable */
.wikitable td {
        background-color: var(--background-color); /* replace with your data row's background color */
        font-family: var(--main-font); /* replace with your data row's font family */
        font-size: var(--main-font-size); /* replace with your data row's font size */
    }
 
/*********************************************\
*                Navigation Bar              *
\*********************************************/
 
#mw-panel {
    background-color: var(--background-color); /* replace with your table's background color */
    font-family: var(--main-font); /* replace with your font family */
     font-size: var(--main-font-size); /* replace with your font size */
}
}


/* Vector skin specific properties */
/* Side Menu Headers */
.vector-body,
.vector-legacy-sidebar .vector-menu-portal .vector-menu-heading {
.vector-menu-content,
     font-family: var(--sub-header-font);
.vector-menu-portal,
     color: var(--header-color);
.vector-menu-tabs li a,
.vector-menu-dropdown .menu a {
     background-color: var(--main-bg-color);
     color: white;
    border-color: var(--main-bg-color);
    font-family: SapiensLight;
     font-size: 1em;
     font-size: 1em;
}
}


/* Wiki specific properties */
.vector-menu-content {
#content,
     background-color: var(--background-color); /* replace with your table's background color */
#bodyContent,
     font-family: var(--main-font); /* replace with your font family */
#mw-head-base,
     font-size: var(--main-font-size); /* replace with your font size */
#p-logo,
#p-navigation,
#p-tb,
#p-tb-label,
#p-tb .body,
#footer {
     background-color: var(--main-bg-color);
    color: white;
     border-color: var(--main-bg-color);
     font-family: SapiensLight;
    font-size: 1.1em;
}
}


/* Wikitable specific properties */
#mw-panel a {
table.wikitable,
     color: var(--unvisited-link-color); /* Set the color of the text for regular, unvisited links. Change color as per your requirement. */
table.wikitable td,
table.wikitable th {
     background-color: var(--main-bg-color);
    color: white;
    border-color: var(--main-bg-color);
    font-family: SapiensLight;
    font-size: 1em;
}
}


/* Increase font size of sidebar links */
#mw-panel a:visited {
#mw-panel .portal .body ul li a {
     color: var(--visited-link-color); /* Set the color of the text for visited links. Change color as per your requirement. */
     font-size: 1.2em !important;
}
}


/* Change font size and color of navigation links in the sidebar */
#mw-panel a:hover {
#p-navigation .vector-menu-content-list a span,
     color: var(--mouseover-link-color); /* Set the color of the text for links when mouse hovers over them. Change color as per your requirement. */
#p-navigation .vector-menu-content-list a:visited span {
     font-size: 1.2em !important;
    font-family: 'SapiensLight' !important;
    color: #6AD8FF !important;
}
}


/* Change font size and color of toolbox links in the sidebar */
#mw-panel a:active {
#p-tb .vector-menu-content-list a span,
    color: var(--visited-link-color); /* Set the color of the text for active links. Change color as per your requirement. */
#p-tb .vector-menu-content-list a:visited span {
    font-size: 1.2em !important;
    font-family: 'SapiensLight' !important;
    color: #6AD8FF !important;
}
}


/* Main Page Formatting */
/*
body.page-Main_Page h1.firstHeading {
 
     display: none;
 
  /* Other Vector-specific rules go here */
 
/* --- Suppress Title Header on the Main Page  
 
/*
#bodyContent {
    background-color: var(--main-bg-color);
    color: var(--main-font-color);
    font-family: var(--font-main);
     font-size: var(--font-main-size);
}
}
--- */
/*
# ID selector
. class selector
content is a type selector (though "content" is not a standard HTML element as of 2021).
*/

Revision as of 05:41, 9 July 2023

/* Update: 2023-07-06.1
/* Main Vector Components Style */

/*********************************************\
*                Global Changes               *
\*********************************************/

#content h1 {
        font-family: var(--header-font);
        color: var(--header-color);
        background-color: var(--header-background-color);
    }
  
/* Use the SapiensLight font for other headers */
#content h2, #content h3, #content h4, #content h5, #content h6 {
        font-family: var(--sub-header-font);
        color: var(--header-color);
        background-color: var(--header-background-color);
    }

.mw-broken-media {
        background-color: var(--game-bad-red);
        font-family: var(--code-font-family);
        font-size: var(--main-font-size);
        color: var(--main-color);
    }

/*The caption underneath an image. */
figure[typeof~='mw:File/Thumb'] > figcaption, figure[typeof~='mw:File/Frame'] > figcaption {
        background-color: var(--header-background-color);
        font-family: var(--main-font);
        font-size: 0.8em;
        font-style: italic;
        color: var(--main-color);      
    }
    
/* Hyperlink Colors */
a {
    color: var(--unvisited-link-color);
}
a:visited {
    color: var(--visited-link-color);
}
a:hover {
    color:var(--mouseover-link-color);
}
a:active {
    color: var(--selected-link-color);
}
a.new, a.new:visited, a.new:hover, a.new:active {
    color: var(--non-existent-link-color);
}
a.external.text {
    color: var(--ext-link-color); /* replace with your desired color */
}
a.external.text:visited {
    color: var(--ext-link-visited-color); /* replace with your desired color for visited links */
}

/*  Login Page */
.page-Special_UserLogin {
    background-color: var(--background-color);
    color: var(--main-color);
}



/*********************************************\
*                 Header Section                *
\*********************************************/

#mw-head {
    font-family: var(--main-font);
    background-color: var(--background-color);
    color: var(--main-color);
}

#p-personal .vector-menu-content-list a {
    color: var(--unvisited-link-color); 
    background-color: var(--background-color);
}

.vector-menu-tabs li a {
    color: var(--unvisited-link-color);
    background-color: var(--background-color);
    font-family: var(--main-font);
    /*font-size: calc(1em*0.7);*/
}

.vector-menu-tabs li.selected a {
    color: var(--unvisited-link-color);
    font-family: var(--main-font);
}

.vector-menu-tabs-legacy .selected a, .vector-menu-tabs-legacy .selected a:visited {
    color: var(--dark-header-color);
    background-color: var(--background-color);
    font-family: var(--main-font);
}

.vector-menu-tabs-legacy .new a, .vector-menu-tabs-legacy .new a:visited {
    color: var(--unvisited-link-color);
}

.vector-search-box-input {
    background-color: white;
    color: black;
}



/*********************************************\
*                 Body Section                *
\*********************************************/

.page-Main_Page .firstHeading {
        display: none;
}

  /* Use the main font for content */
body, p, li, td, th {
        font-family: var(--main-font);
        /* font-size: var(--main-font-size); */
        color: var(--main-color);
        background-color: var(--background-color);
    }

/* Table of Contents */
.toc, .tocnumber {
        font-family: var(--main-font);
        background-color: var(--background-color);
        color: var(--main-color);
}

#content{
        font-family: var(--main-font);
        background-color: var(--background-color);
        color: var(--main-color);
        font-size: var(--main-font-size);
    }


#mw-content-text {
        font-family: var(--main-font);
        background-color: var(--background-color);
        color: var(--main-color);
        font-size: var(--main-font-size);
    }

/* The code preview box on css editing pages like Common.css */
pre.mw-code.mw-css {
        background-color:  var(--background-color);
        font-family: var(--code-font-family);
        font-size: var(--main-font-size);
        color: var(--code-color);
    }

pre, code, .mw-code {
        background-color:  var(--background-color);
        font-family: var(--code-font-family);
        font-size: var(--main-font-size);
        color: var(--code-color);
    }

.catlinks {
        background-color: var(--background-color);
    }

    /* File Page Menu */
#filetoc {
        background-color: var(--background-color);
    }

/* Styles for the wikitable */
.wikitable {
        background-color: var(--background-color); /* replace with your table's background color */
        font-family: var(--main-font); /* replace with your font family */
        font-size: var(--main-font-size); /* replace with your font size */
    }

    /* Styles for the header row in the wikitable */
.wikitable > tr > th, .wikitable > * > tr > th {
        background-color: var(--header-background-color); /* replace with your header's background color */
        font-family: var(--sub-header-font); /* replace with your header's font family */
        color: var(--header-color);
        font-size: var(--main-font-size); /* replace with your header's font size */
    }

/* Styles for the other cells in the wikitable */
.wikitable td {
        background-color: var(--background-color); /* replace with your data row's background color */
        font-family: var(--main-font); /* replace with your data row's font family */
        font-size: var(--main-font-size); /* replace with your data row's font size */
    }

/*********************************************\
*                Navigation Bar               *
\*********************************************/

#mw-panel {
    background-color: var(--background-color); /* replace with your table's background color */
    font-family: var(--main-font); /* replace with your font family */
    font-size: var(--main-font-size); /* replace with your font size */
}

/* Side Menu Headers */
.vector-legacy-sidebar .vector-menu-portal .vector-menu-heading {
    font-family: var(--sub-header-font);
    color: var(--header-color);
    font-size: 1em;
}

.vector-menu-content {
    background-color: var(--background-color); /* replace with your table's background color */
    font-family: var(--main-font); /* replace with your font family */
    font-size: var(--main-font-size); /* replace with your font size */
}

#mw-panel a {
    color: var(--unvisited-link-color); /* Set the color of the text for regular, unvisited links. Change color as per your requirement. */
}

#mw-panel a:visited {
    color: var(--visited-link-color); /* Set the color of the text for visited links. Change color as per your requirement. */
}

#mw-panel a:hover {
    color: var(--mouseover-link-color); /* Set the color of the text for links when mouse hovers over them. Change color as per your requirement. */
}

#mw-panel a:active {
    color: var(--visited-link-color); /* Set the color of the text for active links. Change color as per your requirement. */
}

/*


  /* Other Vector-specific rules go here */

/* --- Suppress Title Header on the Main Page 

/*
#bodyContent {
    background-color: var(--main-bg-color);
    color: var(--main-font-color);
    font-family: var(--font-main);
    font-size: var(--font-main-size);
}
--- */

/*
# ID selector
. class selector
content is a type selector (though "content" is not a standard HTML element as of 2021).
*/