jsonresume-theme-wintermuted 0.1.3 → 0.1.5

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.
package/README.md CHANGED
@@ -21,6 +21,14 @@ npm install jsonresume-theme-wintermuted
21
21
  ```
22
22
 
23
23
  The shared `@wintermuted/ui-theme` package is installed automatically as a dependency of this theme.
24
+ It is pinned to the official `2.2.1` GitHub release tarball, with its integrity
25
+ recorded in `package-lock.json`. Installation requires access to GitHub release
26
+ assets rather than npm registry metadata for this dependency. To upgrade it,
27
+ select a versioned asset from the upstream release and regenerate the lockfile;
28
+ do not use a local tarball path or a moving release URL.
29
+ The automated dependency updater recognizes this pin for version comparisons;
30
+ it still requires npm publication verification before proposing a newer registry
31
+ version. It does not silently fall back to another source.
24
32
 
25
33
  For local development before publish:
26
34
 
@@ -180,18 +188,28 @@ Workflows:
180
188
 
181
189
  Toolbar controls, detail disclosures, keyword/project tags, and section navigation
182
190
  use the shared `wm-btn-pill`, `wm-btn-expand`, `wm-tag`, `wm-tag-accent`, and
183
- `wm-side-nav` classes. The local stylesheet owns resume layout, nested navigation,
184
- view visibility, and print overrides; component appearance comes from the library.
191
+ `wm-side-nav` classes. Highlights and separators use `wm-list` and `wm-separator`.
192
+ Project media use `wm-gallery`, its figure/diagram variants, and the shared
193
+ lightbox overlay, close button, and image styles.
194
+ The local stylesheet owns resume layout, nested navigation, view visibility,
195
+ and print overrides; shared component appearance comes from the library.
185
196
  Disclosure buttons keep `aria-expanded` synchronized with their visible details.
186
197
 
187
198
  ### Shared CSS embedding
188
199
 
189
200
  Static exports embed the pinned library's public `styles/tokens.css`,
190
201
  `styles/base.css`, `styles/components/button.css`, `styles/components/tag.css`,
191
- and `styles/components/side-nav.css`, in that order, followed by `style.css`.
202
+ `styles/components/list.css`, `styles/components/separator.css`,
203
+ `styles/components/side-nav.css`, and `styles/components/gallery.css`,
204
+ in that order, followed by `style.css`.
192
205
  The base sheet retains element resets, selection, table, and inline-code styles;
193
206
  tokens retain both light and dark palettes. Unused component sheets are not embedded.
194
- Resume layout, print overrides, galleries, and interactions remain application-owned.
207
+ Resume layout, print overrides, and interactions remain application-owned.
208
+ Local gallery compatibility styles preserve uncropped images, 6px corners,
209
+ overlay borders, persistent caption colors, and the existing dark surfaces.
210
+ The lightbox retains its resume-specific dimensions, backdrop, SVG container,
211
+ navigation controls, project metadata, and `.active` state adapter. Shared
212
+ lists retain resume spacing and print colors. No library upgrade is required.
195
213
 
196
214
  Stylesheets resolve through Node's package exports, including installed local
197
215
  directory dependencies and npm links with their own dependencies installed.
package/helpers/css.js CHANGED
@@ -8,7 +8,10 @@ const stylesheets = [
8
8
  'styles/base.css',
9
9
  'styles/components/button.css',
10
10
  'styles/components/tag.css',
11
+ 'styles/components/list.css',
12
+ 'styles/components/separator.css',
11
13
  'styles/components/side-nav.css',
14
+ 'styles/components/gallery.css',
12
15
  ];
13
16
 
14
17
  export function sharedCss() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jsonresume-theme-wintermuted",
3
- "version": "0.1.3",
3
+ "version": "0.1.5",
4
4
  "description": "Wintermuted JSON Resume theme extracted from the CV project.",
5
5
  "type": "module",
6
6
  "main": "./index.js",
@@ -45,7 +45,7 @@
45
45
  "@playwright/test": "1.58.2"
46
46
  },
47
47
  "dependencies": {
48
- "@wintermuted/ui-theme": "0.21.4",
48
+ "@wintermuted/ui-theme": "https://github.com/wintermuted/wintermuted-ui/releases/download/ui-theme%402.2.1/wintermuted-ui-theme-2.2.1.tgz",
49
49
  "handlebars": "^4.7.8"
50
50
  }
51
51
  }
@@ -37,26 +37,26 @@
37
37
  <button class="wm-btn wm-btn-expand expand-toggle" aria-expanded="false" aria-label="Expand details" type="button">Show details<span class="toggle-meta">{{{projectMetaSummary this}}}</span></button>
38
38
  <div class="detail-content">
39
39
  {{#if images.length}}
40
- <div class="project-gallery">
40
+ <div class="wm-gallery project-gallery">
41
41
  {{#each images}}
42
- <figure class="project-screenshot">
42
+ <figure class="wm-gallery-item wm-gallery-item-figure project-screenshot">
43
43
  <img src="{{assetSrc src}}" alt="{{ alt }}" loading="lazy" />
44
44
  {{#if caption}}<figcaption>{{ caption }}</figcaption>{{/if}}
45
45
  </figure>
46
46
  {{/each}}
47
47
  {{#each diagrams}}
48
- <figure class="project-diagram">
49
- <pre class="mermaid">{{ definition }}</pre>
48
+ <figure class="wm-gallery-item wm-gallery-item-figure wm-gallery-item-diagram project-diagram">
49
+ <pre class="wm-mermaid mermaid">{{ definition }}</pre>
50
50
  {{#if title}}<figcaption>{{ title }}</figcaption>{{/if}}
51
51
  </figure>
52
52
  {{/each}}
53
53
  </div>
54
54
  {{else}}
55
55
  {{#if diagrams.length}}
56
- <div class="project-gallery">
56
+ <div class="wm-gallery project-gallery">
57
57
  {{#each diagrams}}
58
- <figure class="project-diagram">
59
- <pre class="mermaid">{{ definition }}</pre>
58
+ <figure class="wm-gallery-item wm-gallery-item-figure wm-gallery-item-diagram project-diagram">
59
+ <pre class="wm-mermaid mermaid">{{ definition }}</pre>
60
60
  {{#if title}}<figcaption>{{ title }}</figcaption>{{/if}}
61
61
  </figure>
62
62
  {{/each}}
@@ -65,7 +65,7 @@
65
65
  {{/if}}
66
66
 
67
67
  {{#if highlights.length}}
68
- <ul class="highlights">
68
+ <ul class="wm-list highlights">
69
69
  {{#each highlights}}
70
70
  <li>{{ this }}</li>
71
71
  {{/each}}
@@ -107,26 +107,26 @@
107
107
  <button class="wm-btn wm-btn-expand expand-toggle" aria-expanded="false" aria-label="Expand details" type="button">Show details<span class="toggle-meta">{{{projectMetaSummary this}}}</span></button>
108
108
  <div class="detail-content">
109
109
  {{#if images.length}}
110
- <div class="project-gallery">
110
+ <div class="wm-gallery project-gallery">
111
111
  {{#each images}}
112
- <figure class="project-screenshot">
112
+ <figure class="wm-gallery-item wm-gallery-item-figure project-screenshot">
113
113
  <img src="{{assetSrc src}}" alt="{{ alt }}" loading="lazy" />
114
114
  {{#if caption}}<figcaption>{{ caption }}</figcaption>{{/if}}
115
115
  </figure>
116
116
  {{/each}}
117
117
  {{#each diagrams}}
118
- <figure class="project-diagram">
119
- <pre class="mermaid">{{ definition }}</pre>
118
+ <figure class="wm-gallery-item wm-gallery-item-figure wm-gallery-item-diagram project-diagram">
119
+ <pre class="wm-mermaid mermaid">{{ definition }}</pre>
120
120
  {{#if title}}<figcaption>{{ title }}</figcaption>{{/if}}
121
121
  </figure>
122
122
  {{/each}}
123
123
  </div>
124
124
  {{else}}
125
125
  {{#if diagrams.length}}
126
- <div class="project-gallery">
126
+ <div class="wm-gallery project-gallery">
127
127
  {{#each diagrams}}
128
- <figure class="project-diagram">
129
- <pre class="mermaid">{{ definition }}</pre>
128
+ <figure class="wm-gallery-item wm-gallery-item-figure wm-gallery-item-diagram project-diagram">
129
+ <pre class="wm-mermaid mermaid">{{ definition }}</pre>
130
130
  {{#if title}}<figcaption>{{ title }}</figcaption>{{/if}}
131
131
  </figure>
132
132
  {{/each}}
@@ -135,7 +135,7 @@
135
135
  {{/if}}
136
136
 
137
137
  {{#if highlights.length}}
138
- <ul class="highlights">
138
+ <ul class="wm-list highlights">
139
139
  {{#each highlights}}
140
140
  <li>{{ this }}</li>
141
141
  {{/each}}
@@ -157,19 +157,19 @@
157
157
  </section>
158
158
 
159
159
  <!-- Lightbox overlay for project screenshots -->
160
- <div class="lightbox-overlay" id="lightbox-overlay" role="dialog" aria-modal="true" aria-label="Image preview">
160
+ <div class="wm-gallery-lightbox-overlay lightbox-overlay" id="lightbox-overlay" role="dialog" aria-modal="true" aria-label="Image preview">
161
161
  <div class="lightbox-header" id="lightbox-header">
162
162
  <span class="lightbox-project-name" id="lightbox-project-name"></span>
163
163
  <span class="lightbox-project-date" id="lightbox-project-date"></span>
164
164
  </div>
165
- <button class="lightbox-close" aria-label="Close preview">&times;</button>
165
+ <button class="wm-gallery-lightbox-close lightbox-close" aria-label="Close preview">&times;</button>
166
166
  <button class="lightbox-nav lightbox-prev" id="lightbox-prev" aria-label="Previous image">
167
167
  <span class="lightbox-nav-icon lightbox-nav-icon--prev" aria-hidden="true"></span>
168
168
  </button>
169
169
  <button class="lightbox-nav lightbox-next" id="lightbox-next" aria-label="Next image">
170
170
  <span class="lightbox-nav-icon lightbox-nav-icon--next" aria-hidden="true"></span>
171
171
  </button>
172
- <img class="lightbox-img" id="lightbox-img" src="" alt="" />
172
+ <img class="wm-gallery-lightbox-img lightbox-img" id="lightbox-img" src="" alt="" />
173
173
  <div class="lightbox-svg" id="lightbox-svg"></div>
174
174
  <p class="lightbox-caption" id="lightbox-caption"></p>
175
175
  <span class="lightbox-counter" id="lightbox-counter"></span>
@@ -17,7 +17,7 @@
17
17
  <button class="wm-btn wm-btn-expand expand-toggle" aria-expanded="false" aria-label="Expand details" type="button">Show details</button>
18
18
  <div class="detail-content">
19
19
  {{#if highlights.length}}
20
- <ul class="highlights">
20
+ <ul class="wm-list highlights">
21
21
  {{#each highlights}}
22
22
  <li>{{ this }}</li>
23
23
  {{/each}}
package/partials/work.hbs CHANGED
@@ -32,7 +32,7 @@
32
32
  <button class="wm-btn wm-btn-expand expand-toggle" aria-expanded="false" aria-label="Expand details" type="button">Show details<span class="toggle-meta">{{{roleMetaSummary ../name startDate endDate @root.resume.projects keywords}}}</span></button>
33
33
  <div class="detail-content">
34
34
  {{#if highlights.length}}
35
- <ul class="highlights">
35
+ <ul class="wm-list highlights">
36
36
  {{#each highlights}}
37
37
  <li>{{{linkProjects this @root.resume.projects}}}</li>
38
38
  {{/each}}
@@ -64,7 +64,7 @@
64
64
  </div>
65
65
  {{/each}}
66
66
  </div>
67
- {{#unless @last}}<hr class="separator" />{{/unless}}
67
+ {{#unless @last}}<hr class="wm-separator separator" />{{/unless}}
68
68
 
69
69
  {{/each}}
70
70
  {{/nestedWork}}
package/style.css CHANGED
@@ -430,29 +430,8 @@ p {
430
430
 
431
431
  /* --- Highlights (bullet lists) --- */
432
432
  .highlights {
433
- list-style: none;
434
- padding-left: 0;
435
433
  margin: 0.4rem 0 0.6rem;
436
- font-size: 0.88rem;
437
434
  color: var(--color-text-secondary);
438
- line-height: 1.6;
439
- }
440
-
441
- .highlights li {
442
- position: relative;
443
- padding-left: 1rem;
444
- margin-bottom: 0.35rem;
445
- }
446
-
447
- .highlights li::before {
448
- content: "";
449
- position: absolute;
450
- left: 0;
451
- top: 0.6em;
452
- width: 4px;
453
- height: 4px;
454
- background: var(--color-text-faint);
455
- border-radius: 50%;
456
435
  }
457
436
 
458
437
  /* --- Keywords (tag pills) --- */
@@ -594,13 +573,6 @@ ul.role-projects-list li a.project-ref:hover {
594
573
  margin: 0;
595
574
  }
596
575
 
597
- /* --- Separator --- */
598
- .separator {
599
- border: none;
600
- border-top: 1px solid var(--color-border);
601
- margin: 1.25rem 0;
602
- }
603
-
604
576
  /* --- Layout with Side Navigation --- */
605
577
  .layout {
606
578
  display: flex;
@@ -889,26 +861,20 @@ ul.role-projects-list li a.project-ref:hover {
889
861
 
890
862
  /* --- Project Screenshot Gallery --- */
891
863
  .project-gallery {
892
- display: grid;
893
- grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
894
- gap: 0.75rem;
895
864
  margin: 0.75rem 0;
896
865
  }
897
866
 
898
- .project-screenshot {
899
- position: relative;
867
+ /* Keep the resume's uncropped media, overlay borders and dark surfaces. */
868
+ .project-screenshot,
869
+ .project-diagram {
900
870
  border-radius: 6px;
901
- overflow: hidden;
902
871
  border: none;
903
872
  box-shadow: none;
904
873
  background: var(--color-tag-bg);
905
- display: flex;
906
- flex-direction: column;
907
- transition: box-shadow 0.2s ease, transform 0.15s ease;
908
- cursor: pointer;
909
874
  }
910
875
 
911
- .project-screenshot::after {
876
+ .project-screenshot::after,
877
+ .project-diagram::after {
912
878
  content: "";
913
879
  position: absolute;
914
880
  inset: 0;
@@ -918,101 +884,43 @@ ul.role-projects-list li a.project-ref:hover {
918
884
  z-index: 2;
919
885
  }
920
886
 
921
- .project-screenshot:hover {
887
+ .project-screenshot:hover,
888
+ .project-diagram:hover {
922
889
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
923
- transform: translateY(-2px);
924
890
  }
925
891
 
926
- [data-theme="dark"] .project-screenshot:hover {
892
+ [data-theme="dark"] .project-screenshot:hover,
893
+ [data-theme="dark"] .project-diagram:hover {
927
894
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
928
895
  }
929
896
 
930
897
  .project-screenshot img {
931
- display: block;
932
- width: 100%;
933
- height: auto;
934
- transition: opacity 0.2s ease;
898
+ aspect-ratio: auto;
899
+ object-fit: fill;
935
900
  }
936
901
 
937
- .project-screenshot figcaption {
938
- font-size: 0.75rem;
902
+ .project-screenshot figcaption,
903
+ .project-diagram figcaption {
939
904
  color: var(--color-text-muted);
940
- padding: 0.4rem 0.6rem;
941
- line-height: 1.4;
942
- border-top: 1px solid var(--color-border);
905
+ border-top-color: var(--color-border);
906
+ background: transparent;
943
907
  }
944
908
 
945
909
  /* --- Project Mermaid Diagrams (inside .project-gallery grid) --- */
946
- .project-diagram {
947
- position: relative;
948
- border-radius: 6px;
949
- overflow: hidden;
950
- border: none;
951
- box-shadow: none;
952
- background: var(--color-tag-bg);
953
- display: flex;
954
- flex-direction: column;
955
- transition: box-shadow 0.2s ease, transform 0.15s ease;
956
- cursor: pointer;
957
- }
958
-
959
- .project-diagram::after {
960
- content: "";
961
- position: absolute;
962
- inset: 0;
963
- border: 1px solid var(--color-border);
964
- border-radius: inherit;
965
- pointer-events: none;
966
- z-index: 2;
967
- }
968
-
969
- .project-diagram:hover {
970
- box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
971
- transform: translateY(-2px);
972
- }
973
-
974
- [data-theme="dark"] .project-diagram:hover {
975
- box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
976
- }
977
-
978
910
  .project-diagram figcaption {
979
- font-size: 0.75rem;
980
911
  font-weight: 500;
981
- color: var(--color-text-muted);
982
- padding: 0.4rem 0.6rem;
983
- border-top: 1px solid var(--color-border);
912
+ line-height: inherit;
984
913
  }
985
914
 
986
915
  .project-diagram .mermaid {
987
- padding: 0.5rem;
988
- display: flex;
989
- align-items: center;
990
- justify-content: center;
991
- flex: 1;
992
- aspect-ratio: 16 / 10;
993
- overflow: hidden;
994
- }
995
-
996
- .project-diagram .mermaid svg {
997
- max-width: 100%;
998
- max-height: 100%;
999
- height: auto;
916
+ background: transparent;
1000
917
  }
1001
918
 
1002
919
  /* --- Lightbox Overlay --- */
1003
920
  .lightbox-overlay {
1004
- position: fixed;
1005
- inset: 0;
1006
- z-index: 1000;
1007
- display: flex;
1008
921
  flex-direction: column;
1009
- align-items: center;
1010
- justify-content: center;
1011
922
  background: rgba(0, 0, 0, 0.85);
1012
- backdrop-filter: blur(6px);
1013
- opacity: 0;
1014
- visibility: hidden;
1015
- transition: opacity 0.25s ease, visibility 0.25s ease;
923
+ padding: 0;
1016
924
  }
1017
925
 
1018
926
  .lightbox-overlay.active {
@@ -1020,30 +928,12 @@ ul.role-projects-list li a.project-ref:hover {
1020
928
  visibility: visible;
1021
929
  }
1022
930
 
1023
- .lightbox-close {
1024
- position: absolute;
1025
- top: 1.25rem;
1026
- right: 1.5rem;
1027
- background: none;
1028
- border: none;
1029
- color: #fff;
1030
- font-size: 2rem;
1031
- cursor: pointer;
1032
- line-height: 1;
1033
- opacity: 0.7;
1034
- transition: opacity 0.15s ease;
1035
- }
1036
-
1037
- .lightbox-close:hover {
1038
- opacity: 1;
1039
- }
1040
-
1041
931
  .lightbox-img {
1042
932
  max-width: 90vw;
1043
933
  max-height: 80vh;
1044
934
  border-radius: var(--wm-radius-base, 8px);
1045
935
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
1046
- object-fit: contain;
936
+ border: none;
1047
937
  }
1048
938
 
1049
939
  .lightbox-svg {
@@ -1283,6 +1173,10 @@ ul.role-projects-list li a.project-ref:hover {
1283
1173
  background: #000;
1284
1174
  }
1285
1175
 
1176
+ .separator {
1177
+ border-top-color: var(--color-border);
1178
+ }
1179
+
1286
1180
  .work-role,
1287
1181
  .work-group,
1288
1182
  .education-entry,