summaryrefslogtreecommitdiff
path: root/assets/css/components/_header.scss
blob: b7b9986d1fc601aaef084c72f7a82e718a243cb9 (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
82
83
#site-header {
    margin-top: var(--page-header-top);

    /* header */

    .header-title {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;

        .title-image {
            width: 10rem
        }

        .title-link {
            font-size: 2rem;
            font-weight: 900;
            text-align: center;
            letter-spacing: .15rem;
        }
    }

    .header-title a {
      text-decoration: none;
    }

    .header-subtitle {
      color: var(--secondary-text-color);
    }

    .header-line {
      width: 100%;
      border-width: 1px;
      border-color: var(--border-color);
      border-style: solid none none none;
    }

    /* navigation */

    #navigation-bar {
        --gap: .75rem;
        display: flex;
        justify-content: center;
        align-items: center;
        gap: var(--gap);
        padding-left: calc(1rem + var(--gap))
    }

    .navigation {
      margin: 1rem 0;
      display: flex;
      justify-content: center;
      align-items: center;
      width: fit-content;
      border-radius: 1rem;
      overflow: hidden;
    }

    .navigation-item a {
      display: inline-block;
      color: var(--background-color);
      padding: 0.25rem 0.5rem;
      background-color: var(--text-color);
    }

    .navigation-item:first-child a {
      padding-left: 0.75rem
    }

    .navigation-item:last-child a {
      padding-right: 0.75rem
    }

    .navigation-item.active a {
      color: var(--text-color);
      background-color: var(--block-background-color);
    }

    .navigation-item a:hover {
      text-decoration: none;
    }
}