|
18 | 18 | border: none !important; |
19 | 19 | } |
20 | 20 | } |
21 | | - |
22 | | -.noneSelected .tabList div[class*='is-selected']::after { |
23 | | - display: none; |
24 | | -} |
25 | | - |
26 | | -/* |
27 | | - Overriding vertical tabs is necessary because if the user's monitor display settings |
28 | | - are higher than 100%, then spectrum's tabs collapses to a Picker. This doesn't happen on |
29 | | - vertical tabs. So we decided to use the vertical tabs logic with horizontal tabs layout. |
30 | | -
|
31 | | - https://react-spectrum.adobe.com/react-spectrum/Tabs.html#collapse-overflow-behavior |
32 | | - */ |
33 | | -.componentWrapper { |
34 | | - box-sizing: border-box; |
35 | | - |
36 | | - div[class*='spectrum-Tabs--vertical'] { |
37 | | - border-left: 0 !important; |
38 | | - flex-direction: row !important; |
39 | | - padding-right: var(--spectrum-global-dimension-size-100) !important; |
40 | | - |
41 | | - > div[class*='Tabs-item'] { |
42 | | - margin-bottom: 0 !important; |
43 | | - margin-left: 0 !important; |
44 | | - box-sizing: border-box !important; |
45 | | - display: flex; |
46 | | - align-items: center; |
47 | | - |
48 | | - &:first-child { |
49 | | - padding-left: 0 !important; |
50 | | - } |
51 | | - } |
52 | | - } |
53 | | - |
54 | | - div[class*='TabsPanel--vertical'] { |
55 | | - flex-direction: column !important; |
56 | | - padding: 0 !important; |
57 | | - } |
58 | | -} |
59 | | - |
60 | | -.tabList { |
61 | | - span[class*='spectrum-Tabs-itemLabel'] { |
62 | | - font-size: var(--spectrum-global-dimension-font-size-200); |
63 | | - } |
64 | | - |
65 | | - div[class*='is-selected']::after { |
66 | | - transition: background-color 0.15s ease-in-out; |
67 | | - content: ''; |
68 | | - height: var(--spectrum-global-dimension-size-25); |
69 | | - background-color: transparent; |
70 | | - position: absolute; |
71 | | - left: 0; |
72 | | - right: 0; |
73 | | - bottom: 0; |
74 | | - } |
75 | | - |
76 | | - div[class*='is-selected'] { |
77 | | - position: relative; |
78 | | - |
79 | | - &:after { |
80 | | - background-color: var(--energy-blue); |
81 | | - } |
82 | | - } |
83 | | - |
84 | | - div[class*='spectrum-Tabs-selectionIndicator'] { |
85 | | - display: none; |
86 | | - } |
87 | | - |
88 | | - &.emptySelection { |
89 | | - div[class*='is-selected'] { |
90 | | - color: var(--spectrum-tabs-text-color, var(--spectrum-alias-label-text-color)); |
91 | | - } |
92 | | - } |
93 | | - |
94 | | - > div { |
95 | | - border-bottom-width: 0; |
96 | | - } |
97 | | -} |
98 | | - |
99 | | -.tabWrapper { |
100 | | - border-bottom: var(--spectrum-global-dimension-size-10) solid |
101 | | - var(--spectrum-tabs-rule-color, var(--spectrum-global-color-gray-200)) !important; |
102 | | - box-sizing: border-box !important; |
103 | | - display: flex; |
104 | | - align-items: center; |
105 | | -} |
106 | | - |
107 | | -.tabListScrollContainer { |
108 | | - flex: 1 1 auto; |
109 | | - min-width: 0; |
110 | | - overflow: auto hidden; |
111 | | -} |
0 commit comments