tab.scss 3.63 KB
Newer Older
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
/* tab.scss */
.atlast-tabbable {
    margin: 50px 0;
    .nav-tabs {
        border-bottom: 1px solid $color_mystic_approx;
        > li {
            > a {
                padding: 15px 30px;
                text-transform: uppercase;
                letter-spacing: 1px;
                //Instead of the line below you could use @include border-radius($radius, $vertical-radius)
                border-radius: 2px 2px 0 0;
            }
            &.active > a {
                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;
}

.tagsList .atlast-tabbable {
    margin: 0;
    .tab-content {
        padding: 10px 22px;
    }
    .nav-tabs > li > a {
        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 {
77
            font-size: 14px;
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
            font-weight: 600;
            color: $white;
            display: block;
            text-decoration: none;
            width: 100%;
            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)
            transition: color 0.28s ease;
           /*  color: $color_manatee_approx; */
         /*    &:hover {
                color: $color_keppel_approx;
            }
            &.active {
                color: $color_keppel_approx;
            } */
        }
    }
}

.tab-pane {
    padding: 25px;
}

.atlast-tabbable {
    margin: 50px 0;
    .nav-tabs {
        border-bottom: 1px solid $color_mystic_approx;
        > li {
            > a {
                padding: 15px 30px;
                text-transform: uppercase;
                letter-spacing: 1px;
                //Instead of the line below you could use @include border-radius($radius, $vertical-radius)
                border-radius: 2px 2px 0 0;
            }
            &.active > a {
                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;
    }
}