File size: 1,015 Bytes
43a06dc
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
<script lang="ts">
    export let sectionTitle: string = "";
</script>

<div id="subnav-section">
    {#if sectionTitle}
        <div id="subnav-section-title">
            {sectionTitle}
        </div>
    {/if}
    <div id="subnav-section-categories">
        <slot></slot>
    </div>
</div>

<style>
    #subnav-section,
    #subnav-section-categories {
        display: flex;
        flex-direction: column;
    }

    #subnav-section {
        gap: 6px;
        border-radius: var(--border-radius);
    }

    #subnav-section-title {
        font-size: 12.5px;
        font-weight: 500;
        color: var(--gray);
        padding-left: 8px;
    }

    @media screen and (max-width: 750px) {
        #subnav-section-categories {
            background: var(--button);
            border-radius: var(--border-radius);
            box-shadow: var(--button-box-shadow);
            overflow-x: hidden;
        }

        #subnav-section-title {
            padding-left: calc(7px * 1.5);
        }
    }
</style>