dsh-mnemon-source-documents 0.5.13 → 0.6.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.
@@ -6,18 +6,63 @@
6
6
  .documentCapacity > div { height: 4px; margin: 8px 0 6px; overflow: hidden; border-radius: 999px; background: var(--mn-fill); }
7
7
  .documentCapacity > div i { display: block; height: 100%; border-radius: inherit; background: var(--dsw-alias-brand-primary); transition: width .3s ease; }
8
8
 
9
- .documentToolbar { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; padding: 8px; border: .5px solid var(--mn-card-line); border-radius: var(--dsw-radius-lg); }
9
+ .documentToolbar { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; padding: 10px 12px; border: .5px solid var(--mn-card-line); border-radius: var(--dsw-radius-lg); }
10
10
  .documentToolbar form { display: flex; min-width: 260px; flex: 1; align-items: center; gap: 8px; }
11
11
  .documentSearch { flex: 1; }
12
12
  .documentEditor input,
13
13
  .documentEditor textarea { width: 100%; border: .5px solid var(--mn-field-line); border-radius: var(--dsw-radius-md); outline: 0; padding: 6px 10px; color: var(--mn-text); background: var(--mn-input); font-size: 13px; line-height: 20px; }
14
14
  .documentEditor input:focus,
15
15
  .documentEditor textarea:focus { border-color: var(--mn-accent); }
16
- /* Filter, as the DSH SegmentedControl. */
17
- .documentToolbar > div { display: flex; align-items: center; gap: 2px; padding: 3px; border-radius: var(--dsw-radius-md); background: var(--mn-hover); }
18
- .documentToolbar > div button { min-height: 28px; border: 0; border-radius: var(--dsw-radius-sm); padding: 0 12px; color: var(--mn-muted); background: transparent; font-size: 13px; font-weight: 500; line-height: 20px; cursor: pointer; }
19
- .documentToolbar > div button:hover { color: var(--mn-text); }
20
- .documentToolbar > div button[data-active] { color: var(--mn-text); background: var(--mn-layer-1); box-shadow: var(--dsw-elevation-soft); }
16
+ /* Filter, matching DSH SegmentedControl sliding indicator mechanics. */
17
+ .documentToolbar > div {
18
+ --dsh-segment-count: 2;
19
+ --dsh-segment-index: 0;
20
+ position: relative;
21
+ display: inline-grid;
22
+ grid-auto-flow: column;
23
+ grid-auto-columns: 1fr;
24
+ align-items: center;
25
+ gap: 2px;
26
+ padding: 4px;
27
+ border-radius: var(--dsw-radius-md);
28
+ background: var(--mn-hover);
29
+ }
30
+ .documentToolbar > div::before {
31
+ content: '';
32
+ position: absolute;
33
+ top: 4px;
34
+ left: 4px;
35
+ width: calc((100% - 8px - 2px * (var(--dsh-segment-count) - 1)) / var(--dsh-segment-count));
36
+ height: calc(100% - 8px);
37
+ border-radius: var(--dsw-radius-sm);
38
+ background: var(--mn-layer-1);
39
+ box-shadow: var(--dsw-elevation-soft);
40
+ transform: translateX(calc(var(--dsh-segment-index) * (100% + 2px)));
41
+ transition: transform 160ms cubic-bezier(.22, 1, .36, 1);
42
+ pointer-events: none;
43
+ }
44
+ .documentToolbar > div button {
45
+ position: relative;
46
+ z-index: 1;
47
+ display: inline-flex;
48
+ height: 28px;
49
+ align-items: center;
50
+ justify-content: center;
51
+ border: 0;
52
+ border-radius: var(--dsw-radius-sm);
53
+ padding: 0 12px;
54
+ color: var(--mn-muted);
55
+ background: transparent;
56
+ font-size: 13px;
57
+ font-weight: 500;
58
+ line-height: 20px;
59
+ white-space: nowrap;
60
+ cursor: pointer;
61
+ transition: color 120ms ease;
62
+ }
63
+ .documentToolbar > div button:hover,
64
+ .documentToolbar > div button[data-active] { color: var(--mn-text); }
65
+ .documentToolbar > div button:focus-visible { outline: var(--dsw-focus-ring-width, 2px) solid var(--mn-focus); outline-offset: -2px; }
21
66
  .documentToolbar > div b { margin-left: 6px; color: var(--mn-faint); font-size: 12px; font-weight: 400; font-variant-numeric: tabular-nums; }
22
67
 
23
68
  .documentWorkspace { display: grid; min-height: 590px; grid-template-columns: minmax(250px, 310px) minmax(0, 1fr); gap: 12px; }
@@ -25,7 +70,7 @@
25
70
  .documentReader { min-width: 0; overflow: hidden; border: .5px solid var(--mn-card-line); border-radius: var(--dsw-radius-lg); }
26
71
  .documentList { align-self: stretch; }
27
72
  .documentList > header { display: flex; min-height: 44px; align-items: center; justify-content: space-between; padding: 0 14px; border-bottom: .5px solid var(--mn-line); color: var(--mn-faint); font-size: 12px; line-height: 18px; }
28
- .documentList > header code { color: var(--mn-muted); }
73
+ .documentList > header code { color: var(--mn-muted); font-variant-numeric: tabular-nums; }
29
74
  .documentList > button { --mn-provider-color: var(--mn-faint); display: block; width: calc(100% - 12px); margin: 6px 6px 0; border: 0; border-radius: var(--dsw-radius-md); padding: 10px 12px; color: var(--mn-text); background: transparent; text-align: left; cursor: pointer; transition: background-color .15s; }
30
75
  .documentList > button:hover { background: var(--mn-hover); }
31
76
  .documentList > button[data-selected] { background: var(--mn-fill); }
@@ -33,7 +78,7 @@
33
78
  .documentList > button strong { overflow: hidden; font-size: 13px; font-weight: 500; line-height: 20px; text-overflow: ellipsis; white-space: nowrap; }
34
79
  .documentList > button time { flex: 0 0 auto; color: var(--mn-faint); font-size: 11px; font-variant-numeric: tabular-nums; }
35
80
  .documentList > button p { display: -webkit-box; margin: 4px 0 6px; overflow: hidden; color: var(--mn-faint); font-size: 12px; line-height: 18px; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
36
- .documentList > button footer { display: flex; align-items: center; gap: 8px; color: var(--mn-faint); font-size: 11px; line-height: 16px; }
81
+ .documentList > button footer { display: flex; align-items: center; gap: 8px; color: var(--mn-faint); font-size: 11px; line-height: 16px; font-variant-numeric: tabular-nums; }
37
82
  .documentList > button footer code { margin-left: auto; }
38
83
  .documentList > button footer em { color: var(--mn-danger); font-style: normal; }
39
84
  .documentListEmpty { display: grid; min-height: 230px; place-items: center; align-content: center; gap: 4px; padding: 24px; color: var(--mn-muted); text-align: center; }
@@ -42,19 +87,22 @@
42
87
 
43
88
  .documentReader { padding: clamp(16px, 2vw, 24px); }
44
89
  .documentReader > .emptyState { height: 100%; border: 0; background: transparent; }
90
+ .documentReader > .loading { display: flex; height: 100%; min-height: 240px; align-items: center; justify-content: center; gap: 8px; }
91
+ .documentReader > .loading [class*='sectionSpinner'] { position: static; }
45
92
  .documentDetail > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding-bottom: 14px; border-bottom: .5px solid var(--mn-line); }
46
93
  .documentDetail > header span { color: var(--mn-faint); font-size: 12px; line-height: 18px; }
47
94
  .documentDetail > header h3 { margin: 2px 0; font-size: 16px; font-weight: 500; line-height: 24px; }
48
95
  .documentDetail > header p { margin: 0; color: var(--mn-faint); font-size: 12px; line-height: 18px; }
96
+ .documentActions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
49
97
  .documentDetail > dl { display: grid; grid-template-columns: 2fr .45fr .8fr .55fr; margin: 12px 0; border: .5px solid var(--mn-line); border-radius: var(--dsw-radius-md); overflow: hidden; }
50
98
  .documentDetail > dl > div { min-width: 0; padding: 8px 10px; }
51
99
  .documentDetail > dl > div + div { border-left: .5px solid var(--mn-line); }
52
100
  .documentDetail dt { margin-bottom: 2px; color: var(--mn-faint); font-size: 11px; line-height: 16px; }
53
- .documentDetail dd { margin: 0; overflow: hidden; font-size: 12px; line-height: 18px; text-overflow: ellipsis; white-space: nowrap; }
101
+ .documentDetail dd { margin: 0; overflow: hidden; font-size: 12px; line-height: 18px; text-overflow: ellipsis; white-space: nowrap; font-variant-numeric: tabular-nums; }
54
102
  .documentSources { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 12px 0; }
55
103
  .documentSources > span { margin-right: 4px; color: var(--mn-faint); font-size: 12px; }
56
104
  .documentSources code,
57
- .documentArchiveReceipt code { padding: 1px 8px; border-radius: 999px; color: var(--mn-muted); background: var(--mn-fill); font-size: 11px; line-height: 17px; }
105
+ .documentArchiveReceipt code { display: inline-flex; max-width: 100%; align-items: center; padding: 1px 8px; border-radius: 999px; color: var(--mn-muted); background: var(--mn-fill); font-size: 11px; line-height: 17px; }
58
106
  .markdownBody { min-height: 310px; margin: 16px 0 0; overflow-wrap: anywhere; padding: clamp(16px, 2.5vw, 28px); border: .5px solid var(--mn-line); border-radius: var(--dsw-radius-md); color: var(--mn-text); font-size: 14px; line-height: 1.75; }
59
107
  .markdownBody > :first-child { margin-top: 0; }
60
108
  .markdownBody > :last-child { margin-bottom: 0; }
@@ -107,6 +155,28 @@
107
155
  .documentEditorMeta label { margin: 0; }
108
156
  .documentEditor footer { display: flex; justify-content: flex-end; gap: 8px; margin-top: 12px; }
109
157
 
158
+ @container mnemon-workbench (max-width: 880px) {
159
+ .documentWorkspace { grid-template-columns: minmax(220px, 270px) minmax(0, 1fr); }
160
+ .documentDetail > dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
161
+ .documentDetail > dl > div + div { border-left: 0; }
162
+ .documentDetail > dl > div:nth-child(even) { border-left: .5px solid var(--mn-line); }
163
+ .documentDetail > dl > div:nth-child(n + 3) { border-top: .5px solid var(--mn-line); }
164
+ }
165
+
166
+ @container mnemon-workbench (max-width: 640px) {
167
+ .documentSummary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
168
+ .documentCapacity { grid-column: 1 / -1; }
169
+ .documentToolbar { align-items: stretch; flex-direction: column; }
170
+ .documentToolbar form { min-width: 0; }
171
+ .documentToolbar > div,
172
+ .documentToolbar > button { width: 100%; }
173
+ .documentToolbar > div button { flex: 1; }
174
+ .documentWorkspace { min-height: 0; grid-template-columns: 1fr; }
175
+ .documentList { max-height: 330px; overflow: auto; -webkit-overflow-scrolling: touch; }
176
+ .documentReader { min-height: 430px; }
177
+ .documentEditorMeta { grid-template-columns: 1fr; }
178
+ }
179
+
110
180
  @media (max-width: 1000px) {
111
181
  .documentWorkspace { grid-template-columns: minmax(220px, 270px) minmax(0, 1fr); }
112
182
  .documentDetail > dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@@ -142,3 +212,10 @@
142
212
  .documentDetail > dl > div + div { border-top: .5px solid var(--mn-line); }
143
213
  .markdownBody { padding: 16px; font-size: 13px; }
144
214
  }
215
+
216
+ @media (prefers-reduced-motion: reduce) {
217
+ .documentCapacity > div i,
218
+ .documentToolbar > div::before,
219
+ .documentToolbar > div button,
220
+ .documentList > button { transition: none; }
221
+ }
@@ -1,4 +1,24 @@
1
+ .shell .modal {
2
+ display: flex;
3
+ flex-direction: column;
4
+ max-height: min(86vh, 760px);
5
+ max-height: min(86dvh, 760px);
6
+ overflow: hidden;
7
+ }
8
+ .shell .modal > [class*='modalBody'] {
9
+ flex: 1 1 auto;
10
+ min-height: 0;
11
+ overflow-y: auto;
12
+ overscroll-behavior: contain;
13
+ }
14
+ .shell .modal > [class*='modalFooter'] {
15
+ position: relative;
16
+ z-index: 1;
17
+ flex: 0 0 auto;
18
+ background: var(--dsw-alias-bg-layer-2, var(--mn-surface));
19
+ }
1
20
  .shell .modal form[class*='documentEditor'] {
21
+ flex-shrink: 0;
2
22
  margin: 0;
3
23
  padding: 0;
4
24
  border: 0;
@@ -8,8 +28,8 @@
8
28
  .shell .modal form[class*='documentEditor'] > header { display: none; }
9
29
 
10
30
  .shell [class*='documentWorkspace'] {
11
- height: clamp(520px, calc(100dvh - 220px), 760px);
12
- min-height: 520px;
31
+ height: clamp(420px, calc(100dvh - var(--dsh-frame-top-clearance, 0px) - 344px), 720px);
32
+ min-height: 420px;
13
33
  align-items: stretch;
14
34
  }
15
35
  .shell [class*='documentList'],
@@ -20,6 +40,12 @@
20
40
  scrollbar-gutter: stable;
21
41
  }
22
42
 
43
+ @container mnemon-workbench (max-width: 640px) {
44
+ .shell [class*='documentWorkspace'] { height: auto; min-height: 0; }
45
+ .shell [class*='documentList'] { overflow-y: auto; scrollbar-gutter: auto; }
46
+ .shell [class*='documentReader'] { overflow: visible; scrollbar-gutter: auto; }
47
+ }
48
+
23
49
  @media (max-width: 760px) {
24
50
  .shell [class*='documentWorkspace'] { height: auto; min-height: 0; }
25
51
  .shell [class*='documentList'] { overflow-y: auto; scrollbar-gutter: auto; }