ode-csslib 4.2.5 → 4.2.6-develop-mozo.202408081709

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 28/06/2024 16:59:33
1
+ entcore-css-lib 08/08/2024 17:09:56
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ode-csslib",
3
- "version": "4.2.5",
3
+ "version": "4.2.6-develop-mozo.202408081709",
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,238 @@
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: calc(36px - 12px) 24px 24px;
10
+ color: #4A4A4A;
11
+ margin: 32px 4px 36px 0;
12
+ &:first-child {
13
+ margin-top: 32px
14
+ }
15
+ &:last-child {
16
+ margin-bottom: 28px;
17
+ }
18
+ position: relative;
19
+
20
+ div[bind-html] p {
21
+ margin-top: 0;
22
+ margin-bottom: 0;
23
+ }
24
+ div[bind-html]:first-of-type:last-of-type {
25
+ margin-bottom: 0;
26
+ }
27
+
28
+ font-size: 14px;
29
+ line-height: calc(22 / 14);
30
+
31
+ .flash-msg-collapsable-button {
32
+ position: absolute;
33
+ bottom: 24px;
34
+ right: 18px;
35
+ padding-right: 16px;
36
+ display: inline-block;
37
+ overflow: visible !important;
38
+
39
+ font-family: Arial, Helvetica, sans-serif;
40
+ font-weight: bold;
41
+
42
+ &::before {
43
+ content: '';
44
+ display: block;
45
+ position: absolute;
46
+ width: 64px;
47
+ height: 100%;
48
+ // 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%);
49
+ left: -64px;
50
+ }
51
+
52
+ b {
53
+ padding: 4px 6px;
54
+ }
55
+ }
56
+ div.flash-msg-collapsable {
57
+ margin-top: 12px;
58
+ }
59
+ div.flash-msg-collapsable.flash-msg-collapsable--collapsable.flash-msg-collapsable--collapsed {
60
+ display: -webkit-box;
61
+ box-orient: vertical;
62
+ -webkit-box-orient: vertical;
63
+ line-clamp: 4;
64
+ -webkit-line-clamp: 4;
65
+ overflow: hidden;
66
+ text-overflow: clip;
67
+ max-height: calc(4 * (22em / 14));
68
+
69
+ div, p, span {
70
+ overflow: hidden;
71
+ }
72
+ }
73
+
74
+ &::before {
75
+ content: '';
76
+ position: absolute;
77
+ display: block;
78
+ top: 4px-52px+24px + 8px;
79
+ left: 4px+24px;
80
+ width: 36px;
81
+ height: 36px;
82
+ border-radius: 100%;
83
+ border-width: 4px;
84
+ border-style: solid;
85
+ }
86
+
87
+ .flashmsg-icon {
88
+ content: '';
89
+ position: absolute;
90
+ display: block;
91
+ top: 4px-52px+24px + 8px + 10px;
92
+ left: 4px+24px + 10px;
93
+ width: 24px;
94
+ height: 24px;
95
+ color: #fff;
96
+ }
97
+
98
+ &-close {
99
+ position: absolute;
100
+ top: 0; right: 0;
101
+ width: 20px + 16px;
102
+ height: 20px + 16px;
103
+ padding: 8px;
104
+ box-sizing: border-box;
105
+ border-radius: 8px;
106
+ &:hover {
107
+ background-color: #F2F2F2;
108
+ }
109
+
110
+ &:active {
111
+ background-color: #E4E4E4;
112
+ color: #000;
113
+ }
114
+
115
+ &:focus {
116
+ background-color: #F2F2F2;
117
+ border: solid 1px #E4E4E4
118
+ }
119
+ }
120
+
121
+ a {
122
+ color: inherit;
123
+ text-decoration: underline;
124
+ font-weight: bold;
125
+
126
+ &:hover {
127
+ color: #000;
128
+ }
129
+
130
+ &:active {
131
+ color: #550070;
132
+ }
133
+ }
134
+
135
+ // Merge multiple <br> into one and delete the first empty line if present
136
+ p,
137
+ p>div {
138
+ &>br:first-child,
139
+ &>br:not(:not(br)+br) {
140
+ display: none;
141
+ }
142
+ }
143
+
144
+ .flash-content-signature {
145
+ font-style: italic;
146
+ margin-top: 22px !important;
147
+ margin-right: 12em;
148
+ }
149
+
150
+ .flash-msg-collapsable:not(.flash-msg-collapsable--collapsable) .flash-content-signature:empty {
151
+ display: none;
152
+ }
153
+
154
+ &.red {
155
+ background: $flash-red;
156
+ box-shadow: $flash-red-border -4px 0px, $flash-red-border 0px 4px, $flash-red-border -2px 2px 0 2px;
157
+ &::before {
158
+ background-color: $flash-red-badge;
159
+ border-color: $flash-red-border;
160
+ box-shadow: 0 0 0 4px $flash-red;
161
+ }
162
+ &::after{
163
+ mask-image: url("/timeline/public/icons/icons.svg#alert-triangle");
164
+ // mask-position: calc((44px - 24px) / 2) calc((42px - 24px) / 2);
165
+ mask-position: center;
166
+ transform: translateY(-1px);
167
+ }
168
+ .flash-msg-collapsable-button {
169
+ background: $flash-red;
170
+ }
171
+ .flash-msg-collapsable.flash-msg-collapsable--collapsed .flash-msg-collapsable-button::before {
172
+ 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%);
173
+ }
174
+ .flashmsg-icon {
175
+ transform: translateY(-1px);
176
+ }
177
+ }
178
+ &.orange {
179
+ background: $flash-orange;
180
+ box-shadow: $flash-orange-border -4px 0px, $flash-orange-border 0px 4px, $flash-orange-border -2px 2px 0 2px;
181
+ &::before {
182
+ background-color: $flash-orange-badge;
183
+ border-color: $flash-orange-border;
184
+ box-shadow: 0 0 0 4px $flash-orange;
185
+ }
186
+ .flash-msg-collapsable-button {
187
+ background: $flash-orange;
188
+ }
189
+ .flash-msg-collapsable.flash-msg-collapsable--collapsed .flash-msg-collapsable-button::before {
190
+ 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%);
191
+ }
192
+ }
193
+ &.green {
194
+ background: $flash-green;
195
+ box-shadow: $flash-green-border -4px 0px, $flash-green-border 0px 4px, $flash-green-border -2px 2px 0 2px;
196
+ &::before {
197
+ background-color: $flash-green-badge;
198
+ border-color: $flash-green-border;
199
+ box-shadow: 0 0 0 4px $flash-green;
200
+ }
201
+ .flash-msg-collapsable-button {
202
+ background: $flash-green;
203
+ }
204
+ .flash-msg-collapsable.flash-msg-collapsable--collapsed .flash-msg-collapsable-button::before {
205
+ 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%);
206
+ }
207
+ }
208
+ &.blue {
209
+ background: $flash-blue;
210
+ box-shadow: $flash-blue-border -4px 0px, $flash-blue-border 0px 4px, $flash-blue-border -2px 2px 0 2px;
211
+ &::before {
212
+ background-color: $flash-blue-badge;
213
+ border-color: $flash-blue-border;
214
+ box-shadow: 0 0 0 4px $flash-blue;
215
+ }
216
+ .flash-msg-collapsable-button {
217
+ background: $flash-blue;
218
+ }
219
+ .flash-msg-collapsable.flash-msg-collapsable--collapsed .flash-msg-collapsable-button::before {
220
+ 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%);
221
+ }
222
+ }
223
+ &.grey-dark {
224
+ background: $flash-grey;
225
+ box-shadow: $flash-grey-border -4px 0px, $flash-grey-border 0px 4px, $flash-grey-border -2px 2px 0 2px;
226
+ &::before {
227
+ background-color: $flash-grey-badge;
228
+ border-color: $flash-grey-border;
229
+ box-shadow: 0 0 0 4px $flash-grey;
230
+ }
231
+ .flash-msg-collapsable-button {
232
+ background: $flash-grey;
233
+ }
234
+ .flash-msg-collapsable.flash-msg-collapsable--collapsed .flash-msg-collapsable-button::before {
235
+ 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%);
236
+ }
237
+ }
238
+ }
@@ -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,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
- }