ode-bootstrap 1.3.8-develop-mozo.202409182239 → 1.3.8-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
- ode-bootstrap 18/09/2024 22:40:01
1
+ ode-bootstrap 08/10/2024 16:25:02
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ode-bootstrap",
3
- "version": "1.3.8-develop-mozo.202409182239",
3
+ "version": "1.3.8-develop-mozo.202410081624",
4
4
  "description": "Open Digital Education CSS framework based on bootstrap",
5
5
  "repository": {
6
6
  "type": "git",
@@ -158,13 +158,6 @@ $widget-flash-colors: (
158
158
  padding-right: 1rem;
159
159
  grid-area: 1 / 1 / 2 / 3;
160
160
 
161
- // Merge multiple <br> into one and delete the first empty line if present
162
- p, p>div {
163
- & > br:first-child, & > br:not(:not(br)+br) {
164
- display: none;
165
- }
166
- }
167
-
168
161
  a {
169
162
  color: inherit;
170
163
  text-decoration: underline;
@@ -179,9 +172,35 @@ $widget-flash-colors: (
179
172
  }
180
173
  }
181
174
 
175
+ // This block merges empty lines and trim empty lines of the content.
176
+ p[flash-message-content]>div {
177
+ & > br+br {
178
+ display: none;
179
+ }
180
+ & > p>br:first-child,
181
+ & > p>br:not(:not(br) + br),
182
+ & > p>div>br:first-child,
183
+ & div:last-child > br:last-child,
184
+ & > p>div>br:not(:not(br) + br) {
185
+ display: none;
186
+ }
187
+ & > p {
188
+ margin-block-start: 1em;
189
+ }
190
+ & > p:not(:last-child) {
191
+ margin-block-end: 1em;
192
+ }
193
+ &::before {
194
+ content:'';
195
+ display:block;
196
+ margin-block-end: 1em;
197
+ }
198
+ margin-block-start: -1em;
199
+ }
200
+
182
201
  &.can-be-truncated {
183
202
  &:not(.flash-content-is-expandable) {
184
- p {
203
+ & > p {
185
204
  @include has-text-truncated(2);
186
205
  padding-bottom: 0;
187
206
  }
@@ -13,6 +13,7 @@
13
13
  overflow: hidden;
14
14
  -webkit-line-clamp: $lines;
15
15
  -webkit-box-orient: vertical;
16
+ text-overflow: ellipsis;
16
17
  }
17
18
 
18
19
  // Hack for multiline ellipsis