datalog-theme 0.6.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.
- checksums.yaml +7 -0
- data/CHANGELOG.md +162 -0
- data/CITATION.cff +29 -0
- data/LICENSE +21 -0
- data/README.md +257 -0
- data/_data/academic.yml +217 -0
- data/_data/cdn-integrity.yml +51 -0
- data/_data/config/author.yml +121 -0
- data/_data/config/features.yml +262 -0
- data/_data/config/site.yml +42 -0
- data/_data/config/theme.yml +181 -0
- data/_data/datasets.yml +28 -0
- data/_data/i18n/en.yml +438 -0
- data/_data/i18n/es.yml +438 -0
- data/_data/i18n/pt.yml +438 -0
- data/_data/js_manifest.json +22 -0
- data/_data/js_meta.json +371 -0
- data/_data/navigation.yml +145 -0
- data/_data/projects.yml +41 -0
- data/_data/publications.yml +28 -0
- data/_data/social.yml +73 -0
- data/_data/visualizations.yml +51 -0
- data/_includes/analytics/dashboard.html +149 -0
- data/_includes/analytics.html +9 -0
- data/_includes/components/academic-dashboard.html +347 -0
- data/_includes/components/advanced-search.html +682 -0
- data/_includes/components/api-function.html +94 -0
- data/_includes/components/author-bio.html +166 -0
- data/_includes/components/bookmark-system.html +96 -0
- data/_includes/components/breadcrumbs.html +89 -0
- data/_includes/components/citation-tools.html +94 -0
- data/_includes/components/comments.html +244 -0
- data/_includes/components/content-provenance.html +43 -0
- data/_includes/components/content-recommendations.html +228 -0
- data/_includes/components/difficulty-badge.html +84 -0
- data/_includes/components/email-preferences.html +200 -0
- data/_includes/components/enhanced-code-block.html +212 -0
- data/_includes/components/enhanced-metadata.html +228 -0
- data/_includes/components/enhanced-toc.html +209 -0
- data/_includes/components/hero.html +15 -0
- data/_includes/components/language-switcher.html +396 -0
- data/_includes/components/math-fallback.html +19 -0
- data/_includes/components/navigation-enhancements.html +454 -0
- data/_includes/components/newsletter-signup.html +178 -0
- data/_includes/components/open-science-badges.html +16 -0
- data/_includes/components/package-install.html +194 -0
- data/_includes/components/performance-monitor.html +170 -0
- data/_includes/components/popular-posts.html +233 -0
- data/_includes/components/post-hero.html +62 -0
- data/_includes/components/reading-progress.html +133 -0
- data/_includes/components/reading-time.html +121 -0
- data/_includes/components/responsive-image.html +63 -0
- data/_includes/components/search-facets.html +307 -0
- data/_includes/components/series-navigation.html +124 -0
- data/_includes/components/social-proof.html +34 -0
- data/_includes/components/social-share.html +119 -0
- data/_includes/components/user-preferences.html +566 -0
- data/_includes/components/visualization-card.html +24 -0
- data/_includes/components/viz-table-fallback.html +19 -0
- data/_includes/critical-css/default.html +0 -0
- data/_includes/critical-css/home.html +0 -0
- data/_includes/critical-css/post.html +0 -0
- data/_includes/csp-meta.html +17 -0
- data/_includes/footer/nav-column.html +31 -0
- data/_includes/footer.html +76 -0
- data/_includes/head.html +337 -0
- data/_includes/header/navigation.html +48 -0
- data/_includes/header.html +70 -0
- data/_includes/helpers/array-to-sentence.html +21 -0
- data/_includes/helpers/date-format.html +16 -0
- data/_includes/helpers/link-with-icon.html +26 -0
- data/_includes/layouts/default/article.html +67 -0
- data/_includes/meta/language-attributes.html +25 -0
- data/_includes/meta/math-config.html +21 -0
- data/_includes/meta/schema.html +153 -0
- data/_includes/meta/scripts-loader.html +52 -0
- data/_includes/post/related-posts.html +63 -0
- data/_includes/scripts.html +72 -0
- data/_includes/skip-link.html +1 -0
- data/_includes/toc.html +2 -0
- data/_layouts/archive.html +282 -0
- data/_layouts/dataset.html +52 -0
- data/_layouts/default.html +33 -0
- data/_layouts/home.html +48 -0
- data/_layouts/notebook.html +173 -0
- data/_layouts/package.html +238 -0
- data/_layouts/page.html +16 -0
- data/_layouts/portfolio.html +41 -0
- data/_layouts/post-sidebar.html +183 -0
- data/_layouts/post.html +338 -0
- data/_layouts/project.html +252 -0
- data/_layouts/research.html +504 -0
- data/_plugins/analytics_dashboard.rb +315 -0
- data/_plugins/config_validator.rb +397 -0
- data/_plugins/csp_generator.rb +115 -0
- data/_plugins/datalog_bibliography.rb +19 -0
- data/_plugins/datalog_comments.rb +18 -0
- data/_plugins/datalog_slides.rb +20 -0
- data/_plugins/front_matter_compat.rb +109 -0
- data/_plugins/i18n.rb +160 -0
- data/_plugins/image_optimizer.rb +445 -0
- data/_plugins/math_preprocessor.rb +185 -0
- data/_plugins/notebook_converter.rb +1107 -0
- data/_plugins/plugin_loader.rb +185 -0
- data/_plugins/publications_generator.rb +234 -0
- data/_plugins/reading_time.rb +15 -0
- data/_plugins/search_normalizer.rb +74 -0
- data/_plugins/sri_filter.rb +18 -0
- data/_plugins/toc_filter.rb +68 -0
- data/_plugins/warning_filter.rb +3 -0
- data/_sass/_base.scss +142 -0
- data/_sass/_components.scss +2380 -0
- data/_sass/_header.scss +470 -0
- data/_sass/_interactive.scss +344 -0
- data/_sass/_layout.scss +1760 -0
- data/_sass/_mathematical.scss +368 -0
- data/_sass/_mixins.scss +99 -0
- data/_sass/_package-docs.scss +715 -0
- data/_sass/_phase1-enhancements.scss +721 -0
- data/_sass/_phase3-enhancements.scss +874 -0
- data/_sass/_phase4-enhancements.scss +1214 -0
- data/_sass/_phase5-enhancements.scss +414 -0
- data/_sass/_search.scss +654 -0
- data/_sass/_syntax-highlighting.scss +128 -0
- data/_sass/_theme.scss +79 -0
- data/_sass/_typography.scss +148 -0
- data/_sass/_utilities.scss +334 -0
- data/_sass/_variables.scss +153 -0
- data/_sass/_visualizations.scss +242 -0
- data/assets/css/main.scss +4 -0
- data/assets/img/20220607123041_detail.001.png +0 -0
- data/assets/img/favicons/android-chrome-192x192.png +0 -0
- data/assets/img/favicons/android-chrome-512x512.png +0 -0
- data/assets/img/favicons/apple-touch-icon.png +0 -0
- data/assets/img/favicons/favicon-16x16.png +0 -0
- data/assets/img/favicons/favicon-32x32.png +0 -0
- data/assets/img/favicons/favicon.ico +0 -0
- data/assets/img/favicons/site.webmanifest +21 -0
- data/assets/img/portfolio-placeholder.svg +20 -0
- data/assets/js/academic.js +262 -0
- data/assets/js/analytics-dashboard.js +382 -0
- data/assets/js/core/dark-mode.js +79 -0
- data/assets/js/core/github-cards.js +123 -0
- data/assets/js/core/language-filter.js +69 -0
- data/assets/js/core/navigation.js +184 -0
- data/assets/js/core/scroll-progress.js +45 -0
- data/assets/js/core/search-hotkeys.js +62 -0
- data/assets/js/core/skip-links.js +62 -0
- data/assets/js/loader.js +163 -0
- data/assets/js/main.js +23 -0
- data/assets/js/math.js +818 -0
- data/assets/js/notebook.js +158 -0
- data/assets/js/search/analytics.js +91 -0
- data/assets/js/search/app.js +271 -0
- data/assets/js/search/autocomplete.js +120 -0
- data/assets/js/search/engine.js +260 -0
- data/assets/js/search/filters.js +38 -0
- data/assets/js/search/render.js +217 -0
- data/assets/js/search/utils.js +99 -0
- data/assets/js/search.js +354 -0
- data/assets/js/visualizations.js +816 -0
- data/assets/publications/datalog-publications.bib +8 -0
- data/assets/publications/datalog-publications.ris +9 -0
- data/assets/publications/publications.bib +30 -0
- data/assets/templates/diogo-ribeiro-cv.md +31 -0
- data/assets/templates/diogo-ribeiro-cv.tex +32 -0
- data/bin/datalog +26 -0
- data/datalog-theme.gemspec +72 -0
- data/lib/datalog/cli.rb +563 -0
- data/lib/datalog/plugin_system/dependency_resolver.rb +223 -0
- data/lib/datalog/plugin_system.rb +237 -0
- data/lib/datalog/plugins/citations.rb +182 -0
- data/lib/datalog/plugins/comments.rb +183 -0
- data/lib/datalog/plugins/search.rb +45 -0
- data/lib/datalog/plugins/slides.rb +121 -0
- data/lib/datalog/theme/theme.rb +18 -0
- data/lib/datalog/theme/version.rb +7 -0
- data/lib/datalog/warning_filter.rb +28 -0
- data/lib/datalog-theme.rb +17 -0
- metadata +555 -0
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
@use 'sass:map';
|
|
2
|
+
|
|
3
|
+
@use 'variables' as *;
|
|
4
|
+
|
|
5
|
+
// Prism.js inspired syntax highlighting tuned for analytical workloads
|
|
6
|
+
pre[class*='language-'],
|
|
7
|
+
code[class*='language-'] {
|
|
8
|
+
color: $color-ink-900;
|
|
9
|
+
background: transparent;
|
|
10
|
+
font-family: $font-family-mono;
|
|
11
|
+
font-size: map.get($font-size-scale, sm);
|
|
12
|
+
line-height: 1.6;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
pre[class*='language-'] {
|
|
16
|
+
position: relative;
|
|
17
|
+
padding-top: map.get($spacing, 5);
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
:not(pre) > code[class*='language-'],
|
|
21
|
+
pre[class*='language-'] {
|
|
22
|
+
background: rgba($color-surface-900, 0.02);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.token.comment,
|
|
26
|
+
.token.prolog,
|
|
27
|
+
.token.doctype,
|
|
28
|
+
.token.cdata {
|
|
29
|
+
color: $color-ink-300;
|
|
30
|
+
font-style: italic;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.token.punctuation {
|
|
34
|
+
color: $color-ink-500;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.token.property,
|
|
38
|
+
.token.tag,
|
|
39
|
+
.token.constant,
|
|
40
|
+
.token.symbol,
|
|
41
|
+
.token.deleted {
|
|
42
|
+
color: $color-accent-tertiary;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.token.boolean,
|
|
46
|
+
.token.number {
|
|
47
|
+
color: $color-accent-secondary;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.token.selector,
|
|
51
|
+
.token.attr-name,
|
|
52
|
+
.token.string,
|
|
53
|
+
.token.char,
|
|
54
|
+
.token.builtin,
|
|
55
|
+
.token.inserted {
|
|
56
|
+
color: $color-success;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.token.operator,
|
|
60
|
+
.token.entity,
|
|
61
|
+
.token.url,
|
|
62
|
+
.token.variable {
|
|
63
|
+
color: $color-accent-primary;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.token.atrule,
|
|
67
|
+
.token.attr-value,
|
|
68
|
+
.token.keyword {
|
|
69
|
+
color: $color-accent-secondary;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
.token.function,
|
|
73
|
+
.token.class-name {
|
|
74
|
+
color: $color-accent-primary;
|
|
75
|
+
font-weight: 600;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.token.regex,
|
|
79
|
+
.token.important {
|
|
80
|
+
color: $color-warning;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.token.important,
|
|
84
|
+
.token.bold {
|
|
85
|
+
font-weight: 700;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
.token.italic {
|
|
89
|
+
font-style: italic;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
body.dark-mode pre[class*='language-'],
|
|
93
|
+
body.dark-mode code[class*='language-'] {
|
|
94
|
+
color: $dark-ink-900;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
body.dark-mode pre[class*='language-'] {
|
|
98
|
+
background: rgba($dark-surface-300, 0.8);
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
body.dark-mode .token.comment,
|
|
102
|
+
body.dark-mode .token.prolog,
|
|
103
|
+
body.dark-mode .token.doctype,
|
|
104
|
+
body.dark-mode .token.cdata {
|
|
105
|
+
color: rgba($dark-ink-500, 0.7);
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
body.dark-mode .token.boolean,
|
|
109
|
+
body.dark-mode .token.number {
|
|
110
|
+
color: $dark-accent-secondary;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
body.dark-mode .token.selector,
|
|
114
|
+
body.dark-mode .token.attr-name,
|
|
115
|
+
body.dark-mode .token.string,
|
|
116
|
+
body.dark-mode .token.inserted {
|
|
117
|
+
color: #5fe3aa;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
body.dark-mode .token.keyword,
|
|
121
|
+
body.dark-mode .token.operator {
|
|
122
|
+
color: $dark-accent-primary;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
body.dark-mode .token.function,
|
|
126
|
+
body.dark-mode .token.class-name {
|
|
127
|
+
color: #9fb6ff;
|
|
128
|
+
}
|
data/_sass/_theme.scss
ADDED
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
// Primary manifest for the DataLog theme.
|
|
2
|
+
// Provides CSS custom properties and composes the Sass partials.
|
|
3
|
+
@use "sass:color";
|
|
4
|
+
// 1) Modules FIRST (no CSS before these)
|
|
5
|
+
@use 'variables' as *; // gives access to Sass tokens here
|
|
6
|
+
@use 'mixins' as *;
|
|
7
|
+
|
|
8
|
+
// Each partial below MUST import its own tokens if it references them.
|
|
9
|
+
// `@use` here does NOT leak variables into those files' scopes.
|
|
10
|
+
@use 'base';
|
|
11
|
+
@use 'typography';
|
|
12
|
+
@use 'layout';
|
|
13
|
+
@use 'header';
|
|
14
|
+
@use 'components';
|
|
15
|
+
@use 'utilities';
|
|
16
|
+
@use 'syntax-highlighting';
|
|
17
|
+
@use 'mathematical';
|
|
18
|
+
@use 'interactive';
|
|
19
|
+
@use 'search';
|
|
20
|
+
@use 'visualizations';
|
|
21
|
+
@use 'phase1-enhancements';
|
|
22
|
+
@use 'phase3-enhancements';
|
|
23
|
+
@use 'phase4-enhancements';
|
|
24
|
+
@use 'phase5-enhancements';
|
|
25
|
+
@use 'package-docs';
|
|
26
|
+
|
|
27
|
+
// 2) CSS rules AFTER all @use/@forward
|
|
28
|
+
:root {
|
|
29
|
+
// Surface/background colors
|
|
30
|
+
--color-surface: #{$color-surface-50};
|
|
31
|
+
--color-surface-alt: #{$color-surface-100};
|
|
32
|
+
--color-background: #{$color-surface-50};
|
|
33
|
+
--color-background-secondary: #{$color-surface-100};
|
|
34
|
+
|
|
35
|
+
// Text/ink colors
|
|
36
|
+
--color-ink: #{$color-ink-900};
|
|
37
|
+
--color-ink-muted: #{$color-ink-500};
|
|
38
|
+
--color-text-primary: #{$color-ink-900};
|
|
39
|
+
--color-text-secondary: #{$color-ink-500};
|
|
40
|
+
--color-text-tertiary: #{$color-ink-300};
|
|
41
|
+
|
|
42
|
+
// Accent colors
|
|
43
|
+
--color-accent: #{$color-accent-primary};
|
|
44
|
+
--color-accent-secondary: #{$color-accent-secondary};
|
|
45
|
+
--color-accent-dark: #{color.adjust($color-accent-primary, $lightness: -10%)};
|
|
46
|
+
|
|
47
|
+
// Border colors
|
|
48
|
+
--color-border: #{$color-neutral-200};
|
|
49
|
+
|
|
50
|
+
// Typography
|
|
51
|
+
--max-width-reading: #{$max-width-reading};
|
|
52
|
+
--font-sans: #{$font-family-sans};
|
|
53
|
+
--font-serif: #{$font-family-serif};
|
|
54
|
+
--font-mono: #{$font-family-mono};
|
|
55
|
+
--base-font-size: #{$font-size-root};
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
body.dark-mode {
|
|
59
|
+
// Surface/background colors
|
|
60
|
+
--color-surface: #{$dark-surface-100};
|
|
61
|
+
--color-surface-alt: #{$dark-surface-200};
|
|
62
|
+
--color-background: #{$dark-surface-100};
|
|
63
|
+
--color-background-secondary: #{$dark-surface-200};
|
|
64
|
+
|
|
65
|
+
// Text/ink colors
|
|
66
|
+
--color-ink: #{$dark-ink-900};
|
|
67
|
+
--color-ink-muted: #{$dark-ink-500};
|
|
68
|
+
--color-text-primary: #{$dark-ink-900};
|
|
69
|
+
--color-text-secondary: #{$dark-ink-500};
|
|
70
|
+
--color-text-tertiary: #{$dark-ink-300};
|
|
71
|
+
|
|
72
|
+
// Accent colors
|
|
73
|
+
--color-accent: #{$dark-accent-primary};
|
|
74
|
+
--color-accent-secondary: #{$dark-accent-secondary};
|
|
75
|
+
--color-accent-dark: #{color.adjust($dark-accent-primary, $lightness: -10%)};
|
|
76
|
+
|
|
77
|
+
// Border colors
|
|
78
|
+
--color-border: #{$dark-surface-300};
|
|
79
|
+
}
|
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
@use 'sass:map';
|
|
2
|
+
|
|
3
|
+
@use 'variables' as *;
|
|
4
|
+
@use 'mixins' as *;
|
|
5
|
+
|
|
6
|
+
body {
|
|
7
|
+
font-size: map.get($font-size-scale, base);
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
p,
|
|
11
|
+
li {
|
|
12
|
+
max-width: $max-width-reading;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
p {
|
|
16
|
+
margin: 0 0 map.get($spacing, 4);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
strong {
|
|
20
|
+
font-weight: 600;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
em {
|
|
24
|
+
font-style: italic;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
h1,
|
|
28
|
+
h2,
|
|
29
|
+
h3,
|
|
30
|
+
h4,
|
|
31
|
+
h5,
|
|
32
|
+
h6 {
|
|
33
|
+
font-family: $font-family-serif;
|
|
34
|
+
font-weight: 600;
|
|
35
|
+
color: $color-ink-900;
|
|
36
|
+
line-height: $line-height-tight;
|
|
37
|
+
margin: map.get($spacing, 6) 0 map.get($spacing, 3);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
h1 {
|
|
41
|
+
@include fluid-type(2rem, 3rem);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
h2 {
|
|
45
|
+
@include fluid-type(1.75rem, 2.5rem);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
h3 {
|
|
49
|
+
font-size: 1.5rem;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
h4 {
|
|
53
|
+
font-size: 1.25rem;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
h5 {
|
|
57
|
+
font-size: 1.125rem;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
h6 {
|
|
61
|
+
font-size: 1rem;
|
|
62
|
+
text-transform: uppercase;
|
|
63
|
+
letter-spacing: 0.05em;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
body.dark-mode h1,
|
|
67
|
+
body.dark-mode h2,
|
|
68
|
+
body.dark-mode h3,
|
|
69
|
+
body.dark-mode h4,
|
|
70
|
+
body.dark-mode h5,
|
|
71
|
+
body.dark-mode h6 {
|
|
72
|
+
color: $dark-ink-900;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
blockquote {
|
|
76
|
+
@include callout($color-accent-tertiary);
|
|
77
|
+
font-style: italic;
|
|
78
|
+
margin: map.get($spacing, 5) 0;
|
|
79
|
+
max-width: $max-width-reading;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
hr {
|
|
83
|
+
border: 0;
|
|
84
|
+
border-top: 1px solid $color-neutral-200;
|
|
85
|
+
margin: map.get($spacing, 6) 0;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
figure {
|
|
89
|
+
margin: map.get($spacing, 5) 0;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
figcaption {
|
|
93
|
+
font-size: map.get($font-size-scale, sm);
|
|
94
|
+
color: $color-ink-500;
|
|
95
|
+
margin-top: map.get($spacing, 2);
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
body.dark-mode figcaption {
|
|
99
|
+
color: rgba($dark-ink-500, 0.85);
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
dt {
|
|
103
|
+
font-weight: 600;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
dd {
|
|
107
|
+
margin: 0 0 map.get($spacing, 3) map.get($spacing, 4);
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
.lead {
|
|
111
|
+
font-size: map.get($font-size-scale, lg);
|
|
112
|
+
color: $color-ink-700;
|
|
113
|
+
max-width: $max-width-reading;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
body.dark-mode .lead {
|
|
117
|
+
color: rgba($dark-ink-900, 0.85);
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
code {
|
|
121
|
+
background-color: rgba($color-surface-900, 0.05);
|
|
122
|
+
color: $color-ink-700;
|
|
123
|
+
border-radius: 0.35rem;
|
|
124
|
+
padding: 0.1em 0.35em;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
body.dark-mode code {
|
|
128
|
+
background-color: rgba($dark-surface-300, 0.6);
|
|
129
|
+
color: $dark-ink-700;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
pre code {
|
|
133
|
+
background: transparent;
|
|
134
|
+
padding: 0;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
.citation {
|
|
138
|
+
font-size: map.get($font-size-scale, sm);
|
|
139
|
+
color: $color-ink-500;
|
|
140
|
+
display: block;
|
|
141
|
+
margin-top: map.get($spacing, 2);
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
.caption-number {
|
|
145
|
+
font-weight: 600;
|
|
146
|
+
text-transform: uppercase;
|
|
147
|
+
letter-spacing: 0.08em;
|
|
148
|
+
}
|
|
@@ -0,0 +1,334 @@
|
|
|
1
|
+
@use 'sass:color';
|
|
2
|
+
@use 'sass:map';
|
|
3
|
+
|
|
4
|
+
@use 'variables' as *;
|
|
5
|
+
@use 'mixins' as *;
|
|
6
|
+
|
|
7
|
+
.visually-hidden {
|
|
8
|
+
position: absolute;
|
|
9
|
+
width: 1px;
|
|
10
|
+
height: 1px;
|
|
11
|
+
padding: 0;
|
|
12
|
+
margin: -1px;
|
|
13
|
+
overflow: hidden;
|
|
14
|
+
clip: rect(0, 0, 0, 0);
|
|
15
|
+
white-space: nowrap;
|
|
16
|
+
border: 0;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.badge {
|
|
20
|
+
display: inline-flex;
|
|
21
|
+
align-items: center;
|
|
22
|
+
gap: map.get($spacing, 1);
|
|
23
|
+
border-radius: 999px;
|
|
24
|
+
padding: 0.2rem 0.65rem;
|
|
25
|
+
font-size: map.get($font-size-scale, xs);
|
|
26
|
+
font-weight: 600;
|
|
27
|
+
letter-spacing: 0.08em;
|
|
28
|
+
text-transform: uppercase;
|
|
29
|
+
background: rgba($color-accent-primary, 0.08);
|
|
30
|
+
color: $color-accent-primary;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.badge--success {
|
|
34
|
+
background: rgba($color-success, 0.1);
|
|
35
|
+
color: $color-success;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.badge--warning {
|
|
39
|
+
background: rgba($color-warning, 0.1);
|
|
40
|
+
color: $color-warning;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.badge--danger {
|
|
44
|
+
background: rgba($color-critical, 0.1);
|
|
45
|
+
color: $color-critical;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.stat-symbol {
|
|
49
|
+
font-variant-numeric: tabular-nums;
|
|
50
|
+
font-feature-settings: 'tnum' 1, 'ss01' 1;
|
|
51
|
+
font-family: $font-family-mono;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.legend {
|
|
55
|
+
display: inline-flex;
|
|
56
|
+
gap: map.get($spacing, 2);
|
|
57
|
+
flex-wrap: wrap;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.legend__item {
|
|
61
|
+
display: inline-flex;
|
|
62
|
+
align-items: center;
|
|
63
|
+
gap: map.get($spacing, 1);
|
|
64
|
+
font-size: map.get($font-size-scale, xs);
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.legend__swatch {
|
|
68
|
+
width: 0.75rem;
|
|
69
|
+
height: 0.75rem;
|
|
70
|
+
border-radius: 999px;
|
|
71
|
+
background: $color-accent-primary;
|
|
72
|
+
box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6);
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
body.dark-mode .legend__swatch {
|
|
76
|
+
box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.25);
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.u-text-center {
|
|
80
|
+
text-align: center;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.u-text-right {
|
|
84
|
+
text-align: right;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.u-flow > * + * {
|
|
88
|
+
margin-top: map.get($spacing, 4);
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
.u-grid {
|
|
92
|
+
@include data-grid();
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
.u-grid--tight {
|
|
96
|
+
@include data-grid(14rem, map.get($spacing, 3));
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
.u-section {
|
|
100
|
+
padding: map.get($spacing, 6) 0;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
.u-section--alt {
|
|
104
|
+
background: rgba($color-neutral-100, 0.6);
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
body.dark-mode .u-section--alt {
|
|
108
|
+
background: rgba($dark-surface-300, 0.6);
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
.u-shadow {
|
|
112
|
+
box-shadow: $shadow-soft;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
body.dark-mode .u-shadow {
|
|
116
|
+
box-shadow: none;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
html[dir='rtl'] body {
|
|
120
|
+
direction: rtl;
|
|
121
|
+
text-align: right;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
html[dir='rtl'] .site-nav .nav-list,
|
|
125
|
+
html[dir='rtl'] .header-controls {
|
|
126
|
+
flex-direction: row-reverse;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
html[dir='rtl'] .site-brand {
|
|
130
|
+
flex-direction: row-reverse;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
html[dir='rtl'] .site-brand .site-title-group,
|
|
134
|
+
html[dir='rtl'] .nav-description,
|
|
135
|
+
html[dir='rtl'] .site-search,
|
|
136
|
+
body.rtl .article-body,
|
|
137
|
+
body.rtl .site-footer,
|
|
138
|
+
body.rtl .site-nav,
|
|
139
|
+
body.rtl .header-utilities__content {
|
|
140
|
+
text-align: right;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
html[dir='rtl'] .site-search input {
|
|
144
|
+
direction: rtl;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
.analytics-dashboard {
|
|
148
|
+
display: flex;
|
|
149
|
+
flex-direction: column;
|
|
150
|
+
gap: map.get($spacing, 6);
|
|
151
|
+
margin-top: map.get($spacing, 4);
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
.analytics-header {
|
|
155
|
+
display: flex;
|
|
156
|
+
flex-wrap: wrap;
|
|
157
|
+
justify-content: space-between;
|
|
158
|
+
gap: map.get($spacing, 4);
|
|
159
|
+
align-items: flex-start;
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
.analytics-title {
|
|
163
|
+
margin: 0;
|
|
164
|
+
font-size: map.get($font-size-scale, xl);
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
.analytics-subtitle {
|
|
168
|
+
margin: map.get($spacing, 2) 0 0;
|
|
169
|
+
color: rgba($color-neutral-700, 0.85);
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
body.dark-mode .analytics-subtitle {
|
|
173
|
+
color: rgba($dark-surface-50, 0.85);
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
.analytics-meta {
|
|
177
|
+
display: flex;
|
|
178
|
+
flex-direction: column;
|
|
179
|
+
gap: map.get($spacing, 2);
|
|
180
|
+
font-size: map.get($font-size-scale, sm);
|
|
181
|
+
color: rgba($color-neutral-600, 0.9);
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
body.dark-mode .analytics-meta {
|
|
185
|
+
color: rgba($dark-surface-50, 0.75);
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
.analytics-grid {
|
|
189
|
+
display: grid;
|
|
190
|
+
gap: map.get($spacing, 4);
|
|
191
|
+
grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
.analytics-card {
|
|
195
|
+
background: rgba($color-neutral-50, 0.6);
|
|
196
|
+
border-radius: map.get($radius, lg);
|
|
197
|
+
padding: map.get($spacing, 4);
|
|
198
|
+
box-shadow: $shadow-soft;
|
|
199
|
+
display: flex;
|
|
200
|
+
flex-direction: column;
|
|
201
|
+
gap: map.get($spacing, 3);
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
body.dark-mode .analytics-card {
|
|
205
|
+
background: rgba($dark-surface-200, 0.8);
|
|
206
|
+
box-shadow: none;
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
.analytics-card header h3 {
|
|
210
|
+
margin: 0;
|
|
211
|
+
font-size: map.get($font-size-scale, lg);
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
.analytics-card--wide {
|
|
215
|
+
grid-column: span 2;
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
@media (max-width: 56rem) {
|
|
219
|
+
.analytics-card--wide {
|
|
220
|
+
grid-column: span 1;
|
|
221
|
+
}
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
.analytics-table {
|
|
225
|
+
width: 100%;
|
|
226
|
+
border-collapse: collapse;
|
|
227
|
+
font-size: map.get($font-size-scale, sm);
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
.analytics-table th,
|
|
231
|
+
.analytics-table td {
|
|
232
|
+
padding: map.get($spacing, 2) map.get($spacing, 1);
|
|
233
|
+
border-bottom: 1px solid rgba($color-neutral-200, 0.7);
|
|
234
|
+
vertical-align: top;
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
body.dark-mode .analytics-table th,
|
|
238
|
+
body.dark-mode .analytics-table td {
|
|
239
|
+
border-bottom: 1px solid rgba($dark-surface-100, 0.4);
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
.analytics-table tbody tr:last-child td {
|
|
243
|
+
border-bottom: none;
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
.analytics-table td:nth-child(2),
|
|
247
|
+
.analytics-table td:nth-child(3),
|
|
248
|
+
.analytics-table th:nth-child(2),
|
|
249
|
+
.analytics-table th:nth-child(3) {
|
|
250
|
+
text-align: right;
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
.analytics-metric-list {
|
|
254
|
+
list-style: none;
|
|
255
|
+
margin: 0;
|
|
256
|
+
padding: 0;
|
|
257
|
+
display: flex;
|
|
258
|
+
flex-direction: column;
|
|
259
|
+
gap: map.get($spacing, 2);
|
|
260
|
+
font-size: map.get($font-size-scale, sm);
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
.analytics-definition-list {
|
|
264
|
+
display: grid;
|
|
265
|
+
gap: map.get($spacing, 2);
|
|
266
|
+
font-size: map.get($font-size-scale, sm);
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
.analytics-definition-list dt {
|
|
270
|
+
font-weight: 600;
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
.analytics-alert {
|
|
274
|
+
padding: map.get($spacing, 3);
|
|
275
|
+
border-radius: map.get($radius, md);
|
|
276
|
+
background: rgba($color-warning, 0.12);
|
|
277
|
+
color: color.adjust($color-warning, $lightness: -20%);
|
|
278
|
+
font-size: map.get($font-size-scale, sm);
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
body.dark-mode .analytics-alert {
|
|
282
|
+
background: rgba($color-warning, 0.18);
|
|
283
|
+
color: color.adjust($color-warning, $lightness: 10%);
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
.analytics-dashboard [data-field],
|
|
287
|
+
.analytics-dashboard td,
|
|
288
|
+
.analytics-dashboard th,
|
|
289
|
+
.analytics-dashboard li {
|
|
290
|
+
font-variant-numeric: tabular-nums;
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
.post-slides,
|
|
294
|
+
.post-bibliography,
|
|
295
|
+
.post-comments {
|
|
296
|
+
margin-top: map.get($spacing, 6);
|
|
297
|
+
padding-top: map.get($spacing, 4);
|
|
298
|
+
border-top: 1px solid rgba($color-border, 0.5);
|
|
299
|
+
}
|
|
300
|
+
|
|
301
|
+
.post-slides h2,
|
|
302
|
+
.post-bibliography h2,
|
|
303
|
+
.post-comments h2 {
|
|
304
|
+
font-size: map.get($font-size-scale, lg);
|
|
305
|
+
margin-bottom: map.get($spacing, 3);
|
|
306
|
+
}
|
|
307
|
+
|
|
308
|
+
.post-bibliography ol {
|
|
309
|
+
counter-reset: reference-counter;
|
|
310
|
+
margin: 0;
|
|
311
|
+
padding-left: map.get($spacing, 5);
|
|
312
|
+
}
|
|
313
|
+
|
|
314
|
+
.post-bibliography li {
|
|
315
|
+
margin-bottom: map.get($spacing, 2);
|
|
316
|
+
}
|
|
317
|
+
|
|
318
|
+
.post-comments-intro {
|
|
319
|
+
font-size: map.get($font-size-scale, sm);
|
|
320
|
+
color: rgba($color-foreground, 0.8);
|
|
321
|
+
margin-bottom: map.get($spacing, 3);
|
|
322
|
+
}
|
|
323
|
+
|
|
324
|
+
.datalog-comments {
|
|
325
|
+
border-radius: map.get($radius, md);
|
|
326
|
+
border: 1px solid rgba($color-border, 0.4);
|
|
327
|
+
padding: map.get($spacing, 3);
|
|
328
|
+
background: rgba($color-surface, 0.65);
|
|
329
|
+
}
|
|
330
|
+
|
|
331
|
+
body.dark-mode .datalog-comments {
|
|
332
|
+
background: rgba($color-surface-dark, 0.35);
|
|
333
|
+
border-color: rgba($color-border-dark, 0.6);
|
|
334
|
+
}
|