summaryrefslogtreecommitdiff
path: root/_sass/components/_article-header.scss
blob: 002cc8cfba73de77d9bc7e67b2b4ab688b4ce4e9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
.article__header {
  margin-top: map-get($spacers, 5);
  margin-bottom: map-get($spacers, 4);
  @include media-breakpoint-down(md) {
    margin-top: map-get($spacers, 4);
  }
  header, h1 {
    display: inline;
  }
  h1 {
    word-wrap: break-word;
  }
  .split-space {
    @include user-select(none);
  }
  .edit-on-github {
    text-decoration: none !important;
  }
}

.article__header--overlay {
  .overlay {
    min-height: 36rem;
    padding-top: map-get($spacers, 5) * 2;
    padding-bottom: map-get($spacers, 5) * 2;
    @include media-breakpoint-down(md) {
      min-height: 29rem;
      padding-top: map-get($spacers, 5);
      padding-bottom: map-get($spacers, 5);
    }
  }
  .overlay__excerpt {
    font-size: map-get($base, font-size-h3-xl);
    @include media-breakpoint-down(lg) {
      font-size: map-get($base, font-size-h3-lg);
    }
    @include media-breakpoint-down(md) {
      font-size: map-get($base, font-size-h3-sm);
    }
    font-weight: map-get($base, font-weight-bold);
  }

  .article__header {
    margin-top: 0;
  }
}

.article__header--cover {
  width: 100%;
}