increase topic chip contrast
This commit is contained in:
@@ -29,9 +29,9 @@
|
||||
border: 1px solid var(--topic-border);
|
||||
border-radius: 8px;
|
||||
background: var(--topic-bg);
|
||||
color: var(--topic-color);
|
||||
color: var(--topic-text);
|
||||
font-size: 12px;
|
||||
font-weight: 500;
|
||||
font-weight: 700;
|
||||
transition:
|
||||
transform 0.15s ease,
|
||||
box-shadow 0.15s ease;
|
||||
@@ -49,11 +49,12 @@
|
||||
border: 0;
|
||||
border-radius: 7px;
|
||||
background: color-mix(in srgb, var(--topic-color) 15%, #ffffff);
|
||||
color: color-mix(in srgb, var(--topic-color) 82%, #263653);
|
||||
color: var(--topic-text);
|
||||
font-size: 11px;
|
||||
font-weight: 700;
|
||||
|
||||
&:hover:not(:disabled) {
|
||||
color: var(--topic-color);
|
||||
color: var(--topic-text);
|
||||
text-decoration: none;
|
||||
}
|
||||
}
|
||||
@@ -65,7 +66,7 @@
|
||||
|
||||
:host(.topic-chip--active.topic-chip--mini) .topic-chip__button {
|
||||
background: color-mix(in srgb, var(--topic-color) 24%, #ffffff);
|
||||
color: var(--topic-color);
|
||||
color: var(--topic-text);
|
||||
}
|
||||
|
||||
.topic-chip__label {
|
||||
@@ -84,10 +85,13 @@
|
||||
height: 18px;
|
||||
padding: 0 5px;
|
||||
border-radius: 999px;
|
||||
background: rgba(255, 255, 255, 0.78);
|
||||
color: inherit;
|
||||
background: var(--topic-count-bg);
|
||||
color: var(--topic-count-text);
|
||||
font-size: 11px;
|
||||
font-weight: 700;
|
||||
font-weight: 800;
|
||||
box-shadow:
|
||||
inset 0 0 0 1px color-mix(in srgb, var(--topic-color) 24%, transparent),
|
||||
0 1px 2px rgba(15, 23, 42, 0.08);
|
||||
}
|
||||
|
||||
:host(.topic-chip--mini) .topic-chip__count {
|
||||
@@ -96,8 +100,9 @@
|
||||
padding: 0;
|
||||
border-radius: 0;
|
||||
background: transparent;
|
||||
color: var(--topic-color);
|
||||
color: var(--topic-count-text);
|
||||
font-size: 10px;
|
||||
box-shadow: none;
|
||||
}
|
||||
|
||||
.topic-chip__count-icon {
|
||||
|
||||
@@ -116,6 +116,25 @@ export class TopicChipComponent {
|
||||
return this.colorTokens?.color ?? this.color;
|
||||
}
|
||||
|
||||
@HostBinding('style.--topic-text')
|
||||
get topicText(): string {
|
||||
return this.colorTokens?.color
|
||||
? this.colorTokens.color
|
||||
: `color-mix(in srgb, ${this.topicColor} 38%, #0f172a)`;
|
||||
}
|
||||
|
||||
@HostBinding('style.--topic-count-bg')
|
||||
get topicCountBackground(): string {
|
||||
return this.colorTokens?.background ?? '#ffffff';
|
||||
}
|
||||
|
||||
@HostBinding('style.--topic-count-text')
|
||||
get topicCountText(): string {
|
||||
return this.colorTokens?.color
|
||||
? this.colorTokens.color
|
||||
: `color-mix(in srgb, ${this.topicColor} 48%, #0f172a)`;
|
||||
}
|
||||
|
||||
get hasCount(): boolean {
|
||||
return (
|
||||
this.count !== undefined && this.count !== null && `${this.count}` !== ''
|
||||
|
||||
Reference in New Issue
Block a user