MediaWiki:Common.css

From DiVersions
Revision as of 15:52, 27 September 2019 by Gijs (talk | contribs)
Jump to navigation Jump to search

Note: After saving, 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: Hold Ctrl while clicking Refresh, or press Ctrl-F5
  • Opera: Go to Menu → Settings (Opera → Preferences on a Mac) and then to Privacy & security → Clear browsing data → Cached images and files.
h1 {
  display:none
}
@media screen {
  .timeline {
    position:fixed;
    bottom:0;
    left:0;
    right:0;
    white-space:nowrap
  }
  .timeline--entry[data-loading]::before {
    content:"Loading";
    padding:2em
  }
  .timeline--entry {
    display:inline-block;
    background:brown;
    border-radius:1em;
    height:1.5em;
    width:5px;
    margin-right:.5em;
    cursor:pointer;
    position:relative
  }
  .timeline--entry.active,
  .timeline--entry:hover {
    background:green
  }
  .timeline--entry .timeline--entry--data {
    display:none
  }
  .timeline--entry:hover .timeline--entry--data {
    transform:rotate(-90deg);
    transform-origin:top left;
    display:block;
    position:absolute;
    left:0;
    bottom:1em
  }
  .timeline--entry--data {
    white-space:nowrap
  }
  .revisions {
    max-height:80vh;
    white-space:nowrap;
    max-width:100%;
    overflow-x:auto
  }
  .revisions--revision {
    display:inline-block;
    height:80vh;
    width:100%;
    overflow-y:auto;
    white-space:normal;
    margin-right:2em
  }
}
@media print {
  .timeline {
    display:none
  }
  .revision:nth-of-type(n+2) {
    display:none
  }
  h2:nth-of-type(n+2) {
    page-break-before: always;
  }
    
  h2 {
    border-bottom: none;
  }
  
  p {
    text-align: left;
    margin-top: 0;
  }
  
  .mw-parser-output {
    columns: 2;
  }
  
  h2 {
    column-span: all;
  }

  h2 + h3 {
    margin-top: 0;
  }

  h3 {
    font-size: 100%;
    line-height: 16pt;
    margin-top: 16pt;
  }
  
  img {
    max-width: 100%;
  }

  [data-section] {
    page-break-after: always;
  }
}