Skip to content

Commit f58535c

Browse files
committed
dynamic style from html and button was too big in scss
1 parent 796d841 commit f58535c

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

_includes/elements/dropdown.html

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
1-
<span class="dropdown dropup">
2-
<button class="btn btn-secondary dropdown-toggle" type="button" id="playGameDropdown" data-bs-toggle="dropdown" aria-expanded="false">
1+
<span class="{{ include.menu_class }}">
2+
<button class="btn btn-secondary dropdown-toggle" type="button" id="{{ include.id }}" data-bs-toggle="dropdown" aria-expanded="false" style="padding: 0.125rem 0.3rem;">
33
{{ include.label }}
44
</button>
5-
<ul class="dropdown-menu dropdown-menu-dark" aria-labelledby="playGameDropdown">
5+
<ul class="dropdown-menu dropdown-menu-dark" aria-labelledby="{{ include.id }}">
66
{% for game in include.source %}
77
<li>
88
<a class="dropdown-item" href="{{ game.url }}" target="_blank">{{ game.name }}</a>
99
</li>
1010
{% endfor %}
1111
</ul>
1212
</span>
13-

_includes/landing.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,10 @@ <h3 class="font-weight-bold">Hi! Welcome to my website</h3>
2828
<div class="d-flex justify-content-center align-items-center">
2929
<span class="mr-2" style="margin-top: 1.1rem;">Free time?, </span>
3030
{% include elements/dropdown.html
31-
id="playGameDropdown"
32-
label="play a game!"
33-
menu_class="dropdown-menu-dark"
34-
source=site.data.games-dropdown-items
31+
id="playGameDropdown"
32+
label="play a game!"
33+
menu_class="dropdown dropup"
34+
source=site.data.games-dropdown-items
3535
%}
3636
</div>
3737

_sass/_dropdown.scss

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
padding: 0.5rem;
1111
background-color: #343a40;
1212
border-radius: 8px;
13-
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
13+
box-shadow: 4px 4px 6px rgba(0, 0, 0, 0.25);
1414
border: none;
1515
margin-top: 0.25rem;
1616
position: absolute;
@@ -62,3 +62,4 @@
6262
margin-right: 10px;
6363
}
6464

65+

0 commit comments

Comments
 (0)