MediaWiki:Common.css

Revision as of 17:38, 18 June 2021 by Aardvark (talk | contribs)

Note: After publishing, you may have to bypass your browser's cache to see the changes.

  • Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
  • Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
  • Internet Explorer / Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5
  • Opera: Press Ctrl-F5.
/* CSS placed here will be applied to all skins */

/*
@import url('https://fonts.googleapis.com/css?family=Rubik:400,700&display=swap&subset=latin-ext');
*/
@import url('https://fonts.googleapis.com/css?family=Open+Sans:400,400i,700,700i&display=swap&subset=latin-ext');

html, body
{
    font-family: 'Open Sans', sans-serif;
}

.mw-body-content
{
    font-size: unset;
}

h1, h2, h3, h4, h5, h6
{
    border-bottom: 1px solid #d5d5d5;
    font-weight: bold;
}

.mw-body h1, .mw-body-content h1
{
    font-size: 2em;
}

.mw-body h1, .mw-body-content h1, .mw-body-content h2
{
/*
    font-family: 'Rubik';
*/
    font-weight: bold;
/*
    padding-bottom: 0.3em;
*/
    margin-bottom: 0.3em;
}

.mw-body h1, .mw-body-content h1 {
    font-size: 2em;
}

.mw-body-content h3, .mw-body-content h4, .mw-body-content h5, .mw-body-content h6
{
    margin-top: 0.6em;
}

img
{
    max-width: 100%;
    height: auto;
}

blockquote
{
    padding-left: 1em;
    padding: 1em;
    border: 1px solid #ddd;
    border-left: 4px solid #ddd;
/*    background: #f3f3ff; */
    background: #d8ecff;
    border-radius: 0.33em;
    border-color: #a3d3ff;
}

.diff-addedline
{
    border-color: #a3d3ff;
}

.diff-addedline, .diff-deletedline, .diff-context
{
    font-size: 88%;
    line-height: 1.6;
    vertical-align: top;
    white-space: -moz-pre-wrap;
    white-space: pre-wrap;
    border-style: solid;
    border-width: 1px 1px 1px 4px;
    border-radius: 0.33em;
}

.stub, .wikiproject, .transclusionnotice
{
    border: 1px solid #a2a9b1;
    background-color: #f8f9fa;
    font-size: 125%;
    text-align: center;
    max-width: 750px;
    padding: .4em;
    margin-bottom: .8em;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
}

.highlight
{
    background: #ff0;
    font-weight: unset;
}

.highlight-warning
{
    background: #fa0;
    font-weight: unset;
}

.highlight-bad,
.highlight-danger,
.highlight-todo
{
    background: #f00;
    font-weight: unset;
}

.highlight-good,
.highlight-done
{
    background: #0f0;
    font-weight: unset;
}


h2
{
    /* clear: both; */ /* This might have broken some page layouts. */
}

div.floatright img
{
    margin-left: 2em;
    margin-bottom: 2em;
}

@media only screen and (max-width : 1000px)
{
    div.floatright
    {
        float: unset;
    }

    div.floatright img
    {
        margin-left: 0;
    }

    div.mw-collapsible
    {
        width: 95%!important; /* Temp fix for Defacing the Wall’s wide collapsible boxes on mobile */
    }
    
    .infobox
    {
        float: none!important;
        width: 100%!important;
        margin: 0 0 1em 0!important;
    }

    .mobile-fullwidth
    {
        width:100%!important;
    }
}

.shadow
{
    margin: 1em 0;
    padding: 2em;
    border-radius: 0.33em;
}

.shadow h2
{
    margin-top: 0;
}

blockquote,
.shadow
{
    box-shadow: 0 5px 20px 0 rgba(0, 0, 0, 0.2);
    margin: 2em;
}

.button a
{
    color: #fff !important;
    background-color: #36c;
    border-color: #36c;
    padding: 0.5em 1em 0.5em 1em !important;
    display: inline-block;
    font-weight: bold;
    border-radius: 2px;
    margin-bottom: 4px;
}

.button a:hover
{
    text-decoration: none;
    background-color: #447ff5;
    border-color: #447ff5;
}

q
{
    font-weight: bold;
    font-size: 130%;
    font-style: italic;
}

q::before,
q::after
{
    font-size: 200%;
    font-weight: bold;
    font-family: serif;
    opacity: 0.5;
}

.max-width img
{
    max-width: 512px;
}

#userlogin2 .mw-htmlform-field-HTMLInfoField:nth-child(9)
{
    margin-top: 1em;
    padding: 1em 0em;
    border-top: 3px solid black;
}

.mw-input {
    font-weight: bold;
}

/* Flex Container */
.flex-container {
    display: flex;
    flex-wrap: wrap;
    grid-gap: 1em;
}

.flex-container .flex-item {
    flex: 1 1 20.17em;
}

.intro-container, .materials-container
{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1em;
    margin-bottom: 1em;
}

.generic-container
{
    padding: 1em;
    background: #f9f9f9;
    border: 1px solid #ddd;
}

.projects-container
{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1em;
    margin-bottom: 1em;
}

.welcome-section
{
    background: #f5fffa;
    border: 1px solid #cef2e0;
}

.eric-section
{
    border: 1px solid #cedff2;
    background: #f5faff;
}

.grid-item
{
/*
    background: #eee;
*/
    padding: 1em;
}

.content li {
    margin-bottom: 5px;
}

.img-50 img
{
    border-radius: 5px;
    max-width: 50%;
}

.img-cover img
{
    border-radius: 5px;
    width: 250px;
    max-width: 100%;
}

.img-50 p,
.img-cover p
{
    text-align: center;
}

.social-icons a.external
{
    background: unset;
/*
    padding-right: 0;
*/
    font-size: 30px;
    text-align: center;
}

/* heading padding */

h1, h2, h3, h4, h5, h6 {
    margin-bottom: 0.5em;
}

.content .mw-parser-output > h1, .content .mw-parser-output > h2, .content .mw-parser-output > h3, .content .mw-parser-output > h4, .content .mw-parser-output > h5, .content .section-heading, .content .in-block {
    margin-bottom: 0.75em;
}

.mw-ui-icon-element {
/*
    padding-bottom: 0;
*/
}

/* Generic Boxes */

.box-generic {
    border: 1px solid #cacaca;
    box-sizing: border-box;
    height: 100%;
}

.box-header {
    text-align: center;
    border-bottom: 1px solid #cacaca;
    background-color: rgb(248 249 250 / 60%);
}

.box-header h4, .box-header h3 {
    margin-top: 0;
    padding-top: 0;
    border-bottom: none;
}

.box-header p {
    margin: 0!important;
}

.box-content {
    padding: 0em 1em .5em;
}

.box-content ul {
    margin: 0.3em 0 0 1em;
}

/* responsive video for youtube widget */

.fivefifty {max-width: 550px;}

.video-responsive {
    position: relative;
    padding-bottom:56.25%;
    height:0;
    overflow: hidden;
    max-width: 100%;
}

.video-responsive iframe,
.video-responsive object,
.video-responsive embed {
    position: absolute; 
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}


/* ericism */
.ericism-container {
    display: block;
    grid-template-columns: none;
    margin-bottom: 1em;
    overflow: visible;
/*
    display: grid;
    grid-template-columns: 60% auto;
    margin-bottom: 1em;
*/
}

.ericism {
    margin-right: 30px;
}

.ericism h2 {
    margin-top: unset;
}

.ericism-reference {
    margin-top: 2.3em;
    margin-bottom: auto;
}

.ericism-reference p {
    margin: unset;
}

@media only screen and (min-width: 1280px)  {
  
.ericism-reference {
    max-width: 900px;
  }
  
}

/* Navigation Button template style */

.nav-container
{
    display: grid;
    grid-template-columns: auto auto;
}

.nav-button a {
    color: #fff !important;
    background-color: #36c;
    border-color: #36c;
    padding: 0.5em 4.2em 0.5em 4.2em !important;
    font-weight: bold;
    border-radius: 4px;
    text-align: center;
}

.nav-button a:hover {
    text-decoration: none;
    background-color: #447ff5;
    border-color: #447ff5;
}

.no-prev, .no-next {
    display: none;
}

/* Infobox template style */

.infobox {
    border: 1px solid #a2a9b1;
    border-spacing: 3px;
    background-color: #f8f9fa;
    color: black;
    /* @noflip */
    margin: 0 0 0.5em 1em;
    padding: 0.2em;
    /* @noflip */
    float: right;
    /* @noflip */
    clear: right;
    font-size: 88%;
    line-height: 1.5em;
    width: 22em;
}

.infobox caption {
    font-size: 125%;
    font-weight: bold;
    padding: 0.2em;
    text-align: center;
}

.infobox td,
.infobox th {
    vertical-align: top;
    /* @noflip */
    text-align: left;
}

.infobox.bordered {
    border-collapse: collapse;
}

.infobox.bordered td,
.infobox.bordered th {
    border: 1px solid #a2a9b1;
}

.infobox.bordered .borderless td,
.infobox.bordered .borderless th {
    border: 0;
}

.infobox.sisterproject {
    width: 20em;
    font-size: 90%;
}

.infobox.standard-talk {
    border: 1px solid #c0c090;
    background-color: #f8eaba;
}

.infobox.standard-talk.bordered td,
.infobox.standard-talk.bordered th {
    border: 1px solid #c0c090;
}

/* styles for bordered infobox with merged rows */
.infobox.bordered .mergedtoprow td,
.infobox.bordered .mergedtoprow th {
    border: 0;
    border-top: 1px solid #a2a9b1;
    /* @noflip */
    border-right: 1px solid #a2a9b1;
}

.infobox.bordered .mergedrow td,
.infobox.bordered .mergedrow th {
    border: 0;
    /* @noflip */
    border-right: 1px solid #a2a9b1;
}

h3 + .infobox {
    margin-top: .5em;
}

/*****************/
/* Main Page CSS */
/*****************/

/* Remove when made live */
.page-User_Aardvark_Main_Page {
    background-color: #ffffff;
}

.page-User_Aardvark_Main_Page #firstHeading, #contentSub, #contentSub2 {
    display: none;
}

.page-User_Aardvark_Main_Page #content {
    max-width: 60em;
    margin: 0 auto;
    border: none;
}

.page-User_Aardvark_Main_Page .welcome-container {
    padding: 1.5em;
    margin-bottom: .75em;
    box-shadow: 0 0 3px #afafaf;
    border: 1px solid #d0d0d0;
    border-radius: 3px;
}

.page-User_Aardvark_Main_Page .welcome-left h1 {
    border: none;
    margin: 0;
    line-height: 1em;
}

.page-User_Aardvark_Main_Page .welcome-left .welcome-as-seen {
    font-style: italic;
}

.page-User_Aardvark_Main_Page .welcome-left .welcome-as-seen p {
    margin: 0;
}

.page-User_Aardvark_Main_Page .welcome-left .welcome-stats {
    text-align: center;
}

.page-User_Aardvark_Main_Page .welcome-links {
    display: flex;
    justify-content: space-evenly;
}

.page-User_Aardvark_Main_Page .welcome-links ul {
    font-size: 90%;
    margin: 0 0 0 1.4em;
}

.page-User_Aardvark_Main_Page .welcome-links li {
    margin: 0;
}

.page-User_Aardvark_Main_Page .intro-container {
    display: flex;
    gap: .75em;
}

.page-User_Aardvark_Main_Page .eric-section,
.page-User_Aardvark_Main_Page .community-section {
    background: none;
    border: 1px solid #d0d0d0;
    border-radius: 3px;
    box-shadow: 0 0 3px #afafaf;
    padding: 1.5em;
}

.page-User_Aardvark_Main_Page .eric-section {
    flex: 0 1 100%;
    max-width: 60%;
}

.page-User_Aardvark_Main_Page .community-section {
    flex: 0 1 50%;
}

.page-User_Aardvark_Main_Page .eric-section h2,
.page-User_Aardvark_Main_Page .community-section h2 {
    border-bottom: 3px solid #d2d2d2;
    margin: 0;
}

.page-User_Aardvark_Main_Page .eric-social {
    text-align: center;
    clear: right;
}

.page-User_Aardvark_Main_Page .eric-social p {
    margin: 0;
    line-height: 1em;
}

.page-User_Aardvark_Main_Page .eric-social .social-icons a.external {
    background: unset;
    font-size: 24px;
    line-height: 1em;
    text-align: center;
}

.page-User_Aardvark_Main_Page .media-section {
    clear: both;
    /* display: flex;
    gap: .5em; */
}

.page-User_Aardvark_Main_Page .media-section h3 {
    border: none;
    padding: .5em 0;
}

.page-User_Aardvark_Main_Page .podcast-section h3 {
    padding-top: 0;
}

.page-User_Aardvark_Main_Page .podcast-section,
.page-User_Aardvark_Main_Page .appearances-section {
    clear: both;
    flex: 0 1 100%;
}

.page-User_Aardvark_Main_Page .eric-section h2, 
.page-User_Aardvark_Main_Page .eric-section h3,
.page-User_Aardvark_Main_Page .community-section h2,
.page-User_Aardvark_Main_Page .community-section h3 {
    margin: 0;
    /* border: none; */
}

.page-User_Aardvark_Main_Page .eric-section p,
.page-User_Aardvark_Main_Page .community-section p {
    /* margin: 0; */
}

.page-User_Aardvark_Main_Page .podcast-links,
.page-User_Aardvark_Main_Page .appearance-links {
    display: flex;
    flex-wrap: wrap;
    background: #f8f9fa;
    border: 1px solid #d2d2d2;
}

.page-User_Aardvark_Main_Page .all-button {
    text-align: center;
    font-weight: bold;
}

.page-User_Aardvark_Main_Page .podcast-links a,
.page-User_Aardvark_Main_Page .appearance-links a,
.page-User_Aardvark_Main_Page .all-button a {
    color: black;
    text-decoration: none;
    display: block;
    padding: 1em;
    background-image: none;
    flex: 1 1 100%;
    line-height: 1em;
}

.page-User_Aardvark_Main_Page .appearance-links a:nth-child(2) {
    flex: 0 1 7%;
    border-left: 1px solid #d2d2d2;
}

.page-User_Aardvark_Main_Page .podcast a:hover,
.page-User_Aardvark_Main_Page .appearance a:hover,
.page-User_Aardvark_Main_Page .all-button a:hover {
    background: #d0d0d0;
    transition: linear .1s;
}

.page-User_Aardvark_Main_Page .podcast,
.page-User_Aardvark_Main_Page .appearance {
    flex: 0 1 100%;
    position: relative;
    border-bottom: 1px solid #d2d2d2;
}

.page-User_Aardvark_Main_Page .podcast.featured,
.page-User_Aardvark_Main_Page .appearance.featured,
.page-User_Aardvark_Main_Page .all-button {
    flex: 0 1 100%;
}

.page-User_Aardvark_Main_Page .podcast p,
.page-User_Aardvark_Main_Page .appearance p,
.page-User_Aardvark_Main_Page .all-button p {
    margin: 0;
    display: flex;
}

/* Box Container Rework */
.page-User_Aardvark_Main_Page .projects-container {
    display: flex;
    flex-wrap: wrap;
    gap: .75em;
}

.page-User_Aardvark_Main_Page .grid-column {
    flex: 1 1 49%;
}

.page-User_Aardvark_Main_Page .box-generic {
    box-shadow: 0 0 3px #afafaf;
}