|
| 1 | +/* Main Settings */ |
| 2 | + :root { |
| 3 | + --mobile-thresh: 700px; |
| 4 | + --width: calc(min(90vw, 80vw + 50px, 1000px)); |
| 5 | + --dark: #000; |
| 6 | + --disabled: #888; |
| 7 | + --surface: #ddd; |
| 8 | + --highlight: #005cf1; |
| 9 | + --light: #fff; |
| 10 | + --highlight-tl: rgba(0, 92, 241, 0.8); |
| 11 | + --light-tl: rgba(255, 255, 255, 0.8); |
| 12 | + --radius: 4px; |
| 13 | +} |
| 14 | + |
| 15 | +/* Elements */ |
| 16 | + html, body{ |
| 17 | + font-family: 'Open Sans', sans-serif; |
| 18 | + font-size: 15px; |
| 19 | + font-weight: 400; |
| 20 | + line-height: 1.5; |
| 21 | + color: var(--dark); |
| 22 | + background-color: #fff; |
| 23 | + width: 100%; |
| 24 | + margin: 0; |
| 25 | +} |
| 26 | + |
| 27 | +ul li { white-space: normal; } |
| 28 | +img { width: 100%; vertical-align: middle; } |
| 29 | +a { |
| 30 | + color: inherit; background-color: transparent; |
| 31 | + -webkit-text-decoration-skip: objects; |
| 32 | +} |
| 33 | +a:active, a:hover { outline-width:0; } |
| 34 | +h1 { font-size: 60px; font-weight: 300; } |
| 35 | +h2 { font-size: 32px; font-weight: 400; } |
| 36 | +h3 { font-size: 24px; font-weight: 400; } |
| 37 | +h4 { font-size: 20px; font-weight: 400; } |
| 38 | +h5 { font-size: 18px; font-weight: 400; } |
| 39 | +h6 { font-size: 16px; font-weight: 400; } |
| 40 | +h1, h2, h3, h4, h5, h6 { margin: 10px 0; } |
| 41 | +hr { border-top: 1px solid var(--dark); margin: 20px 10%; } |
| 42 | + |
| 43 | +/* Paper-style paragraph */ |
| 44 | +.p { margin-top: 1em; margin-bottom: 1em; } |
| 45 | +.p ol, .p ul { |
| 46 | + counter-reset: list; |
| 47 | + margin-top: 0.5em; margin-bottom: 0.5em; |
| 48 | +} |
| 49 | +.p p { margin-top: 0.5em; margin-bottom: 0.5em; } |
| 50 | +.p ol > li { list-style: none; } |
| 51 | +.p ol > li:before { |
| 52 | + content: "(" counter(list) ") "; |
| 53 | + counter-increment: list; |
| 54 | +} |
| 55 | + |
| 56 | +/* Main container */ |
| 57 | +.container { |
| 58 | + width: var(--width); |
| 59 | + padding: calc(min(5vw, 80px)) 0; |
| 60 | +} |
| 61 | +.container .section { width: 100%; padding-bottom: 2em; } |
| 62 | +.container .section:not(:first-child) { |
| 63 | + margin-top: calc(min(1000px, 90vw) * 0.02); |
| 64 | +} |
| 65 | + |
| 66 | +/* Mobile Management */ |
| 67 | +.only-mobile, .no-mobile { display: inline-block; } |
| 68 | +/* Narrow screen */ |
| 69 | +@media screen and (max-width: 700px) { |
| 70 | + .no-mobile { display: none !important; } |
| 71 | + .biography { width: 90vw; } |
| 72 | + .container { margin-left: calc(0.5 * (100vw - var(--width))); } |
| 73 | +} |
| 74 | +/* Wide screen */ |
| 75 | +@media screen and (min-width: 700px) { |
| 76 | + .only-mobile { display: none !important; } |
| 77 | + .biography { width: calc(var(--width) * 0.65); } |
| 78 | + .container { margin-left: calc(0.5 * (100vw - var(--width))); } |
| 79 | +} |
| 80 | + |
| 81 | +/* Papers */ |
| 82 | +.authors > span:not(:last-child) { margin-right: 3em; } |
| 83 | +.authors > span { display: inline-block; } |
| 84 | +.paper-links { padding: 1em 0em; } |
| 85 | +.paper-links > a, .button { |
| 86 | + background-color: var(--dark); color: var(--light); |
| 87 | + padding: 0.5em 1em; text-decoration: none; border-radius: var(--radius); |
| 88 | + display: inline-block; margin: 0.2em 0em; |
| 89 | +} |
| 90 | +.paper-links > a:not(:last-child) { margin-right: 0.5em; } |
| 91 | +.paper-links > a:hover { |
| 92 | + background-color: var(--highlight-tl); color: var(--light) } |
0 commit comments