Skip to content

Commit 79ab8ac

Browse files
authored
Merge pull request #904 from co16353sidak/master
fix[WIP]: Small changes to the top navbar
2 parents 911ede9 + d25bc5f commit 79ab8ac

File tree

2 files changed

+11
-7
lines changed

2 files changed

+11
-7
lines changed

_includes/nav.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<nav class="main-nav">
33
<div class="container-lg mx-auto clearfix">
44
<div class="float-sm-right">
5-
<ul class="main-links d-flex flex-wrap flex-items-stretch border-left border-bottom border-sm-0 list-style-none">
5+
<ul class="main-links d-flex flex-wrap flex-items-stretch flex-justify-center border-left border-bottom border-sm-0 list-style-none">
66
<li class="d-inline-block border-right">
77
<a class="d-block p-4" href="https://github.com/github/opensource.guide#readme">
88
{{ t.nav.about }}
@@ -14,7 +14,7 @@
1414
</a>
1515
</li>
1616
{% if page.lang and site.data.locales.size > 1 %}
17-
<li class="d-inline-block border-right">
17+
<li class="d-inline-block">
1818
<div class="p-3">
1919
<select id="language" class="form-select">
2020
{% assign locales = site.data.locales | sort %}

assets/css/custom.scss

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -62,12 +62,16 @@ blockquote {
6262
line-height: 0;
6363
}
6464

65-
.main-links a {
66-
&:hover {
67-
background: $bg-gray-light;
68-
text-decoration: none;
69-
color: $gray-dark;
65+
.main-links {
66+
a {
67+
&:hover {
68+
background: $bg-gray-light;
69+
text-decoration: none;
70+
color: $gray-dark;
71+
}
7072
}
73+
padding-bottom: 5px;
74+
padding-top: 5px;
7175
}
7276

7377
.breadcrumb {

0 commit comments

Comments
 (0)