@jet-w/astro-blog 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (140) hide show
  1. package/dist/chunk-FXPGR372.js +0 -0
  2. package/dist/chunk-GYLSY3OJ.js +173 -0
  3. package/dist/config/index.d.ts +166 -0
  4. package/dist/config/index.js +38 -0
  5. package/dist/index.d.ts +34 -0
  6. package/dist/index.js +59 -0
  7. package/dist/types/index.d.ts +75 -0
  8. package/dist/types/index.js +1 -0
  9. package/package.json +84 -0
  10. package/src/components/EChartsCard.vue +118 -0
  11. package/src/components/Mermaid.vue +73 -0
  12. package/src/components/about/ContentCard.astro +27 -0
  13. package/src/components/about/IconCard.astro +77 -0
  14. package/src/components/about/SocialLinks.astro +54 -0
  15. package/src/components/about/TagCard.astro +65 -0
  16. package/src/components/about/TagGroup.astro +33 -0
  17. package/src/components/about/TimelineCard.astro +52 -0
  18. package/src/components/blog/FloatingToc.vue +198 -0
  19. package/src/components/blog/Hero.astro +147 -0
  20. package/src/components/blog/NavigationTabs.vue +245 -0
  21. package/src/components/blog/PostCard.astro +161 -0
  22. package/src/components/blog/PostNavigation.astro +106 -0
  23. package/src/components/blog/RelatedPosts.astro +175 -0
  24. package/src/components/blog/TableOfContents.astro +153 -0
  25. package/src/components/blog/TagCloud.astro +91 -0
  26. package/src/components/home/FeaturedPostsSection.astro +54 -0
  27. package/src/components/home/QuickNavSection.astro +81 -0
  28. package/src/components/home/RecentPostsSection.astro +52 -0
  29. package/src/components/home/StatsSection.astro +44 -0
  30. package/src/components/layout/Footer.astro +103 -0
  31. package/src/components/layout/Header.astro +68 -0
  32. package/src/components/layout/Sidebar.astro +594 -0
  33. package/src/components/media/Bilibili.astro +114 -0
  34. package/src/components/media/Slides.astro +313 -0
  35. package/src/components/media/Video.astro +111 -0
  36. package/src/components/media/VideoPlayer.astro +89 -0
  37. package/src/components/media/YouTube.astro +92 -0
  38. package/src/components/pte/StudyCalendar.vue +1348 -0
  39. package/src/components/ui/Icon.astro +187 -0
  40. package/src/components/ui/MobileMenu.vue +201 -0
  41. package/src/components/ui/Pagination.astro +143 -0
  42. package/src/components/ui/SearchBox.vue +179 -0
  43. package/src/components/ui/SearchInterface.vue +409 -0
  44. package/src/components/ui/SidebarToggle.vue +57 -0
  45. package/src/components/ui/ThemeToggle.vue +90 -0
  46. package/src/layouts/AboutLayout.astro +18 -0
  47. package/src/layouts/BaseLayout.astro +362 -0
  48. package/src/layouts/PageLayout.astro +217 -0
  49. package/src/layouts/SlidesLayout.astro +320 -0
  50. package/src/plugins/rehype-clean-containers.mjs +24 -0
  51. package/src/plugins/rehype-relative-links.mjs +43 -0
  52. package/src/plugins/rehype-tabs.mjs +116 -0
  53. package/src/plugins/remark-containers.mjs +407 -0
  54. package/src/plugins/remark-mermaid.mjs +46 -0
  55. package/src/styles/global.css +870 -0
  56. package/src/styles/slides.css +220 -0
  57. package/src/utils/sidebar.ts +492 -0
  58. package/templates/default/astro.config.mjs +51 -0
  59. package/templates/default/content/pages/about.mdx +93 -0
  60. package/templates/default/content/pages/index.mdx +20 -0
  61. package/templates/default/content/posts/blog_docs/01-quick-start.md +162 -0
  62. package/templates/default/content/posts/blog_docs/02-frontmatter.md +277 -0
  63. package/templates/default/content/posts/blog_docs/03-markdown-basic.md +350 -0
  64. package/templates/default/content/posts/blog_docs/04-containers.md +331 -0
  65. package/templates/default/content/posts/blog_docs/05-code-blocks.md +388 -0
  66. package/templates/default/content/posts/blog_docs/06-mermaid.md +431 -0
  67. package/templates/default/content/posts/blog_docs/07-video.md +243 -0
  68. package/templates/default/content/posts/blog_docs/08-latex.md +382 -0
  69. package/templates/default/content/posts/blog_docs/09-icons.md +326 -0
  70. package/templates/default/content/posts/blog_docs/10-sidebar.md +445 -0
  71. package/templates/default/content/posts/blog_docs/11-config.md +334 -0
  72. package/templates/default/content/posts/blog_docs/12-slides.mdx +552 -0
  73. package/templates/default/content/posts/blog_docs/README.md +151 -0
  74. package/templates/default/content/slides/demo.md +146 -0
  75. package/templates/default/content/slides/docs/basic-demo.md +35 -0
  76. package/templates/default/content/slides/docs/code-demo.md +62 -0
  77. package/templates/default/content/slides/docs/echarts-demo.md +139 -0
  78. package/templates/default/content/slides/docs/fragment-demo.md +35 -0
  79. package/templates/default/content/slides/docs/math-demo.md +48 -0
  80. package/templates/default/content/slides/docs/mermaid-demo.md +105 -0
  81. package/templates/default/content/slides/docs/theme-demo.md +38 -0
  82. package/templates/default/content/slides/docs/vertical-demo.md +50 -0
  83. package/templates/default/package.json +31 -0
  84. package/templates/default/public/favicon-bak.svg +4 -0
  85. package/templates/default/public/images/avatar.jpg +0 -0
  86. package/templates/default/public/images/avatar.svg +142 -0
  87. package/templates/default/public/js/mermaid-container.js +402 -0
  88. package/templates/default/public/js/mermaid-init.js +131 -0
  89. package/templates/default/public/js/mermaid-render.js +98 -0
  90. package/templates/default/public/js/mermaid-simple.js +95 -0
  91. package/templates/default/public/js/tabs-init.js +86 -0
  92. package/templates/default/public/media/individual_portfolio/INDIVIDUAL PORTFOLIO.png +0 -0
  93. package/templates/default/public/slides/plugin/highlight/highlight.js +5 -0
  94. package/templates/default/public/slides/plugin/highlight/monokai.css +71 -0
  95. package/templates/default/public/slides/plugin/markdown/markdown.js +7 -0
  96. package/templates/default/public/slides/plugin/math/math.js +1 -0
  97. package/templates/default/public/slides/plugin/notes/notes.js +1 -0
  98. package/templates/default/public/slides/reveal.css +9 -0
  99. package/templates/default/public/slides/reveal.js +9 -0
  100. package/templates/default/public/slides/theme/beige.css +366 -0
  101. package/templates/default/public/slides/theme/black-contrast.css +362 -0
  102. package/templates/default/public/slides/theme/black.css +359 -0
  103. package/templates/default/public/slides/theme/blood.css +392 -0
  104. package/templates/default/public/slides/theme/dracula.css +385 -0
  105. package/templates/default/public/slides/theme/league.css +368 -0
  106. package/templates/default/public/slides/theme/moon.css +362 -0
  107. package/templates/default/public/slides/theme/night.css +360 -0
  108. package/templates/default/public/slides/theme/serif.css +363 -0
  109. package/templates/default/public/slides/theme/simple.css +362 -0
  110. package/templates/default/public/slides/theme/sky.css +370 -0
  111. package/templates/default/public/slides/theme/solarized.css +363 -0
  112. package/templates/default/public/slides/theme/white-contrast.css +362 -0
  113. package/templates/default/public/slides/theme/white.css +359 -0
  114. package/templates/default/public/slides/theme/white_contrast_compact_verbatim_headers.css +360 -0
  115. package/templates/default/public/test-complete.html +43 -0
  116. package/templates/default/public/test-mermaid.html +124 -0
  117. package/templates/default/src/config/index.ts +114 -0
  118. package/templates/default/src/content.config.ts +96 -0
  119. package/templates/default/src/pages/[...slug].astro +27 -0
  120. package/templates/default/src/pages/archives/[year]/[month]/page/[page].astro +176 -0
  121. package/templates/default/src/pages/archives/[year]/[month].astro +158 -0
  122. package/templates/default/src/pages/archives/index.astro +210 -0
  123. package/templates/default/src/pages/categories/[category]/page/[page].astro +218 -0
  124. package/templates/default/src/pages/categories/[category].astro +198 -0
  125. package/templates/default/src/pages/categories/index.astro +190 -0
  126. package/templates/default/src/pages/container-test.astro +79 -0
  127. package/templates/default/src/pages/mermaid-direct.html +78 -0
  128. package/templates/default/src/pages/posts/[...slug].astro +335 -0
  129. package/templates/default/src/pages/posts/index.astro +541 -0
  130. package/templates/default/src/pages/posts/page/[page].astro +146 -0
  131. package/templates/default/src/pages/rss.xml.ts +28 -0
  132. package/templates/default/src/pages/search-index.json.ts +21 -0
  133. package/templates/default/src/pages/search.astro +50 -0
  134. package/templates/default/src/pages/slides/[...slug].astro +54 -0
  135. package/templates/default/src/pages/slides/index.astro +135 -0
  136. package/templates/default/src/pages/tags/[tag]/page/[page].astro +211 -0
  137. package/templates/default/src/pages/tags/[tag].astro +191 -0
  138. package/templates/default/src/pages/tags/index.astro +167 -0
  139. package/templates/default/tailwind.config.mjs +78 -0
  140. package/templates/default/tsconfig.json +9 -0
@@ -0,0 +1,362 @@
1
+ /**
2
+ * A simple theme for reveal.js presentations, similar
3
+ * to the default theme. The accent color is darkblue.
4
+ *
5
+ * This theme is Copyright (C) 2012 Owen Versteeg, https://github.com/StereotypicalApps. It is MIT licensed.
6
+ * reveal.js is Copyright (C) 2011-2012 Hakim El Hattab, http://hakim.se
7
+ */
8
+ @import url(https://fonts.googleapis.com/css?family=News+Cycle:400,700);
9
+ @import url(https://fonts.googleapis.com/css?family=Lato:400,700,400italic,700italic);
10
+ section.has-dark-background, section.has-dark-background h1, section.has-dark-background h2, section.has-dark-background h3, section.has-dark-background h4, section.has-dark-background h5, section.has-dark-background h6 {
11
+ color: #fff;
12
+ }
13
+
14
+ /*********************************************
15
+ * GLOBAL STYLES
16
+ *********************************************/
17
+ :root {
18
+ --r-background-color: #fff;
19
+ --r-main-font: Lato, sans-serif;
20
+ --r-main-font-size: 40px;
21
+ --r-main-color: #000;
22
+ --r-block-margin: 20px;
23
+ --r-heading-margin: 0 0 20px 0;
24
+ --r-heading-font: News Cycle, Impact, sans-serif;
25
+ --r-heading-color: #000;
26
+ --r-heading-line-height: 1.2;
27
+ --r-heading-letter-spacing: normal;
28
+ --r-heading-text-transform: none;
29
+ --r-heading-text-shadow: none;
30
+ --r-heading-font-weight: normal;
31
+ --r-heading1-text-shadow: none;
32
+ --r-heading1-size: 3.77em;
33
+ --r-heading2-size: 2.11em;
34
+ --r-heading3-size: 1.55em;
35
+ --r-heading4-size: 1em;
36
+ --r-code-font: monospace;
37
+ --r-link-color: #00008B;
38
+ --r-link-color-dark: rgb(0, 0, 118.15);
39
+ --r-link-color-hover: rgb(0, 0, 213.2);
40
+ --r-selection-background-color: rgba(0, 0, 0, 0.99);
41
+ --r-selection-color: #fff;
42
+ --r-overlay-element-bg-color: 0, 0, 0;
43
+ --r-overlay-element-fg-color: 240, 240, 240;
44
+ }
45
+
46
+ .reveal-viewport {
47
+ background: #fff;
48
+ background-color: var(--r-background-color);
49
+ }
50
+
51
+ .reveal {
52
+ font-family: var(--r-main-font);
53
+ font-size: var(--r-main-font-size);
54
+ font-weight: normal;
55
+ color: var(--r-main-color);
56
+ }
57
+
58
+ .reveal ::selection {
59
+ color: var(--r-selection-color);
60
+ background: var(--r-selection-background-color);
61
+ text-shadow: none;
62
+ }
63
+
64
+ .reveal ::-moz-selection {
65
+ color: var(--r-selection-color);
66
+ background: var(--r-selection-background-color);
67
+ text-shadow: none;
68
+ }
69
+
70
+ .reveal .slides section,
71
+ .reveal .slides section > section {
72
+ line-height: 1.3;
73
+ font-weight: inherit;
74
+ }
75
+
76
+ /*********************************************
77
+ * HEADERS
78
+ *********************************************/
79
+ .reveal h1,
80
+ .reveal h2,
81
+ .reveal h3,
82
+ .reveal h4,
83
+ .reveal h5,
84
+ .reveal h6 {
85
+ margin: var(--r-heading-margin);
86
+ color: var(--r-heading-color);
87
+ font-family: var(--r-heading-font);
88
+ font-weight: var(--r-heading-font-weight);
89
+ line-height: var(--r-heading-line-height);
90
+ letter-spacing: var(--r-heading-letter-spacing);
91
+ text-transform: var(--r-heading-text-transform);
92
+ text-shadow: var(--r-heading-text-shadow);
93
+ word-wrap: break-word;
94
+ }
95
+
96
+ .reveal h1 {
97
+ font-size: var(--r-heading1-size);
98
+ }
99
+
100
+ .reveal h2 {
101
+ font-size: var(--r-heading2-size);
102
+ }
103
+
104
+ .reveal h3 {
105
+ font-size: var(--r-heading3-size);
106
+ }
107
+
108
+ .reveal h4 {
109
+ font-size: var(--r-heading4-size);
110
+ }
111
+
112
+ .reveal h1 {
113
+ text-shadow: var(--r-heading1-text-shadow);
114
+ }
115
+
116
+ /*********************************************
117
+ * OTHER
118
+ *********************************************/
119
+ .reveal p {
120
+ margin: var(--r-block-margin) 0;
121
+ line-height: 1.3;
122
+ }
123
+
124
+ /* Remove trailing margins after titles */
125
+ .reveal h1:last-child,
126
+ .reveal h2:last-child,
127
+ .reveal h3:last-child,
128
+ .reveal h4:last-child,
129
+ .reveal h5:last-child,
130
+ .reveal h6:last-child {
131
+ margin-bottom: 0;
132
+ }
133
+
134
+ /* Ensure certain elements are never larger than the slide itself */
135
+ .reveal img,
136
+ .reveal video,
137
+ .reveal iframe {
138
+ max-width: 95%;
139
+ max-height: 95%;
140
+ }
141
+
142
+ .reveal strong,
143
+ .reveal b {
144
+ font-weight: bold;
145
+ }
146
+
147
+ .reveal em {
148
+ font-style: italic;
149
+ }
150
+
151
+ .reveal ol,
152
+ .reveal dl,
153
+ .reveal ul {
154
+ display: inline-block;
155
+ text-align: left;
156
+ margin: 0 0 0 1em;
157
+ }
158
+
159
+ .reveal ol {
160
+ list-style-type: decimal;
161
+ }
162
+
163
+ .reveal ul {
164
+ list-style-type: disc;
165
+ }
166
+
167
+ .reveal ul ul {
168
+ list-style-type: square;
169
+ }
170
+
171
+ .reveal ul ul ul {
172
+ list-style-type: circle;
173
+ }
174
+
175
+ .reveal ul ul,
176
+ .reveal ul ol,
177
+ .reveal ol ol,
178
+ .reveal ol ul {
179
+ display: block;
180
+ margin-left: 40px;
181
+ }
182
+
183
+ .reveal dt {
184
+ font-weight: bold;
185
+ }
186
+
187
+ .reveal dd {
188
+ margin-left: 40px;
189
+ }
190
+
191
+ .reveal blockquote {
192
+ display: block;
193
+ position: relative;
194
+ width: 70%;
195
+ margin: var(--r-block-margin) auto;
196
+ padding: 5px;
197
+ font-style: italic;
198
+ background: rgba(255, 255, 255, 0.05);
199
+ box-shadow: 0px 0px 2px rgba(0, 0, 0, 0.2);
200
+ }
201
+
202
+ .reveal blockquote p:first-child,
203
+ .reveal blockquote p:last-child {
204
+ display: inline-block;
205
+ }
206
+
207
+ .reveal q {
208
+ font-style: italic;
209
+ }
210
+
211
+ .reveal pre {
212
+ display: block;
213
+ position: relative;
214
+ width: 90%;
215
+ margin: var(--r-block-margin) auto;
216
+ text-align: left;
217
+ font-size: 0.55em;
218
+ font-family: var(--r-code-font);
219
+ line-height: 1.2em;
220
+ word-wrap: break-word;
221
+ box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.15);
222
+ }
223
+
224
+ .reveal code {
225
+ font-family: var(--r-code-font);
226
+ text-transform: none;
227
+ tab-size: 2;
228
+ }
229
+
230
+ .reveal pre code {
231
+ display: block;
232
+ padding: 5px;
233
+ overflow: auto;
234
+ max-height: 400px;
235
+ word-wrap: normal;
236
+ }
237
+
238
+ .reveal .code-wrapper {
239
+ white-space: normal;
240
+ }
241
+
242
+ .reveal .code-wrapper code {
243
+ white-space: pre;
244
+ }
245
+
246
+ .reveal table {
247
+ margin: auto;
248
+ border-collapse: collapse;
249
+ border-spacing: 0;
250
+ }
251
+
252
+ .reveal table th {
253
+ font-weight: bold;
254
+ }
255
+
256
+ .reveal table th,
257
+ .reveal table td {
258
+ text-align: left;
259
+ padding: 0.2em 0.5em 0.2em 0.5em;
260
+ border-bottom: 1px solid;
261
+ }
262
+
263
+ .reveal table th[align=center],
264
+ .reveal table td[align=center] {
265
+ text-align: center;
266
+ }
267
+
268
+ .reveal table th[align=right],
269
+ .reveal table td[align=right] {
270
+ text-align: right;
271
+ }
272
+
273
+ .reveal table tbody tr:last-child th,
274
+ .reveal table tbody tr:last-child td {
275
+ border-bottom: none;
276
+ }
277
+
278
+ .reveal sup {
279
+ vertical-align: super;
280
+ font-size: smaller;
281
+ }
282
+
283
+ .reveal sub {
284
+ vertical-align: sub;
285
+ font-size: smaller;
286
+ }
287
+
288
+ .reveal small {
289
+ display: inline-block;
290
+ font-size: 0.6em;
291
+ line-height: 1.2em;
292
+ vertical-align: top;
293
+ }
294
+
295
+ .reveal small * {
296
+ vertical-align: top;
297
+ }
298
+
299
+ .reveal img {
300
+ margin: var(--r-block-margin) 0;
301
+ }
302
+
303
+ /*********************************************
304
+ * LINKS
305
+ *********************************************/
306
+ .reveal a {
307
+ color: var(--r-link-color);
308
+ text-decoration: none;
309
+ transition: color 0.15s ease;
310
+ }
311
+
312
+ .reveal a:hover {
313
+ color: var(--r-link-color-hover);
314
+ text-shadow: none;
315
+ border: none;
316
+ }
317
+
318
+ .reveal .roll span:after {
319
+ color: #fff;
320
+ background: var(--r-link-color-dark);
321
+ }
322
+
323
+ /*********************************************
324
+ * Frame helper
325
+ *********************************************/
326
+ .reveal .r-frame {
327
+ border: 4px solid var(--r-main-color);
328
+ box-shadow: 0 0 10px rgba(0, 0, 0, 0.15);
329
+ }
330
+
331
+ .reveal a .r-frame {
332
+ transition: all 0.15s linear;
333
+ }
334
+
335
+ .reveal a:hover .r-frame {
336
+ border-color: var(--r-link-color);
337
+ box-shadow: 0 0 20px rgba(0, 0, 0, 0.55);
338
+ }
339
+
340
+ /*********************************************
341
+ * NAVIGATION CONTROLS
342
+ *********************************************/
343
+ .reveal .controls {
344
+ color: var(--r-link-color);
345
+ }
346
+
347
+ /*********************************************
348
+ * PROGRESS BAR
349
+ *********************************************/
350
+ .reveal .progress {
351
+ background: rgba(0, 0, 0, 0.2);
352
+ color: var(--r-link-color);
353
+ }
354
+
355
+ /*********************************************
356
+ * PRINT BACKGROUND
357
+ *********************************************/
358
+ @media print {
359
+ .backgrounds {
360
+ background-color: var(--r-background-color);
361
+ }
362
+ }
@@ -0,0 +1,370 @@
1
+ /**
2
+ * Sky theme for reveal.js.
3
+ *
4
+ * Copyright (C) 2011-2012 Hakim El Hattab, http://hakim.se
5
+ */
6
+ @import url(https://fonts.googleapis.com/css?family=Quicksand:400,700,400italic,700italic);
7
+ @import url(https://fonts.googleapis.com/css?family=Open+Sans:400italic,700italic,400,700);
8
+ .reveal a {
9
+ line-height: 1.3em;
10
+ }
11
+
12
+ section.has-dark-background, section.has-dark-background h1, section.has-dark-background h2, section.has-dark-background h3, section.has-dark-background h4, section.has-dark-background h5, section.has-dark-background h6 {
13
+ color: #fff;
14
+ }
15
+
16
+ /*********************************************
17
+ * GLOBAL STYLES
18
+ *********************************************/
19
+ :root {
20
+ --r-background-color: #f7fbfc;
21
+ --r-main-font: Open Sans, sans-serif;
22
+ --r-main-font-size: 40px;
23
+ --r-main-color: #333;
24
+ --r-block-margin: 20px;
25
+ --r-heading-margin: 0 0 20px 0;
26
+ --r-heading-font: Quicksand, sans-serif;
27
+ --r-heading-color: #333;
28
+ --r-heading-line-height: 1.2;
29
+ --r-heading-letter-spacing: -0.08em;
30
+ --r-heading-text-transform: uppercase;
31
+ --r-heading-text-shadow: none;
32
+ --r-heading-font-weight: normal;
33
+ --r-heading1-text-shadow: none;
34
+ --r-heading1-size: 3.77em;
35
+ --r-heading2-size: 2.11em;
36
+ --r-heading3-size: 1.55em;
37
+ --r-heading4-size: 1em;
38
+ --r-code-font: monospace;
39
+ --r-link-color: #3b759e;
40
+ --r-link-color-dark: rgb(50.15, 99.45, 134.3);
41
+ --r-link-color-hover: rgb(84.330875576, 146.9815668203, 191.269124424);
42
+ --r-selection-background-color: #134674;
43
+ --r-selection-color: #fff;
44
+ --r-overlay-element-bg-color: 0, 0, 0;
45
+ --r-overlay-element-fg-color: 240, 240, 240;
46
+ }
47
+
48
+ .reveal-viewport {
49
+ background: #add9e4;
50
+ background: -moz-radial-gradient(center, circle cover, #f7fbfc 0%, #add9e4 100%);
51
+ background: -webkit-gradient(radial, center center, 0px, center center, 100%, color-stop(0%, #f7fbfc), color-stop(100%, #add9e4));
52
+ background: -webkit-radial-gradient(center, circle cover, #f7fbfc 0%, #add9e4 100%);
53
+ background: -o-radial-gradient(center, circle cover, #f7fbfc 0%, #add9e4 100%);
54
+ background: -ms-radial-gradient(center, circle cover, #f7fbfc 0%, #add9e4 100%);
55
+ background: radial-gradient(center, circle cover, #f7fbfc 0%, #add9e4 100%);
56
+ background-color: var(--r-background-color);
57
+ }
58
+
59
+ .reveal {
60
+ font-family: var(--r-main-font);
61
+ font-size: var(--r-main-font-size);
62
+ font-weight: normal;
63
+ color: var(--r-main-color);
64
+ }
65
+
66
+ .reveal ::selection {
67
+ color: var(--r-selection-color);
68
+ background: var(--r-selection-background-color);
69
+ text-shadow: none;
70
+ }
71
+
72
+ .reveal ::-moz-selection {
73
+ color: var(--r-selection-color);
74
+ background: var(--r-selection-background-color);
75
+ text-shadow: none;
76
+ }
77
+
78
+ .reveal .slides section,
79
+ .reveal .slides section > section {
80
+ line-height: 1.3;
81
+ font-weight: inherit;
82
+ }
83
+
84
+ /*********************************************
85
+ * HEADERS
86
+ *********************************************/
87
+ .reveal h1,
88
+ .reveal h2,
89
+ .reveal h3,
90
+ .reveal h4,
91
+ .reveal h5,
92
+ .reveal h6 {
93
+ margin: var(--r-heading-margin);
94
+ color: var(--r-heading-color);
95
+ font-family: var(--r-heading-font);
96
+ font-weight: var(--r-heading-font-weight);
97
+ line-height: var(--r-heading-line-height);
98
+ letter-spacing: var(--r-heading-letter-spacing);
99
+ text-transform: var(--r-heading-text-transform);
100
+ text-shadow: var(--r-heading-text-shadow);
101
+ word-wrap: break-word;
102
+ }
103
+
104
+ .reveal h1 {
105
+ font-size: var(--r-heading1-size);
106
+ }
107
+
108
+ .reveal h2 {
109
+ font-size: var(--r-heading2-size);
110
+ }
111
+
112
+ .reveal h3 {
113
+ font-size: var(--r-heading3-size);
114
+ }
115
+
116
+ .reveal h4 {
117
+ font-size: var(--r-heading4-size);
118
+ }
119
+
120
+ .reveal h1 {
121
+ text-shadow: var(--r-heading1-text-shadow);
122
+ }
123
+
124
+ /*********************************************
125
+ * OTHER
126
+ *********************************************/
127
+ .reveal p {
128
+ margin: var(--r-block-margin) 0;
129
+ line-height: 1.3;
130
+ }
131
+
132
+ /* Remove trailing margins after titles */
133
+ .reveal h1:last-child,
134
+ .reveal h2:last-child,
135
+ .reveal h3:last-child,
136
+ .reveal h4:last-child,
137
+ .reveal h5:last-child,
138
+ .reveal h6:last-child {
139
+ margin-bottom: 0;
140
+ }
141
+
142
+ /* Ensure certain elements are never larger than the slide itself */
143
+ .reveal img,
144
+ .reveal video,
145
+ .reveal iframe {
146
+ max-width: 95%;
147
+ max-height: 95%;
148
+ }
149
+
150
+ .reveal strong,
151
+ .reveal b {
152
+ font-weight: bold;
153
+ }
154
+
155
+ .reveal em {
156
+ font-style: italic;
157
+ }
158
+
159
+ .reveal ol,
160
+ .reveal dl,
161
+ .reveal ul {
162
+ display: inline-block;
163
+ text-align: left;
164
+ margin: 0 0 0 1em;
165
+ }
166
+
167
+ .reveal ol {
168
+ list-style-type: decimal;
169
+ }
170
+
171
+ .reveal ul {
172
+ list-style-type: disc;
173
+ }
174
+
175
+ .reveal ul ul {
176
+ list-style-type: square;
177
+ }
178
+
179
+ .reveal ul ul ul {
180
+ list-style-type: circle;
181
+ }
182
+
183
+ .reveal ul ul,
184
+ .reveal ul ol,
185
+ .reveal ol ol,
186
+ .reveal ol ul {
187
+ display: block;
188
+ margin-left: 40px;
189
+ }
190
+
191
+ .reveal dt {
192
+ font-weight: bold;
193
+ }
194
+
195
+ .reveal dd {
196
+ margin-left: 40px;
197
+ }
198
+
199
+ .reveal blockquote {
200
+ display: block;
201
+ position: relative;
202
+ width: 70%;
203
+ margin: var(--r-block-margin) auto;
204
+ padding: 5px;
205
+ font-style: italic;
206
+ background: rgba(255, 255, 255, 0.05);
207
+ box-shadow: 0px 0px 2px rgba(0, 0, 0, 0.2);
208
+ }
209
+
210
+ .reveal blockquote p:first-child,
211
+ .reveal blockquote p:last-child {
212
+ display: inline-block;
213
+ }
214
+
215
+ .reveal q {
216
+ font-style: italic;
217
+ }
218
+
219
+ .reveal pre {
220
+ display: block;
221
+ position: relative;
222
+ width: 90%;
223
+ margin: var(--r-block-margin) auto;
224
+ text-align: left;
225
+ font-size: 0.55em;
226
+ font-family: var(--r-code-font);
227
+ line-height: 1.2em;
228
+ word-wrap: break-word;
229
+ box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.15);
230
+ }
231
+
232
+ .reveal code {
233
+ font-family: var(--r-code-font);
234
+ text-transform: none;
235
+ tab-size: 2;
236
+ }
237
+
238
+ .reveal pre code {
239
+ display: block;
240
+ padding: 5px;
241
+ overflow: auto;
242
+ max-height: 400px;
243
+ word-wrap: normal;
244
+ }
245
+
246
+ .reveal .code-wrapper {
247
+ white-space: normal;
248
+ }
249
+
250
+ .reveal .code-wrapper code {
251
+ white-space: pre;
252
+ }
253
+
254
+ .reveal table {
255
+ margin: auto;
256
+ border-collapse: collapse;
257
+ border-spacing: 0;
258
+ }
259
+
260
+ .reveal table th {
261
+ font-weight: bold;
262
+ }
263
+
264
+ .reveal table th,
265
+ .reveal table td {
266
+ text-align: left;
267
+ padding: 0.2em 0.5em 0.2em 0.5em;
268
+ border-bottom: 1px solid;
269
+ }
270
+
271
+ .reveal table th[align=center],
272
+ .reveal table td[align=center] {
273
+ text-align: center;
274
+ }
275
+
276
+ .reveal table th[align=right],
277
+ .reveal table td[align=right] {
278
+ text-align: right;
279
+ }
280
+
281
+ .reveal table tbody tr:last-child th,
282
+ .reveal table tbody tr:last-child td {
283
+ border-bottom: none;
284
+ }
285
+
286
+ .reveal sup {
287
+ vertical-align: super;
288
+ font-size: smaller;
289
+ }
290
+
291
+ .reveal sub {
292
+ vertical-align: sub;
293
+ font-size: smaller;
294
+ }
295
+
296
+ .reveal small {
297
+ display: inline-block;
298
+ font-size: 0.6em;
299
+ line-height: 1.2em;
300
+ vertical-align: top;
301
+ }
302
+
303
+ .reveal small * {
304
+ vertical-align: top;
305
+ }
306
+
307
+ .reveal img {
308
+ margin: var(--r-block-margin) 0;
309
+ }
310
+
311
+ /*********************************************
312
+ * LINKS
313
+ *********************************************/
314
+ .reveal a {
315
+ color: var(--r-link-color);
316
+ text-decoration: none;
317
+ transition: color 0.15s ease;
318
+ }
319
+
320
+ .reveal a:hover {
321
+ color: var(--r-link-color-hover);
322
+ text-shadow: none;
323
+ border: none;
324
+ }
325
+
326
+ .reveal .roll span:after {
327
+ color: #fff;
328
+ background: var(--r-link-color-dark);
329
+ }
330
+
331
+ /*********************************************
332
+ * Frame helper
333
+ *********************************************/
334
+ .reveal .r-frame {
335
+ border: 4px solid var(--r-main-color);
336
+ box-shadow: 0 0 10px rgba(0, 0, 0, 0.15);
337
+ }
338
+
339
+ .reveal a .r-frame {
340
+ transition: all 0.15s linear;
341
+ }
342
+
343
+ .reveal a:hover .r-frame {
344
+ border-color: var(--r-link-color);
345
+ box-shadow: 0 0 20px rgba(0, 0, 0, 0.55);
346
+ }
347
+
348
+ /*********************************************
349
+ * NAVIGATION CONTROLS
350
+ *********************************************/
351
+ .reveal .controls {
352
+ color: var(--r-link-color);
353
+ }
354
+
355
+ /*********************************************
356
+ * PROGRESS BAR
357
+ *********************************************/
358
+ .reveal .progress {
359
+ background: rgba(0, 0, 0, 0.2);
360
+ color: var(--r-link-color);
361
+ }
362
+
363
+ /*********************************************
364
+ * PRINT BACKGROUND
365
+ *********************************************/
366
+ @media print {
367
+ .backgrounds {
368
+ background-color: var(--r-background-color);
369
+ }
370
+ }