@gcforms/editor 1.0.19 → 1.0.20
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/CHANGELOG.md +4 -0
- package/package.json +1 -1
- package/src/i18n/en.json +1 -1
- package/src/i18n/fr.json +1 -1
- package/src/plugins/CollapsibleExtension/Collapsible.css +20 -42
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,10 @@ All notable changes to this project will be documented in this file.
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
|
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
|
8
|
+
## [1.0.20] - 2026-08-19
|
|
9
|
+
|
|
10
|
+
- Updste collapsible / details extension styles
|
|
11
|
+
|
|
8
12
|
## [1.0.19] - 2026-08-17
|
|
9
13
|
|
|
10
14
|
- Add collapsible extension
|
package/package.json
CHANGED
package/src/i18n/en.json
CHANGED
package/src/i18n/fr.json
CHANGED
|
@@ -23,6 +23,6 @@
|
|
|
23
23
|
"tooltipOutdent": "Suppression d'indentation",
|
|
24
24
|
"indent": "Indentation",
|
|
25
25
|
"outdent": "Suppression d'indentation",
|
|
26
|
-
"tooltipInsertCollapsible": "
|
|
26
|
+
"tooltipInsertCollapsible": "Composant détails",
|
|
27
27
|
"insertCollapsible": "Insérer un conteneur réductible"
|
|
28
28
|
}
|
|
@@ -8,19 +8,20 @@
|
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
10
|
.Collapsible__container {
|
|
11
|
-
background: #fcfcfc;
|
|
12
|
-
border: 1px solid #eee;
|
|
13
|
-
border-radius: 10px;
|
|
14
11
|
margin-bottom: 8px;
|
|
15
12
|
}
|
|
16
13
|
|
|
17
14
|
.Collapsible__title {
|
|
18
15
|
cursor: pointer;
|
|
19
|
-
padding: 5px 5px 5px
|
|
16
|
+
padding: 5px 5px 5px 40px;
|
|
20
17
|
position: relative;
|
|
21
|
-
font-weight: bold;
|
|
22
18
|
list-style: none;
|
|
23
19
|
outline: none;
|
|
20
|
+
font: var(--gcds-details-font-desktop);
|
|
21
|
+
text-decoration: underline;
|
|
22
|
+
color: var(--gcds-details-default-text);
|
|
23
|
+
text-decoration-thickness: var(--gcds-details-default-decoration-thickness);
|
|
24
|
+
text-underline-offset: var(--gcds-details-summary-underline-offset);
|
|
24
25
|
}
|
|
25
26
|
|
|
26
27
|
/* Lexical titles contain a paragraph. Remove its browser margin so the
|
|
@@ -43,65 +44,42 @@
|
|
|
43
44
|
}
|
|
44
45
|
|
|
45
46
|
.Collapsible__title:before {
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
border-
|
|
47
|
+
/* CSS triangle */
|
|
48
|
+
width: 0;
|
|
49
|
+
height: 0;
|
|
50
|
+
border-block: var(--gcds-details-summary-arrow-border-top-bottom) solid transparent;
|
|
51
|
+
border-inline-start: var(--gcds-details-summary-arrow-border-left) solid
|
|
52
|
+
var(--gcds-details-default-text);
|
|
50
53
|
display: block;
|
|
51
54
|
content: "";
|
|
52
55
|
position: absolute;
|
|
53
|
-
left:
|
|
56
|
+
left: var(--gcds-details-summary-arrow-left);
|
|
54
57
|
top: 50%;
|
|
55
|
-
transform-origin: 2px 50%;
|
|
56
58
|
transform: translateY(-50%);
|
|
57
59
|
transition: transform 0.3s ease;
|
|
58
60
|
}
|
|
59
61
|
|
|
60
62
|
.Collapsible__container[open] > .Collapsible__title:before {
|
|
63
|
+
/* CSS triangle */
|
|
61
64
|
transform: translateY(-50%) rotate(90deg);
|
|
62
65
|
}
|
|
63
66
|
|
|
64
67
|
.Collapsible__content {
|
|
68
|
+
color: var(--gcds-text-role-primary);
|
|
69
|
+
font: var(--gcds-text-size-body-desktop);
|
|
65
70
|
padding: 10px 5px 5px 20px;
|
|
66
71
|
box-sizing: border-box;
|
|
72
|
+
border-left: 5px solid var(--gcds-details-panel-border-color);
|
|
67
73
|
interpolate-size: allow-keywords;
|
|
68
74
|
overflow: hidden;
|
|
69
75
|
transition:
|
|
70
76
|
height 0.3s ease-out,
|
|
71
77
|
opacity 0.3s ease-out,
|
|
72
78
|
visibility 0.3s ease-out allow-discrete;
|
|
79
|
+
margin-left: 10px;
|
|
80
|
+
min-height: 40px;
|
|
73
81
|
}
|
|
74
82
|
|
|
75
|
-
/* Chrome uses div with hidden attribute — override display to allow animation */
|
|
76
83
|
.Collapsible__content[hidden] {
|
|
77
|
-
|
|
78
|
-
display: block;
|
|
79
|
-
height: 0;
|
|
80
|
-
opacity: 0;
|
|
81
|
-
visibility: hidden;
|
|
82
|
-
pointer-events: none;
|
|
83
|
-
transition:
|
|
84
|
-
height 0.3s ease-in,
|
|
85
|
-
opacity 0.3s ease-in,
|
|
86
|
-
visibility 0.3s ease-in allow-discrete;
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
/* Non-Chrome uses <details> — animate via ::details-content */
|
|
90
|
-
details.Collapsible__container::details-content {
|
|
91
|
-
interpolate-size: allow-keywords;
|
|
92
|
-
overflow: hidden;
|
|
93
|
-
transition:
|
|
94
|
-
height 0.3s ease-out,
|
|
95
|
-
opacity 0.3s ease-out,
|
|
96
|
-
content-visibility 0.3s ease-out allow-discrete;
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
details.Collapsible__container:not([open])::details-content {
|
|
100
|
-
height: 0;
|
|
101
|
-
opacity: 0;
|
|
102
|
-
content-visibility: hidden;
|
|
103
|
-
transition:
|
|
104
|
-
height 0.3s ease-in,
|
|
105
|
-
opacity 0.3s ease-in,
|
|
106
|
-
content-visibility 0.3s ease-in allow-discrete;
|
|
84
|
+
border-left-color: transparent;
|
|
107
85
|
}
|