Skip to content

Commit b3bf7b7

Browse files
committed
Internal: Fix lint and accordion compatibility
1 parent 7573836 commit b3bf7b7

1 file changed

Lines changed: 13 additions & 3 deletions

File tree

packages/volto-code-block/src/theme/main.less

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -172,8 +172,8 @@ div.codeBlockCaption {
172172
}
173173

174174
.codeBlockCaption {
175-
clear: both;
176175
margin-top: 0.5rem;
176+
clear: both;
177177
}
178178
}
179179

@@ -224,8 +224,8 @@ div.codeBlockCaption {
224224
}
225225

226226
.codeBlockCaption {
227-
clear: both;
228227
margin-top: 0.5rem;
228+
clear: both;
229229
}
230230
}
231231

@@ -240,16 +240,26 @@ div.codeBlockCaption {
240240
&.edit {
241241
.gist.editLayer {
242242
position: absolute;
243+
z-index: 1;
243244
top: 0;
244245
left: 0;
245246
width: 100%;
246247
height: 100%;
247248
background-color: rgba(0, 0, 0, 0.1);
248-
z-index: 1;
249249
}
250250

251251
.gist-content-wrapper {
252252
position: relative;
253253
}
254254
}
255255
}
256+
257+
/*
258+
Accordion compatibility: prevent floats from leaking outside accordion panels
259+
*/
260+
.accordion-block .ui.accordion .content.active::after,
261+
.accordion-block .ui.accordion .content::after {
262+
display: table;
263+
clear: both;
264+
content: '';
265+
}

0 commit comments

Comments
 (0)