Skip to content

Commit

Permalink
Add Ribbon
Browse files Browse the repository at this point in the history
  • Loading branch information
csswizardry committed Jun 26, 2023
1 parent 424f5e8 commit e7d97f5
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 1 deletion.
2 changes: 1 addition & 1 deletion _includes/css/csswizardry.min.css

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions _includes/header--masthead.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
<link rel=preload href=/img/css/masthead-medium.e55920c9.jpg as=image media="(min-width: 45em) and (max-width: 63.9375em)" fetchpriority=high>
<link rel=preload href=/img/css/masthead-large.3cbc4956.jpg as=image media="(min-width: 64em)" fetchpriority=high>

{% include ribbon.html %}

<header class="page-head page-head--masthead">

<div class=wrapper>
Expand Down
2 changes: 2 additions & 0 deletions _includes/header.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
{% include ribbon.html %}

<header class=page-head>

<div class=wrapper>
Expand Down
3 changes: 3 additions & 0 deletions _includes/ribbon.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<section class="c-highlight c-highlight--small c-highlight--ribbon">
<a href="/sentinel/?ref=ribbon">Sentinel: Your Web-Performance Watchman</a>
</section>
8 changes: 8 additions & 0 deletions css/_components.highlights.scss
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,11 @@
}

}

.c-highlight--small {
padding: $spacing-unit--small;
}

.c-highlight--ribbon {
text-align: center;
}

0 comments on commit e7d97f5

Please sign in to comment.