aboutsummaryrefslogtreecommitdiff
path: root/style/_header.scss
blob: 6593f2a1ede64ee6d815e32f5a70cae2beca6064 (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
header {
  display: flex;
  max-width: $page-width;
  margin: 0 auto;

  .logo-container {
    max-width: $page-width;
    height: 100%;
    margin: 0 auto;
    position: fixed;
    display: flex;
    flex-direction: column;

    .dotted-line {
      border-style: dotted;
      border-image-source: url('/assets/dots.svg');
      border-image-slice: 33% 33%;
      border-image-repeat: round;
      border-width: 0  8px 0 0;
      margin-top: 32px;
      width: calc(50% + 4px);
      flex-grow: 1;
    }

    a:hover {
      background-color: inherit;
    }
  }

  .logo {
    width: $logo-width;
    height: $logo-width;
    border-radius: 50%;
  }

  .title {
    padding-left: $logo-width + $page-padding-between;
    padding-top: ($logo-width - 45px) / 2;;
    padding-bottom: ($logo-width - 45px) / 2;
    display: flex;
    flex-direction: column;

    .name {
      font-weight: bold;
      font-size: 1.5em;
    }
  }

  .menu {
    ul {
      list-style: none;
      margin: 0;
      padding: 0;
    }

    li {
      display: inline;
      padding-left: 0px;

      &:first-of-type, &:last-of-type {
        padding-left: 0;
      }
    }
  }
}

@media screen and (max-width: 900px) {
  header {
    .menu {
      li {
        display: list-item;
        padding-left: 20px;
      }
    }
    .title {
      padding-top: 16px;
      padding-bottom: 16px;
    }
  }
}