|
| 1 | +.prose :is(h1, h2, h3, h4, h5, h6) a { |
| 2 | + text-decoration: none !important; |
| 3 | +} |
| 4 | + |
| 5 | +.prose :is(h1, h2, h3, h4, h5, h6) a:hover { |
| 6 | + text-decoration: underline !important; |
| 7 | +} |
| 8 | + |
| 9 | +.prose :is(h1, h2, h3, h4, h5, h6) a:focus { |
| 10 | + outline: 4px solid #0073e6; |
| 11 | + outline-offset: 5px; |
| 12 | +} |
| 13 | + |
| 14 | +ul.milestone-done li { |
| 15 | + position: relative; |
| 16 | + list-style: none; |
| 17 | +} |
| 18 | + |
| 19 | +ul.milestone-done li::before { |
| 20 | + content: "\2705 " !important; |
| 21 | + background: none !important; |
| 22 | +} |
| 23 | + |
| 24 | +ul.milestone-todo li { |
| 25 | + position: relative; |
| 26 | + list-style: none; |
| 27 | +} |
| 28 | + |
| 29 | +ul.milestone-todo li::before { |
| 30 | + content: "\1F4DD " !important; |
| 31 | + background: none !important; |
| 32 | +} |
| 33 | + |
| 34 | +img.findaid-accent-round-marker { |
| 35 | + width: 120px; |
| 36 | + min-width: 70px; |
| 37 | + padding: 0 10px; |
| 38 | + display: inline-block; |
| 39 | + margin: 0; |
| 40 | +} |
| 41 | + |
| 42 | +table.finaid-timeline td { |
| 43 | + padding-bottom: 1rem; |
| 44 | +} |
| 45 | + |
| 46 | +div.finaid-sponsor { |
| 47 | + width: 50%; |
| 48 | + margin: 0 auto 2rem auto; |
| 49 | +} |
| 50 | + |
| 51 | +summary h4::after { |
| 52 | + content: "👇"; |
| 53 | +} |
| 54 | + |
| 55 | +.list-disc li { |
| 56 | + list-style: none; |
| 57 | + position: relative; |
| 58 | +} |
| 59 | + |
| 60 | +ul.list-disc li::before { |
| 61 | + content: ""; |
| 62 | + display: inline-block; |
| 63 | + width: 25px; |
| 64 | + height: 20px; |
| 65 | + /*background-image: url(/img/list-item.svg);*/ |
| 66 | + background-size: 100%; |
| 67 | + background-repeat: no-repeat; |
| 68 | + background-position: 50% 50%; |
| 69 | + position: absolute; |
| 70 | + left: -30px; |
| 71 | + top: 0.2em; |
| 72 | +} |
| 73 | + |
| 74 | +ul ul.list-disc li { |
| 75 | + list-style: disc; |
| 76 | +} |
| 77 | +ul ul.list-disc li::before { |
| 78 | + display: none; |
| 79 | +} |
| 80 | + |
| 81 | +p.tick::before { |
| 82 | + content: "\2705 "; |
| 83 | + padding: 0.5rem; |
| 84 | +} |
| 85 | + |
| 86 | +p.cross::before { |
| 87 | + content: "\274C "; |
| 88 | + padding: 0.5rem; |
| 89 | +} |
| 90 | + |
| 91 | +p.tick::after, |
| 92 | +p.cross::after { |
| 93 | + content: "\23EC"; |
| 94 | + display: inline-block; |
| 95 | + font-size: 1.3em; |
| 96 | + margin-left: 0.4em; |
| 97 | +} |
| 98 | + |
| 99 | +/* typography */ |
| 100 | +.prose { |
| 101 | + h1, |
| 102 | + h2, |
| 103 | + h3, |
| 104 | + h4, |
| 105 | + h5, |
| 106 | + h6 { |
| 107 | + position: relative; |
| 108 | + |
| 109 | + span.heading-link { |
| 110 | + font-size: 0.5em; |
| 111 | + margin-left: 0.2em; |
| 112 | + vertical-align: text-top; |
| 113 | + |
| 114 | + @media (min-width: 768px) { |
| 115 | + font-size: 1em; |
| 116 | + margin-left: 0; |
| 117 | + vertical-align: unset; |
| 118 | + position: absolute; |
| 119 | + left: -1em; |
| 120 | + padding-right: 0.5rem; |
| 121 | + color: var(--color-text); |
| 122 | + text-decoration: none; |
| 123 | + |
| 124 | + &:hover { |
| 125 | + text-decoration: underline; |
| 126 | + } |
| 127 | + } |
| 128 | + } |
| 129 | + } |
| 130 | + |
| 131 | + /* Breaking all links because we sometimes have very long links that break mobile */ |
| 132 | + |
| 133 | + a { |
| 134 | + word-break: break-word; |
| 135 | + } |
| 136 | + |
| 137 | + h1, |
| 138 | + h2, |
| 139 | + h3, |
| 140 | + h4, |
| 141 | + h5, |
| 142 | + h6 { |
| 143 | + font-weight: bold; |
| 144 | + font-family: var(--font-display); |
| 145 | + line-height: 1.25; |
| 146 | + |
| 147 | + /* https://css-tricks.com/linearly-scale-font-size-with-css-clamp-based-on-the-viewport/ */ |
| 148 | + |
| 149 | + --min-fs: 1; |
| 150 | + --max-fs: 1.5; |
| 151 | + --min-vw: 20; |
| 152 | + --max-vw: 45; |
| 153 | + |
| 154 | + --min-fs-rem: var(--min-fs) * 1rem; |
| 155 | + --max-fs-rem: var(--max-fs) * 1rem; |
| 156 | + --min-vw-rem: var(--min-vw) * 1rem; |
| 157 | + |
| 158 | + --slope: (var(--max-fs) - var(--min-fs)) * (100vw - var(--min-vw-rem)) / |
| 159 | + (var(--max-vw) - var(--min-vw)); |
| 160 | + |
| 161 | + font-size: clamp( |
| 162 | + var(--min-fs-rem), |
| 163 | + var(--min-fs-rem) + var(--slope), |
| 164 | + var(--max-fs-rem) |
| 165 | + ); |
| 166 | + } |
| 167 | + |
| 168 | + h1 { |
| 169 | + /* 36 px, 48px */ |
| 170 | + --min-fs: 2.25; |
| 171 | + --max-fs: 3; |
| 172 | + } |
| 173 | + |
| 174 | + h2 { |
| 175 | + /* 32px, 40px */ |
| 176 | + --min-fs: 2; |
| 177 | + --max-fs: 2.5; |
| 178 | + } |
| 179 | + |
| 180 | + h3 { |
| 181 | + /* 28px, 36px */ |
| 182 | + --min-fs: 1.75; |
| 183 | + --max-fs: 2.25; |
| 184 | + } |
| 185 | + |
| 186 | + h4 { |
| 187 | + /* 24px, 32px */ |
| 188 | + --min-fs: 1.5; |
| 189 | + --max-fs: 2; |
| 190 | + } |
| 191 | + |
| 192 | + h5 { |
| 193 | + /* 20px, 28px */ |
| 194 | + --min-fs: 1.25; |
| 195 | + --max-fs: 1.75; |
| 196 | + } |
| 197 | + |
| 198 | + h6 { |
| 199 | + /* 16px, 24px */ |
| 200 | + --min-fs: 1; |
| 201 | + --max-fs: 1.5; |
| 202 | + } |
| 203 | +} |
0 commit comments