Skip to content

Commit

Permalink
Modify summary details ::marked to ::before
Browse files Browse the repository at this point in the history
  • Loading branch information
JoyWonderful committed Dec 3, 2023
1 parent 1bd4c27 commit 73f5116
Showing 1 changed file with 18 additions and 11 deletions.
29 changes: 18 additions & 11 deletions css/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -184,17 +184,6 @@ body {
font-weight: 900;
color: #000000;
}
summary {
cursor: pointer;
}
summary::marker {
font-family: 'Font Awesome 6 Free';
content: '\f0da\0020\0020';
color: #707070;
}
details[open]>summary::marker {
content: '\f0d7\0020\0020';
}
body {
background: var(--body-bg-color);
box-sizing: border-box;
Expand Down Expand Up @@ -3019,6 +3008,24 @@ h2, h3, h4, h5, h6
border-radius: 15%;
}

summary {
cursor: pointer;
position: relative;
}
summary::marker {
content: none;
}
summary::before {
font-family:'Font Awesome 6 Free';
content: '\f0da';
transform: rotate(0deg);
position: absolute;
right: .5em;
transition: transform .3s;
}
details[open]>summary::before {
transform: rotate(90deg);
}
details {
border: 1px solid #aaa;
border-radius: 4px;
Expand Down

0 comments on commit 73f5116

Please sign in to comment.