Style: integrated chips filter toolbar design
- Wrap filter input in pill-shaped container (.chips-filter-group) - Remove hard border separation between toolbar and chips - Make toolbar feel like part of the chips area with shared background - Smaller, subtler count badge and clear button - Clear button styled as danger pill that fills on hover - Responsive: hide clear text on small screens Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -20,23 +20,40 @@
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
// Chips toolbar - search and actions
|
||||
// Chips toolbar - integrated filter bar inside chips area
|
||||
.chips-toolbar {
|
||||
display: none; // Hidden by default, shown via JS when chips exist
|
||||
align-items: center;
|
||||
gap: $es-spacing-sm;
|
||||
gap: $es-spacing-xs;
|
||||
padding: $es-spacing-sm $es-spacing-md;
|
||||
background: $es-white;
|
||||
border-bottom: 1px solid $es-border-color;
|
||||
padding-bottom: 0; // No bottom padding - chips will provide spacing
|
||||
background: transparent; // Same as chips area
|
||||
|
||||
&.has-chips {
|
||||
display: flex;
|
||||
}
|
||||
}
|
||||
|
||||
// Search icon
|
||||
// Filter input styled as a search chip
|
||||
.chips-filter-group {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.25rem;
|
||||
padding: 0.25rem 0.5rem;
|
||||
background: $es-white;
|
||||
border: 1px solid $es-border-color;
|
||||
border-radius: $es-radius-full;
|
||||
transition: all $es-transition-fast;
|
||||
|
||||
&:focus-within {
|
||||
border-color: $es-primary;
|
||||
box-shadow: 0 0 0 2px rgba($es-primary, 0.1);
|
||||
}
|
||||
|
||||
// Search icon inside the pill
|
||||
> i {
|
||||
color: $es-text-muted;
|
||||
font-size: 14px;
|
||||
font-size: 12px;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
}
|
||||
@@ -45,46 +62,46 @@
|
||||
input.chips-search-input,
|
||||
input.chips-search-input[type="text"] {
|
||||
flex: 1 !important;
|
||||
min-width: 80px !important;
|
||||
max-width: none !important;
|
||||
min-width: 60px !important;
|
||||
max-width: 120px !important;
|
||||
width: auto !important;
|
||||
height: auto !important;
|
||||
padding: 0 !important;
|
||||
padding: 0.125rem 0 !important;
|
||||
border: none !important;
|
||||
border-bottom: 1px solid transparent !important;
|
||||
border-radius: 0 !important;
|
||||
background: transparent !important;
|
||||
font-size: $es-font-size-sm !important;
|
||||
font-size: $es-font-size-xs !important;
|
||||
color: $es-text-primary;
|
||||
box-shadow: none !important;
|
||||
transition: border-color $es-transition-fast;
|
||||
|
||||
&:focus {
|
||||
outline: none !important;
|
||||
border: none !important;
|
||||
border-bottom: 1px solid $es-primary !important;
|
||||
box-shadow: none !important;
|
||||
}
|
||||
|
||||
&::placeholder {
|
||||
color: $es-text-muted;
|
||||
font-size: $es-font-size-xs;
|
||||
}
|
||||
}
|
||||
|
||||
// Count badge - smaller, pill style
|
||||
.chips-count {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 0.25rem;
|
||||
padding: 0.25rem 0.625rem;
|
||||
background: $es-primary;
|
||||
color: $es-white;
|
||||
font-size: $es-font-size-xs;
|
||||
gap: 0.125rem;
|
||||
padding: 0.125rem 0.5rem;
|
||||
background: $es-slate-200;
|
||||
color: $es-text-secondary;
|
||||
font-size: 11px;
|
||||
font-weight: $es-font-weight-semibold;
|
||||
border-radius: $es-radius-full;
|
||||
white-space: nowrap;
|
||||
|
||||
&.has-filter {
|
||||
background: $es-cyan-500;
|
||||
background: $es-cyan-100;
|
||||
color: $es-cyan-700;
|
||||
}
|
||||
|
||||
.count-filtered {
|
||||
@@ -92,7 +109,8 @@
|
||||
}
|
||||
|
||||
.count-separator {
|
||||
opacity: 0.7;
|
||||
opacity: 0.6;
|
||||
margin: 0 0.125rem;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -103,34 +121,43 @@
|
||||
margin-left: auto;
|
||||
}
|
||||
|
||||
// Clear button - subtle, chip-like
|
||||
.btn-chips-clear {
|
||||
@include button-reset;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.375rem;
|
||||
padding: 0.375rem 0.75rem;
|
||||
color: $es-white;
|
||||
font-size: $es-font-size-xs;
|
||||
font-weight: $es-font-weight-semibold;
|
||||
background: $es-danger;
|
||||
border-radius: $es-radius-sm;
|
||||
gap: 0.25rem;
|
||||
padding: 0.25rem 0.5rem;
|
||||
color: $es-danger;
|
||||
font-size: 11px;
|
||||
font-weight: $es-font-weight-medium;
|
||||
background: rgba($es-danger, 0.1);
|
||||
border-radius: $es-radius-full;
|
||||
transition: all $es-transition-fast;
|
||||
|
||||
&:hover {
|
||||
background: darken($es-danger, 8%);
|
||||
background: $es-danger;
|
||||
color: $es-white;
|
||||
}
|
||||
|
||||
i {
|
||||
font-size: 11px;
|
||||
font-size: 10px;
|
||||
}
|
||||
|
||||
.clear-text {
|
||||
// Hide text on small screens, keep icon
|
||||
@media (max-width: 480px) {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Chips container
|
||||
// Chips container - flows naturally from toolbar
|
||||
.entity-chips {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: $es-spacing-xs;
|
||||
padding: $es-spacing-md;
|
||||
padding: $es-spacing-sm $es-spacing-md $es-spacing-md;
|
||||
min-height: 40px;
|
||||
max-height: 300px;
|
||||
overflow-y: auto;
|
||||
|
||||
Reference in New Issue
Block a user