Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update heading margins #10093

Merged
merged 1 commit into from
Jan 30, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 0 additions & 22 deletions src/_sass/components/_content.scss
Original file line number Diff line number Diff line change
@@ -1,21 +1,6 @@
@use '../base/variables' as *;
@use '../vendor/bootstrap';

// Header clearance of top nav
@mixin _header-clearance {
$clearance: 100px;

margin-top: -$clearance;
padding-top: $clearance;
}

@mixin header-clearance {
@include _header-clearance;

content: "";
display: block;
}

// Material design icons
@mixin md-icon-content($icon-name, $width: '', $bottom: true) {
font-family: $site-font-family-icon;
Expand Down Expand Up @@ -83,13 +68,6 @@
h1, h2, h3, h4, h5, h6 {
text-wrap: balance;

// Invisible pre-element to avoid modifying styles on headings.
&[id]:not(.no_toc)::before { @include header-clearance; }

// This case is for jekyll-toc entries that use the computed header id, rather than
// the Kramdown id override specified using the {#foo} markdown-extension syntax.
> a[id]::before { @include header-clearance; }

$icon-size: 1.5rem;
$anchor-padding: 0.25rem;

Expand Down
Loading