Skip to content

Commit 4fbe9b9

Browse files
authored
Merge pull request #140 from iterative/fix-fixed-md-headers
2 parents 7dbc59e + 57d7e2d commit 4fbe9b9

File tree

4 files changed

+7
-4
lines changed

4 files changed

+7
-4
lines changed

packages/gatsby-theme-iterative/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@dvcorg/gatsby-theme-iterative",
3-
"version": "0.2.3",
3+
"version": "0.2.4",
44
"description": "",
55
"main": "index.js",
66
"types": "src/typings.d.ts",

packages/gatsby-theme-iterative/src/components/Documentation/Markdown/Main/styles.module.css

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
}
3636

3737
h1:first-child {
38-
@apply lg:h-14 pb-2;
38+
@apply pb-2 min-h-[3.5rem];
3939
}
4040

4141
h1,
@@ -44,6 +44,7 @@
4444
h4,
4545
h5,
4646
h6 {
47+
@apply scroll-mt-5;
4748
font-weight: 500;
4849
word-wrap: normal;
4950
}

packages/gatsby-theme-iterative/src/components/LayoutHeader/styles.module.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
html {
2+
@apply scroll-pt-14;
3+
}
4+
15
.headerContainer {
26
@apply flex flex-col flex-nowrap fixed top-0 left-0 right-0 w-full justify-center z-30 bg-white;
37
box-shadow: 0 2px 3px 0 rgb(0 0 0 / 15%);

packages/gatsby-theme-iterative/src/components/MainLayout/base.css

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,4 @@ body.user-is-tabbing .link-with-focus {
9797
* {
9898
/* Prevent mobile browsers from changing font-size */
9999
text-size-adjust: none;
100-
/* Compensate for the sticky header */
101-
scroll-margin-top: 5rem;
102100
}

0 commit comments

Comments
 (0)