pages_core 3.14.0 → 3.15.1

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 (249) hide show
  1. checksums.yaml +4 -4
  2. data/VERSION +1 -1
  3. data/app/assets/builds/fonts/6569749d.ttf +0 -0
  4. data/app/assets/builds/fonts/7b7db107.woff2 +0 -0
  5. data/app/assets/builds/fonts/921961e9.woff2 +0 -0
  6. data/app/assets/builds/fonts/ee32bc60.ttf +0 -0
  7. data/app/assets/builds/pages_core/admin-dist.js +19 -8
  8. data/app/assets/builds/pages_core/admin-dist.js.map +4 -4
  9. data/app/assets/builds/pages_core/admin.css +699 -394
  10. data/app/assets/builds/pages_core/mailer.css +99 -0
  11. data/app/assets/fonts/Inter-Black.woff2 +0 -0
  12. data/app/assets/fonts/Inter-BlackItalic.woff2 +0 -0
  13. data/app/assets/fonts/Inter-Bold.woff2 +0 -0
  14. data/app/assets/fonts/Inter-BoldItalic.woff2 +0 -0
  15. data/app/assets/fonts/Inter-ExtraBold.woff2 +0 -0
  16. data/app/assets/fonts/Inter-ExtraBoldItalic.woff2 +0 -0
  17. data/app/assets/fonts/Inter-ExtraLight.woff2 +0 -0
  18. data/app/assets/fonts/Inter-ExtraLightItalic.woff2 +0 -0
  19. data/app/assets/fonts/Inter-Italic.woff2 +0 -0
  20. data/app/assets/fonts/Inter-Light.woff2 +0 -0
  21. data/app/assets/fonts/Inter-LightItalic.woff2 +0 -0
  22. data/app/assets/fonts/Inter-Medium.woff2 +0 -0
  23. data/app/assets/fonts/Inter-MediumItalic.woff2 +0 -0
  24. data/app/assets/fonts/Inter-Regular.woff2 +0 -0
  25. data/app/assets/fonts/Inter-SemiBold.woff2 +0 -0
  26. data/app/assets/fonts/Inter-SemiBoldItalic.woff2 +0 -0
  27. data/app/assets/fonts/Inter-Thin.woff2 +0 -0
  28. data/app/assets/fonts/Inter-ThinItalic.woff2 +0 -0
  29. data/app/assets/fonts/InterDisplay-Black.woff2 +0 -0
  30. data/app/assets/fonts/InterDisplay-BlackItalic.woff2 +0 -0
  31. data/app/assets/fonts/InterDisplay-Bold.woff2 +0 -0
  32. data/app/assets/fonts/InterDisplay-BoldItalic.woff2 +0 -0
  33. data/app/assets/fonts/InterDisplay-ExtraBold.woff2 +0 -0
  34. data/app/assets/fonts/InterDisplay-ExtraBoldItalic.woff2 +0 -0
  35. data/app/assets/fonts/InterDisplay-ExtraLight.woff2 +0 -0
  36. data/app/assets/fonts/InterDisplay-ExtraLightItalic.woff2 +0 -0
  37. data/app/assets/fonts/InterDisplay-Italic.woff2 +0 -0
  38. data/app/assets/fonts/InterDisplay-Light.woff2 +0 -0
  39. data/app/assets/fonts/InterDisplay-LightItalic.woff2 +0 -0
  40. data/app/assets/fonts/InterDisplay-Medium.woff2 +0 -0
  41. data/app/assets/fonts/InterDisplay-MediumItalic.woff2 +0 -0
  42. data/app/assets/fonts/InterDisplay-Regular.woff2 +0 -0
  43. data/app/assets/fonts/InterDisplay-SemiBold.woff2 +0 -0
  44. data/app/assets/fonts/InterDisplay-SemiBoldItalic.woff2 +0 -0
  45. data/app/assets/fonts/InterDisplay-Thin.woff2 +0 -0
  46. data/app/assets/fonts/InterDisplay-ThinItalic.woff2 +0 -0
  47. data/app/assets/fonts/InterVariable-Italic.woff2 +0 -0
  48. data/app/assets/fonts/InterVariable.woff2 +0 -0
  49. data/app/assets/stylesheets/pages_core/admin/components/archive.css +1 -1
  50. data/app/assets/stylesheets/pages_core/admin/components/attachments.css +22 -34
  51. data/app/assets/stylesheets/pages_core/admin/components/base.css +1 -68
  52. data/app/assets/stylesheets/pages_core/admin/components/forms.css +109 -48
  53. data/app/assets/stylesheets/pages_core/admin/components/header.css +56 -58
  54. data/app/assets/stylesheets/pages_core/admin/components/image_editor.css +35 -24
  55. data/app/assets/stylesheets/pages_core/admin/components/image_grid.css +28 -27
  56. data/app/assets/stylesheets/pages_core/admin/components/image_uploader.css +5 -5
  57. data/app/assets/stylesheets/pages_core/admin/components/layout.css +7 -1
  58. data/app/assets/stylesheets/pages_core/admin/components/list_table.css +24 -15
  59. data/app/assets/stylesheets/pages_core/admin/components/page_tree.css +63 -104
  60. data/app/assets/stylesheets/pages_core/admin/components/pagination.css +12 -13
  61. data/app/assets/stylesheets/pages_core/admin/components/search.css +1 -16
  62. data/app/assets/stylesheets/pages_core/admin/components/sidebar.css +5 -11
  63. data/app/assets/stylesheets/pages_core/admin/components/tag_editor.css +22 -36
  64. data/app/assets/stylesheets/pages_core/admin/components/toast.css +1 -2
  65. data/app/assets/stylesheets/pages_core/admin/components/toolbar.css +10 -10
  66. data/app/assets/stylesheets/pages_core/admin/components/totp.css +1 -1
  67. data/app/assets/stylesheets/pages_core/admin/controllers/pages.css +37 -51
  68. data/app/assets/stylesheets/pages_core/admin/global/fonts.css +271 -0
  69. data/app/assets/stylesheets/pages_core/admin/global/typography.css +109 -0
  70. data/app/assets/stylesheets/pages_core/admin/vars.css +1 -3
  71. data/app/assets/stylesheets/pages_core/{admin.postcss.css → admin.css} +1 -0
  72. data/app/assets/stylesheets/pages_core/mailer.css +90 -0
  73. data/app/controllers/admin/account_recoveries_controller.rb +2 -2
  74. data/app/controllers/admin/pages_controller.rb +22 -42
  75. data/app/controllers/concerns/pages_core/error_reporting.rb +1 -1
  76. data/app/controllers/concerns/pages_core/page_parameters.rb +29 -0
  77. data/app/controllers/concerns/pages_core/policies_helper.rb +1 -1
  78. data/app/controllers/concerns/pages_core/preview_pages_controller.rb +20 -20
  79. data/app/controllers/pages_core/admin_controller.rb +0 -2
  80. data/app/controllers/pages_core/frontend/pages_controller.rb +2 -6
  81. data/app/formatters/pages_core/html_formatter.rb +2 -4
  82. data/app/helpers/admin/menu_helper.rb +5 -4
  83. data/app/helpers/admin/pages_helper.rb +1 -21
  84. data/app/helpers/pages_core/admin/admin_helper.rb +2 -3
  85. data/app/helpers/pages_core/admin/content_tabs_helper.rb +1 -2
  86. data/app/helpers/pages_core/admin/labelled_field_helper.rb +1 -1
  87. data/app/helpers/pages_core/attachments_helper.rb +1 -1
  88. data/app/helpers/pages_core/frontend_helper.rb +1 -1
  89. data/app/helpers/pages_core/images_helper.rb +10 -8
  90. data/app/helpers/pages_core/labelled_form_builder.rb +2 -7
  91. data/app/helpers/pages_core/page_path_helper.rb +1 -1
  92. data/app/javascript/components/Attachments/Attachment.tsx +20 -18
  93. data/app/javascript/components/Attachments/AttachmentEditor.tsx +11 -9
  94. data/app/javascript/components/{Attachments.jsx → Attachments/List.tsx} +58 -63
  95. data/app/javascript/components/Attachments/useAttachments.ts +15 -0
  96. data/app/javascript/components/Attachments.tsx +14 -0
  97. data/app/javascript/components/DateRangeSelect.tsx +105 -0
  98. data/app/javascript/components/DateTimeSelect.tsx +136 -0
  99. data/app/javascript/components/EditableImage.tsx +11 -9
  100. data/app/javascript/components/FileUploadButton.tsx +7 -7
  101. data/app/javascript/components/ImageCropper/FocalPoint.tsx +9 -12
  102. data/app/javascript/components/ImageCropper/Image.tsx +10 -8
  103. data/app/javascript/components/ImageCropper/Toolbar.tsx +11 -12
  104. data/app/javascript/components/ImageCropper/useCrop.ts +24 -53
  105. data/app/javascript/components/ImageCropper.tsx +10 -15
  106. data/app/javascript/components/ImageEditor/Form.tsx +12 -8
  107. data/app/javascript/components/ImageEditor.tsx +12 -7
  108. data/app/javascript/components/ImageGrid/DragElement.tsx +9 -12
  109. data/app/javascript/components/{ImageGrid.jsx → ImageGrid/Grid.tsx} +62 -71
  110. data/app/javascript/components/ImageGrid/GridImage.tsx +22 -23
  111. data/app/javascript/components/ImageGrid/Placeholder.tsx +2 -2
  112. data/app/javascript/components/ImageGrid/useImageGrid.ts +26 -0
  113. data/app/javascript/components/ImageGrid.tsx +15 -0
  114. data/app/javascript/components/ImageUploader.tsx +35 -22
  115. data/app/javascript/components/LabelledField.tsx +34 -0
  116. data/app/javascript/components/Modal.tsx +2 -2
  117. data/app/javascript/components/PageForm/Block.tsx +81 -0
  118. data/app/javascript/components/PageForm/Content.tsx +54 -0
  119. data/app/javascript/components/PageForm/Dates.tsx +66 -0
  120. data/app/javascript/components/PageForm/Files.tsx +28 -0
  121. data/app/javascript/components/PageForm/Form.tsx +41 -0
  122. data/app/javascript/components/PageForm/Images.tsx +28 -0
  123. data/app/javascript/components/PageForm/LocaleLinks.tsx +36 -0
  124. data/app/javascript/components/PageForm/Metadata.tsx +67 -0
  125. data/app/javascript/components/PageForm/Options.tsx +180 -0
  126. data/app/javascript/components/PageForm/PageDescription.tsx +48 -0
  127. data/app/javascript/components/PageForm/PathSegment.tsx +65 -0
  128. data/app/javascript/components/PageForm/TabPanel.tsx +21 -0
  129. data/app/javascript/components/PageForm/Tabs.tsx +33 -0
  130. data/app/javascript/components/PageForm/UnconfiguredContent.tsx +42 -0
  131. data/app/javascript/components/PageForm/pageParams.ts +95 -0
  132. data/app/javascript/components/PageForm/preview.ts +23 -0
  133. data/app/javascript/components/PageForm/usePage.ts +169 -0
  134. data/app/javascript/components/PageForm/useTabs.ts +46 -0
  135. data/app/javascript/components/PageForm.tsx +169 -0
  136. data/app/javascript/components/PageImages.tsx +7 -9
  137. data/app/javascript/components/PageTree/Draggable.tsx +40 -39
  138. data/app/javascript/components/PageTree/Node.tsx +62 -56
  139. data/app/javascript/components/PageTree/PageName.tsx +28 -0
  140. data/app/javascript/components/PageTree.tsx +65 -53
  141. data/app/javascript/components/{RichTextArea.jsx → RichTextArea.tsx} +98 -79
  142. data/app/javascript/components/RichTextToolbarButton.tsx +4 -6
  143. data/app/javascript/components/TagEditor/AddTagForm.tsx +19 -12
  144. data/app/javascript/components/TagEditor/Editor.tsx +32 -0
  145. data/app/javascript/components/TagEditor/Tag.tsx +6 -4
  146. data/app/javascript/components/TagEditor/useTags.ts +58 -0
  147. data/app/javascript/components/TagEditor.tsx +8 -58
  148. data/app/javascript/components/Toast.tsx +3 -3
  149. data/app/javascript/components/drag/draggedOrder.ts +22 -14
  150. data/app/javascript/components/drag/useDragCollection.ts +35 -30
  151. data/app/javascript/components/drag/useDragUploader.ts +32 -21
  152. data/app/javascript/components/drag/useDraggable.ts +7 -6
  153. data/app/javascript/components/drag.ts +0 -1
  154. data/app/javascript/components.ts +1 -3
  155. data/app/javascript/features/RichText.tsx +2 -3
  156. data/app/javascript/features/contentTabs.ts +79 -0
  157. data/app/javascript/index.ts +5 -12
  158. data/app/javascript/lib/Tree.ts +31 -45
  159. data/app/javascript/lib/request.ts +11 -11
  160. data/app/javascript/stores/useToastStore.ts +1 -1
  161. data/app/javascript/types/Attachments.ts +29 -0
  162. data/app/javascript/types/Crop.ts +36 -0
  163. data/app/javascript/types/Drag.ts +34 -0
  164. data/app/javascript/types/Images.ts +47 -0
  165. data/app/javascript/types/PageEditor.ts +26 -0
  166. data/app/javascript/types/Pages.ts +75 -0
  167. data/app/javascript/types/Tags.ts +9 -0
  168. data/app/javascript/types/Template.ts +24 -0
  169. data/app/javascript/types/Trees.ts +19 -0
  170. data/app/javascript/types.ts +2 -25
  171. data/app/mailers/admin_mailer.rb +5 -9
  172. data/app/models/attachment.rb +1 -1
  173. data/app/models/autopublisher.rb +1 -1
  174. data/app/models/concerns/pages_core/authenticable_user.rb +63 -0
  175. data/app/models/concerns/pages_core/emailable.rb +16 -0
  176. data/app/models/concerns/pages_core/page_model/dated_page.rb +3 -3
  177. data/app/models/concerns/pages_core/page_model/templateable.rb +2 -16
  178. data/app/models/concerns/pages_core/taggable.rb +2 -19
  179. data/app/models/invite.rb +2 -6
  180. data/app/models/otp_secret.rb +4 -4
  181. data/app/models/page.rb +0 -3
  182. data/app/models/user.rb +2 -46
  183. data/app/policies/page_policy.rb +6 -2
  184. data/app/resources/admin/page_resource.rb +95 -0
  185. data/app/resources/admin/page_tree_resource.rb +27 -0
  186. data/app/resources/admin/template_configuration_resource.rb +50 -0
  187. data/app/views/admin/news/_sidebar.html.erb +2 -4
  188. data/app/views/admin/news/index.html.erb +0 -1
  189. data/app/views/admin/pages/_form.html.erb +10 -30
  190. data/app/views/admin/pages/_search_bar.html.erb +1 -1
  191. data/app/views/admin/pages/edit.html.erb +1 -57
  192. data/app/views/admin/pages/index.html.erb +1 -1
  193. data/app/views/admin/pages/new.html.erb +1 -44
  194. data/app/views/admin/sessions/new.html.erb +9 -11
  195. data/app/views/admin/users/_access_control.html.erb +5 -1
  196. data/app/views/admin/users/_list.html.erb +12 -7
  197. data/app/views/admin_mailer/account_recovery.html.erb +20 -0
  198. data/app/views/admin_mailer/invite.html.erb +11 -0
  199. data/app/views/layouts/admin/_header.html.erb +2 -4
  200. data/app/views/layouts/admin/_page_header.html.erb +1 -2
  201. data/app/views/layouts/admin.html.erb +1 -1
  202. data/app/views/layouts/pages_core/mailer.html.erb +11 -0
  203. data/config/locales/en.yml +0 -4
  204. data/config/routes.rb +3 -7
  205. data/db/migrate/20240126160700_add_2fa_fields.rb +5 -1
  206. data/db/migrate/20240131140700_change_email_to_citext.rb +18 -0
  207. data/db/migrate/20240201160700_remove_persistent_data.rb +7 -0
  208. data/db/migrate/20240508145300_remove_categories.rb +21 -0
  209. data/lib/pages_core/configuration/base.rb +2 -2
  210. data/lib/pages_core/engine.rb +1 -0
  211. data/lib/pages_core/templates/configuration.rb +1 -1
  212. data/lib/pages_core/templates/configuration_proxy.rb +2 -2
  213. data/lib/pages_core/templates/template_configuration.rb +11 -1
  214. data/lib/pages_core/templates.rb +6 -4
  215. data/lib/pages_core/version.rb +1 -1
  216. data/lib/pages_core.rb +1 -0
  217. data/lib/rails/generators/pages_core/frontend/templates/javascript/lib/gridOverlay.ts +6 -7
  218. data/lib/rails/generators/pages_core/frontend/templates/javascript/lib/responsiveEmbeds.ts +17 -12
  219. data/lib/rails/generators/pages_core/rspec/rspec_generator.rb +0 -2
  220. data/lib/rails/generators/pages_core/rspec/templates/rails_helper.rb +3 -4
  221. metadata +119 -36
  222. data/app/assets/builds/fonts/2a3059ad.ttf +0 -0
  223. data/app/assets/builds/fonts/47262711.woff2 +0 -0
  224. data/app/assets/builds/fonts/500ddeb0.woff2 +0 -0
  225. data/app/assets/builds/fonts/81221036.ttf +0 -0
  226. data/app/assets/stylesheets/pages_core/admin/components/login.css +0 -27
  227. data/app/controllers/admin/categories_controller.rb +0 -56
  228. data/app/controllers/concerns/pages_core/admin/persistent_params.rb +0 -75
  229. data/app/helpers/pages_core/admin/page_blocks_helper.rb +0 -66
  230. data/app/helpers/pages_core/admin/page_json_helper.rb +0 -23
  231. data/app/javascript/components/DateRangeSelect.jsx +0 -225
  232. data/app/javascript/components/PageDates.jsx +0 -73
  233. data/app/javascript/components/PageFiles.jsx +0 -25
  234. data/app/javascript/components/PageTree/types.ts +0 -15
  235. data/app/javascript/components/drag/types.ts +0 -28
  236. data/app/javascript/controllers/EditPageController.ts +0 -22
  237. data/app/javascript/controllers/MainController.ts +0 -74
  238. data/app/javascript/controllers/PageOptionsController.js +0 -67
  239. data/app/models/category.rb +0 -22
  240. data/app/models/concerns/pages_core/has_otp.rb +0 -27
  241. data/app/models/page_category.rb +0 -6
  242. data/app/views/admin/pages/_edit_content.html.erb +0 -19
  243. data/app/views/admin/pages/_edit_files.html.erb +0 -4
  244. data/app/views/admin/pages/_edit_images.html.erb +0 -4
  245. data/app/views/admin/pages/_edit_metadata.html.erb +0 -35
  246. data/app/views/admin/pages/_edit_options.html.erb +0 -91
  247. data/app/views/admin_mailer/account_recovery.text.erb +0 -10
  248. data/app/views/admin_mailer/invite.text.erb +0 -7
  249. data/lib/rails/generators/pages_core/rspec/templates/mailer_macros.rb +0 -11
@@ -1,39 +1,41 @@
1
1
  .tag-editor {
2
- margin-top: 10px;
3
- margin-bottom: 1.5em;
4
-
5
- & .tags {
6
- line-height: 1.5;
7
- }
8
-
9
- & .tag {
10
- font-size: 13px;
2
+ margin-top: 0.5rem;
3
+ margin-bottom: 1.5rem;
4
+ display: flex;
5
+ flex-wrap: wrap;
6
+ gap: 0.5rem;
7
+
8
+ .tag {
9
+ font-size: 1rem;
11
10
  cursor: pointer;
12
- display: block;
13
- float: left;
14
- margin: 0 5px 5px 0;
15
11
  padding: 0px;
16
12
  background: var(--background-disabled-color);
17
13
  border-radius: 5px;
18
- line-height: 26px;
19
- line-height: 36px;
20
14
  min-width: 40px;
15
+ height: 2rem;
21
16
  transition: all 200ms ease-out;
22
17
  user-select: none;
18
+ display: flex;
23
19
 
24
- & label {
20
+ label {
21
+ display: flex;
25
22
  margin: 0px;
26
23
  padding: 0px 10px;
27
24
  color: inherit;
25
+ align-items: center;
26
+ gap: 0.5rem;
28
27
  }
29
28
 
30
- & input {
31
- margin: 2px 3px 0 0;
29
+ input {
30
+ /*margin: 2px 3px 0 0;*/
32
31
  }
33
32
 
34
- & .name {
35
- padding: 1px 5px;
36
- margin: 0;
33
+ .name {
34
+ }
35
+
36
+ &:hover,
37
+ &:focus {
38
+ background: var(--background-highlight-color);
37
39
  }
38
40
 
39
41
  &.enabled {
@@ -41,20 +43,4 @@
41
43
  background: var(--blue-dark);
42
44
  }
43
45
  }
44
-
45
- & .add-tag-form {
46
- float: left;
47
- width: 178px;
48
- white-space: nowrap;
49
- }
50
-
51
- & input.add-tag {
52
- margin-top: 0px;
53
- border-radius: 5px;
54
- margin: 0 4px 0 0;
55
-
56
- &.example {
57
- color: var(--text-light-color);
58
- }
59
- }
60
46
  }
@@ -6,8 +6,7 @@
6
6
  overflow: hidden;
7
7
  z-index: 200;
8
8
 
9
- & .toast {
10
- font-size: 14px;
9
+ .toast {
11
10
  display: inline-block;
12
11
  background: var(--background-invert-color);
13
12
  color: white;
@@ -15,27 +15,27 @@
15
15
  clear: both;
16
16
  }
17
17
 
18
- & li {
18
+ li {
19
19
  list-style: none;
20
20
  margin: 0;
21
21
  padding: 0;
22
22
  }
23
23
 
24
- & .info {
24
+ .info {
25
25
  float: right;
26
26
  color: var(--text-lighter-color);
27
27
  padding: 0px 10px;
28
28
  }
29
29
 
30
- & .label {
30
+ .label {
31
31
  float: left;
32
32
  padding: 0px 10px;
33
33
  color: var(--text-light-color);
34
34
  border-right: 1px solid var(--border-color);
35
35
  }
36
36
 
37
- & .button,
38
- & button {
37
+ .button,
38
+ button {
39
39
  float: left;
40
40
  display: inline;
41
41
  margin: 0px;
@@ -51,12 +51,12 @@
51
51
  border-left: 1px solid #fff;
52
52
  border-right: 1px solid var(--border-color);
53
53
  color: var(--text-light-color);
54
- font-size: 12px;
54
+ font-size: 0.875rem;
55
55
  background-color: #f8f8f8;
56
56
  transition: all 200ms ease-out;
57
57
 
58
- & i.fa {
59
- font-size: 14px;
58
+ i.fa {
59
+ font-size: 1rem;
60
60
  }
61
61
 
62
62
  &:focus,
@@ -87,11 +87,11 @@
87
87
  &.header {
88
88
  vertical-align: bottom;
89
89
 
90
- & i {
90
+ i {
91
91
  margin-left: -6px;
92
92
  }
93
93
 
94
- & i:after {
94
+ i:after {
95
95
  font-family: var(--font-os-sans);
96
96
  font-weight: bold;
97
97
  font-size: 13px;
@@ -21,6 +21,6 @@ ul.recovery-codes {
21
21
  flex-direction: column;
22
22
  align-items: flex-start;
23
23
  gap: 1rem;
24
- font-size: 1.2em;
24
+ font-size: 1.2rem;
25
25
  font-weight: bold;
26
26
  }
@@ -24,42 +24,42 @@ td.drag-handle {
24
24
  margin-left: -8px;
25
25
  margin-top: 16px;
26
26
 
27
- & .page-listing {
27
+ .page-listing {
28
28
  border: 1px solid transparent;
29
29
  padding: 3px 8px 2px 8px !important;
30
30
  }
31
31
 
32
- & ul {
32
+ ul {
33
33
  border-left: 1px dotted #ccc !important;
34
34
  margin-left: 12px !important;
35
35
  padding-left: 8px !important;
36
36
  }
37
37
 
38
- & ul li {
38
+ ul li {
39
39
  overflow: auto;
40
40
  }
41
41
 
42
- & .page {
42
+ .page {
43
43
  padding: 4px 8px;
44
44
  line-height: 17px;
45
45
  float: left;
46
46
 
47
- & .status {
47
+ .status {
48
48
  font-weight: normal;
49
49
  }
50
50
 
51
- & a.page-name,
52
- & a.page-name:visited {
51
+ a.page-name,
52
+ a.page-name:visited {
53
53
  text-decoration: none;
54
54
  color: #222;
55
55
  }
56
56
 
57
- & a.page-name:hover {
57
+ a.page-name:hover {
58
58
  text-decoration: underline;
59
59
  }
60
60
 
61
61
  &.hidden {
62
- & a.page-name {
62
+ a.page-name {
63
63
  color: #666;
64
64
  }
65
65
  }
@@ -68,30 +68,30 @@ td.drag-handle {
68
68
  background: #ffd;
69
69
  border: 1px solid #dda;
70
70
 
71
- & .status {
71
+ .status {
72
72
  display: none;
73
73
  }
74
74
  }
75
75
  }
76
76
 
77
- & .page-without-locale {
77
+ .page-without-locale {
78
78
  color: #888;
79
79
  }
80
80
 
81
- & li {
82
- font-weight: bold;
81
+ li {
82
+ font-weight: var(--bold-weight);
83
83
  margin: 0;
84
84
  padding: 0;
85
85
  clear: both;
86
86
  }
87
87
 
88
- & li li {
88
+ li li {
89
89
  font-weight: normal;
90
90
  font-size: 12px;
91
91
  padding: 0;
92
92
  }
93
93
 
94
- & ul {
94
+ ul {
95
95
  clear: both;
96
96
  list-style-type: none;
97
97
  border-left: 1px dashed #ccc;
@@ -99,11 +99,11 @@ td.drag-handle {
99
99
  padding: 0 0 0 12px;
100
100
  }
101
101
 
102
- & .hover {
102
+ .hover {
103
103
  background: #cef;
104
104
  }
105
105
 
106
- & .drag-handle {
106
+ .drag-handle {
107
107
  display: none;
108
108
  }
109
109
 
@@ -114,28 +114,28 @@ td.drag-handle {
114
114
 
115
115
  .news-item-list,
116
116
  .calendar-item-list {
117
- & .name {
117
+ .name {
118
118
  line-height: 1.5;
119
119
 
120
- & small {
120
+ small {
121
121
  font-weight: normal;
122
122
  }
123
123
  }
124
124
 
125
- & .autopublish-notice {
125
+ .autopublish-notice {
126
126
  font-size: 0.75rem;
127
127
  font-weight: normal;
128
128
  color: var(--text-light-color);
129
129
  }
130
130
 
131
- & .draft,
132
- & .hidden,
133
- & .autopublish,
134
- & .reviewed {
131
+ .draft,
132
+ .hidden,
133
+ .autopublish,
134
+ .reviewed {
135
135
  background: var(--background-disabled-color);
136
136
  }
137
137
 
138
- & .pinned .name {
138
+ .pinned .name {
139
139
  background: transparent
140
140
  radial-gradient(ellipse at center, #92b6c4 50%, transparent 50%) no-repeat
141
141
  left 12px top 50%;
@@ -146,32 +146,18 @@ td.drag-handle {
146
146
  .edit-page {
147
147
  width: auto;
148
148
 
149
- & main div.content {
150
- padding-top: 16px;
149
+ .advanced-options {
150
+ margin-top: 1.5rem;
151
151
  }
152
152
 
153
- & .hidden-options {
154
- display: none;
155
- }
156
-
157
- & .autopublish-notice,
158
- & .published-date,
159
- & .advanced-options {
160
- display: none;
161
-
162
- &.show {
163
- display: block;
164
- }
165
- }
166
-
167
- & main input[type="text"],
168
- & main textarea {
153
+ main input[type="text"],
154
+ main textarea {
169
155
  width: 100%;
170
156
  max-width: 100%;
171
157
  }
172
158
 
173
- & main input.page_title {
174
- font-weight: bold;
159
+ main input.page_title {
160
+ font-weight: var(--bold-weight);
175
161
  font-size: 1.4em;
176
162
  color: var(--text-color);
177
163
  }
@@ -183,13 +169,13 @@ td.drag-handle {
183
169
  margin-right: 0;
184
170
  padding: 0;
185
171
 
186
- & .embed-code {
172
+ .embed-code {
187
173
  display: inline-block;
188
174
  width: 60px;
189
175
  margin-right: 10px;
190
176
  }
191
177
 
192
- & li {
178
+ li {
193
179
  line-height: 30px;
194
180
  border-top: 1px solid var(--border-color);
195
181
 
@@ -197,20 +183,20 @@ td.drag-handle {
197
183
  border-top: 0px;
198
184
  }
199
185
 
200
- & .actions {
186
+ .actions {
201
187
  float: right;
202
188
  }
203
189
 
204
- & .drag-handle {
190
+ .drag-handle {
205
191
  margin-right: 10px;
206
192
  }
207
193
  }
208
194
 
209
- & .placeholder {
195
+ .placeholder {
210
196
  height: 30px;
211
197
  }
212
198
 
213
- & .ui-sortable-helper {
199
+ .ui-sortable-helper {
214
200
  border: 1px solid var(--border-color) !important;
215
201
  background: rgba(250, 250, 250, 0.8);
216
202
  }
@@ -0,0 +1,271 @@
1
+ /* Inter */
2
+
3
+ @font-face {
4
+ font-family: "InterVariable";
5
+ font-style: normal;
6
+ font-weight: 100 900;
7
+ font-display: swap;
8
+ src: url("InterVariable.woff2") format("woff2");
9
+ }
10
+
11
+ @font-face {
12
+ font-family: "InterVariable";
13
+ font-style: italic;
14
+ font-weight: 100 900;
15
+ font-display: swap;
16
+ src: url("InterVariable-Italic.woff2") format("woff2");
17
+ }
18
+
19
+ @font-face {
20
+ font-family: "Inter";
21
+ font-style: normal;
22
+ font-weight: 100;
23
+ src: url("Inter-Thin.woff2") format("woff2");
24
+ }
25
+
26
+ @font-face {
27
+ font-family: "Inter";
28
+ font-style: italic;
29
+ font-weight: 100;
30
+ src: url("Inter-ThinItalic.woff2") format("woff2");
31
+ }
32
+
33
+ @font-face {
34
+ font-family: "Inter";
35
+ font-style: normal;
36
+ font-weight: 200;
37
+ src: url("Inter-ExtraLight.woff2") format("woff2");
38
+ }
39
+
40
+ @font-face {
41
+ font-family: "Inter";
42
+ font-style: italic;
43
+ font-weight: 200;
44
+ src: url("Inter-ExtraLightItalic.woff2") format("woff2");
45
+ }
46
+
47
+ @font-face {
48
+ font-family: "Inter";
49
+ font-style: normal;
50
+ font-weight: 300;
51
+ src: url("Inter-Light.woff2") format("woff2");
52
+ }
53
+
54
+ @font-face {
55
+ font-family: "Inter";
56
+ font-style: italic;
57
+ font-weight: 300;
58
+ src: url("Inter-LightItalic.woff2") format("woff2");
59
+ }
60
+
61
+ @font-face {
62
+ font-family: "Inter";
63
+ font-style: normal;
64
+ font-weight: 400;
65
+ src: url("Inter-Regular.woff2") format("woff2");
66
+ }
67
+
68
+ @font-face {
69
+ font-family: "Inter";
70
+ font-style: italic;
71
+ font-weight: 400;
72
+ src: url("Inter-Italic.woff2") format("woff2");
73
+ }
74
+
75
+ @font-face {
76
+ font-family: "Inter";
77
+ font-style: normal;
78
+ font-weight: 500;
79
+ src: url("Inter-Medium.woff2") format("woff2");
80
+ }
81
+
82
+ @font-face {
83
+ font-family: "Inter";
84
+ font-style: italic;
85
+ font-weight: 500;
86
+ src: url("Inter-MediumItalic.woff2") format("woff2");
87
+ }
88
+
89
+ @font-face {
90
+ font-family: "Inter";
91
+ font-style: normal;
92
+ font-weight: 600;
93
+ src: url("Inter-SemiBold.woff2") format("woff2");
94
+ }
95
+
96
+ @font-face {
97
+ font-family: "Inter";
98
+ font-style: italic;
99
+ font-weight: 600;
100
+ src: url("Inter-SemiBoldItalic.woff2") format("woff2");
101
+ }
102
+
103
+ @font-face {
104
+ font-family: "Inter";
105
+ font-style: normal;
106
+ font-weight: 700;
107
+ src: url("Inter-Bold.woff2") format("woff2");
108
+ }
109
+
110
+ @font-face {
111
+ font-family: "Inter";
112
+ font-style: italic;
113
+ font-weight: 700;
114
+ src: url("Inter-BoldItalic.woff2") format("woff2");
115
+ }
116
+
117
+ @font-face {
118
+ font-family: "Inter";
119
+ font-style: normal;
120
+ font-weight: 800;
121
+ src: url("Inter-ExtraBold.woff2") format("woff2");
122
+ }
123
+
124
+ @font-face {
125
+ font-family: "Inter";
126
+ font-style: italic;
127
+ font-weight: 800;
128
+ src: url("Inter-ExtraBoldItalic.woff2") format("woff2");
129
+ }
130
+
131
+ @font-face {
132
+ font-family: "Inter";
133
+ font-style: normal;
134
+ font-weight: 900;
135
+ src: url("Inter-Black.woff2") format("woff2");
136
+ }
137
+
138
+ @font-face {
139
+ font-family: "Inter";
140
+ font-style: italic;
141
+ font-weight: 900;
142
+ src: url("Inter-BlackItalic.woff2") format("woff2");
143
+ }
144
+
145
+ /* InterDisplay */
146
+
147
+ @font-face {
148
+ font-family: "InterDisplay";
149
+ font-style: normal;
150
+ font-weight: 100;
151
+ src: url("InterDisplay-Thin.woff2") format("woff2");
152
+ }
153
+
154
+ @font-face {
155
+ font-family: "InterDisplay";
156
+ font-style: italic;
157
+ font-weight: 100;
158
+ src: url("InterDisplay-ThinItalic.woff2") format("woff2");
159
+ }
160
+
161
+ @font-face {
162
+ font-family: "InterDisplay";
163
+ font-style: normal;
164
+ font-weight: 200;
165
+ src: url("InterDisplay-ExtraLight.woff2") format("woff2");
166
+ }
167
+
168
+ @font-face {
169
+ font-family: "InterDisplay";
170
+ font-style: italic;
171
+ font-weight: 200;
172
+ src: url("InterDisplay-ExtraLightItalic.woff2") format("woff2");
173
+ }
174
+
175
+ @font-face {
176
+ font-family: "InterDisplay";
177
+ font-style: normal;
178
+ font-weight: 300;
179
+ src: url("InterDisplay-Light.woff2") format("woff2");
180
+ }
181
+
182
+ @font-face {
183
+ font-family: "InterDisplay";
184
+ font-style: italic;
185
+ font-weight: 300;
186
+ src: url("InterDisplay-LightItalic.woff2") format("woff2");
187
+ }
188
+
189
+ @font-face {
190
+ font-family: "InterDisplay";
191
+ font-style: normal;
192
+ font-weight: 400;
193
+ src: url("InterDisplay-Regular.woff2") format("woff2");
194
+ }
195
+
196
+ @font-face {
197
+ font-family: "InterDisplay";
198
+ font-style: italic;
199
+ font-weight: 400;
200
+ src: url("InterDisplay-Italic.woff2") format("woff2");
201
+ }
202
+
203
+ @font-face {
204
+ font-family: "InterDisplay";
205
+ font-style: normal;
206
+ font-weight: 500;
207
+ src: url("InterDisplay-Medium.woff2") format("woff2");
208
+ }
209
+
210
+ @font-face {
211
+ font-family: "InterDisplay";
212
+ font-style: italic;
213
+ font-weight: 500;
214
+ src: url("InterDisplay-MediumItalic.woff2") format("woff2");
215
+ }
216
+
217
+ @font-face {
218
+ font-family: "InterDisplay";
219
+ font-style: normal;
220
+ font-weight: 600;
221
+ src: url("InterDisplay-SemiBold.woff2") format("woff2");
222
+ }
223
+
224
+ @font-face {
225
+ font-family: "InterDisplay";
226
+ font-style: italic;
227
+ font-weight: 600;
228
+ src: url("InterDisplay-SemiBoldItalic.woff2") format("woff2");
229
+ }
230
+
231
+ @font-face {
232
+ font-family: "InterDisplay";
233
+ font-style: normal;
234
+ font-weight: 700;
235
+ src: url("InterDisplay-Bold.woff2") format("woff2");
236
+ }
237
+
238
+ @font-face {
239
+ font-family: "InterDisplay";
240
+ font-style: italic;
241
+ font-weight: 700;
242
+ src: url("InterDisplay-BoldItalic.woff2") format("woff2");
243
+ }
244
+
245
+ @font-face {
246
+ font-family: "InterDisplay";
247
+ font-style: normal;
248
+ font-weight: 800;
249
+ src: url("InterDisplay-ExtraBold.woff2") format("woff2");
250
+ }
251
+
252
+ @font-face {
253
+ font-family: "InterDisplay";
254
+ font-style: italic;
255
+ font-weight: 800;
256
+ src: url("InterDisplay-ExtraBoldItalic.woff2") format("woff2");
257
+ }
258
+
259
+ @font-face {
260
+ font-family: "InterDisplay";
261
+ font-style: normal;
262
+ font-weight: 900;
263
+ src: url("InterDisplay-Black.woff2") format("woff2");
264
+ }
265
+
266
+ @font-face {
267
+ font-family: "InterDisplay";
268
+ font-style: italic;
269
+ font-weight: 900;
270
+ src: url("InterDisplay-BlackItalic.woff2") format("woff2");
271
+ }