Skip to content

Commit bca8303

Browse files
update details style
1 parent 5b23377 commit bca8303

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

resources/web/style/base_styles.pcss

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,35 @@
2828
}
2929

3030
details {
31+
background-color: #F1F4FA;
3132
margin-bottom: 1.15em;
33+
border: 1px #D3DAE6 solid;
34+
border-radius: 3px;
35+
summary {
36+
list-style-type: none;
37+
display: inline-block;
38+
width: 100%;
39+
padding: 10px;
40+
&:before {
41+
content: url('data:image/svg+xml;utf8,<svg width="18" height="18" viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M6.14898 5.10103C5.81704 4.76909 5.81704 4.2309 6.14898 3.89895C6.48093 3.56701 7.01912 3.56701 7.35107 3.89895L11.8511 8.39895C12.183 8.7309 12.183 9.26909 11.8511 9.60103L7.35107 14.101C7.01912 14.433 6.48093 14.433 6.14898 14.101C5.81704 13.7691 5.81704 13.2309 6.14898 12.899L10.0479 8.99999L6.14898 5.10103Z" fill="black"/></svg>');
42+
display: inline-block;
43+
transform: translate(0px, 3.5px) rotate(0deg);
44+
transition: .1s ease-in-out;
45+
margin-right: 8px;
46+
}
47+
}
48+
.content {
49+
padding: 5px 20px 0px 36px;
50+
}
51+
}
52+
53+
details[open] {
54+
summary {
55+
&:before {
56+
transform: translate(-3.5px, 0px) rotate(90deg);
57+
transition: .1s ease-in-out;
58+
}
59+
}
3260
}
3361

3462
.container-fluid {

0 commit comments

Comments
 (0)