Skip to content

Commit

Permalink
Fix bad breakpoint and header issues. Fix vertical margins of navbar …
Browse files Browse the repository at this point in the history
…items. Fix top padding of inner page and blog
  • Loading branch information
conradolandia committed Feb 14, 2024
1 parent de5b5be commit 2cd521f
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 48 deletions.
12 changes: 2 additions & 10 deletions assets/static/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -371,21 +371,14 @@ img {
.fh5co-main-nav .fh5co-menu-1 .side-nav-container {
display: flex;
flex-wrap: wrap;
gap: 2.5em;
gap: 0 1.5em;
justify-content: end;
}

@media screen and (max-width: 919px) {
.fh5co-main-nav .fh5co-menu-1 .main-nav-container,
.fh5co-main-nav .fh5co-menu-1 .side-nav-container {
gap: 1.5em;
}
}

.fh5co-main-nav .fh5co-menu-1 a {
color: #333;
color: var(--theme-fg-alt-color, #333);
display: inline-block;
display: block;
font-size: 12px;
font-weight: normal;
letter-spacing: 2px;
Expand Down Expand Up @@ -775,7 +768,6 @@ img {
}

.fh5co-tabs-container .fh5co-tabs li a {
font-size: 0;
line-height: 1.5;
padding-bottom: 0.5em;
padding-top: 1em;
Expand Down
38 changes: 0 additions & 38 deletions assets/static/js/main-singlelayout.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,41 +62,6 @@ https://github.com/spyder-ide/lektor-icon/blob/master/NOTICE.txt
});
};

// Equalize heights of cards in team/services section for proper layout
const cardsEvenHeight = function () {
$(".body-section .container").each(function () {
let cardHeightMax = 0;
if (
$(this).find(".card-inner").length &&
$(this).find(".card-outer").first().width() <= $(this).width() / 2.0
) {
$(this)
.find(".card-inner")
.each(function () {
const cardHeight = $(this).height();
if (cardHeight > cardHeightMax) {
cardHeightMax = cardHeight;
}
});
}
$(this)
.find(".card")
.each(function () {
const cardHeight = $(this).find(".card-inner").height();
const spacerHeight = Math.max(cardHeightMax - cardHeight, 0);
$(this).find(".card-spacer").height(spacerHeight);
});
});
};

const setCardsEvenHeight = function () {
$(window).on("load", cardsEvenHeight);
$(window).on("resize", cardsEvenHeight);
// For IE11, which doesn't work with load
window.setTimeout(cardsEvenHeight, 2000);
window.setTimeout(cardsEvenHeight, 5000);
};

// Parallax
const parallax = function () {
$(window).stellar({
Expand Down Expand Up @@ -200,13 +165,10 @@ https://github.com/spyder-ide/lektor-icon/blob/master/NOTICE.txt
setHeroHeight();
loaderPage();
fh5coTabs();
// gridAutoHeight();

parallax();
scrolledWindow();
clickMenu();
navigationSection();
setCardsEvenHeight();
if (mailchimpButtonEnabled) {
setMailchimpEvent();
}
Expand Down
10 changes: 10 additions & 0 deletions assets/static/js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,15 @@ https://github.com/spyder-ide/lektor-icon/blob/master/NOTICE.txt
(function () {
"use strict";

// Fix for header height in inner pages
const fixInnerPage = function () {
const headerHeight = $(".js-sticky").outerHeight();
$(".page-content-container, .blog-content-container").css(
"padding-top",
headerHeight
);
};

// Fullsize Error Page Background
const fullHeight = function () {
const heightToSet =
Expand Down Expand Up @@ -116,5 +125,6 @@ https://github.com/spyder-ide/lektor-icon/blob/master/NOTICE.txt
mobileMenuOutsideClick();
mainMenuSticky();
setFullHeight();
fixInnerPage();
});
})();

0 comments on commit 2cd521f

Please sign in to comment.