Skip to content

Commit

Permalink
Update heading margins (#10093)
Browse files Browse the repository at this point in the history
Updates heading margins.. Fixes #6032 Mirrors work done in
dart-lang/site-www#2231
  • Loading branch information
atsansone authored Jan 30, 2024
1 parent 0a8946a commit 6c7b089
Showing 1 changed file with 0 additions and 22 deletions.
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

0 comments on commit 6c7b089

Please sign in to comment.