Skip to content

Commit

Permalink
change width of navbar collapse; fixes daattali#719
Browse files Browse the repository at this point in the history
  • Loading branch information
daattali committed Sep 16, 2020
1 parent d585986 commit c54c6bd
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 18 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## Unreleased version

- Changed the width at which the navbar collapses to a higher threshold because most modern non-mobile browsers are >1000px

## v5.0.0 (2020-09-15)

One of the major changes in this version is that a lot of time was spent on rethinking the entire SEO and social media sharing model (how a page looks on eg. Google, Twitter, Facebok). It was redesigned to be more simple and customizable. The new documentation has a section dedicated to SEO and social media sharing of a page. Unfortunately some changes that are not backwards-compatible had to be made.
Expand Down
2 changes: 1 addition & 1 deletion _includes/nav.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<nav class="navbar navbar-expand-md navbar-light fixed-top navbar-custom {% if page.nav-short %}top-nav-short-permanent{% else %}top-nav-regular{% endif %}">
<nav class="navbar navbar-expand-lg navbar-light fixed-top navbar-custom {% if page.nav-short %}top-nav-short-permanent{% else %}top-nav-regular{% endif %}">

{%- if site.title-img -%}
<a class="navbar-brand navbar-brand-logo" href="{{ '' | absolute_url }}"><img alt="{{ site.title }} Logo" src="{{ site.title-img }}"/></a>
Expand Down
25 changes: 8 additions & 17 deletions assets/css/beautifuljekyll.css
Original file line number Diff line number Diff line change
Expand Up @@ -75,15 +75,6 @@ hr.small {
margin: -3.125rem 0 0;
}

.main-content {
padding-top: 5rem;
}
@media (min-width: 768px) {
.main-content {
padding-top: 8.125rem;
}
}

.hideme {
display: none;
}
Expand Down Expand Up @@ -228,7 +219,7 @@ img {
border-width: 0.4em;
}

@media (min-width: 768px) {
@media (min-width: 992px) {
.navbar-custom {
padding-top: 1.25rem;
padding-bottom: 1.25rem;
Expand All @@ -243,17 +234,17 @@ img {
height: 3.125rem;
}

.navbar-expand-md .navbar-nav .nav-link {
.navbar-expand-lg .navbar-nav .nav-link {
padding-left: 0.9375rem;
padding-right: 0.9375rem;
}

.navbar-expand-md .navbar-nav .nav-item:not(.dropdown):last-child .nav-link {
.navbar-expand-lg .navbar-nav .nav-item:not(.dropdown):last-child .nav-link {
padding-right: 0;
}
}

@media (min-width: 768px) {
@media (min-width: 992px) {
.navbar-custom .nav-item.dropdown:hover {
background: rgba(0, 0, 0, 0.1);
}
Expand Down Expand Up @@ -281,7 +272,7 @@ img {
font-weight: normal;
}

@media (min-width: 768px) {
@media (min-width: 992px) {
.navbar-custom .nav-item.dropdown .dropdown-menu {
text-align: center;
}
Expand All @@ -293,7 +284,7 @@ img {
}
}

@media (max-width: 767px) {
@media (max-width: 991px) {
.navbar-custom .navbar-collapse {
border-top: 1px solid {{ site.navbar-border-col | default: "#DDDDDD" }};
margin: 0 -1rem;
Expand Down Expand Up @@ -355,7 +346,7 @@ img {
display: none;
}

@media (min-width: 768px) {
@media (min-width: 992px) {
.navbar-custom.top-nav-regular .avatar-container {
width: 6.25rem;
}
Expand Down Expand Up @@ -701,7 +692,7 @@ nav.top-nav-short-permanent ~ header > .intro-header.big-img {
bottom: 0;
display: none;
}
@media (min-width: 768px) {
@media (min-width: 992px) {
.intro-header {
margin-top: 8.125rem;
}
Expand Down

0 comments on commit c54c6bd

Please sign in to comment.