ode-csslib 4.2.7-develop-b2school.202410041001 → 4.2.7-develop-mozo.202410081624

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 04/10/2024 10:01:23
1
+ entcore-css-lib 08/10/2024 16:24:47
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ode-csslib",
3
- "version": "4.2.7-develop-b2school.202410041001",
3
+ "version": "4.2.7-develop-mozo.202410081624",
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,264 @@
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
+ &>br+br {
139
+ display: none;
140
+ }
141
+
142
+ &>p:empty,
143
+ &>p>br:first-child,
144
+ &>p>br:not(:not(br) + br),
145
+ &>p>div>br:first-child,
146
+ & div:last-child>br:last-child,
147
+ & div:has(+p:last-child:empty)>br:last-child,
148
+ &>p>div>br:not(:not(br) + br) {
149
+ display: none;
150
+ }
151
+
152
+ &>p {
153
+ margin-block-start: 1em;
154
+ }
155
+
156
+ &>p:not(:last-child):not(:has(+p:empty)) {
157
+ margin-block-end: 1em;
158
+ }
159
+
160
+ &::before {
161
+ content: '';
162
+ display: block;
163
+ margin-block-end: 1em;
164
+ }
165
+
166
+ margin-block-start: -1em;
167
+ }
168
+
169
+ .flash-content-signature {
170
+ grid-area: 2 / 1 / 3 / 2;
171
+ font-weight: bold;
172
+ margin-right: auto;
173
+ color: $grey-graphite;
174
+ }
175
+
176
+ .flash-msg-collapsable:not(.flash-msg-collapsable--collapsable) .flash-content-signature:empty {
177
+ display: none;
178
+ }
179
+
180
+ &.red {
181
+ background: $flash-red;
182
+ box-shadow: $flash-red-border -4px 0px, $flash-red-border 0px 4px, $flash-red-border -2px 2px 0 2px;
183
+ &::before {
184
+ background-color: $flash-red-badge;
185
+ border-color: $flash-red-border;
186
+ box-shadow: 0 0 0 4px $flash-red;
187
+ }
188
+ &::after{
189
+ mask-image: url("/timeline/public/icons/icons.svg#alert-triangle");
190
+ // mask-position: calc((44px - 24px) / 2) calc((42px - 24px) / 2);
191
+ mask-position: center;
192
+ transform: translateY(-1px);
193
+ }
194
+ .flash-msg-collapsable-button {
195
+ background: $flash-red;
196
+ }
197
+ .flash-msg-collapsable.flash-msg-collapsable--collapsed .flash-msg-collapsable-button::before {
198
+ 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%);
199
+ }
200
+ .flashmsg-icon {
201
+ transform: translateY(-1px);
202
+ }
203
+ }
204
+ &.orange {
205
+ background: $flash-orange;
206
+ box-shadow: $flash-orange-border -4px 0px, $flash-orange-border 0px 4px, $flash-orange-border -2px 2px 0 2px;
207
+ &::before {
208
+ background-color: $flash-orange-badge;
209
+ border-color: $flash-orange-border;
210
+ box-shadow: 0 0 0 4px $flash-orange;
211
+ }
212
+ .flash-msg-collapsable-button {
213
+ background: $flash-orange;
214
+ }
215
+ .flash-msg-collapsable.flash-msg-collapsable--collapsed .flash-msg-collapsable-button::before {
216
+ 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%);
217
+ }
218
+ }
219
+ &.green {
220
+ background: $flash-green;
221
+ box-shadow: $flash-green-border -4px 0px, $flash-green-border 0px 4px, $flash-green-border -2px 2px 0 2px;
222
+ &::before {
223
+ background-color: $flash-green-badge;
224
+ border-color: $flash-green-border;
225
+ box-shadow: 0 0 0 4px $flash-green;
226
+ }
227
+ .flash-msg-collapsable-button {
228
+ background: $flash-green;
229
+ }
230
+ .flash-msg-collapsable.flash-msg-collapsable--collapsed .flash-msg-collapsable-button::before {
231
+ 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%);
232
+ }
233
+ }
234
+ &.blue {
235
+ background: $flash-blue;
236
+ box-shadow: $flash-blue-border -4px 0px, $flash-blue-border 0px 4px, $flash-blue-border -2px 2px 0 2px;
237
+ &::before {
238
+ background-color: $flash-blue-badge;
239
+ border-color: $flash-blue-border;
240
+ box-shadow: 0 0 0 4px $flash-blue;
241
+ }
242
+ .flash-msg-collapsable-button {
243
+ background: $flash-blue;
244
+ }
245
+ .flash-msg-collapsable.flash-msg-collapsable--collapsed .flash-msg-collapsable-button::before {
246
+ 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%);
247
+ }
248
+ }
249
+ &.grey-dark {
250
+ background: $flash-grey;
251
+ box-shadow: $flash-grey-border -4px 0px, $flash-grey-border 0px 4px, $flash-grey-border -2px 2px 0 2px;
252
+ &::before {
253
+ background-color: $flash-grey-badge;
254
+ border-color: $flash-grey-border;
255
+ box-shadow: 0 0 0 4px $flash-grey;
256
+ }
257
+ .flash-msg-collapsable-button {
258
+ background: $flash-grey;
259
+ }
260
+ .flash-msg-collapsable.flash-msg-collapsable--collapsed .flash-msg-collapsable-button::before {
261
+ 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%);
262
+ }
263
+ }
264
+ }
@@ -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,4 @@
1
+ @import "./actualites/actualites";
1
2
  @import "./cahier-de-textes/cahier-de-textes";
2
3
  @import "./calendar/calendar";
3
4
  @import "./class-admin/class-admin";
@@ -32,6 +33,8 @@
32
33
  @import "./statistics-presences/statistics-presences";
33
34
  @import "./magneto/magneto";
34
35
  @import "./minibadge/minibadge";
36
+ @import "./rack/rack";
37
+ @import "./workspace-app/workspace-app";
35
38
 
36
39
  // TO DO: Remove these specifics rules for calendar (WB-870)
37
40
 
@@ -0,0 +1,3 @@
1
+ .actualites .rigid-grid .four{
2
+ position: absolute;
3
+ }
@@ -0,0 +1,3 @@
1
+ .rigid-grid .vertical.four{
2
+ position: absolute;
3
+ }
@@ -0,0 +1,3 @@
1
+ .workspace-app .rigid-grid .four{
2
+ position: absolute;
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
- }