UNPKG

1.2 kBSCSSView Raw
1/**
2 * @license
3 * Copyright Akveo. All Rights Reserved.
4 * Licensed under the MIT License. See License.txt in the project root for license information.
5 */
6
7@import '../../styles/core/mixins';
8
9:host {
10 display: block;
11
12
13 &.full-width .tabset {
14 justify-content: space-around;
15 }
16
17 ::ng-deep nb-tab {
18 flex: 1;
19 -ms-flex: 1 1 auto;
20 overflow: auto;
21 display: none;
22 &.content-active {
23 display: block;
24 }
25 }
26
27 .tabset {
28 display: flex;
29 flex-direction: row;
30 list-style-type: none;
31 margin: 0;
32 padding: 0;
33
34 .tab {
35 margin-bottom: -1px;
36 text-align: center;
37 position: relative;
38
39 &.active a::before {
40 display: block;
41 }
42
43 a {
44 display: flex;
45 position: relative;
46 text-decoration: none;
47
48 &::before {
49 position: absolute;
50 content: '';
51 width: 100%;
52 border-radius: 3px;
53 bottom: -2px;
54 left: 0;
55 }
56
57 nb-icon {
58 vertical-align: middle;
59 }
60
61 nb-icon + span {
62 @include nb-ltr(margin-left, 0.5rem);
63 @include nb-rtl(margin-right, 0.5rem);
64 }
65 }
66 }
67 }
68}