@canopy-iiif/app 1.3.6 → 1.4.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.
@@ -1,6 +1,6 @@
1
1
  code {
2
2
  font-family: var(--font-mono);
3
- font-size: 0.9222rem;
3
+ font-size: 0.9222em;
4
4
  }
5
5
 
6
6
  hr {
@@ -0,0 +1,146 @@
1
+ // Map styles reuse the global gray/brand scales so project themes can override tokens easily.
2
+ .canopy-map {
3
+ position: relative;
4
+ width: 100%;
5
+ min-height: 320px;
6
+ border-radius: 0.5rem;
7
+ overflow: hidden;
8
+ background-color: var(--color-gray-100);
9
+
10
+ .leaflet-control-attribution {
11
+ display: none;
12
+ }
13
+
14
+ .leaflet-container {
15
+ font-family: inherit;
16
+ }
17
+
18
+ .leaflet-popup-content {
19
+ margin: 1rem;
20
+ }
21
+
22
+ .leaflet-popup-close-button {
23
+ display: none;
24
+ }
25
+
26
+ &__canvas {
27
+ width: 100%;
28
+ height: 100%;
29
+ min-height: inherit;
30
+ }
31
+
32
+ &__status {
33
+ position: absolute;
34
+ top: 0.75rem;
35
+ left: 0.75rem;
36
+ z-index: 2;
37
+ padding: 0.5rem 0.75rem;
38
+ border-radius: 999px;
39
+ background-color: rgba(15, 23, 42, 0.85);
40
+ color: var(--color-gray-50);
41
+ font-size: 0.875rem;
42
+ line-height: 1.25rem;
43
+ box-shadow: 0 4px 12px rgba(15, 23, 42, 0.3);
44
+ }
45
+
46
+ &__popup {
47
+ display: flex;
48
+ flex-direction: column;
49
+ gap: 0.5rem;
50
+ min-width: 220px;
51
+
52
+ &-media {
53
+ width: 100%;
54
+ border-radius: 0.25rem;
55
+ overflow: hidden;
56
+
57
+ img {
58
+ display: block;
59
+ width: 100%;
60
+ height: auto;
61
+ }
62
+ }
63
+
64
+ &-title {
65
+ display: block;
66
+ text-decoration: none;
67
+ color: inherit;
68
+ font-size: 1rem;
69
+ font-weight: 600;
70
+ margin: 0.38rem 0;
71
+ }
72
+
73
+ &-summary {
74
+ margin: 0 !important;
75
+ font-size: 0.9222rem;
76
+ line-height: 1.4;
77
+ color: var(--color-gray-700);
78
+ }
79
+
80
+ &-link {
81
+ display: inline-flex;
82
+ gap: 0.25rem;
83
+ align-items: center;
84
+ color: var(--color-accent-600);
85
+ font-weight: 600;
86
+ text-decoration: none;
87
+ }
88
+ }
89
+ .leaflet-marker-icon#{&}__marker {
90
+ background: transparent;
91
+ border: none;
92
+ width: auto;
93
+ height: auto;
94
+ }
95
+
96
+ .leaflet-popup {
97
+ padding: 1rem 1rem 0;
98
+ }
99
+
100
+ &__marker-thumb,
101
+ &__marker-solid {
102
+ width: 56px;
103
+ height: 56px;
104
+ border-radius: 999px;
105
+ border: 2px solid var(--color-gray-50);
106
+ box-shadow: 0 4px 10px rgba(15, 23, 42, 0.35);
107
+ overflow: hidden;
108
+ display: block;
109
+ background: var(--color-gray-900);
110
+ }
111
+
112
+ &__marker-thumb {
113
+ img {
114
+ display: block;
115
+ width: 100%;
116
+ height: 100%;
117
+ object-fit: cover;
118
+ }
119
+ }
120
+
121
+ &__marker-solid {
122
+ display: flex;
123
+ align-items: center;
124
+ justify-content: center;
125
+ background: var(--color-accent-600);
126
+ }
127
+
128
+ &__cluster-wrapper {
129
+ background: none;
130
+ border: none;
131
+ }
132
+
133
+ &__cluster {
134
+ width: 56px;
135
+ height: 56px;
136
+ border-radius: 999px;
137
+ background: var(--color-accent-600);
138
+ color: var(--color-gray-50);
139
+ font-weight: 600;
140
+ display: flex;
141
+ align-items: center;
142
+ justify-content: center;
143
+ box-shadow: 0 4px 12px rgba(15, 23, 42, 0.35);
144
+ border: 2px solid var(--color-gray-50);
145
+ }
146
+ }
@@ -14,3 +14,4 @@
14
14
  @use "./diagram";
15
15
  @use "./work";
16
16
  @use "./timeline";
17
+ @use "./map";
@@ -77,7 +77,7 @@
77
77
  }
78
78
  code {
79
79
  font-family: var(--font-mono);
80
- font-size: 0.9222rem;
80
+ font-size: 0.9222em;
81
81
  }
82
82
 
83
83
  hr {
@@ -2458,6 +2458,131 @@ html.dark .canopy-iiif-image .clover-iiif-image-openseadragon .clover-iiif-image
2458
2458
  padding: 1rem 0 0;
2459
2459
  }
2460
2460
  }
2461
+ .canopy-map {
2462
+ position: relative;
2463
+ width: 100%;
2464
+ min-height: 320px;
2465
+ border-radius: 0.5rem;
2466
+ overflow: hidden;
2467
+ background-color: var(--color-gray-100);
2468
+ }
2469
+ .canopy-map .leaflet-control-attribution {
2470
+ display: none;
2471
+ }
2472
+ .canopy-map .leaflet-container {
2473
+ font-family: inherit;
2474
+ }
2475
+ .canopy-map .leaflet-popup-content {
2476
+ margin: 1rem;
2477
+ }
2478
+ .canopy-map .leaflet-popup-close-button {
2479
+ display: none;
2480
+ }
2481
+ .canopy-map__canvas {
2482
+ width: 100%;
2483
+ height: 100%;
2484
+ min-height: inherit;
2485
+ }
2486
+ .canopy-map__status {
2487
+ position: absolute;
2488
+ top: 0.75rem;
2489
+ left: 0.75rem;
2490
+ z-index: 2;
2491
+ padding: 0.5rem 0.75rem;
2492
+ border-radius: 999px;
2493
+ background-color: rgba(15, 23, 42, 0.85);
2494
+ color: var(--color-gray-50);
2495
+ font-size: 0.875rem;
2496
+ line-height: 1.25rem;
2497
+ box-shadow: 0 4px 12px rgba(15, 23, 42, 0.3);
2498
+ }
2499
+ .canopy-map__popup {
2500
+ display: flex;
2501
+ flex-direction: column;
2502
+ gap: 0.5rem;
2503
+ min-width: 220px;
2504
+ }
2505
+ .canopy-map__popup-media {
2506
+ width: 100%;
2507
+ border-radius: 0.25rem;
2508
+ overflow: hidden;
2509
+ }
2510
+ .canopy-map__popup-media img {
2511
+ display: block;
2512
+ width: 100%;
2513
+ height: auto;
2514
+ }
2515
+ .canopy-map__popup-title {
2516
+ display: block;
2517
+ text-decoration: none;
2518
+ color: inherit;
2519
+ font-size: 1rem;
2520
+ font-weight: 600;
2521
+ margin: 0.38rem 0;
2522
+ }
2523
+ .canopy-map__popup-summary {
2524
+ margin: 0 !important;
2525
+ font-size: 0.9222rem;
2526
+ line-height: 1.4;
2527
+ color: var(--color-gray-700);
2528
+ }
2529
+ .canopy-map__popup-link {
2530
+ display: inline-flex;
2531
+ gap: 0.25rem;
2532
+ align-items: center;
2533
+ color: var(--color-accent-600);
2534
+ font-weight: 600;
2535
+ text-decoration: none;
2536
+ }
2537
+ .canopy-map .leaflet-marker-icon.canopy-map__marker {
2538
+ background: transparent;
2539
+ border: none;
2540
+ width: auto;
2541
+ height: auto;
2542
+ }
2543
+ .canopy-map .leaflet-popup {
2544
+ padding: 1rem 1rem 0;
2545
+ }
2546
+ .canopy-map__marker-thumb, .canopy-map__marker-solid {
2547
+ width: 56px;
2548
+ height: 56px;
2549
+ border-radius: 999px;
2550
+ border: 2px solid var(--color-gray-50);
2551
+ box-shadow: 0 4px 10px rgba(15, 23, 42, 0.35);
2552
+ overflow: hidden;
2553
+ display: block;
2554
+ background: var(--color-gray-900);
2555
+ }
2556
+ .canopy-map__marker-thumb img {
2557
+ display: block;
2558
+ width: 100%;
2559
+ height: 100%;
2560
+ object-fit: cover;
2561
+ }
2562
+ .canopy-map__marker-solid {
2563
+ display: flex;
2564
+ align-items: center;
2565
+ justify-content: center;
2566
+ background: var(--color-accent-600);
2567
+ }
2568
+ .canopy-map__cluster-wrapper {
2569
+ background: none;
2570
+ border: none;
2571
+ }
2572
+ .canopy-map__cluster {
2573
+ width: 56px;
2574
+ height: 56px;
2575
+ border-radius: 999px;
2576
+ background: var(--color-accent-600);
2577
+ color: var(--color-gray-50);
2578
+ font-weight: 600;
2579
+ display: flex;
2580
+ align-items: center;
2581
+ justify-content: center;
2582
+ box-shadow: 0 4px 12px rgba(15, 23, 42, 0.35);
2583
+ border: 2px solid var(--color-gray-50);
2584
+ }
2585
+
2461
2586
  /**
2462
2587
  * Define source files for utility classes
2463
2588
  */