ode-csslib 4.2.7 → 4.2.8-develop-integration.202410231633

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/dist/version.txt CHANGED
@@ -1 +1 @@
1
- entcore-css-lib 11/10/2024 16:20:12
1
+ entcore-css-lib 23/10/2024 16:33:46
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ode-csslib",
3
- "version": "4.2.7",
3
+ "version": "4.2.8-develop-integration.202410231633",
4
4
  "description": "Edifice Legacy CSS framework",
5
5
  "repository": {
6
6
  "type": "git",
@@ -53,12 +53,21 @@ $block-disabled-color: $primary-lighter !default;
53
53
  $colorz: $cyan, $green, $yellow, $orange, $pink, $purple, $indigo;
54
54
 
55
55
  // MESSAGE FLASH
56
- $flash-red: #c74848;
57
- $flash-orange: #ff9057;
58
- $flash-green: #3cb371;
59
- $flash-blue: #2a9cc8;
60
- $flash-grey: #5b6472;
61
-
56
+ $flash-red: #FFECEE !default;
57
+ $flash-red-border: #FFADB9 !default;
58
+ $flash-red-badge: #FF3A55 !default;
59
+ $flash-orange: #FFEFE3 !default;
60
+ $flash-orange-border: #FFCBA0 !default;
61
+ $flash-orange-badge: #FF8D2E !default;
62
+ $flash-green: #E6F9F8 !default;
63
+ $flash-green-border: #B6EDE5 !default;
64
+ $flash-green-badge: #46BFAF !default;
65
+ $flash-blue: #E5F5FF !default;
66
+ $flash-blue-border: #B9E3F8 !default;
67
+ $flash-blue-badge: #2A9CC8 !default;
68
+ $flash-grey: #FAFAFA !default;
69
+ $flash-grey-border: #E4E4E4 !default;
70
+ $flash-grey-badge: #B0B0B0 !default;
62
71
  // SIZES
63
72
  $icon-list-size: 117px !default;
64
73
  $icon-list-padding: 7px !default;
@@ -0,0 +1,259 @@
1
+ .flashmsg {
2
+ border-radius: 8px 8px 8px 6px;
3
+ // box-shadow: COLOR -4px 0px, COLOR 0px 4px, COLOR -2px 2px 0 2px;
4
+
5
+ position: relative;
6
+ left: 4px;
7
+ bottom: 4px;
8
+
9
+ padding: 36px 24px 24px;
10
+ color: #4A4A4A;
11
+ margin: 32px 4px 36px 0;
12
+
13
+ display: grid;
14
+ grid-template-columns: 1fr auto;
15
+ // grid-template-rows: repeat(2, 1fr);
16
+ grid-column-gap: 12px;
17
+ grid-row-gap: 12px;
18
+
19
+
20
+
21
+
22
+ &:first-child {
23
+ margin-top: 32px
24
+ }
25
+ &:last-child {
26
+ margin-bottom: 28px;
27
+ }
28
+
29
+ div[bind-html] p {
30
+ margin-top: 0;
31
+ margin-bottom: 0;
32
+ }
33
+ div[bind-html]:first-of-type:last-of-type {
34
+ margin-bottom: 0;
35
+ }
36
+
37
+ font-size: 14px;
38
+ line-height: calc(22 / 14);
39
+
40
+ .flash-msg-collapsable-button {
41
+ grid-area: 2 / 2 / 3 / 3;
42
+ display: inline-block;
43
+ align-self: flex-end;
44
+ overflow: visible !important;
45
+
46
+ font-family: Arial, Helvetica, sans-serif;
47
+ font-weight: bold;
48
+
49
+ &::before {
50
+ content: '';
51
+ display: block;
52
+ position: absolute;
53
+ width: 64px;
54
+ height: 100%;
55
+ // background: linear-gradient(to right, rgba($flash-red, 0), rgba($flash-red, 0.5) 30%, rgba($flash-red, 0.8) 50%, rgba($flash-red, 0.95) 75%, $flash-red 100%);
56
+ left: -64px;
57
+ }
58
+
59
+ b {
60
+ padding: 4px 6px;
61
+ }
62
+ }
63
+ div.flash-msg-collapsable {
64
+ grid-area: 1 / 1 / 2 / 3;
65
+ }
66
+ div.flash-msg-collapsable.flash-msg-collapsable--collapsable.flash-msg-collapsable--collapsed > div {
67
+ text-overflow: ellipsis;
68
+ overflow: hidden;
69
+ line-clamp: 2;
70
+ -webkit-line-clamp: 2;
71
+ display: -webkit-box;
72
+ box-orient: vertical;
73
+ -webkit-box-orient: vertical;
74
+ }
75
+
76
+ &::before {
77
+ content: '';
78
+ position: absolute;
79
+ display: block;
80
+ top: 4px-52px+24px + 8px;
81
+ left: 4px+24px;
82
+ width: 36px;
83
+ height: 36px;
84
+ border-radius: 100%;
85
+ border-width: 4px;
86
+ border-style: solid;
87
+ }
88
+
89
+ .flashmsg-icon {
90
+ content: '';
91
+ position: absolute;
92
+ display: block;
93
+ top: 4px-52px+24px + 8px + 10px;
94
+ left: 4px+24px + 10px;
95
+ width: 24px;
96
+ height: 24px;
97
+ color: #fff;
98
+ }
99
+
100
+ &-close {
101
+ position: absolute;
102
+ top: 0; right: 0;
103
+ width: 20px + 16px;
104
+ height: 20px + 16px;
105
+ padding: 8px;
106
+ box-sizing: border-box;
107
+ border-radius: 8px;
108
+ &:hover {
109
+ background-color: #F2F2F2;
110
+ }
111
+
112
+ &:active {
113
+ background-color: #E4E4E4;
114
+ color: #000;
115
+ }
116
+
117
+ &:focus {
118
+ background-color: #F2F2F2;
119
+ border: solid 1px #E4E4E4
120
+ }
121
+ }
122
+
123
+ a {
124
+ color: inherit;
125
+ text-decoration: underline;
126
+ font-weight: bold;
127
+
128
+ &:hover {
129
+ color: #000;
130
+ }
131
+
132
+ &:active {
133
+ color: #550070;
134
+ }
135
+ }
136
+
137
+ div[bind-html]>div {
138
+
139
+ &>p {
140
+ margin-block-start: 1em;
141
+ }
142
+
143
+ &>p:not(:last-child):not(:has(+p:empty)) {
144
+ margin-block-end: 1em;
145
+ }
146
+
147
+ &::before {
148
+ content: '';
149
+ display: block;
150
+ margin-block-end: 1em;
151
+ }
152
+
153
+ margin-block-start: -1em;
154
+
155
+ &::after {
156
+ content: '';
157
+ display: block;
158
+ margin-block-start: 1em;
159
+ }
160
+
161
+ margin-block-end: -1em;
162
+ }
163
+
164
+ .flash-content-signature {
165
+ grid-area: 2 / 1 / 3 / 2;
166
+ font-weight: bold;
167
+ margin-right: auto;
168
+ color: $grey-graphite;
169
+ }
170
+
171
+ .flash-msg-collapsable:not(.flash-msg-collapsable--collapsable) .flash-content-signature:empty {
172
+ display: none;
173
+ }
174
+
175
+ &.red {
176
+ background: $flash-red;
177
+ box-shadow: $flash-red-border -4px 0px, $flash-red-border 0px 4px, $flash-red-border -2px 2px 0 2px;
178
+ &::before {
179
+ background-color: $flash-red-badge;
180
+ border-color: $flash-red-border;
181
+ box-shadow: 0 0 0 4px $flash-red;
182
+ }
183
+ &::after{
184
+ mask-image: url("/timeline/public/icons/icons.svg#alert-triangle");
185
+ // mask-position: calc((44px - 24px) / 2) calc((42px - 24px) / 2);
186
+ mask-position: center;
187
+ transform: translateY(-1px);
188
+ }
189
+ .flash-msg-collapsable-button {
190
+ background: $flash-red;
191
+ }
192
+ .flash-msg-collapsable.flash-msg-collapsable--collapsed .flash-msg-collapsable-button::before {
193
+ background: linear-gradient(to right, rgba($flash-red, 0), rgba($flash-red, 0.5) 30%, rgba($flash-red, 0.8) 50%, rgba($flash-red, 0.95) 75%, $flash-red 100%);
194
+ }
195
+ .flashmsg-icon {
196
+ transform: translateY(-1px);
197
+ }
198
+ }
199
+ &.orange {
200
+ background: $flash-orange;
201
+ box-shadow: $flash-orange-border -4px 0px, $flash-orange-border 0px 4px, $flash-orange-border -2px 2px 0 2px;
202
+ &::before {
203
+ background-color: $flash-orange-badge;
204
+ border-color: $flash-orange-border;
205
+ box-shadow: 0 0 0 4px $flash-orange;
206
+ }
207
+ .flash-msg-collapsable-button {
208
+ background: $flash-orange;
209
+ }
210
+ .flash-msg-collapsable.flash-msg-collapsable--collapsed .flash-msg-collapsable-button::before {
211
+ background: linear-gradient(to right, rgba($flash-orange, 0), rgba($flash-orange, 0.5) 30%, rgba($flash-orange, 0.8) 50%, rgba($flash-orange, 0.95) 75%, $flash-orange 100%);
212
+ }
213
+ }
214
+ &.green {
215
+ background: $flash-green;
216
+ box-shadow: $flash-green-border -4px 0px, $flash-green-border 0px 4px, $flash-green-border -2px 2px 0 2px;
217
+ &::before {
218
+ background-color: $flash-green-badge;
219
+ border-color: $flash-green-border;
220
+ box-shadow: 0 0 0 4px $flash-green;
221
+ }
222
+ .flash-msg-collapsable-button {
223
+ background: $flash-green;
224
+ }
225
+ .flash-msg-collapsable.flash-msg-collapsable--collapsed .flash-msg-collapsable-button::before {
226
+ background: linear-gradient(to right, rgba($flash-green, 0), rgba($flash-green, 0.5) 30%, rgba($flash-green, 0.8) 50%, rgba($flash-green, 0.95) 75%, $flash-green 100%);
227
+ }
228
+ }
229
+ &.blue {
230
+ background: $flash-blue;
231
+ box-shadow: $flash-blue-border -4px 0px, $flash-blue-border 0px 4px, $flash-blue-border -2px 2px 0 2px;
232
+ &::before {
233
+ background-color: $flash-blue-badge;
234
+ border-color: $flash-blue-border;
235
+ box-shadow: 0 0 0 4px $flash-blue;
236
+ }
237
+ .flash-msg-collapsable-button {
238
+ background: $flash-blue;
239
+ }
240
+ .flash-msg-collapsable.flash-msg-collapsable--collapsed .flash-msg-collapsable-button::before {
241
+ background: linear-gradient(to right, rgba($flash-blue, 0), rgba($flash-blue, 0.5) 30%, rgba($flash-blue, 0.8) 50%, rgba($flash-blue, 0.95) 75%, $flash-blue 100%);
242
+ }
243
+ }
244
+ &.grey-dark {
245
+ background: $flash-grey;
246
+ box-shadow: $flash-grey-border -4px 0px, $flash-grey-border 0px 4px, $flash-grey-border -2px 2px 0 2px;
247
+ &::before {
248
+ background-color: $flash-grey-badge;
249
+ border-color: $flash-grey-border;
250
+ box-shadow: 0 0 0 4px $flash-grey;
251
+ }
252
+ .flash-msg-collapsable-button {
253
+ background: $flash-grey;
254
+ }
255
+ .flash-msg-collapsable.flash-msg-collapsable--collapsed .flash-msg-collapsable-button::before {
256
+ background: linear-gradient(to right, rgba($flash-grey, 0), rgba($flash-grey, 0.5) 30%, rgba($flash-grey, 0.8) 50%, rgba($flash-grey, 0.95) 75%, $flash-grey 100%);
257
+ }
258
+ }
259
+ }
@@ -30,7 +30,7 @@
30
30
  @import "explorer";
31
31
  @import "file-picker-list";
32
32
  @import "filters";
33
- @import "flashmsg";
33
+ @import "flash-message";
34
34
  @import "flexibles";
35
35
  @import "flips";
36
36
  @import "forms";
@@ -1,3 +1,3 @@
1
- .actualites .rigid-grid .four{
1
+ .actualites .rigid-grid .four.cell{
2
2
  position: absolute;
3
3
  }
@@ -1,17 +0,0 @@
1
- .flashmsg {
2
- &.red {
3
- background: $flash-red;
4
- }
5
- &.orange {
6
- background: $flash-orange;
7
- }
8
- &.green {
9
- background: $flash-green;
10
- }
11
- &.blue {
12
- background: $flash-blue;
13
- }
14
- &.grey-dark {
15
- background: $flash-grey;
16
- }
17
- }