Note: I've just migrated to a different physical server to run Spivey's Corner,
with a new architecture, a new operating system, a new version of PHP, and an updated version of MediaWiki.
Please let me know if anything needs adjustment! – Mike

MediaWiki:Common.css

Copyright © 2024 J. M. Spivey
Revision as of 09:33, 28 June 2022 by Mike (talk | contribs)
Jump to navigation Jump to search

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 */

div#mw-overlay {
  position: fixed; /* Sit on top of the page content */
  display: none; /* Hidden by default */
  width: 100%; /* Full width (cover the whole page) */
  height: 100%; /* Full height (cover the whole page) */
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0,0,0,0.5); /* Black background with opacity */
  z-index: 2; /* Specify a stack order in case you're using a different order for other elements */
  cursor: pointer; /* Add a pointer on hover */
}

/* Lecture links */
span.lecturelink {
    padding-left: 40px;
    padding-right: 10px;
    background: #DDE left no-repeat
      url(/wiki3/resources/src/mediawiki.action/images/nextredirect-ltr.png);
}

code {
    color: inherit;
    word-spacing: -0.2em;
}

/* Context boxes for digital systems */

div.context-box {
    font-style: italic;
    background-color: #dde;
    padding: 6px;
    border-radius: 6px;
    border: 2px solid #aab;
}

p.context-heading {
    font-family: 'Roboto Slab', sans-serif;
    font-weight: normal;
    font-size: 116%;
    margin-bottom: .3em;
    margin-top: 0pt;
    padding-bottom: .17em;
}

div.thumbinner {
    box-shadow: 5px 5px 5px #aaa;
}

div.thumb {
    margin-bottom: 1em;
}

/* Show document icon for internal PDF links */
#bodyContent a.internal[href$=".pdf"],
#bodyContent a.extiw[href$=".pdf"] {
    background: url("resources/local/document.png") center right no-repeat;
    padding-right: 12px;
}

#bodycontent span.plainlinks a.internal[href$=".pdf"],
#bodycontent span.plainlinks a.extiw[href$=".pdf"] {
    background: none !important;
    padding-right: 0px !important;
}

/* Label a table of contents with toclimit-1 to retrict it to one level:
   use <div class="toclimit-1">__TOC__</div> */
.toclimit-1 .toclevel-1 ul { display: none; }

/* Navigation boxes */
div.navbox {
    padding: 0.5em 0 0.5em 1em;
    background: white;
    float: right;
    clear: right;
}

div.navbox table {
    border: 1px solid #aaa;
    background: url("/wiki2/skins/Winkel/images/blue-wove.png") repeat;
    color: black;
    padding: 0.2em;
    text-align: center;
    box-shadow: 5px 5px 5px #aaa;
}

/* Layout of exam papers */

table.exam-menu {
    border-spacing: 0;
}

td.exam-paper {
    width: 20em;
    padding: 0.25em 0.5em;
}

td.exam-year {
    width: 2.5em;
    padding: 0.5em 0.5em;
}

tr.examrow-1 td.exam-year {
    padding: 0.25em 0.25em 0.25em 0.25em;
}

tr.examrow-2 td.exam-year {
    padding: 0.25em 0.25em 0.25em 1.25em;
}

tr.examrow-3 td.exam-year {
    padding: 0.25em 0.25em 0.25em 2.25em;
}

/* ns-102 for tutors' namespace */
body.ns-102 td.exam-year {
    width: 5.5em;
}

tr.examrow-odd {
    background: #ccf;
}

tr.examrow-even {
    background: #eef;
}

table.exam-menu td {
    vertical-align: middle;
}