menu.css (1664B)


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
.navigation-menu {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin: 20px auto 10px auto;
    flex-direction: column;
    list-style: none;

    > .navigation-menu__inner {
        display: flex;
        flex: 1;
        flex-wrap: wrap;
        list-style: none;
        margin: 0;
        padding: 0;

        > li {
            flex: 0 0 auto;
            margin-bottom: 10px;
            white-space: nowrap;

            &:not(:last-of-type) {
                margin-right: 20px;


            }

                > a {
                    text-decoration: none;
                    &:hover {
                        color: var(--accent);
            }
        }

        }
    }

    .spacer {
        flex-grow: 1 !important;
    }
}

.menu {
    display: flex;
    flex-direction: column;
    position: relative;
    list-style: none;
    padding: 0;
    margin: 0;

    > .menu__trigger {
        margin-right: 0 !important;
        color: var(--accent);
        user-select: none;
        cursor: pointer;
    }

    .menu__dropdown {

        display: none;

        .open & {
            display: flex;
        }

        flex-direction: column;
        position: absolute;
        background: var(--bg-color);
        border: 2px solid;
        margin: 0;
        padding: 10px;
        top: 10px;
        left: 0;
        list-style: none;
        z-index: 99;


        > li {
            flex: 0 0 auto;

            &:not(:last-of-type) {
                margin-bottom: 10px;
            }

            > a {
                display: flex;
                padding: 5px;
            }
        }
    }
}