domma-cms 1.21.0 → 1.22.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.
@@ -313,8 +313,48 @@
313
313
  <div class="grid grid-cols-2 dm-pe-grid mex-behaviour-fields">
314
314
  <div class="form-group">
315
315
  <label for="me-fontFamily">Font family
316
- <span data-help-title="Font family" data-help="Set a CSS font family for menu labels, such as Arial, sans-serif. This field selects from fonts already available to the page; it does not download a font. Leave it blank to inherit the site typography. The style applies to the menu, including the admin sidebar when this is its menu."></span></label>
317
- <input type="text" id="me-fontFamily" name="fontFamily" class="form-input" placeholder="Inter">
316
+ <span data-help-title="Font family" data-help="Choose the typeface for menu labels. Google fonts load on the public site when chosen; Cera Pro and Euclid need the licensed stylesheet set at Content &gt; Theme. Inherit keeps the site typography. The style applies to the menu, including the admin sidebar when this is its menu."></span></label>
317
+ <select id="me-fontFamily" name="fontFamily" class="form-select">
318
+ <option value="">Inherit (normal menu font)</option>
319
+ <optgroup label="Sans-serif">
320
+ <option value="Roboto">Roboto</option>
321
+ <option value="Inter">Inter</option>
322
+ <option value="Open Sans">Open Sans</option>
323
+ <option value="Lato">Lato</option>
324
+ <option value="Nunito">Nunito</option>
325
+ <option value="Nunito Sans">Nunito Sans</option>
326
+ <option value="Mulish">Mulish</option>
327
+ <option value="Poppins">Poppins</option>
328
+ <option value="Urbanist">Urbanist</option>
329
+ <option value="Source Sans 3">Source Sans 3</option>
330
+ <option value="Montserrat">Montserrat</option>
331
+ <option value="Raleway">Raleway</option>
332
+ <option value="DM Sans">DM Sans</option>
333
+ <option value="Work Sans">Work Sans</option>
334
+ </optgroup>
335
+ <optgroup label="Serif">
336
+ <option value="Merriweather">Merriweather</option>
337
+ <option value="Playfair Display">Playfair Display</option>
338
+ <option value="Lora">Lora</option>
339
+ <option value="Roboto Slab">Roboto Slab</option>
340
+ </optgroup>
341
+ <optgroup label="Dyslexia-friendly">
342
+ <option value="Lexend">Lexend</option>
343
+ <option value="Atkinson Hyperlegible">Atkinson Hyperlegible</option>
344
+ <option value="Andika">Andika</option>
345
+ </optgroup>
346
+ <optgroup label="Licensed webfonts (stylesheet required)">
347
+ <option value="Cera Pro">Cera Pro</option>
348
+ <option value="Euclid Circular A">Euclid Circular A</option>
349
+ <option value="Euclid Circular B">Euclid Circular B</option>
350
+ <option value="Euclid Flex">Euclid Flex</option>
351
+ <option value="Euclid Square">Euclid Square</option>
352
+ <option value="Euclid Triangle">Euclid Triangle</option>
353
+ </optgroup>
354
+ <optgroup label="System">
355
+ <option value="system-ui">System UI (no web font)</option>
356
+ </optgroup>
357
+ </select>
318
358
  </div>
319
359
  <div class="form-group">
320
360
  <label for="me-fontSize">Font size
@@ -1,4 +1,4 @@
1
- <!-- System › Search. Bound with M.applyBindings - see admin/js/views/search.js, which also inserts the
1
+ <!-- Appearance > Search. Bound with M.applyBindings - see admin/js/views/search.js, which also inserts the
2
2
  preview row template (the router renders a templateUrl through _.render, eating any {{…}}).
3
3
  No page heading: the Tool banner above is the heading; Save and View site are banner actions. -->
4
4
  <div class="ssx">
@@ -16,16 +16,9 @@
16
16
  <span data-icon="alert-triangle" data-icon-size="16"></span>
17
17
  <span data-bind-text="clampText.value"></span></p>
18
18
 
19
- <div class="tabs ssx-tabs">
20
- <div class="tab-list">
21
- <button type="button" class="tab-item active">Search</button>
22
- <button type="button" class="tab-item">Trigger &amp; position</button>
23
- <button type="button" class="tab-item">Try it</button>
24
- <button type="button" class="tab-item">How it works</button>
25
- </div>
26
-
19
+ <div class="ssx-sections">
27
20
  <!-- Search -->
28
- <div class="tab-panel active">
21
+ <div class="ssx-section" role="region" aria-label="Search settings">
29
22
  <div class="ssx-card dm-settings-section">
30
23
  <div class="ssx-card-title dm-settings-section-title">Live now
31
24
  <span data-help-title="Live now" data-help="What visitors get at the moment - the saved settings, not what you are editing. Searchable pages are the published, public ones; drafts and private pages never appear in results."></span></div>
@@ -72,7 +65,7 @@
72
65
  </div>
73
66
 
74
67
  <!-- Trigger & position -->
75
- <div class="tab-panel">
68
+ <div class="ssx-section" role="region" aria-label="Trigger and position">
76
69
  <div class="ssx-card dm-settings-section">
77
70
  <div class="ssx-card-title dm-settings-section-title">How visitors open it
78
71
  <span data-help-title="Trigger" data-help="Navbar adds a search icon to the site's navigation bar. Floating button puts a fixed button on every page, in the corner or side you choose - useful when the navigation is busy or hidden on small screens."></span></div>
@@ -132,7 +125,7 @@
132
125
  </div>
133
126
 
134
127
  <!-- Try it -->
135
- <div class="tab-panel">
128
+ <div class="ssx-section" role="region" aria-label="Try a search">
136
129
  <div class="ssx-card dm-settings-section">
137
130
  <div class="ssx-card-title dm-settings-section-title">Try a search
138
131
  <span data-help-title="Try it" data-help="Runs the site's own search as a visitor would - published, public pages only, ranked the same way - using the Max results you are editing, before you Save. Right-click a result (or ⋮) to open or edit the page."></span></div>
@@ -145,7 +138,7 @@
145
138
  </div>
146
139
 
147
140
  <!-- How it works -->
148
- <div class="tab-panel">
141
+ <div class="ssx-section" role="region" aria-label="How search works">
149
142
  <div class="ssx-card dm-settings-section">
150
143
  <div class="ssx-card-title dm-settings-section-title">How search works</div>
151
144
  <ul class="ssx-how">
@@ -163,6 +156,12 @@
163
156
 
164
157
  <style>
165
158
  .ssx, .ssx-body { display: flex; flex-direction: column; gap: .75rem; }
159
+ .ssx-sections { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; align-items: start; }
160
+ .ssx-section { display: flex; flex-direction: column; gap: 1rem; min-width: 0; }
161
+ .ssx-section > .ssx-card { margin-top: 0; min-width: 0; }
162
+ .ssx-grid > * { min-width: 0; }
163
+ .ssx-grid .form-input { min-width: 0; width: 100%; }
164
+ @media (max-width: 1100px) { .ssx-sections { grid-template-columns: minmax(0, 1fr); } }
166
165
  .ssx-alert.is-bad { background: color-mix(in srgb, var(--dm-danger) 14%, transparent); color: var(--dm-danger); }
167
166
  .ssx [hidden] { display: none !important; }
168
167
  .ssx-alert { margin: 0; display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; padding: .6rem .8rem; border-radius: var(--dm-radius-md);
@@ -172,8 +171,8 @@
172
171
  .ssx-card { border: 1px solid var(--dm-border); border-radius: var(--dm-radius-md); padding: .75rem .9rem; display: flex; flex-direction: column; gap: .7rem; margin-top: .75rem; }
173
172
  .ssx-card-title { display: flex; align-items: center; gap: .35rem; font-weight: 600; }
174
173
  .ssx-sub { font-size: var(--dm-text-sm); }
175
- .ssx-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem 1rem; }
176
- .ssx-grid-3 { grid-template-columns: 1fr 1fr 1fr; }
174
+ .ssx-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem 1rem; }
175
+ .ssx-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
177
176
  .ssx-wide { grid-column: 1 / -1; }
178
177
  .ssx .form-label { display: flex; align-items: center; gap: .3rem; }
179
178
  .ssx-setting { display: flex; align-items: center; justify-content: space-between; gap: .75rem; }