|
80 | 80 | $theme: digest-schema($tabs-schema); |
81 | 81 | $variant: map.get($theme, '_meta', 'theme'); |
82 | 82 |
|
83 | | - @if not($item-hover-background) and $item-background { |
84 | | - $item-hover-background: hsl(from var(--item-background) h s calc(l * 0.9)); |
85 | | - } |
86 | | - |
87 | 83 | @if not($item-active-background) and $item-background { |
88 | 84 | $item-active-background: hsl(from var(--item-background) h s calc(l * 0.9)); |
89 | 85 | } |
|
98 | 94 | } |
99 | 95 | } @else { |
100 | 96 | @if not($item-text-color) and $item-background { |
101 | | - $item-text-color: hsla(from adaptive-contrast(var(--item-background)) h s l / 0.9); |
| 97 | + $item-text-color: hsla(from adaptive-contrast(var(--item-background)) h s l / 0.8); |
102 | 98 | } |
103 | 99 |
|
104 | 100 | @if not($item-icon-color) and $item-background { |
105 | | - $item-icon-color: hsla(from adaptive-contrast(var(--item-background) h s l / 0.9)); |
| 101 | + $item-icon-color: hsla(from adaptive-contrast(var(--item-background) h s l / 0.8)); |
106 | 102 | } |
107 | 103 | } |
108 | 104 |
|
|
134 | 130 | } |
135 | 131 | } |
136 | 132 |
|
137 | | - @if $variant == 'bootstrap' { |
| 133 | + @if not($item-hover-background) { |
138 | 134 | @if not($item-hover-color) and $item-text-color { |
139 | | - $item-hover-color: hsl(from var(--item-text-color) h s calc(l * 0.9)); |
| 135 | + $item-hover-color: hsla(from var(--item-text-color) h s l / 1); |
140 | 136 | } |
141 | 137 |
|
142 | 138 | @if not($item-hover-icon-color) and $item-icon-color { |
143 | | - $item-hover-icon-color: hsla(from var(--item-icon-color) h s calc(l * 0.9)); |
| 139 | + $item-hover-icon-color: hsla(from var(--item-icon-color) h s l / 1); |
144 | 140 | } |
| 141 | + } @else { |
| 142 | + @if not($item-hover-color) { |
| 143 | + $item-hover-color: adaptive-contrast(var(--item-hover-background)); |
| 144 | + } |
| 145 | + |
| 146 | + @if not($item-hover-icon-color) { |
| 147 | + $item-hover-icon-color: adaptive-contrast(var(--item-hover-background)); |
| 148 | + } |
| 149 | + } |
| 150 | + |
| 151 | + @if not($item-hover-background) and $item-background { |
| 152 | + $item-hover-background: hsl(from var(--item-background) h s calc(l * 0.9)); |
| 153 | + } |
145 | 154 |
|
| 155 | + @if $variant == 'bootstrap' { |
146 | 156 | @if not($border-color) and $item-background { |
147 | 157 | $border-color: hsla(from adaptive-contrast(var(--item-background)) h s l / 0.5); |
148 | 158 | } |
|
151 | 161 | $border-color--hover: var(--border-color); |
152 | 162 | } |
153 | 163 | } @else { |
154 | | - @if not($item-hover-color) and $item-text-color { |
155 | | - $item-hover-color: hsla(from var(--item-text-color) h s l / 1); |
156 | | - } |
157 | | - |
158 | | - @if not($item-hover-icon-color) and $item-icon-color { |
159 | | - $item-hover-icon-color: hsla(from var(--item-icon-color) h s l / 1); |
160 | | - } |
161 | | - |
162 | 164 | @if not($item-background) { |
163 | 165 | @if not($indicator-color) and $item-text-color { |
164 | 166 | $indicator-color: var(--item-text-color); |
|
172 | 174 | $indicator-color: var(--item-active-color); |
173 | 175 | } |
174 | 176 |
|
175 | | - |
176 | 177 | @if not($indicator-color) { |
177 | 178 | $indicator-color: adaptive-contrast(var(--item-background)); |
178 | 179 | } |
|
0 commit comments