Skip to content

Commit 37b5c1b

Browse files
author
Sidak Singh Aulakh
committed
Changes to top navbar
1. in mobile resolutions, the top navbar now justifies towards the center of the screen instead of previously being aligned towards the left 2. the last list item in the top navbar had a border-right which is now omitted. 3. The top navbar has some padding at the bottom to replicate styles of other sections with borders As discussed in: github/opensource.guide#896
1 parent d04c8ab commit 37b5c1b

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)