tab.scss 4.83 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
    .nav-tabs {
        border-bottom: 1px solid $color_mystic_approx;
24 25
        >li {
            >a {
26 27
                padding: 15px 30px;
                text-transform: uppercase;
28
                letter-spacing: 1px; //Instead of the line below you could use @include border-radius($radius, $vertical-radius)
29 30
                border-radius: 2px 2px 0 0;
            }
31
            &.active>a {
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
                border: 1px solid $color_mystic_approx;
                border-bottom-color: transparent;
                &:focus {
                    border: 1px solid $color_mystic_approx;
                    border-bottom-color: transparent;
                }
                &:hover {
                    border: 1px solid $color_mystic_approx;
                    border-bottom-color: transparent;
                }
            }
        }
    }
    .tab-content {
        background-color: $white;
        padding: 35px;
        border: 1px solid $color_mystic_approx;
        border-top: none;
    }
}

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

57 58 59 60 61 62 63 64 65 66 67 68 69 70
.tab-content>.tab-pane {
    display: block;
    opacity: 0;
    height: 0;
    padding: 0px;
    overflow: hidden;
    &.active {
        padding: 25px;
        opacity: 1;
        height: auto;
        overflow: auto;
    }
}

71 72 73 74 75
.tagsList .atlast-tabbable {
    margin: 0;
    .tab-content {
        padding: 10px 22px;
    }
76
    .nav-tabs>li>a {
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
        padding: 10px 20px;
    }
}

// NEW theme style
.tabs {
    position: relative;
    height: 42px;
    width: 100%;
    white-space: nowrap;
    padding: 0;
    transition: color 0.28s ease;
    .indicator {
        position: absolute;
        bottom: 0;
        height: 2px;
        background-color: $color_keppel_approx;
        will-change: left, right;
    }
    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;
        a {
108
            font-size: 14px;
109 110 111 112 113
            font-weight: 600;
            color: $white;
            display: block;
            text-decoration: none;
            width: 100%;
114
            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)
115
            transition: color 0.28s ease;
116 117
            /*  color: $color_manatee_approx; */
            /*    &:hover {
118 119 120 121 122 123 124 125 126 127 128 129 130 131
                color: $color_keppel_approx;
            }
            &.active {
                color: $color_keppel_approx;
            } */
        }
    }
}

.tab-pane {
    padding: 25px;
}

.atlast-tabbable {
132
    margin: 25px 0;
133 134
    .nav-tabs {
        border-bottom: 1px solid $color_mystic_approx;
135 136
        >li {
            >a {
137 138
                padding: 15px 30px;
                text-transform: uppercase;
139
                letter-spacing: 1px; //Instead of the line below you could use @include border-radius($radius, $vertical-radius)
140 141
                border-radius: 2px 2px 0 0;
            }
142
            &.active>a {
143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161
                border: 1px solid $color_mystic_approx;
                border-bottom-color: transparent;
                &:focus {
                    border: 1px solid $color_mystic_approx;
                    border-bottom-color: transparent;
                }
                &:hover {
                    border: 1px solid $color_mystic_approx;
                    border-bottom-color: transparent;
                }
            }
        }
    }
    .tab-content {
        background-color: $white;
        padding: 35px;
        border: 1px solid $color_mystic_approx;
        border-top: none;
    }
162 163 164 165 166 167 168 169 170 171 172 173 174 175 176
}

.default-tab {
    .nav-tabs {
        >li {
            &.active {
                >a {
                    color: $color_jungle_green_approx;
                }
            }
            >a {
                color: $black;
            }
        }
    }
177
}