Skip to content

Commit 9924ff5

Browse files
committed
Fix navbar issues
1 parent 12f1b03 commit 9924ff5

File tree

3 files changed

+12
-12
lines changed

3 files changed

+12
-12
lines changed

example/site-config.js

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@ module.exports = {
33

44
postsPerPage: 10, // Number of posts shown on paginated pages (changes this requires sometimes to delete the cache)
55

6-
siteTitleMeta: "Wordpress Gatsby Starter", // This allows an alternative site title for meta data for pages.
6+
siteTitleMeta: "Built with Draftbox", // This allows an alternative site title for meta data for pages.
77
siteDescriptionMeta:
8-
"A starter template to build amazing static websites with Wordpress and Gatsby", // This allows an alternative site description for meta data for pages.
8+
"Lightning fast, secure front-end for your WordPress or Ghost blog, without coding", // This allows an alternative site description for meta data for pages.
99

1010
shareImageWidth: 1000, // Change to the width of your default share image
1111
shareImageHeight: 523, // Change to the height of your default share image
1212

13-
shortTitle: "Wordpress", // Used for App manifest e.g. Mobile Home Screen
13+
shortTitle: "Built with Draftbox", // Used for App manifest e.g. Mobile Home Screen
1414
siteIcon: "favicon.png", // Logo in /static dir used for SEO, RSS, and App manifest
1515
backgroundColor: "#e9e9e9", // Used for Offline Manifest
1616
themeColor: "#15171A", // Used for Offline Manifest
@@ -30,10 +30,6 @@ module.exports = {
3030
label: "Contact",
3131
url: "https://wp-balsa-preview.draftbox.co/contact",
3232
},
33-
{
34-
label: "Contact1111",
35-
url: "https://wp-balsa-preview.draftbox.co/contact111",
36-
},
3733
],
3834
},
3935
footer: {

gatsby-wordpress-theme-libre/src/components/navbar.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -93,8 +93,8 @@ const Navbar = () => {
9393
>
9494
☰ Menu
9595
</button>
96-
<div id="primary-menu" className="menu">
97-
<ul>
96+
<div className="menu-primary-container">
97+
<ul id="primary-menu" className="menu">
9898
{navigation.map(({ label, url }, i) => {
9999
return url.startsWith("/") ||
100100
url.startsWith(siteUrl) ||
@@ -124,7 +124,7 @@ const Navbar = () => {
124124
</ul>
125125
</div>{" "}
126126
<nav className="jetpack-social-navigation" role="navigation">
127-
<div class="menu-social-container"><ul id="menu-social" class="menu">
127+
<div className="menu-social-container"><ul id="menu-social" className="menu">
128128
{socialLinks.facebook && (
129129
<li className="menu-item">
130130
<a

gatsby-wordpress-theme-libre/src/styles/global.css

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2058,10 +2058,12 @@ object {
20582058
margin-bottom: 10em;
20592059
}
20602060
.main-navigation {
2061-
display: inline-block;
2061+
display: flex;
2062+
align-items: center;
20622063
margin-top: 0;
20632064
text-align: right;
20642065
vertical-align: middle;
2066+
flex-direction: column;
20652067
}
20662068
.main-navigation li {
20672069
display: inline-block;
@@ -2074,6 +2076,8 @@ object {
20742076
}
20752077
.jetpack-social-navigation {
20762078
margin-left: 1.75em;
2079+
display: flex;
2080+
align-self: flex-end;
20772081
}
20782082
.comment .comment-content {
20792083
float: right;
@@ -2155,7 +2159,7 @@ object {
21552159
}
21562160

21572161
.active {
2158-
box-shadow: 0 2px 0 0 currentColor;
2162+
box-shadow: 0 2px 0 0 currentColor !important;
21592163
}
21602164

21612165
@font-face {

0 commit comments

Comments
 (0)