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