Skip to content

Commit

Permalink
basic styling for specification pages
Browse files Browse the repository at this point in the history
  • Loading branch information
nc-andreashaller committed Feb 12, 2024
1 parent 292a044 commit 1aff057
Show file tree
Hide file tree
Showing 6 changed files with 64 additions and 3 deletions.
27 changes: 27 additions & 0 deletions blocks/features/features.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
.features {
margin: 50px 0;
}

/* lines */
.features > div {
display: flex;
flex-direction: column;
}

/* rows / cells */
.features > div > div {
width: 100%;
}

@media (min-width: 600px) {
.features > div {
flex-direction: row;
column-gap: 20px;
}

.features > div > div:first-child {
font-weight: bold;
flex-basis: 300px;
text-align: end;
}
}
3 changes: 3 additions & 0 deletions blocks/features/features.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export default async function decorate(block) {
// NOP
}
27 changes: 27 additions & 0 deletions blocks/specifications/specifications.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
.specifications {
margin: 50px 0;
}

/* lines */
.specifications > div {
display: flex;
flex-direction: column;
}

/* rows / cells */
.specifications > div > div {
width: 100%;
}

@media (min-width: 600px) {
.specifications > div {
flex-direction: row;
column-gap: 20px;
}

.specifications > div > div:first-child {
font-weight: bold;
flex-basis: 300px;
text-align: end;
}
}
3 changes: 3 additions & 0 deletions blocks/specifications/specifications.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export default async function decorate(block) {
// NOP
}
4 changes: 2 additions & 2 deletions scripts/scripts.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,8 @@ async function loadLazy(doc) {
const element = hash ? doc.getElementById(hash.substring(1)) : false;
if (hash && element) element.scrollIntoView();

loadHeader(doc.querySelector('header'));
loadFooter(doc.querySelector('footer'));
// loadHeader(doc.querySelector('header'));
// loadFooter(doc.querySelector('footer'));

loadCSS(`${window.hlx.codeBasePath}/styles/lazy-styles.css`);
loadFonts();
Expand Down
3 changes: 2 additions & 1 deletion styles/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
--heading-font-size-xs: 18px;

/* nav height */
--nav-height: 64px;
--nav-height: 0;
}

@font-face {
Expand Down Expand Up @@ -74,6 +74,7 @@ body.appear {
}

header {
display: none;
height: var(--nav-height);
}

Expand Down

0 comments on commit 1aff057

Please sign in to comment.