golden hour
/var/www/html/Digital_Design/sass/assets/components/tabs-accordian
⬆️ Go Up
Upload
File/Folder
Size
Actions
custom-accordions.scss
2.39 KB
Del
OK
custom-tabs.scss
12.01 KB
Del
OK
Edit: custom-tabs.scss
// ================= // Imports // ================= @import '../../../base/base'; // Base Variables .nav-tabs { svg { width: 20px; vertical-align: bottom; } .nav-link { &.active { color: $m-color_16; background-color: $white; border-color: $m-color_3 $m-color_3 $white; &:after { color: $m-color_16; } } &:hover { border-color: $m-color_2 $m-color_2 $m-color_1; } } border-bottom: 1px solid $m-color_2; } .dropdown-menu { box-shadow: 0px 0px 15px 1px rgba(113, 106, 202, 0.1); } .nav-tabs { .dropdown-item:hover { background-color: $m-color_1; color: $m-color_9; } li a.disabled { color: $l-dark !important; } } .nav-pills { .nav-item:not(:last-child) { margin-right: 5px; } .nav-link { &.active:after { color: $white; } color: $dark; } .show > .nav-link { background-color: $m-color_16; } li a.disabled { color: $l-dark !important; } } h4 { font-size: 1.125rem; } /* Simple Tab */ .simple-tab .nav-tabs { li a { color: $dark; } .nav-item.show .nav-link, .nav-link.active { color: $primary; font-weight: 600; background-color: $white; } } .nav-tabs { border-bottom: 1px solid $m-color_3; } .simple-tab .tab-content > .tab-pane { padding: 20px 0 0 0; } /* Simple Pills */ .simple-pills { .nav-pills { li a { color: $dark; } .nav-link.active, .show > .nav-link { background-color: $primary; border-color: transparent; } } .tab-content > .tab-pane { padding: 20px 0 0 0; } } /* Icon Tab */ .icon-tab { .nav-tabs { li a { color: $dark; } svg { width: 20px; vertical-align: bottom; } .nav-item.show .nav-link, .nav-link.active { color: $m-color_16; background-color: $white; border-color: $m-color_3 $m-color_3 $white; } } .tab-content > .tab-pane { padding: 20px 0 0 0; } } /* Icon Pill */ .icon-pill { .nav-pills { li a { color: $dark; } svg { width: 20px; vertical-align: bottom; } .nav-link.active, .show > .nav-link { background-color: $warning; border-color: transparent; } } .tab-content > .tab-pane { padding: 20px 0 0 0; } } /* Underline */ .underline-content { .nav-tabs { border-bottom: 1px solid $m-color_3; li a { padding-top: 15px; padding-bottom: 15px; } } .tab-content > .tab-pane { padding: 20px 0 0 0; } .nav-tabs { .nav-link.active, .show > .nav-link { border-color: transparent; border-bottom: 1px solid $secondary; color: $secondary; background-color: transparent; } .nav-link.active:hover, .show > .nav-link:hover, .nav-link.active:focus, .show > .nav-link:focus { border-bottom: 1px solid $secondary; } .nav-link { &:focus, &:hover { border-color: transparent; } } } } /* Animated Underline */ .animated-underline-content { .nav-tabs { border-bottom: 1px solid $m-color_3; li a { padding-top: 15px; padding-bottom: 15px; position: relative; } } .tab-content > .tab-pane { padding: 20px 0 0 0; } .nav-tabs { .nav-link.active, .show > .nav-link { border-color: transparent; color: $secondary; } .nav-link { &:focus, &:hover { border-color: transparent; } &.active:before { -webkit-transform: scale(1); transform: scale(1); } &:before { content: ""; height: 1px; position: absolute; width: 100%; left: 0; bottom: 0; background-color: $secondary; -webkit-transform: scale(0); transform: scale(0); transition: all .3s; } } } } /* Justify Tab */ .justify-tab { .nav-tabs { li a { color: $dark; } .nav-item.show .nav-link, .nav-link.active { color: $primary; background-color: $white; border-color: $m-color_3 $m-color_3 $white; } } .tab-content > .tab-pane { padding: 20px 0 0 0; } } /* Justify Pill */ .justify-pill { .nav-pills { li a { color: $dark; } .nav-link.active, .show > .nav-link { background-color: $info; border-color: transparent; } } .tab-content > .tab-pane { padding: 20px 0 0 0; } } /* Justify Centered Tab */ .tab-justify-centered { .nav-tabs { li a { color: $dark; } .nav-item.show .nav-link, .nav-link.active { color: $m-color_16; background-color: $white; border-color: $m-color_3 $m-color_3 $white; } } .tab-content > .tab-pane { padding: 20px 0 0 0; } } /* Justify Centered Pill */ .pill-justify-centered { .nav-pills { li a { color: $dark; } .nav-link.active, .show > .nav-link { background-color: $warning; } } .tab-content > .tab-pane { padding: 20px 0 0 0; } } /* Justify Right Tab */ .tab-justify-right { .nav-tabs { li a { color: $dark; } .nav-item.show .nav-link, .nav-link.active { color: $primary; background-color: $white; border-color: $m-color_3 $m-color_3 $white; } } .tab-content > .tab-pane { padding: 20px 0 0 0; } } /* Justify Right Pill */ .pill-justify-right { .nav-pills { .nav-link.active, .show > .nav-link { background-color: $info; } } .tab-content > .tab-pane { padding: 20px 0 0 0; } } /* With Icons */ .rounded-pills-icon { .nav-pills { li a { -webkit-border-radius: 0.625rem !important; -moz-border-radius: 0.625rem !important; -ms-border-radius: 0.625rem !important; -o-border-radius: 0.625rem !important; border-radius: 0.625rem !important; background-color: $m-color_1; width: 100px; padding: 8px; svg { display: block; text-align: center; margin-bottom: 10px; margin-top: 5px; margin-left: auto; margin-right: auto; } } .nav-link.active, .show > .nav-link { box-shadow: 0px 5px 15px 0px rgba(0, 0, 0, 0.3); background-color: $m-color_14; } } .tab-content > .tab-pane { padding: 20px 0 0 0; } } /* Vertical With Icon */ .rounded-vertical-pills-icon .nav-pills { a { -webkit-border-radius: 0.625rem !important; -moz-border-radius: 0.625rem !important; -ms-border-radius: 0.625rem !important; -o-border-radius: 0.625rem !important; border-radius: 0.625rem !important; background-color: #ffffff; border: solid 1px #e4e2e2; padding: 11px 23px; text-align: center; width: 100px; padding: 8px; svg { display: block; text-align: center; margin-bottom: 10px; margin-top: 5px; margin-left: auto; margin-right: auto; } } .nav-link.active, .show > .nav-link { box-shadow: 0px 5px 15px 0px rgba(0, 0, 0, 0.3); background-color: $m-color_14; border-color: transparent; } } /* Rouned Circle With Icons */ .rounded-circle-pills-icon { .nav-pills { li a { background-color: $m-color_1; padding: 20px 20px; svg { display: block; text-align: center; } } .nav-link.active, .show > .nav-link { box-shadow: 0px 5px 15px 0px rgba(0, 0, 0, 0.3); background-color: $info; } } .tab-content > .tab-pane { padding: 20px 0 0 0; } } /* Vertical Rounded Circle With Icon */ .rounded-circle-vertical-pills-icon .nav-pills { a { background-color: #ffffff; border: solid 1px #e4e2e2; border-radius: 50%; height: 58px; width: 60px; padding: 16px 18px; max-width: 80px; min-width: auto; svg { display: block; text-align: center; line-height: 19px; } } .nav-link.active, .show > .nav-link { box-shadow: 0px 5px 15px 0px rgba(0, 0, 0, 0.3); background-color: $info; border-color: transparent; } } /* Vertical Pill */ .vertical-pill .nav-pills { .nav-link.active, .show > .nav-link { background-color: $m-color_14; } } /* Vertical Pill Right */ .vertical-pill-right .nav-pills { .nav-link.active, .show > .nav-link { background-color: $m-color_14; } } /* Creative vertical pill */ .vertical-line-pill { .nav-pills { border-bottom: 1px solid transparent; width: 92px; border-right: 1px solid $m-color_3; a { padding-top: 15px; padding-bottom: 15px; position: relative; } .nav-link { padding: .5rem 0; &.active { position: relative; background-color: transparent; border-color: transparent; color: $secondary; font-weight: 600; } } .show > .nav-link { position: relative; background-color: transparent; border-color: transparent; color: $secondary; font-weight: 600; } .nav-link { &:focus, &:hover { border-color: transparent; } &.active:before { -webkit-transform: scale(1); transform: scale(1); bottom: 0; } &:before { content: ""; height: 100%; position: absolute; width: 1px; right: -1px; background-color: $secondary; -webkit-transform: scale(0); transform: scale(0); transition: all .3s; } } } #v-line-pills-tabContent { h4 { color: $warning; } p { color: $m-color_6; } } } .media img { border-radius: 50%; border: solid 5px $m-color_2; width: 80px; height: 80px; } /* Border Tab */ .border-tab .tab-content { border: 1px solid $m-color_3; border-top: none; padding: 10px; > .tab-pane { padding: 20px 30px 0 30px; } .media img.meta-usr-img { margin-left: -30px; } } /* Vertical Border Tab */ .vertical-border-pill .nav-pills { width: 92px; a { padding-top: 15px; padding-bottom: 15px; position: relative; } .nav-link { padding: .5rem 0; border: 1px solid $m-color_3; border-radius: 0; border-bottom: none; &:last-child { border-bottom: 1px solid $m-color_3; } &.active { position: relative; color: $white; background-color: $success; } } .show > .nav-link { position: relative; color: $white; background-color: $success; } } /* Border Top Tab */ .border-top-tab { .nav-tabs { border-bottom: 1px solid transparent; li a { border-radius: 0px; padding: 12px 30px; background: #f6f7f8; color: $m-color_10; border-right: 1px solid transparent; } } .tab-content > .tab-pane { padding: 20px 0 0 0; } .nav-tabs { .nav-item.show .nav-link { color: #495057; border-radius: 0px; padding: 12px 30px; background: #f6f7f8; color: $secondary; border: 1px solid transparent; border-top: 2px solid $secondary; } .nav-link { &.active { color: #495057; border-radius: 0px; padding: 12px 30px; background: #f6f7f8; color: $secondary; border: 1px solid transparent; border-top: 2px solid $secondary; } &:focus, &:hover { border: 1px solid transparent; border-top: 2px solid $secondary; } } } }
Save