_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  p {
 60    margin: 0;
 61  }
 62}
 63hr {
 64  margin: 15px 0;
 65  border: 1px solid $dark;
 66}
 67code {
 68  background: $button-background;
 69  border-radius: 3px;
 70  padding: 0 4px;
 71}
 72pre {
 73  margin: 15px -12px;
 74  border: 2px solid unset;
 75  border-radius: 7px;
 76}
 77code,
 78pre {
 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,
116  p,
117  li,
118  td {
119    a {
120      color: $dark;
121      text-decoration: none;
122      background-image: linear-gradient(
123        120deg,
124        $gradient-right 0%,
125        $gradient-left 100%
126      );
127      background-repeat: no-repeat;
128      background-size: 0 0;
129      background-position: 100% 21%;
130      transition: 0.15s ease-out;
131      &:hover {
132        background-size: 100% 100%;
133        color: $light;
134        &:after {
135          color: $gradient-right;
136        }
137      }
138      &::after {
139        position: relative;
140        content: "\FEFF°";
141        margin-left: 0.1em;
142        font-size: 90%;
143        top: -0.1em;
144        color: $light-highlight;
145        font-feature-settings: "caps";
146        font-variant-numeric: normal;
147      }
148    }
149  }
150  .anchor-tag {
151    font-size: 70%;
152    position: relative;
153    bottom: 2.6px;
154    background-size: 100% 0;
155    background-position: 0 150%;
156    &::after {
157      content: "";
158    }
159  }
160  .footnote-ref {
161    background-size: 100% 1.5px;
162    background-position: 0 90%;
163    &::after {
164      content: "";
165    }
166    &:hover {
167      background-size: 100% 100%;
168      color: #fff;
169    }
170  }
171  .footnote-backref {
172    background-size: 100% 1.5px;
173    background-position: 0 90%;
174    &::after {
175      content: "";
176    }
177    &:hover {
178      background-size: 100% 100%;
179      color: #fff;
180    }
181  }
182  .highlight {
183    code {
184      padding: 0px !important;
185    }
186    pre {
187      overflow: auto;
188      border-radius: 5px;
189      padding: 12px;
190      background: $button-background !important;
191    }
192    a {
193      background-image: none;
194      &::after {
195        content: "";
196      }
197    }
198  }
199}
200
201.button {
202  font-family: inherit;
203  font-style: normal !important;
204  text-decoration: none !important;
205  height: 25px;
206  box-shadow: 0 1px 1px rgba(12, 13, 14, 0.15), inset 0 1px 0 0 #fff;
207  display: inline-block;
208  color: $dark;
209  text-shadow: 0 1px 0 #fff;
210  background-color: #e4e6e8;
211  border: 1px solid #9fa6ad;
212  border-radius: 3px;
213  padding: 0px 4px 4px;
214}
215
216footer {
217  padding: 20px 0 20px 0;
218  text-align: center;
219  line-height: 30px;
220  margin-top: auto;
221  margin-bottom: 25px;
222  a {
223    color: $dark;
224  }
225  a:visited {
226    color: $dark;
227  }
228  .ring {
229    font-size: 20px;
230  }
231  .boring_stuff {
232    font-style: italic;
233  }
234}
235
236@media (max-width: 55em) {
237  html {
238    max-width: 650px;
239  }
240}