Skip to content

Commit

Permalink
fix detail/summary style
Browse files Browse the repository at this point in the history
  • Loading branch information
thiagohersan committed Feb 23, 2024
1 parent c77d08b commit a2334bc
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 5 deletions.
12 changes: 8 additions & 4 deletions _pages/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ type: home
---

<details class="home-details" markdown="1">
<summary class="home-summary">Intro
<summary class="home-summary">
<span class="home-summary-title">Intro</span>
<span class="home-summary-subtitle">Some basic concepts related to programming</span>
</summary>

Expand All @@ -16,7 +17,8 @@ type: home
</details>

<details class="home-details" markdown="1">
<summary class="home-summary">Ready to p5
<summary class="home-summary">
<span class="home-summary-title">Ready to p5</span>
<span class="home-summary-subtitle">The basics of programming using p5.js and JavaScript</span>
</summary>

Expand All @@ -32,7 +34,8 @@ type: home
</details>

<details class="home-details" markdown="1">
<summary class="home-summary">Creative Coding
<summary class="home-summary">
<span class="home-summary-title">Creative Coding</span>
<span class="home-summary-subtitle">The browser as a canvas</span>
</summary>

Expand All @@ -49,7 +52,8 @@ type: home
</details>

<details class="home-details" markdown="1">
<summary class="home-summary">Mini Projects
<summary class="home-summary">
<span class="home-summary-title">Mini Projects</span>
<span class="home-summary-subtitle">Putting it all together</span>
</summary>

Expand Down
13 changes: 12 additions & 1 deletion css/main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -119,13 +119,24 @@ th {
list-style-position: outside;
margin-left: 0.7em;
padding-left: 10px;
cursor: pointer;

&::marker {
font-size: 0.66em;
}

&:hover {
.home-summary-title {
text-decoration: underline;
}
}

.home-summary-subtitle {
display: block;
&::before {
content: "";
display: block;
}

font-size: 17px;
font-weight: 400;
margin-block-start: 0.5em;
Expand Down

0 comments on commit a2334bc

Please sign in to comment.