-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(playlist): subscribe nav markup and styling
- remove material icons font - add svg icons
- Loading branch information
1 parent
2d86730
commit 5b23fe1
Showing
14 changed files
with
84 additions
and
65 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
<button id="{{ include.id }}" class="btn {{ include.color }}"> | ||
<span class="material-icons">{{ include.icon }}</span> | ||
{%- capture icon_path %}svg/icons/{{ include.icon }}.svg{% endcapture -%} | ||
{% include {{ icon_path }} %} | ||
</button> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,12 @@ | ||
<li class="menu-item"> | ||
{%- if include.icon -%} | ||
<a | ||
href="{{ include.href }}" | ||
class="menu-link icon {{ include.color }}" | ||
> | ||
<span class="material-icons" aria-label="{{ include.aria-label }}">{{ include.icon }}</span> | ||
{%- if include.icon -%} | ||
{%- capture icon_path %}svg/icons/{{ include.icon }}.svg{% endcapture -%} | ||
{% include {{ icon_path }} %} | ||
{%- endif -%} | ||
<span>{{ include.label }}</span> | ||
</a> | ||
{%- else -%} | ||
<a | ||
href="{{ include.href }}" | ||
class="menu-link {{ include.color }}" | ||
>{{ include.label }}</a> | ||
{%- endif -%} | ||
</li> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,55 @@ | ||
#playlist { | ||
text-wrap: balance; | ||
|
||
.subscribe--nav { | ||
display: inline-grid; | ||
row-gap: 1.5rem; | ||
|
||
margin: 2rem auto 4rem; | ||
padding: 2rem 3rem; | ||
|
||
background-color: #{'hsl('}0 100% 100% / 20%#{')'}; | ||
backdrop-filter: blur(6px); | ||
|
||
border-radius: 20px; | ||
|
||
h3 { | ||
width: 100%; | ||
margin: 0; | ||
} | ||
} | ||
|
||
.subscribe--list { | ||
display: inline-flex; | ||
gap: 0.5rem; | ||
justify-content: center; | ||
flex-wrap: wrap; | ||
} | ||
|
||
.subscribe--link { | ||
transition: background-color 200ms linear; | ||
|
||
padding: 0.5rem; | ||
|
||
border-radius: 1rem; | ||
|
||
&:where(:hover, :focus-visible) { | ||
background-color: #{'hsl('}0 100% 100% / 20%#{')'}; | ||
outline: none; | ||
} | ||
|
||
img { | ||
width: 40px; | ||
height: 40px; | ||
} | ||
} | ||
|
||
} | ||
|
||
.playlist-wrapper { | ||
overflow: hidden; | ||
|
||
iframe { | ||
border-radius: 20px; | ||
} | ||
} | ||
|
||
.subscribe--link { | ||
width: 40px; | ||
height: 40px; | ||
} |
Binary file not shown.