|
| 1 | +/** |
| 2 | + * @prop --cbp-tabs-color-border: var(--cbp-color-gray-cool-30); |
| 3 | + * @prop --cbp-tabs-color-border-dark: var(--cbp-color-gray-cool-60); |
| 4 | +
|
| 5 | + * @prop --cbp-tab-color: var(--cbp-color-interactive-secondary-darker); |
| 6 | + * @prop --cbp-tab-color-hover: var(--cbp-color-interactive-secondary-darker); |
| 7 | + * @prop --cbp-tab-color-focus: var(--cbp-color-text-lightest); |
| 8 | + * @prop --cbp-tab-color-active: var(--cbp-color-text-lightest); |
| 9 | + * @prop --cbp-tab-color-selected: var(--cbp-color-interactive-active-dark); |
| 10 | +
|
| 11 | + * @prop --cbp-tab-color-bg: transparent; |
| 12 | + * @prop --cbp-tab-color-bg-hover: var(--cbp-color-interactive-secondary-lighter); |
| 13 | + * @prop --cbp-tab-color-bg-focus: var(--cbp-color-interactive-focus-dark); |
| 14 | + * @prop --cbp-tab-color-bg-active: var(--cbp-color-interactive-active-dark); |
| 15 | + * @prop --cbp-tab-color-bg-selected: transparent; |
| 16 | +
|
| 17 | + * @prop --cbp-tab-color-border: transparent; |
| 18 | + * @prop --cbp-tab-color-border-hover: var(--cbp-color-interactive-secondary-lighter); |
| 19 | + * @prop --cbp-tab-color-border-focus: var(--cbp-color-interactive-focus-dark); |
| 20 | + * @prop --cbp-tab-color-border-active: var(--cbp-color-interactive-active-dark); |
| 21 | + * @prop --cbp-tab-color-border-selected: var(--cbp-color-interactive-active-dark); |
| 22 | +
|
| 23 | + * @prop --cbp-tab-color-dark: var(--cbp-color-interactive-secondary-lighter); |
| 24 | + * @prop --cbp-tab-color-hover-dark: var(--cbp-color-interactive-secondary-lighter); |
| 25 | + * @prop --cbp-tab-color-focus-dark: var(--cbp-color-text-darkest); |
| 26 | + * @prop --cbp-tab-color-active-dark: var(--cbp-color-text-darkest); |
| 27 | + * @prop --cbp-tab-color-selected-dark: var(--cbp-color-interactive-active-light); |
| 28 | +
|
| 29 | + * @prop --cbp-tab-color-bg-dark: transparent; |
| 30 | + * @prop --cbp-tab-color-bg-hover-dark: var(--cbp-color-interactive-secondary-darker); |
| 31 | + * @prop --cbp-tab-color-bg-focus-dark: var(--cbp-color-interactive-focus-light); |
| 32 | + * @prop --cbp-tab-color-bg-active-dark: var(--cbp-color-interactive-active-light); |
| 33 | + * @prop --cbp-tab-color-bg-selected-dark: transparent; |
| 34 | +
|
| 35 | + * @prop --cbp-tab-color-border-dark: transparent; |
| 36 | + * @prop --cbp-tab-color-border-hover-dark: var(--cbp-color-interactive-secondary-lighter); |
| 37 | + * @prop --cbp-tab-color-border-focus-dark: var(--cbp-color-interactive-focus-light); |
| 38 | + * @prop --cbp-tab-color-border-active-dark: var(--cbp-color-interactive-active-light); |
| 39 | + * @prop --cbp-tab-color-border-selected-dark: var(--cbp-color-interactive-active-light); |
| 40 | +
|
| 41 | + * @prop --cbp-tab-border-radius: 0; |
| 42 | +*/ |
| 43 | +:root { |
| 44 | + |
| 45 | + --cbp-tabs-color-border: var(--cbp-color-gray-cool-30); |
| 46 | + --cbp-tabs-color-border-dark: var(--cbp-color-gray-cool-60); |
| 47 | + |
| 48 | + --cbp-tab-color: var(--cbp-color-interactive-secondary-darker); |
| 49 | + --cbp-tab-color-hover: var(--cbp-color-interactive-secondary-darker); |
| 50 | + --cbp-tab-color-focus: var(--cbp-color-text-lightest); |
| 51 | + --cbp-tab-color-active: var(--cbp-color-text-lightest); |
| 52 | + --cbp-tab-color-selected: var(--cbp-color-interactive-active-dark); |
| 53 | + |
| 54 | + --cbp-tab-color-bg: transparent; |
| 55 | + --cbp-tab-color-bg-hover: var(--cbp-color-interactive-secondary-lighter); |
| 56 | + --cbp-tab-color-bg-focus: var(--cbp-color-interactive-focus-dark); |
| 57 | + --cbp-tab-color-bg-active: var(--cbp-color-interactive-active-dark); |
| 58 | + --cbp-tab-color-bg-selected: transparent; |
| 59 | + |
| 60 | + --cbp-tab-color-border: transparent; |
| 61 | + --cbp-tab-color-border-hover: var(--cbp-color-interactive-secondary-lighter); |
| 62 | + --cbp-tab-color-border-focus: var(--cbp-color-interactive-focus-dark); |
| 63 | + --cbp-tab-color-border-active: var(--cbp-color-interactive-active-dark); |
| 64 | + --cbp-tab-color-border-selected: var(--cbp-color-interactive-active-dark); |
| 65 | + |
| 66 | + --cbp-tab-color-dark: var(--cbp-color-interactive-secondary-lighter); |
| 67 | + --cbp-tab-color-hover-dark: var(--cbp-color-interactive-secondary-lighter); |
| 68 | + --cbp-tab-color-focus-dark: var(--cbp-color-text-darkest); |
| 69 | + --cbp-tab-color-active-dark: var(--cbp-color-text-darkest); |
| 70 | + --cbp-tab-color-selected-dark: var(--cbp-color-interactive-active-light); |
| 71 | + |
| 72 | + --cbp-tab-color-bg-dark: transparent; |
| 73 | + --cbp-tab-color-bg-hover-dark: var(--cbp-color-interactive-secondary-darker); |
| 74 | + --cbp-tab-color-bg-focus-dark: var(--cbp-color-interactive-focus-light); |
| 75 | + --cbp-tab-color-bg-active-dark: var(--cbp-color-interactive-active-light); |
| 76 | + --cbp-tab-color-bg-selected-dark: transparent; |
| 77 | + |
| 78 | + --cbp-tab-color-border-dark: transparent; |
| 79 | + --cbp-tab-color-border-hover-dark: var(--cbp-color-interactive-secondary-lighter); |
| 80 | + --cbp-tab-color-border-focus-dark: var(--cbp-color-interactive-focus-light); |
| 81 | + --cbp-tab-color-border-active-dark: var(--cbp-color-interactive-active-light); |
| 82 | + --cbp-tab-color-border-selected-dark: var(--cbp-color-interactive-active-light); |
| 83 | + |
| 84 | + --cbp-tab-border-radius: 0; |
| 85 | +} |
| 86 | + |
| 87 | +/* |
| 88 | + * Dark Mode - display dark design based on mode or context |
| 89 | + * |
| 90 | + */ |
| 91 | +[data-cbp-theme=light] cbp-tabs[context*=dark], |
| 92 | +[data-cbp-theme=dark] cbp-tabs:not([context=dark-inverts]):not([context=light-always]) { |
| 93 | + --cbp-tabs-color-border: var(--cbp-tabs-color-border-dark); |
| 94 | +} |
| 95 | + |
1 | 96 | cbp-tabs {
|
2 | 97 | display: flex;
|
3 | 98 | max-width: 100%;
|
4 | 99 | overflow: hidden;
|
5 |
| - background: linear-gradient(to top, var(--cbp-color-gray-cool-30) var(--cbp-border-size-md), transparent var(--cbp-border-size-md)); |
| 100 | + background: linear-gradient(to top, var(--cbp-tabs-color-border) var(--cbp-border-size-md), transparent var(--cbp-border-size-md)); |
6 | 101 | margin-bottom: var(--cbp-space-4x);
|
7 | 102 |
|
8 |
| - cbp-button { |
| 103 | + // overrides for responsive controls |
| 104 | + // TechDebt - dark colors CSS API not yet implemented in cbp-button |
| 105 | + cbp-button:not(#fakeId) { |
9 | 106 | align-self: flex-start;
|
10 |
| - --cbp-button-color-fill: var(--cbp-color-background-light) !important; |
11 |
| - --cbp-button-color-border: var(--cbp-color-gray-cool-30) !important; |
| 107 | + /* Restore this when button CSS API is fixed |
| 108 | + --cbp-button-color-text: var(--cbp-tab-color); |
| 109 | + --cbp-button-color-text-dark: var(--cbp-tab-color-dark); |
| 110 | + --cbp-button-color-fill: var(--cbp-color-background-light); |
| 111 | + --cbp-button-color-fill-dark: var(--cbp-color-background-dark); |
| 112 | + --cbp-button-color-border: var(--cbp-color-gray-cool-30); |
| 113 | + --cbp-button-color-border-dark: var(--cbp-color-gray-cool-60); |
| 114 | + */ |
12 | 115 | --cbp-button-border-radius: 0;
|
13 | 116 | }
|
14 | 117 |
|
|
0 commit comments