tab.scss 4.88 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
// Licensed to the Apache Software Foundation (ASF) under one
// or more contributor license agreements.  See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership.  The ASF licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you may not use this file except in compliance
// with the License.  You may obtain a copy of the License at

//     http://www.apache.org/licenses/LICENSE-2.0

// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
16 17


18
/* tab.scss */
19

20
.atlast-tabbable {
21
    margin: 25px 0;
22

23 24
    .nav-tabs {
        border-bottom: 1px solid $color_mystic_approx;
25

26 27
        >li {
            >a {
28 29
                padding: 15px 30px;
                text-transform: uppercase;
30
                letter-spacing: 1px; //Instead of the line below you could use @include border-radius($radius, $vertical-radius)
31 32
                border-radius: 2px 2px 0 0;
            }
33

34
            &.active>a {
35 36
                border: 1px solid $color_mystic_approx;
                border-bottom-color: transparent;
37

38 39 40 41
                &:focus {
                    border: 1px solid $color_mystic_approx;
                    border-bottom-color: transparent;
                }
42

43 44 45 46 47 48 49
                &:hover {
                    border: 1px solid $color_mystic_approx;
                    border-bottom-color: transparent;
                }
            }
        }
    }
50

51 52 53 54 55 56 57 58 59 60 61 62
    .tab-content {
        background-color: $white;
        padding: 35px;
        border: 1px solid $color_mystic_approx;
        border-top: none;
    }
}

ul.tabs li.tab {
    padding: 0;
}

63 64 65 66 67 68
.tab-content>.tab-pane {
    display: block;
    opacity: 0;
    height: 0;
    padding: 0px;
    overflow: hidden;
69

70
    &.active {
71
        padding: 15px 20px;
72 73 74 75 76 77
        opacity: 1;
        height: auto;
        overflow: auto;
    }
}

78 79
.tagsList .atlast-tabbable {
    margin: 0;
80

81 82 83
    .tab-content {
        padding: 10px 22px;
    }
84

85
    .nav-tabs>li>a {
86 87 88 89 90 91 92 93 94 95 96 97
        padding: 10px 20px;
    }
}

// NEW theme style
.tabs {
    position: relative;
    height: 42px;
    width: 100%;
    white-space: nowrap;
    padding: 0;
    transition: color 0.28s ease;
98

99 100 101 102 103 104 105
    .indicator {
        position: absolute;
        bottom: 0;
        height: 2px;
        background-color: $color_keppel_approx;
        will-change: left, right;
    }
106

107 108 109 110 111 112 113 114 115 116 117
    li.tab {
        display: block;
        float: left;
        text-align: center;
        line-height: 42px;
        height: 42px;
        padding: 0 20px;
        margin: 0;
        text-transform: uppercase;
        letter-spacing: 0.8px;
        border-bottom: 1px solid $color_mirage_approx;
118

119
        a {
120
            font-size: 14px;
121 122 123 124 125
            font-weight: 600;
            color: $white;
            display: block;
            text-decoration: none;
            width: 100%;
126
            height: 100%; //Instead of the line below you could use @include transition($transition-1, $transition-2, $transition-3, $transition-4, $transition-5, $transition-6, $transition-7, $transition-8, $transition-9, $transition-10)
127
            transition: color 0.28s ease;
128 129
            /*  color: $color_manatee_approx; */
            /*    &:hover {
130 131 132 133 134 135 136 137 138 139
                color: $color_keppel_approx;
            }
            &.active {
                color: $color_keppel_approx;
            } */
        }
    }
}

.atlast-tabbable {
140
    margin: 25px 0;
141

142 143
    .nav-tabs {
        border-bottom: 1px solid $color_mystic_approx;
144

145 146
        >li {
            >a {
147 148
                padding: 15px 30px;
                text-transform: uppercase;
149
                letter-spacing: 1px; //Instead of the line below you could use @include border-radius($radius, $vertical-radius)
150 151
                border-radius: 2px 2px 0 0;
            }
152

153
            &.active>a {
154 155
                border: 1px solid $color_mystic_approx;
                border-bottom-color: transparent;
156

157 158 159 160
                &:focus {
                    border: 1px solid $color_mystic_approx;
                    border-bottom-color: transparent;
                }
161

162 163 164 165 166 167 168
                &:hover {
                    border: 1px solid $color_mystic_approx;
                    border-bottom-color: transparent;
                }
            }
        }
    }
169

170 171 172 173 174 175
    .tab-content {
        background-color: $white;
        padding: 35px;
        border: 1px solid $color_mystic_approx;
        border-top: none;
    }
176 177 178 179 180 181 182 183
}

.default-tab {
    .nav-tabs {
        >li {
            &.active {
                >a {
                    color: $color_jungle_green_approx;
184
                    // background: $color_white_lilac_approx;
185 186
                }
            }
187

188 189 190 191 192
            >a {
                color: $black;
            }
        }
    }
193
}