Skip to content

Commit 796d841

Browse files
committed
better styling in dropdown
1 parent 0ca97d3 commit 796d841

File tree

3 files changed

+20
-7
lines changed

3 files changed

+20
-7
lines changed

_includes/elements/dropdown.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<span class="dropdown dropup">
22
<button class="btn btn-secondary dropdown-toggle" type="button" id="playGameDropdown" data-bs-toggle="dropdown" aria-expanded="false">
3-
Play a game!
3+
{{ include.label }}
44
</button>
55
<ul class="dropdown-menu dropdown-menu-dark" aria-labelledby="playGameDropdown">
66
{% for game in include.source %}

_includes/landing.html

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,16 @@ <h3 class="font-weight-bold">Hi! Welcome to my website</h3>
2525
I am Alejandro, <span id="age"></span> years old. Here, you can take a look at my (personal) <a href="/projects">projects</a> (I have selected several that are available on my GitHub profile), <a href="/blog">blog</a> (where I document and share insights about computer vision, image processing, math, geometry, engineering, among other topics), <a href="/publications">publications</a> (a mix of informal, formal, and quasi-formal documents I find valuable for anyone interested in my fields), and, if you'd like to know more about me, <a href="/about">additional information</a>.
2626
</p>
2727

28-
{% include elements/dropdown.html
29-
id="playGameDropdown"
30-
label="Play a game!"
31-
menu_class="dropdown-menu-dark"
32-
source=site.data.games-dropdown-items
33-
%}
28+
<div class="d-flex justify-content-center align-items-center">
29+
<span class="mr-2" style="margin-top: 1.1rem;">Free time?, </span>
30+
{% 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
35+
%}
36+
</div>
37+
3438
</div>
3539
</section>
3640

_sass/_dropdown.scss

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,3 +53,12 @@
5353
background-color: #5a6268;
5454
}
5555

56+
.d-flex {
57+
display: flex;
58+
align-items: center;
59+
}
60+
61+
.d-flex > span {
62+
margin-right: 10px;
63+
}
64+

0 commit comments

Comments
 (0)