_main.scss

  1html {
  2  scroll-behavior: smooth;
  3  padding: 0 15px;
  4}
  5body {
  6  font-family: Heliotrope;
  7  color: $dark;
  8  background: $light;
  9}
 10details {
 11  margin-left: 3.5%;
 12}
 13summary {
 14  padding: 0 10px;
 15  a {
 16    color: $dark;
 17  }
 18  a:visited {
 19    color: $dark;
 20  }
 21}
 22summary:hover {
 23  cursor: pointer;
 24  background-color: #ddd;
 25  border-radius: 7px;
 26}
 27.admonition {
 28  margin: 15px -12px;
 29  padding: 5px 10px;
 30  border: 2px solid;
 31  border-radius: 7px;
 32  p {
 33    margin: 0;
 34  }
 35
 36  &.note {
 37    border-color: #b3d1f3;
 38    background-color: #e5f1ff;
 39  }
 40  &.tip {
 41    border-color: #b3f3d1;
 42    background-color: #e5fff1;
 43  }
 44  &.warn {
 45    border-color: #f3d1b3;
 46    background-color: #fff0ce;
 47  }
 48  &.err {
 49    border-color: #f3b3b3;
 50    background-color: #ffe5e5;
 51  }
 52}
 53blockquote {
 54  margin: 15px -19px;
 55  padding: 0 15px;
 56  border-left: 3px solid $dark;
 57  border-radius: 7px;
 58  color: $dark;
 59  background: #f7f7f7;
 60  p {
 61    margin: 0;
 62  }
 63}
 64hr {
 65  margin: 15px 0;
 66  border: 1px solid $dark;
 67}
 68code {
 69  background: $button-background;
 70  border-radius: 3px;
 71  padding: 0 4px;
 72}
 73pre {
 74  margin: 15px -12px;
 75  border: 2px solid unset;
 76  border-radius: 7px;
 77}
 78code,
 79pre {
 80  font-size: 16px;
 81  font-family: Consolas, Menlo, Monaco, "Andale Mono", "Ubuntu Mono", monospace;
 82  color: $dark;
 83}
 84input {
 85  font-family: inherit;
 86  text-align: center;
 87  width: 100%;
 88  height: 35px;
 89  box-sizing: border-box;
 90  box-shadow: 0 1px 1px rgba(12, 13, 14, 0.15), inset 0 1px 0 0 #fff;
 91  transition: 0.15s ease-out;
 92}
 93input[type="text"] {
 94  font-size: inherit;
 95  color: $dark;
 96  text-decoration: italic;
 97  border: 1px solid #9fa6ad;
 98  border-radius: 3px;
 99}
100input[type="text"]:focus {
101}
102.wrapper {
103  max-width: 600px;
104  margin: 0 auto;
105  font-size: 18px;
106  line-height: 30px;
107  overflow-wrap: break-word;
108  word-wrap: break-word;
109  word-break: break-word;
110  -moz-hyphens: auto;
111  hyphens: auto;
112  text-align: left;
113}
114
115.content {
116  h2,
117  p,
118  li,
119  td {
120    a {
121      color: $dark;
122      text-decoration: none;
123      background-image: linear-gradient(
124        120deg,
125        $gradient-right 0%,
126        $gradient-left 100%
127      );
128      background-repeat: no-repeat;
129      background-size: 0 0;
130      background-position: 100% 21%;
131      transition: 0.15s ease-out;
132      &:hover {
133        background-size: 100% 100%;
134        color: $light;
135        &:after {
136          color: $gradient-right;
137        }
138      }
139      &::after {
140        position: relative;
141        content: "\FEFF°";
142        margin-left: 0.1em;
143        font-size: 90%;
144        top: -0.1em;
145        color: $light-highlight;
146        font-feature-settings: "caps";
147        font-variant-numeric: normal;
148      }
149    }
150  }
151  .anchor-tag {
152    font-size: 70%;
153    position: relative;
154    bottom: 2.6px;
155    background-size: 100% 0;
156    background-position: 0 150%;
157    &::after {
158      content: "";
159    }
160  }
161  .footnote-ref {
162    background-size: 100% 1.5px;
163    background-position: 0 90%;
164    &::after {
165      content: "";
166    }
167    &:hover {
168      background-size: 100% 100%;
169      color: #fff;
170    }
171  }
172  .footnote-backref {
173    background-size: 100% 1.5px;
174    background-position: 0 90%;
175    &::after {
176      content: "";
177    }
178    &:hover {
179      background-size: 100% 100%;
180      color: #fff;
181    }
182  }
183  .highlight {
184    code {
185      padding: 0px !important;
186    }
187    pre {
188      overflow: auto;
189      border-radius: 5px;
190      padding: 12px;
191      background: $button-background !important;
192    }
193    a {
194      background-image: none;
195      &::after {
196        content: "";
197      }
198    }
199  }
200}
201
202.button {
203  font-family: inherit;
204  font-style: normal !important;
205  text-decoration: none !important;
206  height: 25px;
207  box-shadow: 0 1px 1px rgba(12, 13, 14, 0.15), inset 0 1px 0 0 #fff;
208  display: inline-block;
209  color: $dark;
210  text-shadow: 0 1px 0 #fff;
211  background-color: #e4e6e8;
212  border: 1px solid #9fa6ad;
213  border-radius: 3px;
214  padding: 0px 4px 4px;
215}
216
217footer {
218  padding: 20px 0 20px 0;
219  text-align: center;
220  line-height: 30px;
221  margin-top: auto;
222  margin-bottom: 25px;
223  a {
224    color: $dark;
225  }
226  a:visited {
227    color: $dark;
228  }
229  .ring {
230    font-size: 20px;
231  }
232  .boring_stuff {
233    font-style: italic;
234  }
235}