UNPKG

1.87 kBSCSSView Raw
1@import '../../styles/common/colors';
2@import '../../styles/common/screen';
3
4.tab-wrapper {
5 position: relative;
6 z-index: 1;
7
8 .tabs-list {
9 display: flex;
10 flex-wrap: wrap;
11 margin-bottom: -1px;
12 position: relative;
13 z-index: 1;
14 }
15
16 .tab-panels {
17 > div {
18 box-sizing: border-box;
19 }
20 }
21
22 &.secondary {
23 .tabs-list {
24 box-shadow: inset 0 -1px 0 0 $neutral-1;
25 margin-bottom: 0;
26 }
27
28 .tab {
29 border: none;
30 box-shadow: inset 0 -1px 0 0 $neutral-1;
31 box-sizing: border-box;
32 color: rgba($primary-4_5, .8);
33 font-size: 14px;
34 padding: 16px 0;
35 margin: 0 16px;
36
37 &.active {
38 color: $primary-4;
39 background-color: $white;
40 border-bottom: 2px solid $primary-1;
41 box-shadow: none;
42 padding-bottom: 13px;
43 }
44
45 + .tab {
46 margin-left: 16px;
47
48 @media #{$media-tiny} {
49 margin-left: 0;
50 }
51 }
52
53 &:first-child {
54 margin-left: 0;
55 }
56
57 &:hover {
58 color: rgba($primary-4_5, 1);
59 }
60
61 @media #{$media-tiny} {
62 margin: 0;
63 width: 100%;
64 }
65 }
66 }
67}
68
69.tab {
70 background-color: $white;
71 border-color: $neutral-3;
72 border-style: solid;
73 border-width: 1px;
74 color: $neutral-4;
75 cursor: pointer;
76 font-size: 13px;
77 font-weight: 200;
78 padding: 12px 15px;
79 user-select: none;
80
81 > span {
82 font-weight: normal;
83 }
84
85 + .tab {
86 margin-left: -1px;
87
88 &.active {
89 border-left: none;
90 margin-left: 0;
91 }
92
93 @media #{$media-tiny} {
94 margin-left: 0;
95 }
96 }
97
98 &.active {
99 color: $navy-text;
100 background-color: $neutral-2;
101 border-bottom: 1px solid $neutral-2;
102
103 > span {
104 color: $neutral-4;
105 }
106 }
107
108 &.disabled {
109 cursor: not-allowed;
110 }
111
112 @media #{$media-tiny} {
113 margin: 0;
114 width: 100%;
115 }
116}