Skip to content

Commit

Permalink
safari bugje - transition of summary before and after - PE for now
Browse files Browse the repository at this point in the history
  • Loading branch information
shooft committed Mar 23, 2024
1 parent 7cc28ba commit f48fa95
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
3 changes: 2 additions & 1 deletion samples.html
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@ <h1>Code samples and pointers for the final assignment</h1>

<!--High-def colors-->
<details id="sessie-colors">
<summary aria-label="meer over high-def colors"><h2>High-def colors</h2>
<summary aria-label="meer over high-def colors">
<h2>High-def colors</h2>
<p><strong>High-end schermen</strong> kunnen mooiere kleuren weergeven dan RGB kan definiëren. Gelukkig biedt CSS nu allerhande opties om die <strong>mooie kleuren</strong> wel te benutten.</p>
</summary>

Expand Down
10 changes: 8 additions & 2 deletions styles/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -528,6 +528,8 @@ details[open] summary {
width:auto;
}



summary * {
grid-column-start:2;
}
Expand All @@ -550,8 +552,10 @@ summary::after {
aspect-ratio: 1;
justify-self:start;
align-self:center;
position:relative;
display:block;

translate:-50% 0;
translate:calc(-50% + .5px) 0;
}

summary::before {
Expand All @@ -574,7 +578,9 @@ summary::after {

@media (prefers-reduced-motion:no-preference) {
summary::before {
transition:scale .5s, rotate .4s .2s;
transition:
scale .5s,
rotate .4s .2s;
}

summary::after {
Expand Down

0 comments on commit f48fa95

Please sign in to comment.