aboutsummaryrefslogtreecommitdiffstats
path: root/scss/_header.scss
blob: a51457f472e2614f389b4792926d47928a9006ce (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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
header {
  > div {
    font-family: 'Source Sans Pro', sans-serif;
    padding: 1rem 2rem;
    text-align: right;

    color: $gray-bright;
    background: $gray-dark;

    h1 {
      display: flex;
      justify-content: flex-end;
      align-items: center;
      flex-wrap: wrap;
      margin: 0;
      line-height: 5rem;

      font-size: 4rem;
      font-weight: 200;

      > span {
        margin-left: auto;
      }

      .bold {
        font-weight: 400;
      }

      > a {
        height: 5rem;
      }

      @include media-small() {
        font-size: 2rem;
        line-height: 5rem
      }

      .sun {
        height: 100%;
        stroke: currentColor;
        fill: currentColor;

        .out, .in {
          animation: spin 2s;
          animation-iteration-count: 1;
          transform: scale(1);
        }

        .in {
          animation: size 2s;
        }

        &.spin .circle {
          animation: none;
        }
      }
    }
  }

  aside {
    margin: 0;
    padding: 0 2rem;
    color: $gray-bright;
    background: $gray-darker;
    line-height: 3em;

    > a {
      margin-right: 2em;
    }
  }
}

@keyframes spin {
  0% { transform: rotate3d(0.5, 1, 0, 0turn); }
  100% { transform: rotate3d(0.5, 1, 0, 1turn); }
}

@keyframes size {
  0%, 100% { transform: scale(1); }
  40%, 60% { transform: scale(1.8); }
}