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

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 18/09/2024 22:37:06
1
+ entcore-css-lib 04/10/2024 10:01:23
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ode-csslib",
3
- "version": "4.2.7-develop-mozo.202409182236",
3
+ "version": "4.2.7-develop-b2school.202410041001",
4
4
  "description": "Edifice Legacy CSS framework",
5
5
  "repository": {
6
6
  "type": "git",
@@ -53,21 +53,12 @@ $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: #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;
56
+ $flash-red: #c74848;
57
+ $flash-orange: #ff9057;
58
+ $flash-green: #3cb371;
59
+ $flash-blue: #2a9cc8;
60
+ $flash-grey: #5b6472;
61
+
71
62
  // SIZES
72
63
  $icon-list-size: 117px !default;
73
64
  $icon-list-padding: 7px !default;
@@ -0,0 +1,17 @@
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
+ }
@@ -30,7 +30,7 @@
30
30
  @import "explorer";
31
31
  @import "file-picker-list";
32
32
  @import "filters";
33
- @import "flash-message";
33
+ @import "flashmsg";
34
34
  @import "flexibles";
35
35
  @import "flips";
36
36
  @import "forms";
@@ -1,244 +0,0 @@
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
-
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 > div {
67
- margin-top:12px;
68
- }
69
- div.flash-msg-collapsable.flash-msg-collapsable--collapsable.flash-msg-collapsable--collapsed > div {
70
- text-overflow: ellipsis;
71
- overflow: hidden;
72
- line-clamp: 2;
73
- -webkit-line-clamp: 2;
74
- display: -webkit-box;
75
- box-orient: vertical;
76
- -webkit-box-orient: vertical;
77
- }
78
-
79
- &::before {
80
- content: '';
81
- position: absolute;
82
- display: block;
83
- top: 4px-52px+24px + 8px;
84
- left: 4px+24px;
85
- width: 36px;
86
- height: 36px;
87
- border-radius: 100%;
88
- border-width: 4px;
89
- border-style: solid;
90
- }
91
-
92
- .flashmsg-icon {
93
- content: '';
94
- position: absolute;
95
- display: block;
96
- top: 4px-52px+24px + 8px + 10px;
97
- left: 4px+24px + 10px;
98
- width: 24px;
99
- height: 24px;
100
- color: #fff;
101
- }
102
-
103
- &-close {
104
- position: absolute;
105
- top: 0; right: 0;
106
- width: 20px + 16px;
107
- height: 20px + 16px;
108
- padding: 8px;
109
- box-sizing: border-box;
110
- border-radius: 8px;
111
- &:hover {
112
- background-color: #F2F2F2;
113
- }
114
-
115
- &:active {
116
- background-color: #E4E4E4;
117
- color: #000;
118
- }
119
-
120
- &:focus {
121
- background-color: #F2F2F2;
122
- border: solid 1px #E4E4E4
123
- }
124
- }
125
-
126
- a {
127
- color: inherit;
128
- text-decoration: underline;
129
- font-weight: bold;
130
-
131
- &:hover {
132
- color: #000;
133
- }
134
-
135
- &:active {
136
- color: #550070;
137
- }
138
- }
139
-
140
- // Merge multiple <br> into one and delete the first empty line if present
141
- p,
142
- p>div {
143
- &>br:first-child,
144
- &>br:not(:not(br)+br) {
145
- display: none;
146
- }
147
- }
148
-
149
- .flash-content-signature {
150
- grid-area: 2 / 1 / 3 / 2;
151
- font-weight: bold;
152
- margin-right: auto;
153
- color: $grey-graphite;
154
- }
155
-
156
- .flash-msg-collapsable:not(.flash-msg-collapsable--collapsable) .flash-content-signature:empty {
157
- display: none;
158
- }
159
-
160
- &.red {
161
- background: $flash-red;
162
- box-shadow: $flash-red-border -4px 0px, $flash-red-border 0px 4px, $flash-red-border -2px 2px 0 2px;
163
- &::before {
164
- background-color: $flash-red-badge;
165
- border-color: $flash-red-border;
166
- box-shadow: 0 0 0 4px $flash-red;
167
- }
168
- &::after{
169
- mask-image: url("/timeline/public/icons/icons.svg#alert-triangle");
170
- // mask-position: calc((44px - 24px) / 2) calc((42px - 24px) / 2);
171
- mask-position: center;
172
- transform: translateY(-1px);
173
- }
174
- .flash-msg-collapsable-button {
175
- background: $flash-red;
176
- }
177
- .flash-msg-collapsable.flash-msg-collapsable--collapsed .flash-msg-collapsable-button::before {
178
- 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%);
179
- }
180
- .flashmsg-icon {
181
- transform: translateY(-1px);
182
- }
183
- }
184
- &.orange {
185
- background: $flash-orange;
186
- box-shadow: $flash-orange-border -4px 0px, $flash-orange-border 0px 4px, $flash-orange-border -2px 2px 0 2px;
187
- &::before {
188
- background-color: $flash-orange-badge;
189
- border-color: $flash-orange-border;
190
- box-shadow: 0 0 0 4px $flash-orange;
191
- }
192
- .flash-msg-collapsable-button {
193
- background: $flash-orange;
194
- }
195
- .flash-msg-collapsable.flash-msg-collapsable--collapsed .flash-msg-collapsable-button::before {
196
- 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%);
197
- }
198
- }
199
- &.green {
200
- background: $flash-green;
201
- box-shadow: $flash-green-border -4px 0px, $flash-green-border 0px 4px, $flash-green-border -2px 2px 0 2px;
202
- &::before {
203
- background-color: $flash-green-badge;
204
- border-color: $flash-green-border;
205
- box-shadow: 0 0 0 4px $flash-green;
206
- }
207
- .flash-msg-collapsable-button {
208
- background: $flash-green;
209
- }
210
- .flash-msg-collapsable.flash-msg-collapsable--collapsed .flash-msg-collapsable-button::before {
211
- 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%);
212
- }
213
- }
214
- &.blue {
215
- background: $flash-blue;
216
- box-shadow: $flash-blue-border -4px 0px, $flash-blue-border 0px 4px, $flash-blue-border -2px 2px 0 2px;
217
- &::before {
218
- background-color: $flash-blue-badge;
219
- border-color: $flash-blue-border;
220
- box-shadow: 0 0 0 4px $flash-blue;
221
- }
222
- .flash-msg-collapsable-button {
223
- background: $flash-blue;
224
- }
225
- .flash-msg-collapsable.flash-msg-collapsable--collapsed .flash-msg-collapsable-button::before {
226
- 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%);
227
- }
228
- }
229
- &.grey-dark {
230
- background: $flash-grey;
231
- box-shadow: $flash-grey-border -4px 0px, $flash-grey-border 0px 4px, $flash-grey-border -2px 2px 0 2px;
232
- &::before {
233
- background-color: $flash-grey-badge;
234
- border-color: $flash-grey-border;
235
- box-shadow: 0 0 0 4px $flash-grey;
236
- }
237
- .flash-msg-collapsable-button {
238
- background: $flash-grey;
239
- }
240
- .flash-msg-collapsable.flash-msg-collapsable--collapsed .flash-msg-collapsable-button::before {
241
- 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%);
242
- }
243
- }
244
- }