@riebeckite/plugin-lightbox 0.0.3 → 0.0.6
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 +1 -1
- package/package.json +2 -2
- package/style.css +89 -89
package/README.md
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@riebeckite/plugin-lightbox",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.6",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"./style.css": "./style.css"
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@riebeckite/core": "0.0.
|
|
24
|
+
"@riebeckite/core": "0.0.6"
|
|
25
25
|
},
|
|
26
26
|
"publishConfig": {
|
|
27
27
|
"access": "public"
|
package/style.css
CHANGED
|
@@ -1,89 +1,89 @@
|
|
|
1
|
-
.rr-lightbox-trigger {
|
|
2
|
-
display: inline-block;
|
|
3
|
-
cursor: zoom-in;
|
|
4
|
-
outline-offset: 4px;
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
.rr-lightbox-trigger:focus-visible {
|
|
8
|
-
outline: 2px solid var(--rb-color-accent, #686868);
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
.rr-lightbox-image {
|
|
12
|
-
display: block;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
.rr-lightbox[hidden] {
|
|
16
|
-
display: none;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
.rr-lightbox {
|
|
20
|
-
position: fixed;
|
|
21
|
-
inset: 0;
|
|
22
|
-
z-index: 1000;
|
|
23
|
-
display: grid;
|
|
24
|
-
place-items: center;
|
|
25
|
-
padding: 24px;
|
|
26
|
-
background: color-mix(in srgb, var(--rb-color-ink, #000000) 88%, transparent);
|
|
27
|
-
color: var(--rb-color-paper, #ffffff);
|
|
28
|
-
cursor: zoom-out;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
.rr-lightbox__frame {
|
|
32
|
-
display: grid;
|
|
33
|
-
gap: 16px;
|
|
34
|
-
max-width: min(1120px, 100%);
|
|
35
|
-
max-height: calc(100vh - 48px);
|
|
36
|
-
margin: 0;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
.rr-lightbox__image {
|
|
40
|
-
max-width: 100%;
|
|
41
|
-
max-height: calc(100vh - 120px);
|
|
42
|
-
object-fit: contain;
|
|
43
|
-
border: 1px solid var(--rb-color-paper, #ffffff);
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
.rr-lightbox__caption {
|
|
47
|
-
max-width: 72ch;
|
|
48
|
-
font-size: 0.875rem;
|
|
49
|
-
line-height: 1.7;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
.rr-lightbox__close {
|
|
53
|
-
position: fixed;
|
|
54
|
-
top: 16px;
|
|
55
|
-
right: 16px;
|
|
56
|
-
width: 48px;
|
|
57
|
-
height: 48px;
|
|
58
|
-
border: 1px solid var(--rb-color-paper, #ffffff);
|
|
59
|
-
border-radius: 0;
|
|
60
|
-
background: var(--rb-color-ink, #000000);
|
|
61
|
-
color: var(--rb-color-paper, #ffffff);
|
|
62
|
-
font: inherit;
|
|
63
|
-
font-size: 24px;
|
|
64
|
-
line-height: 1;
|
|
65
|
-
cursor: pointer;
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
.rr-lightbox__close:hover,
|
|
69
|
-
.rr-lightbox__close:focus-visible {
|
|
70
|
-
border-color: var(--rb-color-accent, #686868);
|
|
71
|
-
color: var(--rb-color-accent, #686868);
|
|
72
|
-
outline: none;
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
html[data-lightbox-open="true"] {
|
|
76
|
-
overflow: hidden;
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
@media (prefers-reduced-motion: no-preference) {
|
|
80
|
-
.rr-lightbox {
|
|
81
|
-
animation: rr-lightbox-fade-in 120ms ease-out;
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
@keyframes rr-lightbox-fade-in {
|
|
86
|
-
from {
|
|
87
|
-
opacity: 0;
|
|
88
|
-
}
|
|
89
|
-
}
|
|
1
|
+
.rr-lightbox-trigger {
|
|
2
|
+
display: inline-block;
|
|
3
|
+
cursor: zoom-in;
|
|
4
|
+
outline-offset: 4px;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
.rr-lightbox-trigger:focus-visible {
|
|
8
|
+
outline: 2px solid var(--rb-color-accent, #686868);
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.rr-lightbox-image {
|
|
12
|
+
display: block;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.rr-lightbox[hidden] {
|
|
16
|
+
display: none;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.rr-lightbox {
|
|
20
|
+
position: fixed;
|
|
21
|
+
inset: 0;
|
|
22
|
+
z-index: 1000;
|
|
23
|
+
display: grid;
|
|
24
|
+
place-items: center;
|
|
25
|
+
padding: 24px;
|
|
26
|
+
background: color-mix(in srgb, var(--rb-color-ink, #000000) 88%, transparent);
|
|
27
|
+
color: var(--rb-color-paper, #ffffff);
|
|
28
|
+
cursor: zoom-out;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.rr-lightbox__frame {
|
|
32
|
+
display: grid;
|
|
33
|
+
gap: 16px;
|
|
34
|
+
max-width: min(1120px, 100%);
|
|
35
|
+
max-height: calc(100vh - 48px);
|
|
36
|
+
margin: 0;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.rr-lightbox__image {
|
|
40
|
+
max-width: 100%;
|
|
41
|
+
max-height: calc(100vh - 120px);
|
|
42
|
+
object-fit: contain;
|
|
43
|
+
border: 1px solid var(--rb-color-paper, #ffffff);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.rr-lightbox__caption {
|
|
47
|
+
max-width: 72ch;
|
|
48
|
+
font-size: 0.875rem;
|
|
49
|
+
line-height: 1.7;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.rr-lightbox__close {
|
|
53
|
+
position: fixed;
|
|
54
|
+
top: 16px;
|
|
55
|
+
right: 16px;
|
|
56
|
+
width: 48px;
|
|
57
|
+
height: 48px;
|
|
58
|
+
border: 1px solid var(--rb-color-paper, #ffffff);
|
|
59
|
+
border-radius: 0;
|
|
60
|
+
background: var(--rb-color-ink, #000000);
|
|
61
|
+
color: var(--rb-color-paper, #ffffff);
|
|
62
|
+
font: inherit;
|
|
63
|
+
font-size: 24px;
|
|
64
|
+
line-height: 1;
|
|
65
|
+
cursor: pointer;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.rr-lightbox__close:hover,
|
|
69
|
+
.rr-lightbox__close:focus-visible {
|
|
70
|
+
border-color: var(--rb-color-accent, #686868);
|
|
71
|
+
color: var(--rb-color-accent, #686868);
|
|
72
|
+
outline: none;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
html[data-lightbox-open="true"] {
|
|
76
|
+
overflow: hidden;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
@media (prefers-reduced-motion: no-preference) {
|
|
80
|
+
.rr-lightbox {
|
|
81
|
+
animation: rr-lightbox-fade-in 120ms ease-out;
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
@keyframes rr-lightbox-fade-in {
|
|
86
|
+
from {
|
|
87
|
+
opacity: 0;
|
|
88
|
+
}
|
|
89
|
+
}
|