Skip to content

Commit

Permalink
h1をページごとにつける
Browse files Browse the repository at this point in the history
  • Loading branch information
yamasy1549 committed Mar 16, 2020
1 parent d8a12a3 commit d77987c
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 3 deletions.
4 changes: 1 addition & 3 deletions _includes/global-header.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@
<header class="global-header">
<div class="global-header__brand">
<a href="{{ lang.url | relative_url }}">
<h1>
<img class="global-header__logo" src="{{ site.logo | relative_url }}" alt="{{ site.title | append: ' logo' }}"/>
</h1>
<img class="global-header__logo" src="{{ site.logo | relative_url }}" alt="{{ site.title | append: ' logo' }}"/>
</a>

{% include site-search.html %}
Expand Down
12 changes: 12 additions & 0 deletions _sass/_heading.scss
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,18 @@
}
}

h1 {
@include heading;

font-size: $h1_font_size;
font-weight: $bold_font_weight;
margin: 64px 0 30px;

.heading__link {
left: -60px;
}
}

h2 {
@include heading;

Expand Down
1 change: 1 addition & 0 deletions _sass/_mixins.scss
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
// ----------

@mixin headings {
h1,
h2,
h3,
h4,
Expand Down
1 change: 1 addition & 0 deletions _sass/_variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ $monospace_font: "Roboto Mono";
$vivliostyle_font: "Optima", "Marcellus";
$icon_font: "Material Design Icons";

$h1_font_size: 44px;
$h2_font_size: 44px;
$h3_font_size: 34px;
$h4_font_size: 28px;
Expand Down

0 comments on commit d77987c

Please sign in to comment.