MediaWiki:Common.css

Revision as of 19:07, 16 October 2020 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
{
    border: 1px solid #a2a9b1;
    background-color: #f8f9fa;
    font-size: 125%;
    text-align: center;
    max-width: 750px;
    padding: .4em;
    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;
}

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;
    }    
}

.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;
}

.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 #a2a9b1;
    box-sizing: border-box;
    margin: 0 0 10px;
}

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

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

.box-content {
    padding: 1em;
}

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

/* responsive video for youtube widget */

.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;
  }
  
}

/* Infobox template style */
.infobox {
	border: 1px solid #a2a9b1;
	border-spacing: 3px;
	background-color: #f8f9fa;
	color: black;
	/* @noflip */
	margin: 0.5em 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;
}