glib-web 8.0.0 → 8.2.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 (171) hide show
  1. checksums.yaml +4 -4
  2. data/app/controllers/concerns/glib/json/libs.rb +16 -0
  3. data/app/helpers/glib/app_feature_support_helper.rb +33 -8
  4. data/app/helpers/glib/json_ui/view_builder/fields.rb +74 -9
  5. data/app/helpers/glib/json_ui/view_builder/panels.rb +1 -0
  6. data/app/helpers/glib/json_ui/view_builder.rb +15 -0
  7. data/app/jobs/glib/scheduled_job.rb +581 -0
  8. data/app/jobs/glib/scheduled_job_tick.rb +21 -0
  9. data/app/models/concerns/glib/enum_symbolization.rb +41 -4
  10. data/app/models/glib/scheduled_job_run.rb +16 -0
  11. data/app/views/json_ui/garage/forms/action_text.json.jbuilder +34 -0
  12. data/app/views/json_ui/garage/forms/action_text_attachment.json.jbuilder +7 -0
  13. data/app/views/json_ui/garage/forms/action_text_library.json.jbuilder +26 -0
  14. data/app/views/json_ui/garage/forms/action_text_preview.json.jbuilder +9 -0
  15. data/app/views/json_ui/garage/forms/index.json.jbuilder +6 -0
  16. data/app/views/json_ui/garage/forms/pickers.json.jbuilder +7 -0
  17. data/app/views/json_ui/garage/panels/carousel.json.jbuilder +7 -0
  18. data/app/views/json_ui/garage/test_page/_header.json.jbuilder +6 -0
  19. data/app/views/json_ui/garage/test_page/fields_actionText.json.jbuilder +87 -0
  20. data/app/views/json_ui/garage/test_page/fields_sign.json.jbuilder +34 -3
  21. data/app/views/json_ui/garage/test_page/form_dirty_hooks.json.jbuilder +22 -0
  22. data/app/views/json_ui/garage/test_page/form_hidden_panels.json.jbuilder +124 -0
  23. data/app/views/json_ui/garage/test_page/logics_set.json.jbuilder +35 -0
  24. data/app/views/json_ui/garage/test_page/panels_association.json.jbuilder +42 -0
  25. data/app/views/layouts/json_ui/renderer.html.erb +11 -1
  26. data/engines/blog/README.md +172 -0
  27. data/engines/blog/app/assets/stylesheets/glib/blog/admin.css +855 -0
  28. data/engines/blog/app/assets/stylesheets/glib/blog/themes/clean.css +816 -0
  29. data/engines/blog/app/assets/stylesheets/glib/blog/themes/editorial.css +631 -0
  30. data/engines/blog/app/controllers/concerns/glib/blog/admin/media_listing.rb +27 -0
  31. data/engines/blog/app/controllers/concerns/glib/blog/pagination.rb +14 -0
  32. data/engines/blog/app/controllers/glib/blog/admin/application_controller.rb +28 -0
  33. data/engines/blog/app/controllers/glib/blog/admin/authors_controller.rb +55 -0
  34. data/engines/blog/app/controllers/glib/blog/admin/categories_controller.rb +53 -0
  35. data/engines/blog/app/controllers/glib/blog/admin/comment_replies_controller.rb +34 -0
  36. data/engines/blog/app/controllers/glib/blog/admin/comments_controller.rb +50 -0
  37. data/engines/blog/app/controllers/glib/blog/admin/dashboards_controller.rb +34 -0
  38. data/engines/blog/app/controllers/glib/blog/admin/direct_uploads_controller.rb +30 -0
  39. data/engines/blog/app/controllers/glib/blog/admin/editor_attachments_controller.rb +16 -0
  40. data/engines/blog/app/controllers/glib/blog/admin/media_item_trashes_controller.rb +43 -0
  41. data/engines/blog/app/controllers/glib/blog/admin/media_items_controller.rb +61 -0
  42. data/engines/blog/app/controllers/glib/blog/admin/media_picks_controller.rb +19 -0
  43. data/engines/blog/app/controllers/glib/blog/admin/post_bulk_actions_controller.rb +33 -0
  44. data/engines/blog/app/controllers/glib/blog/admin/posts_controller.rb +79 -0
  45. data/engines/blog/app/controllers/glib/blog/admin/settings_controller.rb +27 -0
  46. data/engines/blog/app/controllers/glib/blog/admin/tags_controller.rb +46 -0
  47. data/engines/blog/app/controllers/glib/blog/application_controller.rb +90 -0
  48. data/engines/blog/app/controllers/glib/blog/authors_controller.rb +15 -0
  49. data/engines/blog/app/controllers/glib/blog/categories_controller.rb +15 -0
  50. data/engines/blog/app/controllers/glib/blog/comments_controller.rb +41 -0
  51. data/engines/blog/app/controllers/glib/blog/posts_controller.rb +47 -0
  52. data/engines/blog/app/controllers/glib/blog/tags_controller.rb +15 -0
  53. data/engines/blog/app/helpers/glib/blog/admin_helper.rb +57 -0
  54. data/engines/blog/app/helpers/glib/blog/comments_helper.rb +16 -0
  55. data/engines/blog/app/helpers/glib/blog/post_list_helper.rb +26 -0
  56. data/engines/blog/app/helpers/glib/blog/theme_helper.rb +85 -0
  57. data/engines/blog/app/jobs/glib/blog/purge_trash_job.rb +13 -0
  58. data/engines/blog/app/models/concerns/glib/blog/sluggable.rb +72 -0
  59. data/engines/blog/app/models/concerns/glib/blog/uses_media.rb +35 -0
  60. data/engines/blog/app/models/glib/blog/application_record.rb +7 -0
  61. data/engines/blog/app/models/glib/blog/author.rb +47 -0
  62. data/engines/blog/app/models/glib/blog/category.rb +53 -0
  63. data/engines/blog/app/models/glib/blog/comment.rb +66 -0
  64. data/engines/blog/app/models/glib/blog/comment_token.rb +30 -0
  65. data/engines/blog/app/models/glib/blog/media_item.rb +121 -0
  66. data/engines/blog/app/models/glib/blog/media_upload.rb +97 -0
  67. data/engines/blog/app/models/glib/blog/media_usage.rb +10 -0
  68. data/engines/blog/app/models/glib/blog/post.rb +110 -0
  69. data/engines/blog/app/models/glib/blog/post_view.rb +24 -0
  70. data/engines/blog/app/models/glib/blog/setting.rb +55 -0
  71. data/engines/blog/app/models/glib/blog/slug_redirect.rb +7 -0
  72. data/engines/blog/app/models/glib/blog/tag.rb +15 -0
  73. data/engines/blog/app/models/glib/blog/tagging.rb +10 -0
  74. data/engines/blog/app/policies/glib/blog/admin/author_policy.rb +11 -0
  75. data/engines/blog/app/policies/glib/blog/admin/category_policy.rb +11 -0
  76. data/engines/blog/app/policies/glib/blog/admin/comment_policy.rb +16 -0
  77. data/engines/blog/app/policies/glib/blog/admin/comment_reply_policy.rb +12 -0
  78. data/engines/blog/app/policies/glib/blog/admin/dashboard_policy.rb +11 -0
  79. data/engines/blog/app/policies/glib/blog/admin/direct_upload_policy.rb +11 -0
  80. data/engines/blog/app/policies/glib/blog/admin/editor_attachment_policy.rb +11 -0
  81. data/engines/blog/app/policies/glib/blog/admin/media_item_policy.rb +20 -0
  82. data/engines/blog/app/policies/glib/blog/admin/media_item_trash_policy.rb +11 -0
  83. data/engines/blog/app/policies/glib/blog/admin/media_pick_policy.rb +11 -0
  84. data/engines/blog/app/policies/glib/blog/admin/post_bulk_action_policy.rb +12 -0
  85. data/engines/blog/app/policies/glib/blog/admin/post_policy.rb +16 -0
  86. data/engines/blog/app/policies/glib/blog/admin/setting_policy.rb +11 -0
  87. data/engines/blog/app/policies/glib/blog/admin/tag_policy.rb +11 -0
  88. data/engines/blog/app/policies/glib/blog/application_policy.rb +16 -0
  89. data/engines/blog/app/policies/glib/blog/author_policy.rb +9 -0
  90. data/engines/blog/app/policies/glib/blog/category_policy.rb +9 -0
  91. data/engines/blog/app/policies/glib/blog/comment_policy.rb +11 -0
  92. data/engines/blog/app/policies/glib/blog/post_policy.rb +9 -0
  93. data/engines/blog/app/policies/glib/blog/tag_policy.rb +9 -0
  94. data/engines/blog/app/views/glib/blog/admin/_delete_button.json.jbuilder +24 -0
  95. data/engines/blog/app/views/glib/blog/admin/_nav.json.jbuilder +45 -0
  96. data/engines/blog/app/views/glib/blog/admin/_status_chip.json.jbuilder +2 -0
  97. data/engines/blog/app/views/glib/blog/admin/authors/_form.json.jbuilder +17 -0
  98. data/engines/blog/app/views/glib/blog/admin/authors/edit.json.jbuilder +7 -0
  99. data/engines/blog/app/views/glib/blog/admin/authors/index.json.jbuilder +50 -0
  100. data/engines/blog/app/views/glib/blog/admin/authors/new.json.jbuilder +11 -0
  101. data/engines/blog/app/views/glib/blog/admin/categories/_form.json.jbuilder +13 -0
  102. data/engines/blog/app/views/glib/blog/admin/categories/edit.json.jbuilder +7 -0
  103. data/engines/blog/app/views/glib/blog/admin/categories/index.json.jbuilder +68 -0
  104. data/engines/blog/app/views/glib/blog/admin/categories/new.json.jbuilder +7 -0
  105. data/engines/blog/app/views/glib/blog/admin/comments/_moderation_buttons.json.jbuilder +35 -0
  106. data/engines/blog/app/views/glib/blog/admin/comments/index.json.jbuilder +59 -0
  107. data/engines/blog/app/views/glib/blog/admin/dashboards/show.json.jbuilder +109 -0
  108. data/engines/blog/app/views/glib/blog/admin/media_item_trashes/index.json.jbuilder +32 -0
  109. data/engines/blog/app/views/glib/blog/admin/media_items/_rows.json.jbuilder +32 -0
  110. data/engines/blog/app/views/glib/blog/admin/media_items/edit.json.jbuilder +68 -0
  111. data/engines/blog/app/views/glib/blog/admin/media_items/index.json.jbuilder +68 -0
  112. data/engines/blog/app/views/glib/blog/admin/media_items/new.json.jbuilder +18 -0
  113. data/engines/blog/app/views/glib/blog/admin/media_picks/index.json.jbuilder +29 -0
  114. data/engines/blog/app/views/glib/blog/admin/posts/_form.json.jbuilder +104 -0
  115. data/engines/blog/app/views/glib/blog/admin/posts/edit.json.jbuilder +1 -0
  116. data/engines/blog/app/views/glib/blog/admin/posts/index.json.jbuilder +109 -0
  117. data/engines/blog/app/views/glib/blog/admin/posts/new.json.jbuilder +1 -0
  118. data/engines/blog/app/views/glib/blog/admin/settings/edit.json.jbuilder +55 -0
  119. data/engines/blog/app/views/glib/blog/admin/tags/_form.json.jbuilder +6 -0
  120. data/engines/blog/app/views/glib/blog/admin/tags/edit.json.jbuilder +7 -0
  121. data/engines/blog/app/views/glib/blog/admin/tags/index.json.jbuilder +30 -0
  122. data/engines/blog/app/views/glib/blog/admin/tags/new.json.jbuilder +7 -0
  123. data/engines/blog/app/views/glib/blog/authors/show.json.jbuilder +4 -0
  124. data/engines/blog/app/views/glib/blog/categories/show.json.jbuilder +4 -0
  125. data/engines/blog/app/views/glib/blog/comments/pending.json.jbuilder +7 -0
  126. data/engines/blog/app/views/glib/blog/media_items/_media_item.html.erb +14 -0
  127. data/engines/blog/app/views/glib/blog/posts/_comment.json.jbuilder +23 -0
  128. data/engines/blog/app/views/glib/blog/posts/_comment_form.json.jbuilder +14 -0
  129. data/engines/blog/app/views/glib/blog/posts/_comments.json.jbuilder +21 -0
  130. data/engines/blog/app/views/glib/blog/posts/index.json.jbuilder +4 -0
  131. data/engines/blog/app/views/glib/blog/posts/show.json.jbuilder +5 -0
  132. data/engines/blog/app/views/glib/blog/shared/errors.json.jbuilder +5 -0
  133. data/engines/blog/app/views/glib/blog/tags/show.json.jbuilder +3 -0
  134. data/engines/blog/app/views/glib/blog/themes/_nav_links.json.jbuilder +12 -0
  135. data/engines/blog/app/views/glib/blog/themes/clean/_brand.json.jbuilder +11 -0
  136. data/engines/blog/app/views/glib/blog/themes/clean/_card.json.jbuilder +15 -0
  137. data/engines/blog/app/views/glib/blog/themes/clean/_featured.json.jbuilder +23 -0
  138. data/engines/blog/app/views/glib/blog/themes/clean/_footer.json.jbuilder +15 -0
  139. data/engines/blog/app/views/glib/blog/themes/clean/_header.json.jbuilder +9 -0
  140. data/engines/blog/app/views/glib/blog/themes/clean/_post.json.jbuilder +98 -0
  141. data/engines/blog/app/views/glib/blog/themes/clean/_post_list.json.jbuilder +40 -0
  142. data/engines/blog/app/views/glib/blog/themes/clean/_post_rows.json.jbuilder +10 -0
  143. data/engines/blog/app/views/glib/blog/themes/editorial/_footer.json.jbuilder +15 -0
  144. data/engines/blog/app/views/glib/blog/themes/editorial/_header.json.jbuilder +11 -0
  145. data/engines/blog/app/views/glib/blog/themes/editorial/_post.json.jbuilder +62 -0
  146. data/engines/blog/app/views/glib/blog/themes/editorial/_post_list.json.jbuilder +25 -0
  147. data/engines/blog/app/views/glib/blog/themes/editorial/_post_rows.json.jbuilder +18 -0
  148. data/engines/blog/config/locales/en.yml +500 -0
  149. data/engines/blog/config/routes.rb +33 -0
  150. data/engines/blog/db/migrate/20261103090000_create_glib_blog_tables.rb +70 -0
  151. data/engines/blog/db/migrate/20261104090000_create_glib_blog_media_tables.rb +44 -0
  152. data/engines/blog/db/migrate/20261104120000_create_glib_blog_comments.rb +23 -0
  153. data/engines/blog/db/migrate/20261105090000_add_glib_blog_comment_moderation.rb +16 -0
  154. data/engines/blog/db/migrate/20261105100000_add_deleted_at_to_glib_blog_posts.rb +6 -0
  155. data/engines/blog/db/migrate/20261105110000_add_parent_and_default_to_glib_blog_categories.rb +10 -0
  156. data/engines/blog/db/migrate/20261105120000_create_glib_blog_post_views.rb +13 -0
  157. data/engines/blog/db/migrate/20261105130000_create_glib_blog_settings.rb +26 -0
  158. data/engines/blog/db/migrate/20261106090000_add_theme_to_glib_blog_settings.rb +7 -0
  159. data/engines/blog/lib/tasks/glib_blog_tasks.rake +32 -0
  160. data/lib/generators/glib/blog/install_generator.rb +44 -0
  161. data/lib/generators/glib/blog/templates/initializer.rb +22 -0
  162. data/lib/generators/glib/scheduled_jobs_generator.rb +30 -0
  163. data/lib/generators/templates/scheduled_jobs/create_glib_scheduled_job_runs.rb +22 -0
  164. data/lib/glib/blog/engine.rb +20 -0
  165. data/lib/glib/blog/theme.rb +35 -0
  166. data/lib/glib/blog.rb +50 -0
  167. data/lib/glib/engine.rb +17 -0
  168. data/lib/glib/scheduled_jobs/config.rb +36 -0
  169. data/lib/glib/scheduled_jobs/loader.rb +98 -0
  170. data/lib/glib-web.rb +2 -0
  171. metadata +175 -3
@@ -0,0 +1,816 @@
1
+ /* The public blog's clean theme: white pages, IBM Plex type and blue accents. Every rule is
2
+ scoped to `.blog-theme-clean`, the page class set by the theme, so nothing leaks into the
3
+ host app. Rules sit outside any @layer so they win over glib's layered defaults. */
4
+ @import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500&family=IBM+Plex+Sans:wght@400;500;600;700&family=IBM+Plex+Serif:ital,wght@0,400;0,600;1,400&display=swap');
5
+
6
+ .blog-theme-clean,
7
+ .blog-theme-clean .v-theme--light {
8
+ --v-theme-primary: 59, 91, 219;
9
+ --v-theme-on-primary: 255, 255, 255;
10
+ --v-theme-background: 255, 255, 255;
11
+ --v-theme-surface: 255, 255, 255;
12
+ --v-theme-on-surface: 22, 24, 29;
13
+ }
14
+
15
+ .blog-theme-clean {
16
+ background: #FFFFFF;
17
+ color: #16181D;
18
+ font-family: 'IBM Plex Sans', system-ui, sans-serif;
19
+ }
20
+
21
+ .blog-theme-clean :is(h1, h2, h3, p) {
22
+ margin: 0;
23
+ font-family: inherit;
24
+ letter-spacing: normal;
25
+ }
26
+
27
+ .blog-theme-clean :is(.v-btn, .v-field, .v-label, input, textarea) {
28
+ font-family: inherit;
29
+ letter-spacing: 0;
30
+ }
31
+
32
+ .blog-theme-clean .v-btn {
33
+ border-radius: 8px;
34
+ font-weight: 600;
35
+ text-transform: none;
36
+ }
37
+
38
+ .blog-theme-clean a {
39
+ color: inherit;
40
+ text-decoration: none;
41
+ }
42
+
43
+ .blog-theme-clean .blog-container {
44
+ width: 100%;
45
+ max-width: 1200px;
46
+ margin: 0 auto;
47
+ padding-right: 24px;
48
+ padding-left: 24px;
49
+ box-sizing: border-box;
50
+ }
51
+
52
+ /* glib's vertical panels keep their children at their own width; these sections fill theirs. */
53
+ .blog-theme-clean :is(.blog-main, .blog-latest, .blog-article-head, .blog-article-head__text, .blog-article, .blog-comments, .blog-related) {
54
+ align-items: stretch;
55
+ }
56
+
57
+ .blog-theme-clean .blog-link,
58
+ .blog-theme-clean .blog-body a {
59
+ color: #3B5BDB;
60
+ font-weight: 500;
61
+ }
62
+
63
+ .blog-theme-clean .blog-link:hover,
64
+ .blog-theme-clean .blog-body a:hover {
65
+ color: #2B44A8;
66
+ }
67
+
68
+ .blog-theme-clean .blog-kicker,
69
+ .blog-theme-clean .blog-meta__category {
70
+ color: #3B5BDB;
71
+ font-size: 13px;
72
+ font-weight: 600;
73
+ letter-spacing: 0.06em;
74
+ text-transform: uppercase;
75
+ }
76
+
77
+ .blog-theme-clean .blog-avatar {
78
+ display: flex;
79
+ flex: none;
80
+ align-items: center;
81
+ justify-content: center;
82
+ width: 36px;
83
+ height: 36px;
84
+ border-radius: 999px;
85
+ background: #DDE0E6;
86
+ color: #16181D;
87
+ font-size: 14px;
88
+ font-weight: 600;
89
+ }
90
+
91
+ .blog-theme-clean .blog-avatar--large {
92
+ width: 44px;
93
+ height: 44px;
94
+ font-size: 16px;
95
+ }
96
+
97
+ .blog-theme-clean .blog-avatar--xlarge {
98
+ width: 64px;
99
+ height: 64px;
100
+ font-size: 22px;
101
+ }
102
+
103
+ /* Header and footer */
104
+
105
+ .blog-theme-clean .blog-header {
106
+ border-bottom: 1px solid #E3E6EB;
107
+ }
108
+
109
+ .blog-theme-clean .blog-header__inner,
110
+ .blog-theme-clean .blog-footer__inner {
111
+ flex-direction: row;
112
+ flex-wrap: wrap;
113
+ align-items: center;
114
+ justify-content: space-between;
115
+ gap: 16px;
116
+ }
117
+
118
+ .blog-theme-clean .blog-header__inner {
119
+ padding-top: 16px;
120
+ padding-bottom: 16px;
121
+ }
122
+
123
+ .blog-theme-clean .blog-brand {
124
+ flex-direction: row;
125
+ align-items: center;
126
+ gap: 10px;
127
+ min-height: 44px;
128
+ }
129
+
130
+ .blog-theme-clean .blog-brand__logo {
131
+ display: flex;
132
+ align-items: center;
133
+ justify-content: center;
134
+ width: 32px;
135
+ height: 32px;
136
+ border-radius: 8px;
137
+ background: #3B5BDB;
138
+ color: #FFFFFF;
139
+ font-size: 16px;
140
+ font-weight: 700;
141
+ object-fit: cover !important;
142
+ }
143
+
144
+ .blog-theme-clean .blog-brand__name {
145
+ font-size: 17px;
146
+ font-weight: 600;
147
+ }
148
+
149
+ .blog-theme-clean .blog-nav,
150
+ .blog-theme-clean .blog-footer__nav {
151
+ flex-direction: row;
152
+ flex-wrap: wrap;
153
+ align-items: center;
154
+ gap: 4px;
155
+ }
156
+
157
+ .blog-theme-clean .blog-nav__link {
158
+ display: inline-flex;
159
+ align-items: center;
160
+ min-height: 44px;
161
+ padding: 0 14px;
162
+ border-radius: 8px;
163
+ color: #4A5060;
164
+ font-size: 15px;
165
+ }
166
+
167
+ .blog-theme-clean .blog-nav__link:hover {
168
+ color: #16181D;
169
+ }
170
+
171
+ .blog-theme-clean .blog-nav__link--active {
172
+ background: #F1F3F6;
173
+ color: #16181D;
174
+ font-weight: 600;
175
+ }
176
+
177
+ .blog-theme-clean .blog-footer {
178
+ margin-top: 72px;
179
+ border-top: 1px solid #E3E6EB;
180
+ background: #F6F7F9;
181
+ }
182
+
183
+ .blog-theme-clean .blog-footer__inner {
184
+ align-items: flex-start;
185
+ padding-top: 40px;
186
+ padding-bottom: 40px;
187
+ }
188
+
189
+ .blog-theme-clean .blog-footer__about {
190
+ flex: 1 1 320px;
191
+ max-width: 420px;
192
+ gap: 10px;
193
+ }
194
+
195
+ .blog-theme-clean .blog-footer__about .blog-brand__logo {
196
+ width: 28px;
197
+ height: 28px;
198
+ font-size: 14px;
199
+ }
200
+
201
+ .blog-theme-clean .blog-footer__about p {
202
+ color: #5B6170;
203
+ font-size: 14px;
204
+ line-height: 1.6;
205
+ }
206
+
207
+ .blog-theme-clean .blog-footer__nav {
208
+ gap: 4px 20px;
209
+ }
210
+
211
+ .blog-theme-clean .blog-footer__link {
212
+ display: inline-flex;
213
+ align-items: center;
214
+ min-height: 44px;
215
+ color: #4A5060;
216
+ font-size: 14px;
217
+ }
218
+
219
+ .blog-theme-clean .blog-footer__link:hover {
220
+ color: #16181D;
221
+ }
222
+
223
+ .blog-theme-clean .blog-footer__copyright {
224
+ flex: 1 1 100%;
225
+ padding-top: 16px;
226
+ border-top: 1px solid #E3E6EB;
227
+ color: #5B6170;
228
+ font-size: 13px;
229
+ }
230
+
231
+ /* Post lists */
232
+
233
+ .blog-theme-clean .blog-main {
234
+ gap: 56px;
235
+ padding-top: 48px;
236
+ }
237
+
238
+ .blog-theme-clean .blog-intro {
239
+ max-width: 720px;
240
+ gap: 12px;
241
+ }
242
+
243
+ .blog-theme-clean .blog-intro h1 {
244
+ font-size: 44px;
245
+ font-weight: 600;
246
+ line-height: 1.15;
247
+ letter-spacing: -0.02em;
248
+ }
249
+
250
+ .blog-theme-clean .blog-intro p {
251
+ color: #4A5060;
252
+ font-size: 18px;
253
+ line-height: 1.6;
254
+ }
255
+
256
+ .blog-theme-clean .blog-cover {
257
+ display: block;
258
+ width: 100% !important;
259
+ height: auto !important;
260
+ aspect-ratio: 16 / 10;
261
+ border-radius: 12px;
262
+ background: #EEF0F3;
263
+ /* Overrides the image view's inline `contain`, which letterboxes a cropped cover. */
264
+ object-fit: cover !important;
265
+ }
266
+
267
+ .blog-theme-clean .blog-cover--empty {
268
+ background: #E7EDFF;
269
+ }
270
+
271
+ .blog-theme-clean .blog-featured {
272
+ flex-direction: row;
273
+ flex-wrap: wrap;
274
+ align-items: center;
275
+ gap: 40px;
276
+ padding-bottom: 56px;
277
+ border-bottom: 1px solid #E3E6EB;
278
+ }
279
+
280
+ .blog-theme-clean .blog-featured__cover {
281
+ flex: 1 1 480px;
282
+ min-width: 0;
283
+ width: auto !important;
284
+ border-radius: 16px;
285
+ }
286
+
287
+ .blog-theme-clean .blog-featured__text {
288
+ flex: 1 1 380px;
289
+ min-width: 0;
290
+ gap: 16px;
291
+ }
292
+
293
+ .blog-theme-clean .blog-pill {
294
+ padding: 4px 10px;
295
+ border-radius: 999px;
296
+ background: #16181D;
297
+ color: #FFFFFF;
298
+ font-size: 13px;
299
+ font-weight: 500;
300
+ }
301
+
302
+ .blog-theme-clean .blog-featured__title {
303
+ color: #16181D;
304
+ font-size: 36px;
305
+ font-weight: 600;
306
+ line-height: 1.2;
307
+ letter-spacing: -0.015em;
308
+ }
309
+
310
+ .blog-theme-clean .blog-featured:hover .blog-featured__title,
311
+ .blog-theme-clean .blog-card:hover .blog-card__title {
312
+ color: #2B44A8;
313
+ }
314
+
315
+ .blog-theme-clean .blog-featured__excerpt {
316
+ color: #2D313A;
317
+ font-family: 'IBM Plex Serif', Georgia, serif;
318
+ font-size: 18px;
319
+ line-height: 1.65;
320
+ }
321
+
322
+ .blog-theme-clean .blog-byline {
323
+ flex-direction: row;
324
+ align-items: center;
325
+ gap: 12px;
326
+ color: #5B6170;
327
+ font-size: 14px;
328
+ }
329
+
330
+ .blog-theme-clean .blog-featured__read {
331
+ color: #3B5BDB;
332
+ font-size: 15px;
333
+ font-weight: 600;
334
+ }
335
+
336
+ .blog-theme-clean .blog-latest {
337
+ gap: 28px;
338
+ }
339
+
340
+ .blog-theme-clean .blog-latest__header {
341
+ flex-direction: row;
342
+ flex-wrap: wrap;
343
+ align-items: flex-end;
344
+ justify-content: space-between;
345
+ gap: 16px;
346
+ }
347
+
348
+ .blog-theme-clean .blog-latest__header h2,
349
+ .blog-theme-clean .blog-related h2 {
350
+ font-size: 26px;
351
+ font-weight: 600;
352
+ letter-spacing: -0.01em;
353
+ }
354
+
355
+ .blog-theme-clean .blog-topics {
356
+ flex-direction: row;
357
+ flex-wrap: wrap;
358
+ gap: 8px;
359
+ }
360
+
361
+ .blog-theme-clean .blog-topic {
362
+ display: inline-flex;
363
+ align-items: center;
364
+ min-height: 44px;
365
+ padding: 0 16px;
366
+ border: 1px solid #C4C9D2;
367
+ border-radius: 999px;
368
+ color: #2D313A;
369
+ font-size: 14px;
370
+ font-weight: 500;
371
+ }
372
+
373
+ .blog-theme-clean .blog-topic:hover {
374
+ border-color: #16181D;
375
+ }
376
+
377
+ .blog-theme-clean .blog-topic--active {
378
+ border-color: #16181D;
379
+ background: #16181D;
380
+ color: #FFFFFF;
381
+ }
382
+
383
+ .blog-theme-clean .blog-empty {
384
+ padding: 40px;
385
+ border: 1px dashed #C4C9D2;
386
+ border-radius: 12px;
387
+ color: #5B6170;
388
+ text-align: center;
389
+ }
390
+
391
+ /* The list's rows laid out as a grid of cards */
392
+
393
+ .blog-theme-clean .blog-cards {
394
+ background: transparent;
395
+ }
396
+
397
+ .blog-theme-clean .blog-cards div:has(> a.thumbnail) {
398
+ display: grid;
399
+ grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
400
+ gap: 40px 32px;
401
+ }
402
+
403
+ /* Cards carry everything in their header; the row's own title area stays empty.
404
+ `!important` beats the row's inline `display: flex`. */
405
+ .blog-theme-clean a.thumbnail.blog-card > div:has(> .item-content) {
406
+ display: none !important;
407
+ }
408
+
409
+ .blog-theme-clean .blog-card,
410
+ .blog-theme-clean .blog-card .v-row > .full-width > .layouts-vertical {
411
+ gap: 14px;
412
+ }
413
+
414
+ .blog-theme-clean a.thumbnail.blog-card .v-row {
415
+ flex-direction: column;
416
+ flex-wrap: nowrap;
417
+ gap: 14px;
418
+ }
419
+
420
+ .blog-theme-clean .blog-meta {
421
+ flex-direction: row;
422
+ flex-wrap: wrap;
423
+ align-items: center;
424
+ gap: 10px;
425
+ color: #5B6170;
426
+ font-size: 12px;
427
+ letter-spacing: 0.06em;
428
+ text-transform: uppercase;
429
+ }
430
+
431
+ .blog-theme-clean .blog-meta .blog-meta__category {
432
+ font-size: 12px;
433
+ }
434
+
435
+ .blog-theme-clean .blog-meta .blog-pill {
436
+ letter-spacing: normal;
437
+ text-transform: none;
438
+ }
439
+
440
+ .blog-theme-clean .blog-card__title {
441
+ color: #16181D;
442
+ font-size: 21px;
443
+ font-weight: 600;
444
+ line-height: 1.3;
445
+ }
446
+
447
+ .blog-theme-clean .blog-card__excerpt {
448
+ color: #2D313A;
449
+ font-family: 'IBM Plex Serif', Georgia, serif;
450
+ font-size: 16px;
451
+ line-height: 1.6;
452
+ }
453
+
454
+ .blog-theme-clean .blog-card__byline {
455
+ color: #5B6170;
456
+ font-size: 13px;
457
+ }
458
+
459
+ /* Article */
460
+
461
+ .blog-theme-clean .blog-article-head {
462
+ gap: 32px;
463
+ padding-top: 32px;
464
+ }
465
+
466
+ .blog-theme-clean .blog-breadcrumb {
467
+ flex-direction: row;
468
+ flex-wrap: wrap;
469
+ align-items: center;
470
+ gap: 8px;
471
+ color: #5B6170;
472
+ font-size: 14px;
473
+ }
474
+
475
+ .blog-theme-clean .blog-breadcrumb a {
476
+ display: inline-flex;
477
+ align-items: center;
478
+ min-height: 44px;
479
+ color: #3B5BDB;
480
+ font-weight: 500;
481
+ }
482
+
483
+ .blog-theme-clean .blog-article-head__text {
484
+ max-width: 820px;
485
+ gap: 20px;
486
+ }
487
+
488
+ .blog-theme-clean .blog-article-head__text h1 {
489
+ font-size: 48px;
490
+ font-weight: 600;
491
+ line-height: 1.12;
492
+ letter-spacing: -0.02em;
493
+ }
494
+
495
+ .blog-theme-clean .blog-article-head__excerpt {
496
+ color: #4A5060;
497
+ font-family: 'IBM Plex Serif', Georgia, serif;
498
+ font-size: 21px;
499
+ line-height: 1.55;
500
+ }
501
+
502
+ .blog-theme-clean .blog-article-head__meta {
503
+ flex-direction: row;
504
+ flex-wrap: wrap;
505
+ align-items: center;
506
+ justify-content: space-between;
507
+ gap: 16px;
508
+ padding-top: 8px;
509
+ }
510
+
511
+ .blog-theme-clean .blog-byline__name {
512
+ color: #16181D;
513
+ font-weight: 600;
514
+ }
515
+
516
+ .blog-theme-clean .blog-byline__name:hover {
517
+ color: #3B5BDB;
518
+ }
519
+
520
+ .blog-theme-clean .blog-button.v-btn {
521
+ height: 44px;
522
+ border-color: #C4C9D2;
523
+ color: #16181D;
524
+ font-weight: 500;
525
+ }
526
+
527
+ .blog-theme-clean .blog-figure {
528
+ gap: 10px;
529
+ }
530
+
531
+ .blog-theme-clean .blog-cover--wide {
532
+ aspect-ratio: 21 / 9;
533
+ border-radius: 16px;
534
+ }
535
+
536
+ .blog-theme-clean .blog-figure__caption {
537
+ color: #5B6170;
538
+ font-size: 13px;
539
+ }
540
+
541
+ .blog-theme-clean .blog-article-columns {
542
+ flex-direction: row;
543
+ flex-wrap: wrap;
544
+ align-items: flex-start;
545
+ gap: 64px;
546
+ padding-top: 48px;
547
+ }
548
+
549
+ .blog-theme-clean .blog-article {
550
+ flex: 999 1 560px;
551
+ min-width: 0;
552
+ max-width: 720px;
553
+ gap: 32px;
554
+ }
555
+
556
+ .blog-theme-clean .blog-body .trix-content {
557
+ color: #2D313A;
558
+ font-family: 'IBM Plex Serif', Georgia, serif;
559
+ font-size: 19px;
560
+ line-height: 1.75;
561
+ }
562
+
563
+ .blog-theme-clean .blog-body .trix-content > * + * {
564
+ margin-top: 24px;
565
+ }
566
+
567
+ .blog-theme-clean .blog-body .trix-content h1 {
568
+ margin-top: 40px;
569
+ color: #16181D;
570
+ font-family: 'IBM Plex Sans', system-ui, sans-serif;
571
+ font-size: 28px;
572
+ font-weight: 600;
573
+ line-height: 1.3;
574
+ letter-spacing: -0.01em;
575
+ scroll-margin-top: 24px;
576
+ }
577
+
578
+ .blog-theme-clean .blog-body .trix-content :is(ul, ol) {
579
+ padding-left: 24px;
580
+ }
581
+
582
+ .blog-theme-clean .blog-body .trix-content blockquote {
583
+ margin: 8px 0 0;
584
+ padding: 4px 0 4px 24px;
585
+ border-left: 3px solid #3B5BDB;
586
+ color: #16181D;
587
+ font-size: 22px;
588
+ font-style: italic;
589
+ line-height: 1.6;
590
+ }
591
+
592
+ .blog-theme-clean .blog-body .trix-content pre {
593
+ padding: 20px 24px;
594
+ overflow-x: auto;
595
+ border-radius: 12px;
596
+ background: #16181D;
597
+ color: #E6E8EC;
598
+ font-family: 'IBM Plex Mono', monospace;
599
+ font-size: 14px;
600
+ line-height: 1.7;
601
+ }
602
+
603
+ .blog-theme-clean .blog-body .trix-content figure {
604
+ margin: 0;
605
+ }
606
+
607
+ .blog-theme-clean .blog-body .trix-content figure img {
608
+ max-width: 100%;
609
+ height: auto;
610
+ border-radius: 12px;
611
+ }
612
+
613
+ .blog-theme-clean .blog-body .trix-content figcaption {
614
+ margin-top: 10px;
615
+ color: #5B6170;
616
+ font-family: 'IBM Plex Sans', system-ui, sans-serif;
617
+ font-size: 13px;
618
+ text-align: left;
619
+ }
620
+
621
+ .blog-theme-clean .blog-tags {
622
+ flex-direction: row;
623
+ flex-wrap: wrap;
624
+ gap: 8px;
625
+ }
626
+
627
+ .blog-theme-clean .blog-tag {
628
+ display: inline-flex;
629
+ align-items: center;
630
+ min-height: 36px;
631
+ padding: 0 14px;
632
+ border-radius: 999px;
633
+ background: #F1F3F6;
634
+ color: #2D313A;
635
+ font-size: 14px;
636
+ }
637
+
638
+ .blog-theme-clean .blog-tag:hover {
639
+ background: #E3E6EB;
640
+ }
641
+
642
+ .blog-theme-clean .blog-author-box {
643
+ flex-direction: row;
644
+ flex-wrap: wrap;
645
+ align-items: flex-start;
646
+ gap: 20px;
647
+ padding: 24px;
648
+ border: 1px solid #E3E6EB;
649
+ border-radius: 16px;
650
+ }
651
+
652
+ .blog-theme-clean .blog-author-box__text {
653
+ flex: 1 1 280px;
654
+ gap: 6px;
655
+ }
656
+
657
+ .blog-theme-clean .blog-author-box__label {
658
+ color: #5B6170;
659
+ font-size: 12px;
660
+ letter-spacing: 0.06em;
661
+ text-transform: uppercase;
662
+ }
663
+
664
+ .blog-theme-clean .blog-author-box__name {
665
+ font-size: 18px;
666
+ font-weight: 600;
667
+ }
668
+
669
+ .blog-theme-clean .blog-author-box__text p {
670
+ color: #4A5060;
671
+ font-size: 15px;
672
+ line-height: 1.6;
673
+ }
674
+
675
+ .blog-theme-clean .blog-author-box .blog-link {
676
+ display: inline-flex;
677
+ align-items: center;
678
+ min-height: 44px;
679
+ font-size: 14px;
680
+ font-weight: 600;
681
+ }
682
+
683
+ .blog-theme-clean .blog-toc {
684
+ position: sticky;
685
+ top: 24px;
686
+ flex: 1 1 240px;
687
+ min-width: 0;
688
+ gap: 4px;
689
+ padding-left: 16px;
690
+ border-left: 1px solid #E3E6EB;
691
+ }
692
+
693
+ .blog-theme-clean .blog-toc__title {
694
+ margin-bottom: 8px;
695
+ color: #5B6170;
696
+ font-size: 12px;
697
+ font-weight: 600;
698
+ letter-spacing: 0.06em;
699
+ text-transform: uppercase;
700
+ }
701
+
702
+ .blog-theme-clean .blog-toc__link {
703
+ display: flex;
704
+ align-items: center;
705
+ min-height: 36px;
706
+ color: #4A5060;
707
+ font-size: 14px;
708
+ }
709
+
710
+ .blog-theme-clean .blog-toc__link:hover {
711
+ color: #3B5BDB;
712
+ }
713
+
714
+ /* Comments, drawn by the shared comment views */
715
+
716
+ .blog-theme-clean .blog-comments {
717
+ padding-top: 64px;
718
+ }
719
+
720
+ .blog-theme-clean .blog-comments > * {
721
+ max-width: 720px;
722
+ }
723
+
724
+ .blog-theme-clean .blog-comments h2 {
725
+ font-size: 26px;
726
+ font-weight: 600;
727
+ letter-spacing: -0.01em;
728
+ }
729
+
730
+ .blog-theme-clean .blog-comments h3 {
731
+ font-size: 18px;
732
+ font-weight: 600;
733
+ }
734
+
735
+ .blog-theme-clean .blog-comments .bold {
736
+ font-weight: 600;
737
+ }
738
+
739
+ .blog-theme-clean .blog-comments .caption {
740
+ color: #5B6170;
741
+ font-size: 14px;
742
+ }
743
+
744
+ .blog-theme-clean .blog-comments .layouts-horizontal + .views-spacer + .layouts-horizontal,
745
+ .blog-theme-clean .blog-comments .views-spacer + .layouts-horizontal {
746
+ padding-top: 20px;
747
+ border-top: 1px solid #E3E6EB;
748
+ }
749
+
750
+ .blog-theme-clean .blog-comments p {
751
+ color: #2D313A;
752
+ font-size: 16px;
753
+ line-height: 1.6;
754
+ }
755
+
756
+ .blog-theme-clean .blog-comments .panels-form {
757
+ padding: 24px;
758
+ border: 1px solid #E3E6EB;
759
+ border-radius: 16px;
760
+ }
761
+
762
+ .blog-theme-clean .blog-comments .v-field {
763
+ border-radius: 8px;
764
+ }
765
+
766
+ /* glib's fields carry no margin of their own. */
767
+ .blog-theme-clean .blog-comments .full-width:has(> .fields-text, > .fields-email, > .fields-textarea) {
768
+ margin-bottom: 12px;
769
+ }
770
+
771
+ .blog-theme-clean .blog-comments .fields-submit.v-btn {
772
+ height: 44px;
773
+ background: #3B5BDB;
774
+ box-shadow: none;
775
+ color: #FFFFFF;
776
+ }
777
+
778
+ /* Keep reading */
779
+
780
+ .blog-theme-clean .blog-related {
781
+ gap: 24px;
782
+ padding-top: 72px;
783
+ }
784
+
785
+ .blog-theme-clean .blog-related__grid {
786
+ display: grid;
787
+ grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
788
+ gap: 32px;
789
+ }
790
+
791
+ .blog-theme-clean .blog-related .blog-card {
792
+ gap: 12px;
793
+ }
794
+
795
+ .blog-theme-clean .blog-related .blog-card__title {
796
+ font-size: 19px;
797
+ }
798
+
799
+ .blog-theme-clean .blog-related .blog-card__excerpt {
800
+ display: none;
801
+ }
802
+
803
+ @media (max-width: 600px) {
804
+ .blog-theme-clean .blog-intro h1,
805
+ .blog-theme-clean .blog-article-head__text h1 {
806
+ font-size: 34px;
807
+ }
808
+
809
+ .blog-theme-clean .blog-featured__title {
810
+ font-size: 28px;
811
+ }
812
+
813
+ .blog-theme-clean .blog-toc {
814
+ display: none;
815
+ }
816
+ }