_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, pre {
 79  font-size: 16px;
 80  font-family: Consolas, Menlo, Monaco, "Andale Mono", "Ubuntu Mono", monospace;
 81  color: $dark;
 82}
 83input {
 84  font-family: inherit;
 85  text-align: center;
 86  width: 100%;
 87  height: 35px;
 88  box-sizing: border-box;
 89  box-shadow: 0 1px 1px rgba(12, 13, 14, 0.15), inset 0 1px 0 0 #fff;
 90  transition: 0.15s ease-out;
 91}
 92input[type="text"] {
 93  font-size: inherit;
 94  color: $dark;
 95  text-decoration: italic;
 96  border: 1px solid #9fa6ad;
 97  border-radius: 3px;
 98}
 99input[type="text"]:focus {
100}
101.wrapper {
102  max-width: 600px;
103  margin: 0 auto;
104  font-size: 18px;
105  line-height: 30px;
106  overflow-wrap: break-word;
107  word-wrap: break-word;
108  word-break: break-word;
109  -moz-hyphens: auto;
110  hyphens: auto;
111  text-align: left;
112}
113
114.content {
115  h2, p, li, td {
116    a:not(.button) {
117      color: $dark;
118      text-decoration: none;
119      background-image: linear-gradient(
120        120deg,
121        $gradient-right 0%,
122        $gradient-left 100%
123      );
124      background-repeat: no-repeat;
125      background-size: 0 0;
126      background-position: 100% 21%;
127      transition: 0.15s ease-out;
128      &:hover {
129        background-size: 100% 100%;
130        color: $light;
131        &:after {
132          color: $gradient-right;
133        }
134      }
135      &::after {
136        position: relative;
137        content: "\FEFF°";
138        margin-left: 0.1em;
139        font-size: 90%;
140        top: -0.1em;
141        color: $light-highlight;
142        font-feature-settings: "caps";
143        font-variant-numeric: normal;
144      }
145    }
146  }
147  .anchor-tag {
148    font-size: 70%;
149    position: relative;
150    bottom: 2.6px;
151    background-size: 100% 0;
152    background-position: 0 150%;
153    &::after {
154      content: "";
155    }
156  }
157  .footnote-ref {
158    background-size: 100% 1.5px;
159    background-position: 0 90%;
160    &::after {
161      content: "";
162    }
163    &:hover {
164      background-size: 100% 100%;
165      color: #fff;
166    }
167  }
168  .footnote-backref {
169    background-size: 100% 1.5px;
170    background-position: 0 90%;
171    &::after {
172      content: "";
173    }
174    &:hover {
175      background-size: 100% 100%;
176      color: #fff;
177    }
178  }
179  .highlight {
180    code {
181      padding: 0px !important;
182    }
183    pre {
184      overflow: auto;
185      border-radius: 5px;
186      padding: 12px;
187      background: $button-background !important;
188    }
189    a {
190      background-image: none;
191      &::after {
192        content: "";
193      }
194    }
195  }
196}
197
198.button {
199  font-family: inherit;
200  font-style: normal !important;
201  text-decoration: none !important;
202  height: 25px;
203  box-shadow: 0 1px 1px rgba(12, 13, 14, 0.15), inset 0 1px 0 0 #fff;
204  display: inline-block;
205  color: $dark;
206  text-shadow: 0 1px 0 #fff;
207  background-color: #e4e6e8;
208  border: 1px solid #9fa6ad;
209  border-radius: 3px;
210  padding: 0px 4px 4px;
211}
212
213footer {
214  padding: 20px 0 20px 0;
215  text-align: center;
216  line-height: 30px;
217  margin-top: auto;
218  margin-bottom: 25px;
219  a {
220    color: $dark;
221  }
222  a:visited {
223    color: $dark;
224  }
225  .ring {
226    font-size: 20px;
227  }
228  .boring_stuff {
229    font-style: italic;
230  }
231}
232
233.tags {
234    display: flex;
235    flex-direction: row;
236    flex-wrap: wrap;
237    gap: 5px;
238    margin: 10px 0px 13px 0px !important;
239}