Skip to content

Commit f00a1a4

Browse files
committed
fix(Collapsible) updated styling: updated header styling; implemented flex grow on header; implemented correct inner padding on body content wrapper materializecss#448
1 parent ecb57d3 commit f00a1a4

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

sass/components/_collapsible.scss

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,17 +34,22 @@
3434
content: '';
3535
text-align: right;
3636
margin-right: 0.25rem;
37-
width: 100%;
37+
width: auto;
38+
align-self: end;
3839
}
40+
3941
.active .collapsible-header::after {
4042
content: "";
4143
}
4244

43-
4445
.keyboard-focused .collapsible-header:focus {
4546
background-color: rgba(0, 0, 0, 0.12);
4647
}
4748

49+
.collapsible-header-content {
50+
flex-grow: 1;
51+
}
52+
4853
.collapsible-body {
4954
max-height: 0;
5055
border-bottom: 1px solid var(--md-sys-color-outline-variant);
@@ -53,6 +58,10 @@
5358
overflow: hidden;
5459
}
5560

61+
.collapsible-body-content {
62+
padding: 2rem 0;
63+
}
64+
5665
// Popout Collapsible
5766

5867
.collapsible.popout {

0 commit comments

Comments
 (0)