summaryrefslogtreecommitdiff
path: root/assets/css/components/_header.scss
blob: c099e535964ca86badd389debb8c24ba79b3b4f7 (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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
#site-header {
    /* 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;
            filter: url(#x);
        }
    }

    .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;
    }
}

/* skull logo */

#post-page-header {
    margin: 0 auto;
    margin-bottom: 2rem;
    max-width: var(--page-width);

    .title-image {
        width: 10rem;
    }
}

#post-page-header.with-banner {
    .title-image-container {
        @include roundSticker;
        transform: rotate(7deg);

        position: absolute;
        z-index: 5;
        right: 0.25rem;
        top: 0.25rem;
        width: 3rem;
        padding: 0.5rem;

        @media screen and (min-width: 640px) {
            right: 0.5rem;
            top: 0.5rem;
            width: 4rem;
            padding: 1rem;
        }

        @media screen and (min-width: 768px) {
            width: 6rem;
            left: calc(50vw + var(--page-width) / 2 - 7rem);
            top: calc(var(--page-margin-y) - 2rem);
        }

        @media screen and (min-width: 768px) {
            width: 6rem;
            left: calc(50vw + var(--page-width) / 2 - 7rem);
            top: calc(var(--page-margin-y) - 2rem);
        }

        @media screen and (min-width: 1200px) {
            width: 8rem;
            left: calc(50vw + var(--page-width) / 2 - 5rem);
        }

        .title-image {
            width: 100%;
        }
    }
}