tabbedContainer.scss (1274B)


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
.tabContainer {
    .tabBar {

        overflow: hidden;
        width: 100%;
        margin: 0;
        padding: 0;
        list-style: none;
        display: flex;

        button {
            color: $color;
            opacity: .5;
            border: 0px solid $background;
            border-bottom: 1px solid $background;
            text-decoration: none;
            margin: 0;
            font: inherit;
            font-weight: normal;
            font-size: 1em;
            flex: 1;
            transition: all .35s ease;
            background: $background;

            &.active {
                border-bottom: 1px solid $accent;
                background: inherit;
                opacity: .5;
            }

            &:focus {
                border: 0 1px 0 0 solid $accent !important;
                outline: 0px solid $accent;
                color: $color !important;
                opacity: 1 !important;
            }

            &:hover {
                background: inherit;
                color: $accent;
                opacity: 1;
            }
        }
    }

    .tabs {
        * {
            margin-top: 0px;
            padding-top: 0.25em;
        }

        div:not(:first-child) {
            display: none;
        }
    }

}