feat: update theme and UI styles across components
- Refactored CSS variables for consistent theming, replacing hardcoded colors with CSS variables for better maintainability. - Updated various components including `AgentAvatar`, `AgentSelector`, and `AgentShareSettings` to utilize new theme variables for colors, backgrounds, and shadows. - Enhanced SVG icons to use `currentColor` for better adaptability to theme changes. - Improved overall UI consistency by aligning styles with the new theming approach, enhancing user experience across the application. These changes significantly improve the visual coherence and maintainability of the UI, ensuring a more seamless user experience.
This commit is contained in:
@@ -81,7 +81,7 @@ function fallbackCopy(text: string) {
|
||||
code {
|
||||
font-family: 'Monaco', 'Courier New', monospace;
|
||||
font-size: 11px;
|
||||
background: #f0f0f0;
|
||||
background: var(--td-bg-color-secondarycontainer);
|
||||
padding: 2px 4px;
|
||||
border-radius: 3px;
|
||||
}
|
||||
|
||||
@@ -52,7 +52,7 @@ const processedContent = computed(() => {
|
||||
flex-direction: column;
|
||||
max-height: 400px;
|
||||
max-width: 500px;
|
||||
border: 1px solid #07C05F;
|
||||
border: 1px solid var(--td-brand-color);
|
||||
border-radius: 4px;
|
||||
word-wrap: break-word;
|
||||
word-break: break-word;
|
||||
@@ -68,7 +68,7 @@ const processedContent = computed(() => {
|
||||
|
||||
.full-content {
|
||||
font-size: 13px;
|
||||
color: #333;
|
||||
color: var(--td-text-color-primary);
|
||||
line-height: 1.8;
|
||||
white-space: pre-wrap;
|
||||
word-break: break-word;
|
||||
@@ -90,8 +90,8 @@ const processedContent = computed(() => {
|
||||
.info-section {
|
||||
flex-shrink: 0;
|
||||
padding: 8px 12px;
|
||||
border-top: 1px solid #e7e7e7;
|
||||
background: #fafafa;
|
||||
border-top: 1px solid var(--td-component-stroke);
|
||||
background: var(--td-bg-color-secondarycontainer);
|
||||
}
|
||||
|
||||
.info-field {
|
||||
@@ -101,19 +101,19 @@ const processedContent = computed(() => {
|
||||
font-size: 11px;
|
||||
|
||||
.field-label {
|
||||
color: #8b8b8b;
|
||||
color: var(--td-text-color-placeholder);
|
||||
min-width: 60px;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.field-value {
|
||||
color: #666;
|
||||
color: var(--td-text-color-secondary);
|
||||
flex: 1;
|
||||
|
||||
code {
|
||||
font-family: 'Monaco', 'Courier New', monospace;
|
||||
font-size: 10px;
|
||||
background: #f0f0f0;
|
||||
background: var(--td-bg-color-secondarycontainer);
|
||||
padding: 1px 4px;
|
||||
border-radius: 2px;
|
||||
}
|
||||
|
||||
@@ -62,7 +62,7 @@ const formatValue = (value: any): string => {
|
||||
<style lang="less" scoped>
|
||||
.database-query-display {
|
||||
font-size: 13px;
|
||||
color: #333;
|
||||
color: var(--td-text-color-primary);
|
||||
}
|
||||
|
||||
.query-section {
|
||||
@@ -71,14 +71,14 @@ const formatValue = (value: any): string => {
|
||||
|
||||
.section-header {
|
||||
font-weight: 600;
|
||||
color: #1f2937;
|
||||
color: var(--td-text-color-primary);
|
||||
margin-bottom: 8px;
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
.query-code {
|
||||
background: #1e293b;
|
||||
color: #e2e8f0;
|
||||
background: var(--td-bg-color-container);
|
||||
color: var(--td-text-color-primary);
|
||||
padding: 12px;
|
||||
border-radius: 6px;
|
||||
overflow-x: auto;
|
||||
@@ -92,23 +92,23 @@ const formatValue = (value: any): string => {
|
||||
|
||||
.results-summary {
|
||||
padding: 10px 12px;
|
||||
background: #f0f9ff;
|
||||
border-left: 3px solid #3b82f6;
|
||||
background: var(--td-brand-color-light);
|
||||
border-left: 3px solid var(--td-brand-color);
|
||||
border-radius: 4px;
|
||||
margin-bottom: 16px;
|
||||
font-size: 13px;
|
||||
|
||||
strong {
|
||||
color: #1e40af;
|
||||
color: var(--td-brand-color);
|
||||
font-weight: 600;
|
||||
}
|
||||
}
|
||||
|
||||
.results-table-container {
|
||||
overflow-x: auto;
|
||||
border: 1px solid #e5e7eb;
|
||||
border: 1px solid var(--td-component-stroke);
|
||||
border-radius: 6px;
|
||||
background: #fff;
|
||||
background: var(--td-bg-color-container);
|
||||
}
|
||||
|
||||
.results-table {
|
||||
@@ -117,24 +117,24 @@ const formatValue = (value: any): string => {
|
||||
font-size: 12px;
|
||||
|
||||
thead {
|
||||
background: #f9fafb;
|
||||
border-bottom: 2px solid #e5e7eb;
|
||||
background: var(--td-bg-color-secondarycontainer);
|
||||
border-bottom: 2px solid var(--td-component-stroke);
|
||||
|
||||
th {
|
||||
padding: 10px 12px;
|
||||
text-align: left;
|
||||
font-weight: 600;
|
||||
color: #374151;
|
||||
color: var(--td-text-color-primary);
|
||||
white-space: nowrap;
|
||||
}
|
||||
}
|
||||
|
||||
tbody {
|
||||
tr {
|
||||
border-bottom: 1px solid #f3f4f6;
|
||||
border-bottom: 1px solid var(--td-component-stroke);
|
||||
|
||||
&:hover {
|
||||
background: #f9fafb;
|
||||
background: var(--td-bg-color-secondarycontainer);
|
||||
}
|
||||
|
||||
&:last-child {
|
||||
@@ -144,7 +144,7 @@ const formatValue = (value: any): string => {
|
||||
|
||||
td {
|
||||
padding: 10px 12px;
|
||||
color: #1f2937;
|
||||
color: var(--td-text-color-primary);
|
||||
vertical-align: top;
|
||||
max-width: 400px;
|
||||
overflow: hidden;
|
||||
@@ -156,11 +156,11 @@ const formatValue = (value: any): string => {
|
||||
.no-results {
|
||||
padding: 32px;
|
||||
text-align: center;
|
||||
color: #9ca3af;
|
||||
color: var(--td-text-color-placeholder);
|
||||
font-style: italic;
|
||||
background: #f9fafb;
|
||||
background: var(--td-bg-color-secondarycontainer);
|
||||
border-radius: 6px;
|
||||
border: 1px solid #e5e7eb;
|
||||
border: 1px solid var(--td-component-stroke);
|
||||
}
|
||||
</style>
|
||||
|
||||
|
||||
@@ -132,8 +132,8 @@ const formatMetadataValue = (value: unknown) => {
|
||||
|
||||
.meta-chip {
|
||||
font-size: 11px;
|
||||
color: #6b7280;
|
||||
background: #f9fafb;
|
||||
color: var(--td-text-color-secondary);
|
||||
background: var(--td-bg-color-secondarycontainer);
|
||||
border: 1px solid @card-border;
|
||||
border-radius: 10px;
|
||||
padding: 2px 8px;
|
||||
@@ -156,18 +156,18 @@ const formatMetadataValue = (value: unknown) => {
|
||||
|
||||
.doc-index {
|
||||
font-weight: 600;
|
||||
color: #07c05f;
|
||||
color: var(--td-brand-color);
|
||||
}
|
||||
|
||||
.doc-title {
|
||||
font-size: 13px;
|
||||
font-weight: 500;
|
||||
color: #374151;
|
||||
color: var(--td-text-color-primary);
|
||||
}
|
||||
|
||||
.status-pill {
|
||||
font-size: 11px;
|
||||
color: #07c05f;
|
||||
color: var(--td-brand-color);
|
||||
border: 1px solid rgba(7, 192, 95, 0.3);
|
||||
border-radius: 10px;
|
||||
padding: 2px 8px;
|
||||
@@ -192,14 +192,14 @@ const formatMetadataValue = (value: unknown) => {
|
||||
line-height: 1.5;
|
||||
|
||||
.field-label {
|
||||
color: #6b7280;
|
||||
color: var(--td-text-color-secondary);
|
||||
min-width: 90px;
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
.field-value {
|
||||
flex: 1;
|
||||
color: #374151;
|
||||
color: var(--td-text-color-primary);
|
||||
line-height: 1.5;
|
||||
}
|
||||
}
|
||||
@@ -219,38 +219,38 @@ const formatMetadataValue = (value: unknown) => {
|
||||
|
||||
li {
|
||||
font-size: 11px;
|
||||
color: #374151;
|
||||
color: var(--td-text-color-primary);
|
||||
line-height: 1.5;
|
||||
}
|
||||
|
||||
.metadata-key {
|
||||
font-weight: 600;
|
||||
margin-right: 4px;
|
||||
color: #6b7280;
|
||||
color: var(--td-text-color-secondary);
|
||||
}
|
||||
|
||||
.metadata-value {
|
||||
font-family: 'Monaco', 'Menlo', 'Courier New', monospace;
|
||||
color: #374151;
|
||||
color: var(--td-text-color-primary);
|
||||
}
|
||||
}
|
||||
|
||||
.empty-state {
|
||||
font-size: 12px;
|
||||
color: #9ca3af;
|
||||
color: var(--td-text-color-placeholder);
|
||||
text-align: center;
|
||||
padding: 14px;
|
||||
border: 1px dashed @card-border;
|
||||
border-radius: @card-radius;
|
||||
background: #f9fafb;
|
||||
background: var(--td-bg-color-secondarycontainer);
|
||||
}
|
||||
|
||||
code {
|
||||
font-family: 'Monaco', 'Menlo', 'Courier New', monospace;
|
||||
font-size: 10px;
|
||||
background: #f3f4f6;
|
||||
background: var(--td-bg-color-secondarycontainer);
|
||||
padding: 2px 4px;
|
||||
border-radius: 2px;
|
||||
color: #374151;
|
||||
color: var(--td-text-color-primary);
|
||||
}
|
||||
</style>
|
||||
|
||||
@@ -113,25 +113,25 @@ const getRelevanceLabel = (level: RelevanceLevel): string => {
|
||||
.results-header {
|
||||
font-size: 13px;
|
||||
font-weight: 600;
|
||||
color: #333;
|
||||
color: var(--td-text-color-primary);
|
||||
padding: 4px 0;
|
||||
}
|
||||
|
||||
.result-index {
|
||||
font-size: 13px;
|
||||
color: #8b8b8b;
|
||||
color: var(--td-text-color-placeholder);
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.knowledge-title {
|
||||
font-size: 13px;
|
||||
color: #333;
|
||||
color: var(--td-text-color-primary);
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
.score {
|
||||
font-size: 12px;
|
||||
color: #8b8b8b;
|
||||
color: var(--td-text-color-placeholder);
|
||||
font-weight: 500;
|
||||
}
|
||||
</style>
|
||||
|
||||
@@ -47,17 +47,17 @@ const hasMoreResults = computed(() => totalMatches.value > resultCount.value);
|
||||
|
||||
.summary-inline {
|
||||
font-size: 12px;
|
||||
color: #6b7280;
|
||||
color: var(--td-text-color-secondary);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
|
||||
&__divider {
|
||||
color: #d1d5db;
|
||||
color: var(--td-text-color-disabled);
|
||||
}
|
||||
|
||||
&__truncated {
|
||||
color: #f59e0b;
|
||||
color: var(--td-warning-color);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -75,19 +75,19 @@ const hasMoreResults = computed(() => totalMatches.value > resultCount.value);
|
||||
gap: 8px;
|
||||
padding: 4px 10px;
|
||||
border-radius: 4px;
|
||||
background: #f9fafb;
|
||||
border: 1px solid #edf2f7;
|
||||
background: var(--td-bg-color-secondarycontainer);
|
||||
border: 1px solid var(--td-component-stroke);
|
||||
font-size: 12px;
|
||||
line-height: 1.4;
|
||||
}
|
||||
|
||||
.result-row__index {
|
||||
font-weight: 600;
|
||||
color: #9ca3af;
|
||||
color: var(--td-text-color-placeholder);
|
||||
}
|
||||
|
||||
.result-row__title {
|
||||
color: #111827;
|
||||
color: var(--td-text-color-primary);
|
||||
font-weight: 500;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
@@ -103,9 +103,9 @@ const hasMoreResults = computed(() => totalMatches.value > resultCount.value);
|
||||
|
||||
.meta-pill {
|
||||
font-size: 11px;
|
||||
color: #6b7280;
|
||||
background: #fff;
|
||||
border: 1px solid #e5e7eb;
|
||||
color: var(--td-text-color-secondary);
|
||||
background: var(--td-bg-color-container);
|
||||
border: 1px solid var(--td-component-stroke);
|
||||
border-radius: 999px;
|
||||
padding: 2px 8px;
|
||||
}
|
||||
@@ -113,11 +113,11 @@ const hasMoreResults = computed(() => totalMatches.value > resultCount.value);
|
||||
.empty-state {
|
||||
padding: 20px;
|
||||
text-align: center;
|
||||
color: #9ca3af;
|
||||
color: var(--td-text-color-placeholder);
|
||||
font-size: 12px;
|
||||
font-style: italic;
|
||||
background: #f9fafb;
|
||||
background: var(--td-bg-color-secondarycontainer);
|
||||
border-radius: 6px;
|
||||
border: 1px dashed #e5e7eb;
|
||||
border: 1px dashed var(--td-component-stroke);
|
||||
}
|
||||
</style>
|
||||
|
||||
@@ -74,14 +74,14 @@ const props = defineProps<{
|
||||
|
||||
.kb-index {
|
||||
font-size: 12px;
|
||||
color: #8b8b8b;
|
||||
color: var(--td-text-color-placeholder);
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.kb-name {
|
||||
font-size: 14px;
|
||||
font-weight: 600;
|
||||
color: #333;
|
||||
color: var(--td-text-color-primary);
|
||||
}
|
||||
|
||||
.kb-body {
|
||||
@@ -92,7 +92,7 @@ const props = defineProps<{
|
||||
|
||||
.kb-description {
|
||||
font-size: 12px;
|
||||
color: #666;
|
||||
color: var(--td-text-color-secondary);
|
||||
line-height: 1.5;
|
||||
margin-top: 4px;
|
||||
}
|
||||
@@ -100,7 +100,7 @@ const props = defineProps<{
|
||||
code {
|
||||
font-family: 'Monaco', 'Courier New', monospace;
|
||||
font-size: 11px;
|
||||
background: #f0f0f0;
|
||||
background: var(--td-bg-color-secondarycontainer);
|
||||
padding: 2px 4px;
|
||||
border-radius: 3px;
|
||||
}
|
||||
|
||||
@@ -37,7 +37,7 @@ const props = defineProps<Props>();
|
||||
<style lang="less" scoped>
|
||||
.plan-display {
|
||||
font-size: 12px;
|
||||
color: #6b7280;
|
||||
color: var(--td-text-color-secondary);
|
||||
background: transparent;
|
||||
padding: 6px 0 6px 12px;
|
||||
margin: 0;
|
||||
@@ -65,7 +65,7 @@ const props = defineProps<Props>();
|
||||
|
||||
&.status-in_progress {
|
||||
.step-description {
|
||||
color: #374151;
|
||||
color: var(--td-text-color-primary);
|
||||
font-weight: 500;
|
||||
}
|
||||
}
|
||||
@@ -83,7 +83,7 @@ const props = defineProps<Props>();
|
||||
&.checked {
|
||||
svg {
|
||||
rect {
|
||||
fill: #07C05F;
|
||||
fill: var(--td-brand-color);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -91,7 +91,7 @@ const props = defineProps<Props>();
|
||||
&.in-progress {
|
||||
svg {
|
||||
rect {
|
||||
stroke: #07C05F;
|
||||
stroke: var(--td-brand-color);
|
||||
stroke-width: 2;
|
||||
}
|
||||
}
|
||||
@@ -100,13 +100,13 @@ const props = defineProps<Props>();
|
||||
|
||||
.step-description {
|
||||
flex: 1;
|
||||
color: #6b7280;
|
||||
color: var(--td-text-color-secondary);
|
||||
line-height: 1.5;
|
||||
font-size: 12px;
|
||||
|
||||
&.completed {
|
||||
text-decoration: line-through;
|
||||
color: #9ca3af;
|
||||
color: var(--td-text-color-placeholder);
|
||||
}
|
||||
|
||||
.sparkle {
|
||||
@@ -118,7 +118,7 @@ const props = defineProps<Props>();
|
||||
.no-steps {
|
||||
padding: 12px;
|
||||
text-align: center;
|
||||
color: #9ca3af;
|
||||
color: var(--td-text-color-placeholder);
|
||||
font-style: italic;
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
@@ -66,13 +66,13 @@ const props = defineProps<{
|
||||
|
||||
.field-label {
|
||||
font-size: 11px;
|
||||
color: #8b8b8b;
|
||||
color: var(--td-text-color-placeholder);
|
||||
min-width: 70px;
|
||||
}
|
||||
|
||||
.field-value {
|
||||
font-size: 11px;
|
||||
color: #666;
|
||||
color: var(--td-text-color-secondary);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -102,7 +102,7 @@ const props = defineProps<{
|
||||
transition: color 0.25s cubic-bezier(0.4, 0, 0.2, 1);
|
||||
|
||||
&:hover {
|
||||
color: #07c05f;
|
||||
color: var(--td-brand-color);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -117,14 +117,14 @@ const props = defineProps<{
|
||||
|
||||
.chunk-index {
|
||||
font-size: 12px;
|
||||
color: #333;
|
||||
color: var(--td-text-color-primary);
|
||||
font-weight: 600;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.chunk-position {
|
||||
font-size: 11px;
|
||||
color: #8b8b8b;
|
||||
color: var(--td-text-color-placeholder);
|
||||
}
|
||||
|
||||
|
||||
@@ -137,7 +137,7 @@ const props = defineProps<{
|
||||
overflow-x: hidden;
|
||||
padding: 0;
|
||||
border-radius: 6px;
|
||||
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
|
||||
box-shadow: var(--td-shadow-3);
|
||||
word-wrap: break-word;
|
||||
word-break: break-word;
|
||||
}
|
||||
@@ -146,7 +146,7 @@ const props = defineProps<{
|
||||
code {
|
||||
font-family: 'Monaco', 'Courier New', monospace;
|
||||
font-size: 11px;
|
||||
background: #f0f0f0;
|
||||
background: var(--td-bg-color-secondarycontainer);
|
||||
padding: 2px 4px;
|
||||
border-radius: 3px;
|
||||
}
|
||||
|
||||
@@ -151,7 +151,7 @@ const getRelevanceLabel = (level: RelevanceLevel): string => {
|
||||
transition: color 0.15s ease;
|
||||
|
||||
&:hover {
|
||||
color: #07c05f;
|
||||
color: var(--td-brand-color);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -167,7 +167,7 @@ const getRelevanceLabel = (level: RelevanceLevel): string => {
|
||||
|
||||
.result-index {
|
||||
font-size: 11px;
|
||||
color: #9ca3af;
|
||||
color: var(--td-text-color-placeholder);
|
||||
font-weight: 600;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
@@ -181,7 +181,7 @@ const getRelevanceLabel = (level: RelevanceLevel): string => {
|
||||
|
||||
.knowledge-title {
|
||||
font-size: 12px;
|
||||
color: #374151;
|
||||
color: var(--td-text-color-primary);
|
||||
flex: 1;
|
||||
font-weight: 500;
|
||||
overflow: hidden;
|
||||
@@ -215,12 +215,12 @@ const getRelevanceLabel = (level: RelevanceLevel): string => {
|
||||
|
||||
.full-content {
|
||||
font-size: 12px;
|
||||
color: #374151;
|
||||
color: var(--td-text-color-primary);
|
||||
line-height: 1.6;
|
||||
padding: 10px;
|
||||
background: #ffffff;
|
||||
background: var(--td-bg-color-container);
|
||||
border-radius: 4px;
|
||||
border: 1px solid #e5e7eb;
|
||||
border: 1px solid var(--td-component-stroke);
|
||||
white-space: pre-wrap;
|
||||
word-break: break-word;
|
||||
margin-bottom: 6px;
|
||||
@@ -239,7 +239,7 @@ const getRelevanceLabel = (level: RelevanceLevel): string => {
|
||||
code {
|
||||
font-family: 'Monaco', 'Menlo', 'Courier New', monospace;
|
||||
font-size: 10px;
|
||||
background: #f3f4f6;
|
||||
background: var(--td-bg-color-secondarycontainer);
|
||||
padding: 1px 4px;
|
||||
border-radius: 2px;
|
||||
}
|
||||
|
||||
@@ -30,9 +30,9 @@ useI18n(); // ensure component reacts to locale changes if needed
|
||||
display: flex;
|
||||
gap: 10px;
|
||||
padding: 12px 14px;
|
||||
background: #f9fafb;
|
||||
background: var(--td-bg-color-secondarycontainer);
|
||||
border-radius: 6px;
|
||||
border-left: 3px solid #9ca3af;
|
||||
border-left: 3px solid var(--td-text-color-placeholder);
|
||||
}
|
||||
|
||||
.thinking-icon {
|
||||
@@ -43,7 +43,7 @@ useI18n(); // ensure component reacts to locale changes if needed
|
||||
|
||||
.thinking-text {
|
||||
font-size: 15px;
|
||||
color: #1f2937;
|
||||
color: var(--td-text-color-primary);
|
||||
line-height: 1.65;
|
||||
white-space: pre-wrap;
|
||||
word-break: break-word;
|
||||
|
||||
@@ -194,21 +194,21 @@ const indexKey = (index: number, item: WebFetchResultItem): string => {
|
||||
.result-index {
|
||||
font-size: 11px;
|
||||
font-weight: 600;
|
||||
color: #9ca3af;
|
||||
color: var(--td-text-color-placeholder);
|
||||
}
|
||||
|
||||
.result-link {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 4px;
|
||||
color: #374151;
|
||||
color: var(--td-text-color-primary);
|
||||
font-size: 12px;
|
||||
font-weight: 500;
|
||||
text-decoration: none;
|
||||
transition: color 0.15s ease;
|
||||
|
||||
&:hover {
|
||||
color: #07c05f;
|
||||
color: var(--td-brand-color);
|
||||
text-decoration: underline;
|
||||
}
|
||||
}
|
||||
@@ -216,7 +216,7 @@ const indexKey = (index: number, item: WebFetchResultItem): string => {
|
||||
.result-domain {
|
||||
font-size: 12px;
|
||||
font-weight: 500;
|
||||
color: #374151;
|
||||
color: var(--td-text-color-primary);
|
||||
}
|
||||
|
||||
.meta-pill {
|
||||
@@ -225,7 +225,7 @@ const indexKey = (index: number, item: WebFetchResultItem): string => {
|
||||
padding: 2px 6px;
|
||||
border-radius: 999px;
|
||||
background: rgba(7, 192, 95, 0.08);
|
||||
color: #0f7a49;
|
||||
color: var(--td-success-color);
|
||||
font-size: 10px;
|
||||
font-weight: 600;
|
||||
line-height: 1.4;
|
||||
@@ -233,7 +233,7 @@ const indexKey = (index: number, item: WebFetchResultItem): string => {
|
||||
|
||||
.meta-text {
|
||||
font-size: 11px;
|
||||
color: #6b7280;
|
||||
color: var(--td-text-color-secondary);
|
||||
}
|
||||
|
||||
.result-content.expanded {
|
||||
@@ -241,7 +241,7 @@ const indexKey = (index: number, item: WebFetchResultItem): string => {
|
||||
}
|
||||
|
||||
.info-field .field-value a {
|
||||
color: #07c05f;
|
||||
color: var(--td-brand-color);
|
||||
text-decoration: none;
|
||||
|
||||
&:hover {
|
||||
@@ -251,7 +251,7 @@ const indexKey = (index: number, item: WebFetchResultItem): string => {
|
||||
|
||||
.raw-length {
|
||||
font-size: 11px;
|
||||
color: #9ca3af;
|
||||
color: var(--td-text-color-placeholder);
|
||||
margin-left: 4px;
|
||||
font-weight: normal;
|
||||
}
|
||||
@@ -261,13 +261,13 @@ const indexKey = (index: number, item: WebFetchResultItem): string => {
|
||||
}
|
||||
|
||||
.info-section-title.error {
|
||||
color: #dc2626;
|
||||
color: var(--td-error-color);
|
||||
}
|
||||
|
||||
.full-content.error-text {
|
||||
background: #fef2f2;
|
||||
border-color: #fecaca;
|
||||
color: #b91c1c;
|
||||
background: var(--td-error-color-light);
|
||||
border-color: var(--td-error-color-focus);
|
||||
color: var(--td-error-color);
|
||||
}
|
||||
</style>
|
||||
|
||||
|
||||
@@ -171,13 +171,13 @@ const formatDate = (dateStr: string): string => {
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
font-size: 12px;
|
||||
color: #4b5563;
|
||||
color: var(--td-text-color-secondary);
|
||||
/* Align with title start (after index column) */
|
||||
padding-left: 34px;
|
||||
}
|
||||
|
||||
.group-intro {
|
||||
color: #6b7280;
|
||||
color: var(--td-text-color-secondary);
|
||||
}
|
||||
|
||||
.group-source {
|
||||
@@ -185,15 +185,15 @@ const formatDate = (dateStr: string): string => {
|
||||
align-items: center;
|
||||
padding: 1px 6px;
|
||||
border-radius: 4px;
|
||||
background: #f3f4f6;
|
||||
border: 1px solid #e5e7eb;
|
||||
color: #111827;
|
||||
background: var(--td-bg-color-secondarycontainer);
|
||||
border: 1px solid var(--td-component-stroke);
|
||||
color: var(--td-text-color-primary);
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.group-count {
|
||||
font-size: 12px;
|
||||
color: #6b7280;
|
||||
color: var(--td-text-color-secondary);
|
||||
}
|
||||
|
||||
.results-list {
|
||||
@@ -203,7 +203,7 @@ const formatDate = (dateStr: string): string => {
|
||||
}
|
||||
|
||||
.result-item {
|
||||
background: #ffffff;
|
||||
background: var(--td-bg-color-container);
|
||||
border: none;
|
||||
border-radius: 0;
|
||||
transition: none;
|
||||
@@ -224,7 +224,7 @@ const formatDate = (dateStr: string): string => {
|
||||
.result-index {
|
||||
font-size: 11px;
|
||||
font-weight: 600;
|
||||
color: #9ca3af;
|
||||
color: var(--td-text-color-placeholder);
|
||||
flex-shrink: 0;
|
||||
min-width: 24px;
|
||||
text-align: right;
|
||||
@@ -236,11 +236,11 @@ const formatDate = (dateStr: string): string => {
|
||||
gap: 6px;
|
||||
flex: 1;
|
||||
text-decoration: none;
|
||||
color: #374151;
|
||||
color: var(--td-text-color-primary);
|
||||
transition: color 0.15s ease;
|
||||
|
||||
|
||||
&:hover {
|
||||
color: #07c05f;
|
||||
color: var(--td-brand-color);
|
||||
|
||||
.result-title {
|
||||
text-decoration: underline;
|
||||
@@ -275,7 +275,7 @@ const formatDate = (dateStr: string): string => {
|
||||
font-size: 12px;
|
||||
font-weight: 500;
|
||||
line-height: 1.4;
|
||||
color: #374151;
|
||||
color: var(--td-text-color-primary);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -285,9 +285,9 @@ const formatDate = (dateStr: string): string => {
|
||||
gap: 8px;
|
||||
margin-top: 4px;
|
||||
padding-top: 4px;
|
||||
border-top: 1px solid #f3f4f6;
|
||||
border-top: 1px solid var(--td-bg-color-secondarycontainer);
|
||||
font-size: 10px;
|
||||
color: #9ca3af;
|
||||
color: var(--td-text-color-placeholder);
|
||||
|
||||
.meta-item {
|
||||
display: flex;
|
||||
@@ -303,12 +303,12 @@ const formatDate = (dateStr: string): string => {
|
||||
.empty-state {
|
||||
padding: 16px;
|
||||
text-align: center;
|
||||
color: #9ca3af;
|
||||
color: var(--td-text-color-placeholder);
|
||||
font-size: 12px;
|
||||
font-style: italic;
|
||||
background: #f9fafb;
|
||||
background: var(--td-bg-color-secondarycontainer);
|
||||
border-radius: 6px;
|
||||
border: 1px dashed #e5e7eb;
|
||||
border: 1px dashed var(--td-component-stroke);
|
||||
}
|
||||
</style>
|
||||
|
||||
|
||||
@@ -4,15 +4,15 @@
|
||||
*/
|
||||
|
||||
// Color scheme for relevance levels
|
||||
@relevance-high: #00a870;
|
||||
@relevance-medium: #ff9800;
|
||||
@relevance-low: #757575;
|
||||
@relevance-weak: #bdbdbd;
|
||||
@relevance-high: var(--td-success-color);
|
||||
@relevance-medium: var(--td-warning-color);
|
||||
@relevance-low: var(--td-text-color-placeholder);
|
||||
@relevance-weak: var(--td-text-color-disabled);
|
||||
|
||||
// Card colors
|
||||
@card-bg: #ffffff;
|
||||
@card-border: #e5e7eb;
|
||||
@card-hover-border: #07c05f;
|
||||
@card-bg: var(--td-bg-color-container);
|
||||
@card-border: var(--td-component-stroke);
|
||||
@card-hover-border: var(--td-brand-color);
|
||||
@card-radius: 6px;
|
||||
@card-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
|
||||
@card-shadow-hover: 0 2px 6px rgba(7, 192, 95, 0.08);
|
||||
@@ -43,7 +43,7 @@
|
||||
|
||||
&.medium {
|
||||
background-color: rgba(255, 152, 0, 0.12);
|
||||
color: #d67700;
|
||||
color: var(--td-warning-color);
|
||||
}
|
||||
|
||||
&.low {
|
||||
@@ -53,7 +53,7 @@
|
||||
|
||||
&.weak {
|
||||
background-color: rgba(189, 189, 189, 0.12);
|
||||
color: #666;
|
||||
color: var(--td-text-color-secondary);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -64,8 +64,8 @@
|
||||
padding: 2px 6px;
|
||||
border-radius: 3px;
|
||||
font-size: 10px;
|
||||
background-color: #f3f4f6;
|
||||
color: #6b7280;
|
||||
background-color: var(--td-bg-color-secondarycontainer);
|
||||
color: var(--td-text-color-secondary);
|
||||
gap: 2px;
|
||||
line-height: 1.4;
|
||||
}
|
||||
@@ -122,14 +122,14 @@
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
font-size: 11px;
|
||||
color: #6b7280;
|
||||
color: var(--td-text-color-secondary);
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.result-content {
|
||||
padding: 0;
|
||||
border-top: 1px solid @card-border;
|
||||
background: white;
|
||||
background: var(--td-bg-color-container);
|
||||
max-height: 0;
|
||||
opacity: 0;
|
||||
overflow: hidden;
|
||||
@@ -144,7 +144,7 @@
|
||||
|
||||
.expand-icon {
|
||||
font-size: 12px;
|
||||
color: #9ca3af;
|
||||
color: var(--td-text-color-placeholder);
|
||||
transition: transform 0.15s ease, color 0.15s ease;
|
||||
|
||||
&.expanded {
|
||||
@@ -164,7 +164,7 @@
|
||||
.info-section-title {
|
||||
font-size: 11px;
|
||||
font-weight: 600;
|
||||
color: #6b7280;
|
||||
color: var(--td-text-color-secondary);
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.5px;
|
||||
margin-bottom: 8px;
|
||||
@@ -178,14 +178,14 @@
|
||||
line-height: 1.5;
|
||||
|
||||
.field-label {
|
||||
color: #6b7280;
|
||||
color: var(--td-text-color-secondary);
|
||||
min-width: 80px;
|
||||
flex-shrink: 0;
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
.field-value {
|
||||
color: #374151;
|
||||
color: var(--td-text-color-primary);
|
||||
flex: 1;
|
||||
word-break: break-word;
|
||||
}
|
||||
@@ -203,7 +203,7 @@
|
||||
.stats-title {
|
||||
font-size: 12px;
|
||||
font-weight: 600;
|
||||
color: #374151;
|
||||
color: var(--td-text-color-primary);
|
||||
margin-bottom: 6px;
|
||||
}
|
||||
|
||||
@@ -215,7 +215,7 @@
|
||||
|
||||
.stats-item {
|
||||
font-size: 11px;
|
||||
color: #6b7280;
|
||||
color: var(--td-text-color-secondary);
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
line-height: 1.5;
|
||||
@@ -235,7 +235,7 @@
|
||||
flex-direction: column;
|
||||
gap: 4px;
|
||||
padding: 6px 0;
|
||||
border-bottom: 1px solid #f3f4f6;
|
||||
border-bottom: 1px solid var(--td-component-stroke);
|
||||
|
||||
&:last-child {
|
||||
border-bottom: none;
|
||||
@@ -245,7 +245,7 @@
|
||||
// Content preview (truncated)
|
||||
.content-preview {
|
||||
font-size: 12px;
|
||||
color: #374151;
|
||||
color: var(--td-text-color-primary);
|
||||
line-height: 1.6;
|
||||
max-height: 60px;
|
||||
overflow: hidden;
|
||||
@@ -258,12 +258,12 @@
|
||||
// Full content
|
||||
.full-content {
|
||||
font-size: 12px;
|
||||
color: #374151;
|
||||
color: var(--td-text-color-primary);
|
||||
line-height: 1.6;
|
||||
white-space: pre-wrap;
|
||||
word-break: break-word;
|
||||
padding: 10px;
|
||||
background: #f9fafb;
|
||||
background: var(--td-bg-color-secondarycontainer);
|
||||
border-radius: 4px;
|
||||
border: 1px solid @card-border;
|
||||
}
|
||||
@@ -274,8 +274,8 @@
|
||||
font-size: 11px;
|
||||
border-radius: 4px;
|
||||
border: 1px solid @card-border;
|
||||
background: white;
|
||||
color: #6b7280;
|
||||
background: var(--td-bg-color-container);
|
||||
color: var(--td-text-color-secondary);
|
||||
cursor: pointer;
|
||||
transition: all 0.15s ease;
|
||||
font-weight: 500;
|
||||
@@ -291,10 +291,10 @@
|
||||
.empty-state {
|
||||
padding: 20px;
|
||||
text-align: center;
|
||||
color: #9ca3af;
|
||||
color: var(--td-text-color-placeholder);
|
||||
font-size: 12px;
|
||||
font-style: italic;
|
||||
background: #f9fafb;
|
||||
background: var(--td-bg-color-secondarycontainer);
|
||||
border-radius: @card-radius;
|
||||
border: 1px dashed @card-border;
|
||||
}
|
||||
@@ -303,7 +303,7 @@
|
||||
.code-block {
|
||||
font-family: 'Monaco', 'Menlo', 'Courier New', monospace;
|
||||
font-size: 11px;
|
||||
background: #f9fafb;
|
||||
background: var(--td-bg-color-secondarycontainer);
|
||||
padding: 8px;
|
||||
border-radius: 4px;
|
||||
border: 1px solid @card-border;
|
||||
|
||||
Reference in New Issue
Block a user