aboutsummaryrefslogtreecommitdiff
path: root/resources/assets/stylesheets/scss/tabs.scss
blob: 63bf1a0372a9df9c1616ea4ed48f0523242db70f (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
div.clear
{
    clear: both;
    visibility: hidden;
}

// Common styles for both tab sets
#tabs {
    line-height: 20px;
    float: none;
    flex: 0 1 auto;
    margin: 0;


    ul, li {
        list-style: none;
        margin: 0;
        padding: 0;
    }
    li { float: left; }
    a {
        color: var(--black);
    }
}

// Main tab set with the tabs sitting on top of the main content
#tabs {
    padding-left: 0;

    span { padding: 0; }
    .quiet img { opacity: 0.25; }

    li {
        &:last-child {
            border-right: none;
        }
        &.current {
            color: var(--base-color);
        }
        &:hover {
            color: var(--base-color);
            padding-top: 0;
        }

        &.current {
            padding-top: 0;
            line-height: 25px;
            a, span.quiet {
                color: var(--base-color);
            }
        }
    }
    a, span.quiet {
        color: var(--black);
        float: left;
        display: block;

        padding: 5px 8px;
        white-space: nowrap;
        height: 23px;
    }
}

.tab-icon {
    float: left;
    margin: 4px 5px 0 -0.5em;
    @include size(16px, 16px);
    display: none;
}

.tab-subnav {
    float: right;

    .action-menu-icon {
        position: relative;
        top: -5px;
        height: 14px;

        img {
            vertical-align: middle;
            filter: hue-rotate(350deg) saturate(8.7%) brightness(177.3%);
        }
    }


    .action-menu-content {
        z-index: 1000;
        position: absolute;
        top: inherit;
        right: inherit;
        padding: 0 0 10px 0;
        margin-top: 10px;
        background: var(--content-color-20);
        box-shadow: 1px 1px 1px var(--dark-gray-color-60);
        text-align: left;
        white-space: nowrap;

        ul {
            display: flex;
            flex-direction: column;
        }

        a:hover {
            color: var(--red) !important;
        }

    }

    .action-menu-content:before,
    .action-menu-content:after {
        bottom: 100%;
        left: 11px;
        border: solid transparent;
        content: " ";
        height: 0;
        width: 0;
        position: absolute;
        pointer-events: none;
    }

    .action-menu-content:before {
        border-color: rgba(194, 225, 245, 0);
        border-bottom-color: var(--dark-gray-color-60);
        border-width: 9px;
        margin-left: -8px;
    }
    .action-menu-content:after {
        border-color: rgba(194, 225, 245, 0);
        border-bottom-color: var(--content-color-20);
        border-width: 8px;
        margin-left: -8px;
    }
}