@dino-ovum/theme 0.0.0-stage → 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 (75) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +22 -2
  3. package/package.json +36 -3
  4. package/src/app/Root.jsx +5 -0
  5. package/src/app/components/DocumentCategoryPage.jsx +21 -0
  6. package/src/app/components/DocumentPagination.jsx +58 -0
  7. package/src/app/components/DocumentTable.jsx +116 -0
  8. package/src/app/components/HomeHeading.jsx +34 -0
  9. package/src/app/components/LibraryLayout.jsx +36 -0
  10. package/src/app/components/SpaceOverview.jsx +17 -0
  11. package/src/app/components/Updates.jsx +137 -0
  12. package/src/app/components/navigation/Breadcrumbs.jsx +52 -0
  13. package/src/app/components/navigation/ColorModeToggle.jsx +66 -0
  14. package/src/app/components/navigation/LanguageDropdown.jsx +108 -0
  15. package/src/app/components/navigation/LibraryNavigation.jsx +20 -0
  16. package/src/app/components/navigation/MobileNavigation.jsx +12 -0
  17. package/src/app/components/navigation/RecentUpdatesLink.jsx +36 -0
  18. package/src/app/components/navigation/SidebarToggle.jsx +60 -0
  19. package/src/app/components/ui/DocumentDate.jsx +25 -0
  20. package/src/app/components/ui/FilterChip.jsx +14 -0
  21. package/src/app/components/ui/TopicBadge.jsx +14 -0
  22. package/src/app/hooks/useDocumentTable.js +60 -0
  23. package/src/app/hooks/useUpdates.js +23 -0
  24. package/src/app/logic/document-breadcrumbs.js +24 -0
  25. package/src/app/logic/document-dates.js +19 -0
  26. package/src/app/logic/document-list.js +15 -0
  27. package/src/app/logic/document-location.js +19 -0
  28. package/src/app/logic/document-taxonomy.js +10 -0
  29. package/src/app/logic/pagination.js +24 -0
  30. package/src/app/logic/update-groups.js +18 -0
  31. package/src/app/providers/AppProviders.jsx +5 -0
  32. package/src/app/providers/SidebarVisibility.jsx +19 -0
  33. package/src/app/routes.js +15 -0
  34. package/src/app/styles/components/DocumentCategoryPage.module.scss +50 -0
  35. package/src/app/styles/components/DocumentPagination.module.scss +45 -0
  36. package/src/app/styles/components/DocumentTable.module.scss +188 -0
  37. package/src/app/styles/components/LibraryLayout.module.scss +59 -0
  38. package/src/app/styles/components/Updates.module.scss +102 -0
  39. package/src/app/styles/components/navigation/Breadcrumbs.module.scss +5 -0
  40. package/src/app/styles/components/navigation/LanguageDropdown.module.scss +49 -0
  41. package/src/app/styles/components/navigation/MobileNavigation.module.scss +5 -0
  42. package/src/app/styles/components/navigation/NavigationControls.module.scss +70 -0
  43. package/src/app/styles/components/ui/FilterChip.module.scss +28 -0
  44. package/src/app/styles/components/ui/TopicBadge.module.scss +42 -0
  45. package/src/app/styles/custom.scss +7 -0
  46. package/src/app/styles/globals.css +64 -0
  47. package/src/app/styles/pages/home.scss +92 -0
  48. package/src/app/styles/theme/navigation.scss +56 -0
  49. package/src/app/styles/theme/tags.css +21 -0
  50. package/src/app/styles/tokens/_breakpoints.scss +4 -0
  51. package/src/app/styles/tokens/colors.css +62 -0
  52. package/src/app/styles/tokens/layout.css +20 -0
  53. package/src/app/styles/tokens/typography.css +11 -0
  54. package/src/assets/fonts/pretendard/LICENSE +94 -0
  55. package/src/assets/fonts/pretendard/PretendardStd-Bold.woff2 +0 -0
  56. package/src/assets/fonts/pretendard/README.md +8 -0
  57. package/src/index.js +48 -0
  58. package/src/theme/ColorModeToggle/index.jsx +1 -0
  59. package/src/theme/DinoOvum/DocumentTable.jsx +1 -0
  60. package/src/theme/DinoOvum/HomeHeading.jsx +1 -0
  61. package/src/theme/DinoOvum/LibraryLayout.jsx +1 -0
  62. package/src/theme/DinoOvum/Updates.jsx +1 -0
  63. package/src/theme/DinoOvum/UpdatesPage.jsx +20 -0
  64. package/src/theme/DocBreadcrumbs/index.jsx +1 -0
  65. package/src/theme/DocCardList/index.jsx +18 -0
  66. package/src/theme/DocItem/Layout/index.jsx +17 -0
  67. package/src/theme/DocRoot/Layout/index.jsx +1 -0
  68. package/src/theme/DocSidebarItem/Category/index.jsx +15 -0
  69. package/src/theme/Navbar/MobileSidebar/PrimaryMenu/index.jsx +1 -0
  70. package/src/theme/Navbar/Search/index.jsx +13 -0
  71. package/src/theme/NavbarItem/ComponentTypes.jsx +11 -0
  72. package/src/theme/Root.jsx +1 -0
  73. package/src/translations/ja.json +92 -0
  74. package/src/translations/ko.json +92 -0
  75. package/src/utils.js +4 -0
@@ -0,0 +1,188 @@
1
+ @use '../tokens/breakpoints' as breakpoints;
2
+
3
+ .library-document-list {
4
+ display: flex;
5
+ flex-direction: column;
6
+ height: min(36rem, var(--library-content-height));
7
+ min-height: 0;
8
+ margin-block: 0.5rem 0;
9
+ }
10
+
11
+ .library-document-list--fill {
12
+ flex: 1;
13
+ height: auto;
14
+ margin: 0;
15
+ }
16
+
17
+ .library-document-list__toolbar {
18
+ display: flex;
19
+ flex-shrink: 0;
20
+ align-items: center;
21
+ justify-content: space-between;
22
+ gap: 0.5rem;
23
+ min-height: 32px;
24
+ margin-bottom: 0.5rem;
25
+ }
26
+
27
+ .library-document-list__toolbar h2 {
28
+ display: flex;
29
+ align-items: center;
30
+ gap: 0.5rem;
31
+ margin: 0;
32
+ font-size: 1rem;
33
+ }
34
+
35
+ .library-document-list__toolbar h2 span {
36
+ padding: 0.1rem 0.45rem;
37
+ border-radius: 6px;
38
+ background: var(--ifm-color-emphasis-200);
39
+ font-size: 0.75rem;
40
+ font-weight: 500;
41
+ }
42
+
43
+ .library-document-list__toolbar [role='status'] {
44
+ color: var(--ifm-color-emphasis-700);
45
+ font-size: 0.8rem;
46
+ font-variant-numeric: tabular-nums;
47
+ }
48
+
49
+ .library-document-list__table-area {
50
+ flex: 1;
51
+ min-height: 0;
52
+ }
53
+
54
+ .library-document-table {
55
+ display: table;
56
+ width: 100%;
57
+ margin: 0;
58
+ overflow: visible;
59
+ table-layout: fixed;
60
+ border-collapse: collapse;
61
+ font-size: 0.875rem;
62
+ }
63
+
64
+ .library-document-table tr {
65
+ border: 0;
66
+ border-bottom: 1px solid var(--ifm-color-emphasis-200);
67
+ background: transparent;
68
+ }
69
+
70
+ .library-document-table__caption {
71
+ position: absolute;
72
+ width: 1px;
73
+ height: 1px;
74
+ padding: 0;
75
+ overflow: hidden;
76
+ clip-path: inset(50%);
77
+ white-space: nowrap;
78
+ }
79
+
80
+ .library-document-table th,
81
+ .library-document-table td {
82
+ padding: 0 0.75rem;
83
+ border: 0;
84
+ text-align: left;
85
+ }
86
+
87
+ .library-document-table th {
88
+ height: 36px;
89
+ color: var(--ifm-color-emphasis-700);
90
+ font-size: 0.75rem;
91
+ font-weight: 500;
92
+ }
93
+
94
+ .library-document-table tbody tr:hover,
95
+ .library-document-table tbody tr:focus-within {
96
+ background: var(--ifm-color-emphasis-100);
97
+ }
98
+
99
+ .library-document-table td:first-child {
100
+ padding: 0;
101
+ }
102
+
103
+ .library-document-table__link {
104
+ display: flex;
105
+ flex-direction: column;
106
+ justify-content: center;
107
+ min-width: 0;
108
+ min-height: 44px;
109
+ padding: 0.5rem 0.75rem;
110
+ color: var(--ifm-font-color-base);
111
+ line-height: var(--library-line-height-compact);
112
+ touch-action: manipulation;
113
+ }
114
+
115
+ .library-document-table__title,
116
+ .library-document-table__directory > span,
117
+ .library-document-table__mobile-directory {
118
+ display: block;
119
+ overflow: hidden;
120
+ text-overflow: ellipsis;
121
+ white-space: nowrap;
122
+ }
123
+
124
+ .library-document-table__title-line {
125
+ display: flex;
126
+ align-items: center;
127
+ gap: 0.5rem;
128
+ min-width: 0;
129
+ }
130
+
131
+ .library-document-table__title {
132
+ min-width: 0;
133
+ }
134
+
135
+ .library-document-table__directory {
136
+ width: 24%;
137
+ color: var(--ifm-color-emphasis-700);
138
+ }
139
+
140
+ .library-document-table__updated {
141
+ width: 8rem;
142
+ color: var(--ifm-color-emphasis-700);
143
+ font-size: 0.75rem;
144
+ white-space: nowrap;
145
+ font-variant-numeric: tabular-nums;
146
+ }
147
+
148
+ .library-document-table__link .library-document-table__mobile-directory {
149
+ display: none;
150
+ }
151
+
152
+ .library-document-table__link:focus-visible {
153
+ outline: 2px solid var(--ifm-color-primary);
154
+ outline-offset: -2px;
155
+ }
156
+
157
+ @media (width <= breakpoints.$mobile) {
158
+ .library-document-table__directory,
159
+ .library-document-table__updated {
160
+ display: none;
161
+ }
162
+
163
+ .library-document-table__link {
164
+ min-height: 56px;
165
+ }
166
+
167
+ .library-document-table__link .library-document-table__mobile-directory {
168
+ display: block;
169
+ margin-top: 2px;
170
+ color: var(--ifm-color-emphasis-700);
171
+ font-size: 0.75rem;
172
+ }
173
+ }
174
+
175
+ @media (height <= breakpoints.$short-viewport) {
176
+ .library-document-table__link {
177
+ min-height: 44px;
178
+ }
179
+
180
+ .library-document-table__link .library-document-table__mobile-directory {
181
+ display: none;
182
+ }
183
+ }
184
+
185
+ .library-document-table__badge {
186
+ flex-shrink: 0;
187
+ max-width: 40%;
188
+ }
@@ -0,0 +1,59 @@
1
+ @use '../tokens/breakpoints' as breakpoints;
2
+
3
+ .layout {
4
+ display: flex;
5
+ flex: 1;
6
+ min-width: 0;
7
+ }
8
+
9
+ .sidebar {
10
+ display: none;
11
+ }
12
+
13
+ .main {
14
+ flex: 1;
15
+ min-width: 0;
16
+ }
17
+
18
+ .content {
19
+ padding: var(--library-content-padding-top) var(--library-content-gutter)
20
+ var(--library-content-padding-bottom);
21
+ }
22
+
23
+ @media (width >= breakpoints.$desktop) {
24
+ .sidebar {
25
+ position: sticky;
26
+ top: var(--ifm-navbar-height);
27
+ display: block;
28
+ flex-shrink: 0;
29
+ width: var(--library-sidebar-width);
30
+ height: calc(var(--library-viewport-height) - var(--ifm-navbar-height));
31
+ overflow: hidden;
32
+ border-right: 1px solid var(--ifm-color-emphasis-300);
33
+ background: var(--ifm-background-color);
34
+ transition: width var(--library-motion-duration) var(--library-motion-easing);
35
+ }
36
+
37
+ .navigation {
38
+ width: var(--library-sidebar-width);
39
+ height: 100%;
40
+ padding-block: 1rem;
41
+ overflow-y: auto;
42
+ overscroll-behavior: contain;
43
+ transition:
44
+ transform var(--library-motion-duration) var(--library-motion-easing),
45
+ opacity var(--library-motion-duration) var(--library-motion-easing);
46
+ }
47
+
48
+ .layout[data-collapsed='true'] {
49
+ .sidebar {
50
+ width: 0;
51
+ border-right-width: 0;
52
+ }
53
+
54
+ .navigation {
55
+ opacity: 0;
56
+ transform: translateX(-100%);
57
+ }
58
+ }
59
+ }
@@ -0,0 +1,102 @@
1
+ @use '../tokens/breakpoints' as breakpoints;
2
+
3
+ .updates {
4
+ max-width: 80rem;
5
+ margin-inline: auto;
6
+ padding-top: 1rem;
7
+ }
8
+
9
+ .muted,
10
+ .summary,
11
+ .count,
12
+ .space {
13
+ color: var(--ifm-color-emphasis-700);
14
+ }
15
+
16
+ .filters {
17
+ display: flex;
18
+ flex-wrap: wrap;
19
+ gap: 0.5rem;
20
+ margin-block: 1rem;
21
+ }
22
+
23
+ .checkbox {
24
+ display: inline-flex;
25
+ align-items: center;
26
+ gap: 0.4rem;
27
+ min-height: 44px;
28
+ font-size: 0.9rem;
29
+ }
30
+
31
+ .summary {
32
+ margin-top: 0.8rem;
33
+ }
34
+
35
+ .day {
36
+ margin-bottom: 1.6rem;
37
+
38
+ h2 {
39
+ padding-bottom: 0.3rem;
40
+ border-bottom: 1px solid var(--ifm-color-emphasis-300);
41
+ font-size: 1.05rem;
42
+ }
43
+ }
44
+
45
+ .count {
46
+ font-size: 0.85rem;
47
+ font-weight: 400;
48
+ }
49
+
50
+ .list {
51
+ margin: 0;
52
+ padding-left: 0;
53
+ list-style: none;
54
+ }
55
+
56
+ .entry {
57
+ display: flex;
58
+ align-items: baseline;
59
+ gap: 0.6rem;
60
+ padding: 0.35rem 0;
61
+ }
62
+
63
+ .status {
64
+ flex-shrink: 0;
65
+ padding: 0.15rem 0.55rem;
66
+ border-radius: 999px;
67
+ background: var(--library-status-updated-bg);
68
+ color: var(--library-status-updated-fg);
69
+ font-size: 0.72rem;
70
+ font-weight: 600;
71
+ line-height: 1.5;
72
+ white-space: nowrap;
73
+
74
+ &[data-new='true'] {
75
+ background: var(--library-status-new-bg);
76
+ color: var(--library-status-new-fg);
77
+ }
78
+ }
79
+
80
+ .title {
81
+ flex: 1;
82
+ min-width: 0;
83
+ overflow-wrap: anywhere;
84
+ }
85
+
86
+ .space {
87
+ flex-shrink: 0;
88
+ font-size: 0.78rem;
89
+ }
90
+
91
+ @media (width <= breakpoints.$mobile) {
92
+ .entry {
93
+ display: grid;
94
+ grid-template-columns: auto minmax(0, 1fr);
95
+ gap: 0.25rem 0.5rem;
96
+ padding-block: 0.5rem;
97
+ }
98
+
99
+ .space {
100
+ grid-column: 2;
101
+ }
102
+ }
@@ -0,0 +1,5 @@
1
+ .breadcrumbs {
2
+ --ifm-breadcrumb-size-multiplier: 0.8;
3
+
4
+ margin-bottom: 0.8rem;
5
+ }
@@ -0,0 +1,49 @@
1
+ .dropdown {
2
+ position: relative;
3
+ flex-shrink: 0;
4
+ }
5
+
6
+ .trigger {
7
+ gap: 3px;
8
+ }
9
+
10
+ .options {
11
+ position: absolute;
12
+ z-index: 1;
13
+ top: calc(100% + 0.25rem);
14
+ right: 0;
15
+ min-width: 10rem;
16
+ margin: 0;
17
+ padding: 0.375rem;
18
+ list-style: none;
19
+ background: var(--ifm-background-surface-color);
20
+ border: 1px solid var(--ifm-color-emphasis-300);
21
+ border-radius: 8px;
22
+ box-shadow: var(--ifm-global-shadow-lw);
23
+ }
24
+
25
+ .options a {
26
+ display: flex;
27
+ align-items: center;
28
+ justify-content: space-between;
29
+ gap: 1rem;
30
+ padding: 0.5rem 0.75rem;
31
+ border-radius: 4px;
32
+ color: var(--ifm-navbar-link-color);
33
+ text-decoration: none;
34
+
35
+ &:hover,
36
+ &:focus-visible {
37
+ background: var(--ifm-color-emphasis-200);
38
+ }
39
+
40
+ &:focus-visible {
41
+ outline: 2px solid var(--ifm-color-primary);
42
+ outline-offset: -2px;
43
+ }
44
+
45
+ &[aria-current] {
46
+ font-weight: 600;
47
+ color: var(--ifm-color-primary);
48
+ }
49
+ }
@@ -0,0 +1,5 @@
1
+ .tree {
2
+ margin-top: 0.75rem;
3
+ padding-top: 0.75rem;
4
+ border-top: 1px solid var(--ifm-color-emphasis-300);
5
+ }
@@ -0,0 +1,70 @@
1
+ @use '../../tokens/breakpoints' as breakpoints;
2
+
3
+ .control {
4
+ position: relative;
5
+ isolation: isolate;
6
+ display: inline-flex;
7
+ flex-shrink: 0;
8
+ align-items: center;
9
+ justify-content: center;
10
+ width: 44px;
11
+ height: 44px;
12
+ border-radius: 8px;
13
+ background: transparent;
14
+ color: var(--ifm-navbar-link-color);
15
+ touch-action: manipulation;
16
+
17
+ &::before {
18
+ position: absolute;
19
+ z-index: -1;
20
+ width: 32px;
21
+ height: 32px;
22
+ border-radius: 6px;
23
+ content: '';
24
+ }
25
+
26
+ &:hover::before {
27
+ background: var(--ifm-color-emphasis-200);
28
+ }
29
+
30
+ &:focus-visible {
31
+ outline: 2px solid var(--ifm-color-primary);
32
+ outline-offset: -2px;
33
+ }
34
+ }
35
+
36
+ .sidebar-toggle {
37
+ margin-left: 0.5rem;
38
+
39
+ &::before {
40
+ width: 28px;
41
+ height: 28px;
42
+ }
43
+ }
44
+
45
+ .menu-link {
46
+ gap: 0.5rem;
47
+ }
48
+
49
+ .dark-icon {
50
+ display: none;
51
+ }
52
+
53
+ :global([data-theme='dark']) .light-icon {
54
+ display: none;
55
+ }
56
+
57
+ :global([data-theme='dark']) .dark-icon {
58
+ display: block;
59
+ }
60
+
61
+ @media (width <= breakpoints.$tablet) {
62
+ :global(.theme-layout-navbar-right) .theme-toggle {
63
+ display: block;
64
+ flex-shrink: 0;
65
+ }
66
+
67
+ :global(.theme-layout-navbar-right) .search-container {
68
+ position: static;
69
+ }
70
+ }
@@ -0,0 +1,28 @@
1
+ .chip {
2
+ min-height: 32px;
3
+ padding: 0.2rem 0.75rem;
4
+ border: 1px solid var(--ifm-color-emphasis-300);
5
+ border-radius: 999px;
6
+ background: transparent;
7
+ color: var(--ifm-font-color-base);
8
+ font: inherit;
9
+ font-size: 0.875rem;
10
+ line-height: var(--library-line-height-compact);
11
+ cursor: pointer;
12
+ touch-action: manipulation;
13
+
14
+ &:hover {
15
+ border-color: var(--ifm-color-primary);
16
+ }
17
+
18
+ &[aria-pressed='true'] {
19
+ border-color: var(--library-control-active-bg);
20
+ background: var(--library-control-active-bg);
21
+ color: var(--library-control-active-fg);
22
+ }
23
+
24
+ &:focus-visible {
25
+ outline: 2px solid var(--ifm-color-primary);
26
+ outline-offset: 3px;
27
+ }
28
+ }
@@ -0,0 +1,42 @@
1
+ .badge {
2
+ max-width: 100%;
3
+ padding: 0.15rem 0.5rem;
4
+ overflow: hidden;
5
+ border-radius: 999px;
6
+ background: var(--library-topic-bg);
7
+ color: var(--library-topic-fg);
8
+ font-size: 0.6875rem;
9
+ line-height: var(--library-line-height-compact);
10
+ text-overflow: ellipsis;
11
+ white-space: nowrap;
12
+ }
13
+
14
+ .badge[data-tone='0'] {
15
+ --library-topic-bg: var(--library-badge-0-bg);
16
+ --library-topic-fg: var(--library-badge-0-fg);
17
+ }
18
+
19
+ .badge[data-tone='1'] {
20
+ --library-topic-bg: var(--library-badge-1-bg);
21
+ --library-topic-fg: var(--library-badge-1-fg);
22
+ }
23
+
24
+ .badge[data-tone='2'] {
25
+ --library-topic-bg: var(--library-badge-2-bg);
26
+ --library-topic-fg: var(--library-badge-2-fg);
27
+ }
28
+
29
+ .badge[data-tone='3'] {
30
+ --library-topic-bg: var(--library-badge-3-bg);
31
+ --library-topic-fg: var(--library-badge-3-fg);
32
+ }
33
+
34
+ .badge[data-tone='4'] {
35
+ --library-topic-bg: var(--library-badge-4-bg);
36
+ --library-topic-fg: var(--library-badge-4-fg);
37
+ }
38
+
39
+ .badge[data-tone='5'] {
40
+ --library-topic-bg: var(--library-badge-5-bg);
41
+ --library-topic-fg: var(--library-badge-5-fg);
42
+ }
@@ -0,0 +1,7 @@
1
+ @use './tokens/colors.css';
2
+ @use './tokens/layout.css';
3
+ @use './tokens/typography.css';
4
+ @use './globals.css';
5
+ @use './theme/navigation';
6
+ @use './theme/tags.css';
7
+ @use './pages/home';
@@ -0,0 +1,64 @@
1
+ @font-face {
2
+ font-family: Pretendard;
3
+ src: url('../../assets/fonts/pretendard/PretendardStd-Bold.woff2') format('woff2');
4
+ font-weight: 700;
5
+ font-style: normal;
6
+ font-display: swap;
7
+ }
8
+
9
+ .markdown details {
10
+ --docusaurus-details-decoration-color: var(--ifm-color-emphasis-300);
11
+
12
+ background-color: var(--ifm-background-surface-color);
13
+ border-color: var(--ifm-color-emphasis-300);
14
+ }
15
+
16
+ .markdown details > summary {
17
+ color: var(--ifm-font-color-base);
18
+ }
19
+
20
+ .markdown details > summary::before {
21
+ border-left-color: var(--ifm-font-color-base);
22
+ }
23
+
24
+ .doc-library-app {
25
+ display: flex;
26
+ flex: 1;
27
+ flex-direction: column;
28
+ min-height: var(--library-viewport-height);
29
+ }
30
+
31
+ ::view-transition-group(root),
32
+ ::view-transition-old(root),
33
+ ::view-transition-new(root) {
34
+ animation-duration: var(--library-motion-duration);
35
+ animation-timing-function: var(--library-motion-easing);
36
+ }
37
+
38
+ ::view-transition {
39
+ pointer-events: none;
40
+ }
41
+
42
+ @supports not (view-transition-name: root) {
43
+ @media (prefers-reduced-motion: no-preference) {
44
+ body,
45
+ .navbar,
46
+ .navbar-sidebar,
47
+ .theme-doc-sidebar-container {
48
+ transition:
49
+ background-color var(--library-motion-duration) var(--library-motion-easing),
50
+ color var(--library-motion-duration) var(--library-motion-easing);
51
+ }
52
+ }
53
+ }
54
+
55
+ @media (prefers-reduced-motion: reduce) {
56
+ :root {
57
+ --library-motion-duration: 0ms;
58
+ }
59
+
60
+ ::view-transition-old(root),
61
+ ::view-transition-new(root) {
62
+ animation: none;
63
+ }
64
+ }
@@ -0,0 +1,92 @@
1
+ @use '../tokens/breakpoints' as breakpoints;
2
+
3
+ .library-home {
4
+ max-width: 48rem;
5
+ padding-block: clamp(2rem, 8vh, 6rem);
6
+ }
7
+
8
+ .library-home__heading {
9
+ display: flex;
10
+ align-items: center;
11
+ gap: clamp(0.75rem, 2vw, 1.25rem);
12
+ margin-bottom: 1.25rem;
13
+ }
14
+
15
+ .library-home__logo {
16
+ flex-shrink: 0;
17
+ width: clamp(3rem, 6vw, 4.5rem);
18
+ height: auto;
19
+ }
20
+
21
+ .library-home__heading h1 {
22
+ margin: 0;
23
+ font-size: clamp(2.25rem, 5vw, 3.75rem);
24
+ letter-spacing: -0.04em;
25
+ text-wrap: balance;
26
+ }
27
+
28
+ .library-home__titleline {
29
+ display: flex;
30
+ flex-wrap: wrap;
31
+ align-items: baseline;
32
+ gap: 0.25rem 0.75rem;
33
+ }
34
+
35
+ .library-home__version {
36
+ color: var(--ifm-color-emphasis-700);
37
+ font-size: 0.875rem;
38
+ font-weight: 500;
39
+ white-space: nowrap;
40
+ }
41
+
42
+ .library-home p {
43
+ max-width: 40rem;
44
+ color: var(--ifm-color-emphasis-800);
45
+ font-size: 1.05rem;
46
+ line-height: 1.85;
47
+ }
48
+
49
+ .library-home__actions {
50
+ display: flex;
51
+ flex-wrap: wrap;
52
+ gap: 1rem;
53
+ margin-top: 2rem;
54
+ }
55
+
56
+ .library-home__actions a {
57
+ display: inline-flex;
58
+ align-items: center;
59
+ justify-content: space-between;
60
+ gap: 3rem;
61
+ width: 14.5rem;
62
+ max-width: 100%;
63
+ color: var(--ifm-font-color-base);
64
+ background: var(--ifm-background-surface-color);
65
+ border: 1px solid var(--ifm-color-emphasis-400);
66
+ }
67
+
68
+ .library-home__actions a:hover {
69
+ background: var(--ifm-color-emphasis-100);
70
+ border-color: var(--ifm-font-color-base);
71
+ }
72
+
73
+ .library-home__guide {
74
+ margin-top: clamp(4rem, 8vh, 6rem);
75
+ }
76
+
77
+ .library-home__guide a {
78
+ text-decoration: underline;
79
+ text-underline-offset: 0.2em;
80
+ }
81
+
82
+ @media (width <= breakpoints.$tablet) {
83
+ .library-home__actions a {
84
+ flex-grow: 1;
85
+ }
86
+ }
87
+
88
+ .library-home__actions a:focus-visible,
89
+ .library-home__guide a:focus-visible {
90
+ outline: 2px solid var(--ifm-color-primary);
91
+ outline-offset: 3px;
92
+ }