Difference between revisions of "MediaWiki:Common.css"

From DiVersions
Jump to navigation Jump to search
Line 5: Line 5:
 
@import url('https://fonts.googleapis.com/css?family=Cormorant&display=swap');
 
@import url('https://fonts.googleapis.com/css?family=Cormorant&display=swap');
 
@import url('https://fonts.googleapis.com/css?family=EB+Garamond&display=swap');
 
@import url('https://fonts.googleapis.com/css?family=EB+Garamond&display=swap');
 +
 +
:root {
 +
  --line-height: 21.566px;
 +
  --font-size: 1.15em;
  
 
h1 {
 
h1 {
Line 10: Line 14:
 
}
 
}
  
h2 {
+
h2, .mw-body-content {
 
   font-family: 'ribes black';
 
   font-family: 'ribes black';
 
   font-size: 2em;
 
   font-size: 2em;
 +
  line-height: calc(2 * var(--line-height);
 
}
 
}
  
h3 {
+
h3, .mw-body-content {
 
   font-family: 'spectral';
 
   font-family: 'spectral';
   font-size: 1.15em;
+
   font-size: var(--font-size);
 
   font-weight: 500;
 
   font-weight: 500;
 +
  margin-bottom: var(--line-height);
 +
  line-height: var(--line-height);
 
}
 
}
 
/*
 
p, .mw-body-content p {
 
font-family: 'PT Serif',serif;
 
font-size: 1.7em;
 
max-width: 45em;
 
line-height: 132%;
 
}
 
*/
 
 
/*
 
p, .mw-body-content p {
 
font-family: 'Merriweather',serif;
 
font-size: 1.5em;
 
max-width: 45em;
 
line-height: 158%;
 
margin-bottom: 1em;
 
margin-top: 0;
 
font-weight: lighter;
 
}
 
*/
 
  
 
p, .mw-body-content p {
 
p, .mw-body-content p {
 
   font-family: 'Spectral',serif;
 
   font-family: 'Spectral',serif;
   font-size: 1.6em;
+
   font-size: var(--font-size);
 
   max-width: 40em;
 
   max-width: 40em;
 
   line-height: 134%;
 
   line-height: 134%;
   margin-top: 1em;
+
   margin-bottom: var(--line-height);
  letter-spacing: .1pt;
 
 
   text-rendering: optimizelegibility;
 
   text-rendering: optimizelegibility;
 
}
 
}
  
/*
+
@media screen {
p, .mw-body-content p {
+
   :root {
   font-family: 'EB Garamond',serif;
+
    --font-size: 2em;
  font-size: 1.6em;
+
    --line-height: 3em;
  max-width: 40em;
+
   }
  line-height: 130%;
 
   margin-top: 1em;
 
  letter-spacing: .1pt;
 
  text-rendering: optimizelegibility;
 
}
 
*/
 
  
/*
 
p, .mw-body-content p {
 
  font-family: 'Crimson Pro',serif;
 
  font-size: 1.6em;
 
  max-width: 40em;
 
  line-height: 134%;
 
  margin-top: 1em;
 
  letter-spacing: .1pt;
 
  text-rendering: optimizelegibility;
 
}
 
*/
 
 
@media screen {
 
 
   .timeline {
 
   .timeline {
 
     position:fixed;
 
     position:fixed;
Line 158: Line 124:
 
   h2 + h3 {
 
   h2 + h3 {
 
     margin-top: 0;
 
     margin-top: 0;
  }
 
 
  h3 {
 
    font-size: 100%;
 
    line-height: 16pt;
 
    margin-top: 16pt;
 
 
   }
 
   }
 
    
 
    

Revision as of 13:16, 28 September 2019

@import url('https://fonts.googleapis.com/css?family=PT+Serif&display=swap');
@import url('https://fonts.googleapis.com/css?family=Merriweather:300,400&display=swap');
@import url('https://fonts.googleapis.com/css?family=Spectral:300,300i,400,400i,500,500i,600,600i&display=swap');
@import url('https://fonts.googleapis.com/css?family=Crimson+Pro&display=swap');
@import url('https://fonts.googleapis.com/css?family=Cormorant&display=swap');
@import url('https://fonts.googleapis.com/css?family=EB+Garamond&display=swap');

:root {
  --line-height: 21.566px;
  --font-size: 1.15em;

h1 {
  display:none
}

h2, .mw-body-content {
  font-family: 'ribes black';
  font-size: 2em;
  line-height: calc(2 * var(--line-height);
}

h3, .mw-body-content {
  font-family: 'spectral';
  font-size: var(--font-size);
  font-weight: 500;
  margin-bottom: var(--line-height);
  line-height: var(--line-height);
}

p, .mw-body-content p {
  font-family: 'Spectral',serif;
  font-size: var(--font-size);
  max-width: 40em;
  line-height: 134%;
  margin-bottom: var(--line-height);
  text-rendering: optimizelegibility;
}

@media screen {
  :root {
    --font-size: 2em;
    --line-height: 3em;
  }

  .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 {
    border-bottom: none;
  }
  
  p {
    text-align: left;
    margin-top: 0;
  }
  
  .mw-parser-output {
    columns: 2;
  }
  
  h2 {
    column-span: all;
  }

  h2 + h3 {
    margin-top: 0;
  }
  
  img {
    max-width: 100%;
  }

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

  p, .mw-body-content p {
    font-family: 'Spectral',serif;
    font-size: 1.15em;
    line-height: 135%;
    margin-top: 1em;
    text-rendering: optimizelegibility;
  }
}