jekyll-theme-apcsp 1.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (183) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE.txt +21 -0
  3. data/_includes/alert.md +0 -0
  4. data/_includes/footer.md +0 -0
  5. data/_includes/head.html +0 -0
  6. data/_includes/header.md +1 -0
  7. data/_includes/nav.md +0 -0
  8. data/_layouts/page.html +308 -0
  9. data/_layouts/redirect.html +12 -0
  10. data/_sass/bootstrap/LICENSE +22 -0
  11. data/_sass/bootstrap/scss/_accordion.scss +146 -0
  12. data/_sass/bootstrap/scss/_alert.scss +71 -0
  13. data/_sass/bootstrap/scss/_badge.scss +40 -0
  14. data/_sass/bootstrap/scss/_breadcrumb.scss +42 -0
  15. data/_sass/bootstrap/scss/_button-group.scss +142 -0
  16. data/_sass/bootstrap/scss/_buttons.scss +158 -0
  17. data/_sass/bootstrap/scss/_card.scss +234 -0
  18. data/_sass/bootstrap/scss/_carousel.scss +229 -0
  19. data/_sass/bootstrap/scss/_close.scss +40 -0
  20. data/_sass/bootstrap/scss/_code.scss +48 -0
  21. data/_sass/bootstrap/scss/_containers.scss +41 -0
  22. data/_sass/bootstrap/scss/_custom-forms.scss +526 -0
  23. data/_sass/bootstrap/scss/_dropdown.scss +248 -0
  24. data/_sass/bootstrap/scss/_forms.scss +9 -0
  25. data/_sass/bootstrap/scss/_functions.scss +302 -0
  26. data/_sass/bootstrap/scss/_grid.scss +33 -0
  27. data/_sass/bootstrap/scss/_helpers.scss +10 -0
  28. data/_sass/bootstrap/scss/_images.scss +42 -0
  29. data/_sass/bootstrap/scss/_input-group.scss +208 -0
  30. data/_sass/bootstrap/scss/_jumbotron.scss +17 -0
  31. data/_sass/bootstrap/scss/_list-group.scss +191 -0
  32. data/_sass/bootstrap/scss/_maps.scss +54 -0
  33. data/_sass/bootstrap/scss/_media.scss +8 -0
  34. data/_sass/bootstrap/scss/_mixins.scss +43 -0
  35. data/_sass/bootstrap/scss/_modal.scss +237 -0
  36. data/_sass/bootstrap/scss/_nav.scss +172 -0
  37. data/_sass/bootstrap/scss/_navbar.scss +274 -0
  38. data/_sass/bootstrap/scss/_offcanvas.scss +143 -0
  39. data/_sass/bootstrap/scss/_pagination.scss +111 -0
  40. data/_sass/bootstrap/scss/_placeholders.scss +51 -0
  41. data/_sass/bootstrap/scss/_popover.scss +198 -0
  42. data/_sass/bootstrap/scss/_print.scss +141 -0
  43. data/_sass/bootstrap/scss/_progress.scss +59 -0
  44. data/_sass/bootstrap/scss/_reboot.scss +610 -0
  45. data/_sass/bootstrap/scss/_root.scss +76 -0
  46. data/_sass/bootstrap/scss/_spinners.scss +85 -0
  47. data/_sass/bootstrap/scss/_tables.scss +164 -0
  48. data/_sass/bootstrap/scss/_toasts.scss +70 -0
  49. data/_sass/bootstrap/scss/_tooltip.scss +122 -0
  50. data/_sass/bootstrap/scss/_transitions.scss +27 -0
  51. data/_sass/bootstrap/scss/_type.scss +104 -0
  52. data/_sass/bootstrap/scss/_utilities.scss +647 -0
  53. data/_sass/bootstrap/scss/_variables.scss +1631 -0
  54. data/_sass/bootstrap/scss/bootstrap-grid.scss +68 -0
  55. data/_sass/bootstrap/scss/bootstrap-reboot.scss +14 -0
  56. data/_sass/bootstrap/scss/bootstrap-utilities.scss +19 -0
  57. data/_sass/bootstrap/scss/bootstrap.scss +54 -0
  58. data/_sass/bootstrap/scss/forms/_floating-labels.scss +70 -0
  59. data/_sass/bootstrap/scss/forms/_form-check.scss +175 -0
  60. data/_sass/bootstrap/scss/forms/_form-control.scss +189 -0
  61. data/_sass/bootstrap/scss/forms/_form-range.scss +91 -0
  62. data/_sass/bootstrap/scss/forms/_form-select.scss +71 -0
  63. data/_sass/bootstrap/scss/forms/_form-text.scss +11 -0
  64. data/_sass/bootstrap/scss/forms/_input-group.scss +121 -0
  65. data/_sass/bootstrap/scss/forms/_labels.scss +36 -0
  66. data/_sass/bootstrap/scss/forms/_validation.scss +12 -0
  67. data/_sass/bootstrap/scss/helpers/_clearfix.scss +3 -0
  68. data/_sass/bootstrap/scss/helpers/_color-bg.scss +10 -0
  69. data/_sass/bootstrap/scss/helpers/_colored-links.scss +12 -0
  70. data/_sass/bootstrap/scss/helpers/_position.scss +36 -0
  71. data/_sass/bootstrap/scss/helpers/_ratio.scss +26 -0
  72. data/_sass/bootstrap/scss/helpers/_stacks.scss +15 -0
  73. data/_sass/bootstrap/scss/helpers/_stretched-link.scss +15 -0
  74. data/_sass/bootstrap/scss/helpers/_text-truncation.scss +7 -0
  75. data/_sass/bootstrap/scss/helpers/_visually-hidden.scss +8 -0
  76. data/_sass/bootstrap/scss/helpers/_vr.scss +8 -0
  77. data/_sass/bootstrap/scss/mixins/_alert.scss +15 -0
  78. data/_sass/bootstrap/scss/mixins/_backdrop.scss +14 -0
  79. data/_sass/bootstrap/scss/mixins/_background-variant.scss +23 -0
  80. data/_sass/bootstrap/scss/mixins/_badge.scss +17 -0
  81. data/_sass/bootstrap/scss/mixins/_border-radius.scss +78 -0
  82. data/_sass/bootstrap/scss/mixins/_box-shadow.scss +18 -0
  83. data/_sass/bootstrap/scss/mixins/_breakpoints.scss +127 -0
  84. data/_sass/bootstrap/scss/mixins/_buttons.scss +71 -0
  85. data/_sass/bootstrap/scss/mixins/_caret.scss +64 -0
  86. data/_sass/bootstrap/scss/mixins/_clearfix.scss +9 -0
  87. data/_sass/bootstrap/scss/mixins/_color-scheme.scss +7 -0
  88. data/_sass/bootstrap/scss/mixins/_container.scss +11 -0
  89. data/_sass/bootstrap/scss/mixins/_deprecate.scss +10 -0
  90. data/_sass/bootstrap/scss/mixins/_float.scss +14 -0
  91. data/_sass/bootstrap/scss/mixins/_forms.scss +152 -0
  92. data/_sass/bootstrap/scss/mixins/_gradients.scss +47 -0
  93. data/_sass/bootstrap/scss/mixins/_grid-framework.scss +80 -0
  94. data/_sass/bootstrap/scss/mixins/_grid.scss +151 -0
  95. data/_sass/bootstrap/scss/mixins/_hover.scss +37 -0
  96. data/_sass/bootstrap/scss/mixins/_image.scss +16 -0
  97. data/_sass/bootstrap/scss/mixins/_list-group.scss +24 -0
  98. data/_sass/bootstrap/scss/mixins/_lists.scss +7 -0
  99. data/_sass/bootstrap/scss/mixins/_nav-divider.scss +11 -0
  100. data/_sass/bootstrap/scss/mixins/_pagination.scss +10 -0
  101. data/_sass/bootstrap/scss/mixins/_reset-text.scss +17 -0
  102. data/_sass/bootstrap/scss/mixins/_resize.scss +6 -0
  103. data/_sass/bootstrap/scss/mixins/_screen-reader.scss +34 -0
  104. data/_sass/bootstrap/scss/mixins/_size.scss +7 -0
  105. data/_sass/bootstrap/scss/mixins/_table-row.scss +39 -0
  106. data/_sass/bootstrap/scss/mixins/_table-variants.scss +24 -0
  107. data/_sass/bootstrap/scss/mixins/_text-emphasis.scss +17 -0
  108. data/_sass/bootstrap/scss/mixins/_text-hide.scss +11 -0
  109. data/_sass/bootstrap/scss/mixins/_text-truncate.scss +8 -0
  110. data/_sass/bootstrap/scss/mixins/_transition.scss +26 -0
  111. data/_sass/bootstrap/scss/mixins/_utilities.scss +92 -0
  112. data/_sass/bootstrap/scss/mixins/_visibility.scss +8 -0
  113. data/_sass/bootstrap/scss/mixins/_visually-hidden.scss +29 -0
  114. data/_sass/bootstrap/scss/utilities/_align.scss +8 -0
  115. data/_sass/bootstrap/scss/utilities/_api.scss +47 -0
  116. data/_sass/bootstrap/scss/utilities/_background.scss +19 -0
  117. data/_sass/bootstrap/scss/utilities/_borders.scss +75 -0
  118. data/_sass/bootstrap/scss/utilities/_clearfix.scss +3 -0
  119. data/_sass/bootstrap/scss/utilities/_display.scss +26 -0
  120. data/_sass/bootstrap/scss/utilities/_embed.scss +39 -0
  121. data/_sass/bootstrap/scss/utilities/_flex.scss +51 -0
  122. data/_sass/bootstrap/scss/utilities/_float.scss +11 -0
  123. data/_sass/bootstrap/scss/utilities/_interactions.scss +5 -0
  124. data/_sass/bootstrap/scss/utilities/_overflow.scss +5 -0
  125. data/_sass/bootstrap/scss/utilities/_position.scss +32 -0
  126. data/_sass/bootstrap/scss/utilities/_screenreaders.scss +11 -0
  127. data/_sass/bootstrap/scss/utilities/_shadows.scss +6 -0
  128. data/_sass/bootstrap/scss/utilities/_sizing.scss +20 -0
  129. data/_sass/bootstrap/scss/utilities/_spacing.scss +73 -0
  130. data/_sass/bootstrap/scss/utilities/_stretched-link.scss +19 -0
  131. data/_sass/bootstrap/scss/utilities/_text.scss +72 -0
  132. data/_sass/bootstrap/scss/utilities/_visibility.scss +13 -0
  133. data/_sass/bootstrap/scss/vendor/_rfs.scss +354 -0
  134. data/_sass/jekyll-theme-cs50.scss +298 -0
  135. data/_sass/page.scss +228 -0
  136. data/_sass/rouge.scss +35 -0
  137. data/assets/@fortawesome/fontawesome-free/css/all.min.css +5 -0
  138. data/assets/@fortawesome/fontawesome-free/webfonts/fa-brands-400.eot +0 -0
  139. data/assets/@fortawesome/fontawesome-free/webfonts/fa-brands-400.svg +3717 -0
  140. data/assets/@fortawesome/fontawesome-free/webfonts/fa-brands-400.ttf +0 -0
  141. data/assets/@fortawesome/fontawesome-free/webfonts/fa-brands-400.woff +0 -0
  142. data/assets/@fortawesome/fontawesome-free/webfonts/fa-brands-400.woff2 +0 -0
  143. data/assets/@fortawesome/fontawesome-free/webfonts/fa-regular-400.eot +0 -0
  144. data/assets/@fortawesome/fontawesome-free/webfonts/fa-regular-400.svg +801 -0
  145. data/assets/@fortawesome/fontawesome-free/webfonts/fa-regular-400.ttf +0 -0
  146. data/assets/@fortawesome/fontawesome-free/webfonts/fa-regular-400.woff +0 -0
  147. data/assets/@fortawesome/fontawesome-free/webfonts/fa-regular-400.woff2 +0 -0
  148. data/assets/@fortawesome/fontawesome-free/webfonts/fa-solid-900.eot +0 -0
  149. data/assets/@fortawesome/fontawesome-free/webfonts/fa-solid-900.svg +5034 -0
  150. data/assets/@fortawesome/fontawesome-free/webfonts/fa-solid-900.ttf +0 -0
  151. data/assets/@fortawesome/fontawesome-free/webfonts/fa-solid-900.woff +0 -0
  152. data/assets/@fortawesome/fontawesome-free/webfonts/fa-solid-900.woff2 +0 -0
  153. data/assets/algolia-min.css +1 -0
  154. data/assets/algoliasearch/dist/algoliasearch-lite.umd.js +2 -0
  155. data/assets/algoliasearchLite.min.js +3 -0
  156. data/assets/bootstrap/LICENSE +22 -0
  157. data/assets/bootstrap/dist/js/bootstrap.bundle.min.js +7 -0
  158. data/assets/bootstrap/dist/js/bootstrap.bundle.min.js.map +1 -0
  159. data/assets/bootstrap/dist/js/bootstrap.min.js +7 -0
  160. data/assets/bootstrap-table/LICENSE +21 -0
  161. data/assets/bootstrap-table/dist/bootstrap-table.min.css +10 -0
  162. data/assets/bootstrap-table/dist/bootstrap-table.min.js +10 -0
  163. data/assets/bootstrap-table/dist/extensions/mobile/bootstrap-table-mobile.min.js +10 -0
  164. data/assets/instantsearch.js/LICENSE +21 -0
  165. data/assets/instantsearch.js/dist/instantsearch.production.min.js +3 -0
  166. data/assets/instantsearch.js/dist/instantsearch.production.min.js.map +1 -0
  167. data/assets/instantsearch.production.min.js +3 -0
  168. data/assets/jekyll-theme-cs50.js +620 -0
  169. data/assets/jquery/LICENSE.txt +20 -0
  170. data/assets/jquery/dist/jquery.min.js +2 -0
  171. data/assets/luxon.min.js +1 -0
  172. data/assets/moment-timezone-with-data.min.js +1 -0
  173. data/assets/moment.min.js +1 -0
  174. data/assets/page.js +4 -0
  175. data/assets/page.scss +4 -0
  176. data/assets/popper.js/dist/umd/popper.min.js +5 -0
  177. data/assets/reset-min.css +1 -0
  178. data/assets/scratchblocks.min.js +11 -0
  179. data/assets/scratchblocks.min.js.map +1 -0
  180. data/lib/jekyll-theme-cs50/constants.rb +59 -0
  181. data/lib/jekyll-theme-cs50.rb +606 -0
  182. data/lib/liquid-tag-parser.rb +1 -0
  183. metadata +350 -0
@@ -0,0 +1,354 @@
1
+ // stylelint-disable property-blacklist, scss/dollar-variable-default
2
+
3
+ // SCSS RFS mixin
4
+ //
5
+ // Automated responsive values for font sizes, paddings, margins and much more
6
+ //
7
+ // Licensed under MIT (https://github.com/twbs/rfs/blob/main/LICENSE)
8
+
9
+ // Configuration
10
+
11
+ // Base value
12
+ $rfs-base-value: 1.25rem !default;
13
+ $rfs-unit: rem !default;
14
+
15
+ @if $rfs-unit != rem and $rfs-unit != px {
16
+ @error "`#{$rfs-unit}` is not a valid unit for $rfs-unit. Use `px` or `rem`.";
17
+ }
18
+
19
+ // Breakpoint at where values start decreasing if screen width is smaller
20
+ $rfs-breakpoint: 1200px !default;
21
+ $rfs-breakpoint-unit: px !default;
22
+
23
+ @if $rfs-breakpoint-unit != px and $rfs-breakpoint-unit != em and $rfs-breakpoint-unit != rem {
24
+ @error "`#{$rfs-breakpoint-unit}` is not a valid unit for $rfs-breakpoint-unit. Use `px`, `em` or `rem`.";
25
+ }
26
+
27
+ // Resize values based on screen height and width
28
+ $rfs-two-dimensional: false !default;
29
+
30
+ // Factor of decrease
31
+ $rfs-factor: 10 !default;
32
+
33
+ @if type-of($rfs-factor) != number or $rfs-factor <= 1 {
34
+ @error "`#{$rfs-factor}` is not a valid $rfs-factor, it must be greater than 1.";
35
+ }
36
+
37
+ // Mode. Possibilities: "min-media-query", "max-media-query"
38
+ $rfs-mode: min-media-query !default;
39
+
40
+ // Generate enable or disable classes. Possibilities: false, "enable" or "disable"
41
+ $rfs-class: false !default;
42
+
43
+ // 1 rem = $rfs-rem-value px
44
+ $rfs-rem-value: 16 !default;
45
+
46
+ // Safari iframe resize bug: https://github.com/twbs/rfs/issues/14
47
+ $rfs-safari-iframe-resize-bug-fix: false !default;
48
+
49
+ // Disable RFS by setting $enable-rfs to false
50
+ $enable-rfs: true !default;
51
+
52
+ // Cache $rfs-base-value unit
53
+ $rfs-base-value-unit: unit($rfs-base-value);
54
+
55
+ @function divide($dividend, $divisor, $precision: 10) {
56
+ $sign: if($dividend > 0 and $divisor > 0 or $dividend < 0 and $divisor < 0, 1, -1);
57
+ $dividend: abs($dividend);
58
+ $divisor: abs($divisor);
59
+ @if $dividend == 0 {
60
+ @return 0;
61
+ }
62
+ @if $divisor == 0 {
63
+ @error "Cannot divide by 0";
64
+ }
65
+ $remainder: $dividend;
66
+ $result: 0;
67
+ $factor: 10;
68
+ @while ($remainder > 0 and $precision >= 0) {
69
+ $quotient: 0;
70
+ @while ($remainder >= $divisor) {
71
+ $remainder: $remainder - $divisor;
72
+ $quotient: $quotient + 1;
73
+ }
74
+ $result: $result * 10 + $quotient;
75
+ $factor: $factor * .1;
76
+ $remainder: $remainder * 10;
77
+ $precision: $precision - 1;
78
+ @if ($precision < 0 and $remainder >= $divisor * 5) {
79
+ $result: $result + 1;
80
+ }
81
+ }
82
+ $result: $result * $factor * $sign;
83
+ $dividend-unit: unit($dividend);
84
+ $divisor-unit: unit($divisor);
85
+ $unit-map: (
86
+ "px": 1px,
87
+ "rem": 1rem,
88
+ "em": 1em,
89
+ "%": 1%
90
+ );
91
+ @if ($dividend-unit != $divisor-unit and map-has-key($unit-map, $dividend-unit)) {
92
+ $result: $result * map-get($unit-map, $dividend-unit);
93
+ }
94
+ @return $result;
95
+ }
96
+
97
+ // Remove px-unit from $rfs-base-value for calculations
98
+ @if $rfs-base-value-unit == px {
99
+ $rfs-base-value: divide($rfs-base-value, $rfs-base-value * 0 + 1);
100
+ }
101
+ @else if $rfs-base-value-unit == rem {
102
+ $rfs-base-value: divide($rfs-base-value, divide($rfs-base-value * 0 + 1, $rfs-rem-value));
103
+ }
104
+
105
+ // Cache $rfs-breakpoint unit to prevent multiple calls
106
+ $rfs-breakpoint-unit-cache: unit($rfs-breakpoint);
107
+
108
+ // Remove unit from $rfs-breakpoint for calculations
109
+ @if $rfs-breakpoint-unit-cache == px {
110
+ $rfs-breakpoint: divide($rfs-breakpoint, $rfs-breakpoint * 0 + 1);
111
+ }
112
+ @else if $rfs-breakpoint-unit-cache == rem or $rfs-breakpoint-unit-cache == "em" {
113
+ $rfs-breakpoint: divide($rfs-breakpoint, divide($rfs-breakpoint * 0 + 1, $rfs-rem-value));
114
+ }
115
+
116
+ // Calculate the media query value
117
+ $rfs-mq-value: if($rfs-breakpoint-unit == px, #{$rfs-breakpoint}px, #{divide($rfs-breakpoint, $rfs-rem-value)}#{$rfs-breakpoint-unit});
118
+ $rfs-mq-property-width: if($rfs-mode == max-media-query, max-width, min-width);
119
+ $rfs-mq-property-height: if($rfs-mode == max-media-query, max-height, min-height);
120
+
121
+ // Internal mixin used to determine which media query needs to be used
122
+ @mixin _rfs-media-query {
123
+ @if $rfs-two-dimensional {
124
+ @if $rfs-mode == max-media-query {
125
+ @media (#{$rfs-mq-property-width}: #{$rfs-mq-value}), (#{$rfs-mq-property-height}: #{$rfs-mq-value}) {
126
+ @content;
127
+ }
128
+ }
129
+ @else {
130
+ @media (#{$rfs-mq-property-width}: #{$rfs-mq-value}) and (#{$rfs-mq-property-height}: #{$rfs-mq-value}) {
131
+ @content;
132
+ }
133
+ }
134
+ }
135
+ @else {
136
+ @media (#{$rfs-mq-property-width}: #{$rfs-mq-value}) {
137
+ @content;
138
+ }
139
+ }
140
+ }
141
+
142
+ // Internal mixin that adds disable classes to the selector if needed.
143
+ @mixin _rfs-rule {
144
+ @if $rfs-class == disable and $rfs-mode == max-media-query {
145
+ // Adding an extra class increases specificity, which prevents the media query to override the property
146
+ &,
147
+ .disable-rfs &,
148
+ &.disable-rfs {
149
+ @content;
150
+ }
151
+ }
152
+ @else if $rfs-class == enable and $rfs-mode == min-media-query {
153
+ .enable-rfs &,
154
+ &.enable-rfs {
155
+ @content;
156
+ }
157
+ }
158
+ @else {
159
+ @content;
160
+ }
161
+ }
162
+
163
+ // Internal mixin that adds enable classes to the selector if needed.
164
+ @mixin _rfs-media-query-rule {
165
+
166
+ @if $rfs-class == enable {
167
+ @if $rfs-mode == min-media-query {
168
+ @content;
169
+ }
170
+
171
+ @include _rfs-media-query {
172
+ .enable-rfs &,
173
+ &.enable-rfs {
174
+ @content;
175
+ }
176
+ }
177
+ }
178
+ @else {
179
+ @if $rfs-class == disable and $rfs-mode == min-media-query {
180
+ .disable-rfs &,
181
+ &.disable-rfs {
182
+ @content;
183
+ }
184
+ }
185
+ @include _rfs-media-query {
186
+ @content;
187
+ }
188
+ }
189
+ }
190
+
191
+ // Helper function to get the formatted non-responsive value
192
+ @function rfs-value($values) {
193
+ // Convert to list
194
+ $values: if(type-of($values) != list, ($values,), $values);
195
+
196
+ $val: '';
197
+
198
+ // Loop over each value and calculate value
199
+ @each $value in $values {
200
+ @if $value == 0 {
201
+ $val: $val + ' 0';
202
+ }
203
+ @else {
204
+ // Cache $value unit
205
+ $unit: if(type-of($value) == "number", unit($value), false);
206
+
207
+ @if $unit == px {
208
+ // Convert to rem if needed
209
+ $val: $val + ' ' + if($rfs-unit == rem, #{divide($value, $value * 0 + $rfs-rem-value)}rem, $value);
210
+ }
211
+ @else if $unit == rem {
212
+ // Convert to px if needed
213
+ $val: $val + ' ' + if($rfs-unit == px, #{divide($value, $value * 0 + 1) * $rfs-rem-value}px, $value);
214
+ }
215
+ @else {
216
+ // If $value isn't a number (like inherit) or $value has a unit (not px or rem, like 1.5em) or $ is 0, just print the value
217
+ $val: $val + ' ' + $value;
218
+ }
219
+ }
220
+ }
221
+
222
+ // Remove first space
223
+ @return unquote(str-slice($val, 2));
224
+ }
225
+
226
+ // Helper function to get the responsive value calculated by RFS
227
+ @function rfs-fluid-value($values) {
228
+ // Convert to list
229
+ $values: if(type-of($values) != list, ($values,), $values);
230
+
231
+ $val: '';
232
+
233
+ // Loop over each value and calculate value
234
+ @each $value in $values {
235
+ @if $value == 0 {
236
+ $val: $val + ' 0';
237
+ }
238
+
239
+ @else {
240
+ // Cache $value unit
241
+ $unit: if(type-of($value) == "number", unit($value), false);
242
+
243
+ // If $value isn't a number (like inherit) or $value has a unit (not px or rem, like 1.5em) or $ is 0, just print the value
244
+ @if not $unit or $unit != px and $unit != rem {
245
+ $val: $val + ' ' + $value;
246
+ }
247
+
248
+ @else {
249
+ // Remove unit from $value for calculations
250
+ $value: divide($value, $value * 0 + if($unit == px, 1, divide(1, $rfs-rem-value)));
251
+
252
+ // Only add the media query if the value is greater than the minimum value
253
+ @if abs($value) <= $rfs-base-value or not $enable-rfs {
254
+ $val: $val + ' ' + if($rfs-unit == rem, #{divide($value, $rfs-rem-value)}rem, #{$value}px);
255
+ }
256
+ @else {
257
+ // Calculate the minimum value
258
+ $value-min: $rfs-base-value + divide(abs($value) - $rfs-base-value, $rfs-factor);
259
+
260
+ // Calculate difference between $value and the minimum value
261
+ $value-diff: abs($value) - $value-min;
262
+
263
+ // Base value formatting
264
+ $min-width: if($rfs-unit == rem, #{divide($value-min, $rfs-rem-value)}rem, #{$value-min}px);
265
+
266
+ // Use negative value if needed
267
+ $min-width: if($value < 0, -$min-width, $min-width);
268
+
269
+ // Use `vmin` if two-dimensional is enabled
270
+ $variable-unit: if($rfs-two-dimensional, vmin, vw);
271
+
272
+ // Calculate the variable width between 0 and $rfs-breakpoint
273
+ $variable-width: #{divide($value-diff * 100, $rfs-breakpoint)}#{$variable-unit};
274
+
275
+ // Return the calculated value
276
+ $val: $val + ' calc(' + $min-width + if($value < 0, ' - ', ' + ') + $variable-width + ')';
277
+ }
278
+ }
279
+ }
280
+ }
281
+
282
+ // Remove first space
283
+ @return unquote(str-slice($val, 2));
284
+ }
285
+
286
+ // RFS mixin
287
+ @mixin rfs($values, $property: font-size) {
288
+ @if $values != null {
289
+ $val: rfs-value($values);
290
+ $fluidVal: rfs-fluid-value($values);
291
+
292
+ // Do not print the media query if responsive & non-responsive values are the same
293
+ @if $val == $fluidVal {
294
+ #{$property}: $val;
295
+ }
296
+ @else {
297
+ @include _rfs-rule {
298
+ #{$property}: if($rfs-mode == max-media-query, $val, $fluidVal);
299
+
300
+ // Include safari iframe resize fix if needed
301
+ min-width: if($rfs-safari-iframe-resize-bug-fix, (0 * 1vw), null);
302
+ }
303
+
304
+ @include _rfs-media-query-rule {
305
+ #{$property}: if($rfs-mode == max-media-query, $fluidVal, $val);
306
+ }
307
+ }
308
+ }
309
+ }
310
+
311
+ // Shorthand helper mixins
312
+ @mixin font-size($value) {
313
+ @include rfs($value);
314
+ }
315
+
316
+ @mixin padding($value) {
317
+ @include rfs($value, padding);
318
+ }
319
+
320
+ @mixin padding-top($value) {
321
+ @include rfs($value, padding-top);
322
+ }
323
+
324
+ @mixin padding-right($value) {
325
+ @include rfs($value, padding-right);
326
+ }
327
+
328
+ @mixin padding-bottom($value) {
329
+ @include rfs($value, padding-bottom);
330
+ }
331
+
332
+ @mixin padding-left($value) {
333
+ @include rfs($value, padding-left);
334
+ }
335
+
336
+ @mixin margin($value) {
337
+ @include rfs($value, margin);
338
+ }
339
+
340
+ @mixin margin-top($value) {
341
+ @include rfs($value, margin-top);
342
+ }
343
+
344
+ @mixin margin-right($value) {
345
+ @include rfs($value, margin-right);
346
+ }
347
+
348
+ @mixin margin-bottom($value) {
349
+ @include rfs($value, margin-bottom);
350
+ }
351
+
352
+ @mixin margin-left($value) {
353
+ @include rfs($value, margin-left);
354
+ }
@@ -0,0 +1,298 @@
1
+ // Default font
2
+ $font-family-sans-serif: "PT Sans" !default;
3
+
4
+ // Blue links
5
+ $link-color: #0504aa !default; //#a51c30 !default;
6
+ $link-hover-color: $link-color !default;
7
+
8
+ // Headings
9
+ // https://github.com/primer/css/blob/master/src/markdown/headings.scss
10
+ $h1-font-size: 2rem;
11
+ $h2-font-size: 1.5rem;
12
+ $h3-font-size: 1.25rem;
13
+ $h4-font-size: 1rem;
14
+ $h5-font-size: 0.875rem;
15
+ $h6-font-size: 0.85rem;
16
+ $headings-font-weight: bold;
17
+
18
+ // Import Bootstrap
19
+ @import "bootstrap/scss/bootstrap.scss";
20
+
21
+ // GitHub syntax highlighter color scheme for Pygments
22
+ // https://github.com/PhilipTrauner/pygments-github-css/blob/master/github.css
23
+ @import "rouge";
24
+
25
+ // Align badges
26
+ .badge {
27
+ vertical-align: middle;
28
+ }
29
+
30
+ // Format tables like paragraphs
31
+ .bootstrap-table {
32
+ margin-bottom: 1rem;
33
+
34
+ // Only fill viewport's width in card view
35
+ .fixed-table-container:not(.has-card-view) .table {
36
+ width: auto;
37
+ }
38
+
39
+ // A la GitHub
40
+ .table td, .table th {
41
+ padding: .5rem .75rem;
42
+ }
43
+
44
+ // Boldface headings in card view
45
+ .card-view:first-child {
46
+ font-weight: bold;
47
+ }
48
+ }
49
+
50
+ // Confine borders to images
51
+ .img-thumbnail {
52
+ width: fit-content;
53
+ }
54
+
55
+ // Fill 80% of viewport
56
+ .modal-dialog {
57
+ max-height: inherit;
58
+ max-width: inherit;
59
+ margin: 0 auto;
60
+ width: 80vw;
61
+ }
62
+ .modal-content {
63
+ height: 80vh;
64
+ }
65
+
66
+ // Suppress bottom margin within parents, except for pre tags
67
+ // (whose padding otherwise creates illusion that they're closer to siblings than they are)
68
+ :last-child:not(pre) {
69
+ margin-bottom: 0;
70
+ }
71
+
72
+ // Wrap long words (and URLs, whether linked or not), especially on mobile,
73
+ // but not in buttons and not in tables, which should instead scroll horizontally
74
+ * {
75
+ word-break: break-word;
76
+ }
77
+ button, table * {
78
+ word-break: normal;
79
+ }
80
+
81
+ // Offset links' underline
82
+ a, .btn-link {
83
+ text-decoration-line: underline;
84
+ text-decoration-style: solid;
85
+ text-decoration-thickness: 1px;
86
+ text-underline-offset: 2px;
87
+ }
88
+ a[data-clock] {
89
+ color: inherit;
90
+ text-decoration: none;
91
+ }
92
+ a[data-clock] .fa-clock {
93
+ display: inline;
94
+ }
95
+ a[data-clock]:hover {
96
+ text-decoration: none;
97
+ }
98
+ [data-clock]::before {
99
+ content: '\00a0';
100
+ }
101
+
102
+ // A la GitHub
103
+ blockquote {
104
+ border-left-color: $gray-200;
105
+ border-left-style: solid;
106
+ border-left-width: thick;
107
+ color: $text-muted;
108
+ padding-left: 1rem;
109
+ }
110
+
111
+ // A la GitHub
112
+ code {
113
+ color: inherit;
114
+ }
115
+ code.highlighter-rouge {
116
+ background-color: $gray-100;
117
+ @extend .border;
118
+ padding: calc(.2rem - 1px) .2rem;
119
+ }
120
+ div.highlighter-rouge {
121
+ margin-bottom: 1rem;
122
+ }
123
+ li {
124
+ div.highlighter-rouge {
125
+ margin-bottom: 0;
126
+ }
127
+ }
128
+
129
+ // Shrink Mermaid charts
130
+ div.mermaid svg {
131
+ height: auto;
132
+ max-height: 100vh;
133
+ }
134
+
135
+ // Shrink Scratch blocks, a la http://scratchblocks.github.io/
136
+ div.scratchblocks svg {
137
+ transform: scale(0.675);
138
+ transform-origin: 0 0;
139
+ }
140
+
141
+ // Details, summaries
142
+ details {
143
+ margin-bottom: 1rem;
144
+ }
145
+ summary + * {
146
+ margin-top: 1rem; // Because no pseudo-class for detecting when details are open
147
+ }
148
+
149
+ // Headings
150
+ h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
151
+ font-weight: bold;
152
+ margin-bottom: 1rem;
153
+ padding-top: 1rem;
154
+
155
+ // Subtle anchors
156
+ a[data-id] {
157
+ color: inherit;
158
+ text-decoration: none;
159
+ }
160
+ a[data-id]:hover {
161
+ color: inherit;
162
+ }
163
+ }
164
+ h1, h2, .h1, .h2 {
165
+ border-bottom-color: $gray-200;
166
+ border-bottom-style: solid;
167
+ border-bottom-width: thin;
168
+ padding-bottom: .5rem;
169
+ }
170
+ @for $i from 1 through 6 {
171
+ h#{$i} + a[data-id],
172
+ h#{$i} + a[data-id],
173
+ .h#{$i} + a[data-id],
174
+ .h#{$i} + a[data-id] {
175
+ margin-top: -.5rem;
176
+ }
177
+ }
178
+
179
+ // Defaults for iframes
180
+ iframe {
181
+ border: 0;
182
+ display: block; // Else defaults to inline, which adds whitespace below margin-bottom
183
+ height: 480px;
184
+ margin-bottom: 16px;
185
+ }
186
+
187
+ // Ensure responsive in Safari on iOS (for, e.g., Google Calendars), per
188
+ // https://stackoverflow.com/a/23083463/5156190
189
+ iframe {
190
+ min-width: 100%;
191
+ width: 1px;
192
+ }
193
+
194
+ // Confine images to parent
195
+ img {
196
+ max-width: 100%;
197
+ }
198
+
199
+ // A la GitHub
200
+ dt + dd, dd + dd {
201
+ margin-top: .25rem;
202
+ }
203
+ li:first-child, li + li {
204
+ margin-top: .25rem;
205
+ }
206
+ #markdown-toc { // But not in TOC
207
+ li:first-child, li + li {
208
+ margin-top: 0;
209
+ }
210
+ }
211
+ li > blockquote,
212
+ li > img {
213
+ margin-top: .25rem;
214
+ }
215
+ li > div.scratchblocks,
216
+ li > p,
217
+ li pre {
218
+ margin-bottom: .5rem;
219
+ margin-top: .5rem;
220
+ }
221
+
222
+ // Mimic Google's highlighting
223
+ mark, .mark {
224
+ background-color: inherit;
225
+ color: inherit;
226
+ font-weight: bold;
227
+ padding: 0
228
+ }
229
+
230
+ // Padding after numbers
231
+ ol > li {
232
+ padding-left: .5rem;
233
+ }
234
+
235
+ // A la GitHub
236
+ pre {
237
+ @extend .border;
238
+ background-color: $gray-100;
239
+ padding: .5rem .75rem;
240
+ }
241
+
242
+ // Prevent wrapping on iOS
243
+ pre code span {
244
+ white-space: pre;
245
+ }
246
+
247
+ //// alert
248
+
249
+ // Box shadows
250
+ #alert, aside {
251
+ box-shadow: .5rem .5rem 1rem rgba($black, .20); // https://github.com/twbs/bootstrap/blob/master/scss/_variables.scss
252
+ }
253
+
254
+ //// marker
255
+
256
+ // + and -
257
+ [data-marker="+"] > span, [data-marker="-"] > span {
258
+ cursor: pointer;
259
+ }
260
+ [data-marker="+"] > .fa-li, [data-marker="-"] > .fa-li {
261
+ user-select: none;
262
+ }
263
+ [data-marker="+"] > .fa-li > .fa-plus-square, [data-marker="-"] > .fa-li > .fa-minus-square {
264
+ font-size: 80%;
265
+ }
266
+
267
+ // +
268
+ [data-marker="+"] > ol, [data-marker="+"] > ul {
269
+ display: none;
270
+ }
271
+
272
+ // *
273
+ [data-marker="*"] > .fa-li > .fa-square {
274
+ font-size: 50%;
275
+ vertical-align: 25%;
276
+ }
277
+
278
+
279
+ //// next
280
+
281
+ .next {
282
+ display: none;
283
+ }
284
+
285
+
286
+ //// spoiler
287
+
288
+ details > summary {
289
+ font-weight: bold;
290
+ }
291
+
292
+ //// video
293
+
294
+ // Format videos like paragraphs
295
+ [data-video] {
296
+ background-color: #000;
297
+ margin-bottom: 1rem;
298
+ }