Appearance
Collage Search Styles
File Information
- Path:
assets/css/collage-search.css - Purpose: Search page, filters, tabs, and results styles
- Size: ~7.2 KB
Overview
The Collage Search CSS file provides comprehensive styles for the search functionality, including search filters, tabs, result lists, and search detail pages.
Key Features
Search Interface
- Search title and headers
- Filter controls
- Search tabs
- Result display
Layout Components
- Fixed search header
- Scrollable results
- Table list views
- Detail page layouts
Interactive Elements
- Button toggles
- Filter chips
- Recent searches
- Search tags
CSS Classes
.search-title
Search page title:
css
.search-title {
min-height: 32px;
display: flex;
align-items: center;
gap: 12px;
position: relative;
}Properties:
- Flexbox layout
- Minimum height
- Gap spacing
.search-title h3
Main title:
css
.search-title h3 {
font-size: var(--fontsize18);
font-weight: 500;
line-height: 1.35;
color: var(--DBgray);
margin: 0px;
}.search-title h4
Subtitle:
css
.search-title h4 {
font-size: var(--fontsize11);
font-weight: 700;
line-height: 1.45;
color: var(--DBgray5252);
margin: 0px;
}.border-title
Title with border line:
css
.border-title:before {
position: absolute;
content: '';
left: 0px;
right: 0px;
top: 50%;
height: 1px;
transform: translateY(-50%);
background-color: var(--borderColor);
}
.border-title h3,
.border-title h4 {
padding: 0px 12px;
margin-left: -12px;
z-index: 1;
background-color: var(--DBwhite);
}Properties:
- Pseudo-element border line
- Text with background overlay
- Z-index for layering
.recent-search-list
Recent searches list:
css
.recent-search-list {
display: flex;
flex-direction: column;
gap: 8px;
}
.recent-search-list .v-list-item {
min-height: auto;
padding: 8px 0px;
}
.recent-search-list .v-list-item__content {
font-size: var(--fontsize14);
font-weight: 400;
line-height: 1.45;
color: var(--DBgray);
padding: 0px;
flex: initial;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
display: block;
cursor: pointer;
}
.recent-search-list .v-list-item__content:hover {
color: var(--DBblue) !important;
text-decoration: underline;
}Properties:
- Column layout
- Truncated text
- Hover effects
- Clickable items
.searchTopFixed
Fixed search header:
css
.searchTopFixed {
display: flex;
flex-direction: column;
gap: 12px;
padding-left: 16px;
padding-right: 20px;
}
.searchTopFixed .table-lists-view {
position: relative;
z-index: 1;
border-top: 1px solid var(--borderColor);
border-bottom: 1px solid var(--borderColor);
margin-left: -40px;
margin-right: -40px;
padding: 0px 40px;
box-shadow: 0px 2px 6px 0px var(--boxshadow10);
}Properties:
- Fixed positioning
- Shadow effect
- Full-width borders
.searchType
Search type tabs:
css
.searchType {
display: flex;
align-items: end;
flex-wrap: wrap;
row-gap: 4px;
column-gap: 12px;
}
.searchType .v-tab {
font-size: var(--fontsize14);
font-weight: 500;
line-height: 1.4;
color: var(--DBgray5252) !important;
text-transform: capitalize;
letter-spacing: normal;
padding: 4px 16px;
min-width: auto;
z-index: 2;
}
.searchType .v-tab.v-tab--active {
color: var(--DBgray) !important;
font-weight: 700;
}Properties:
- Flexbox wrap layout
- Active state styling
- Capitalized text
.searchType .v-btn-toggle
Button toggle group:
css
.searchType .v-btn-toggle {
border: 1px solid var(--borderColor);
overflow: hidden;
height: auto;
margin: 4px 0px;
}
.searchType .v-btn-toggle .v-btn {
font-size: var(--fontsize14);
font-weight: 400;
line-height: 1.4;
color: var(--DBgray);
height: 34px !important;
min-width: 36px !important;
padding: 4px 8px;
letter-spacing: normal;
text-transform: none;
background-color: transparent;
opacity: 1;
}
.searchType .v-btn-toggle .v-btn:first-child {
font-weight: 700;
background-color: var(--DBgrayLight1);
cursor: default;
}
.searchType .v-btn-toggle .v-btn[aria-expanded="true"],
.searchType .v-btn-toggle .v-btn:not(:first-child):hover {
background-color: var(--DBgrayLight);
}Properties:
- Bordered container
- First button highlighted
- Hover states
.searchTopFixed .searchTags
Search filter tags:
css
.searchTopFixed .searchTags {
display: flex;
align-items: center;
flex-wrap: wrap;
gap: 4px;
}
.searchTopFixed .searchTags .select-tag-chip {
margin: 0px !important;
cursor: pointer;
}Properties:
- Flex wrap layout
- Chip spacing
- Pointer cursor
.searchResult
Search results container:
css
.searchResult .customscrollbar {
margin-top: 4px;
padding-left: 20px;
padding-right: 16px;
}
.searchResult .v-item-group:not(.v-btn-toggle) {
background-color: transparent !important;
}
.searchResult .v-window-item .row:not(:first-child) {
margin-top: 20px;
}Properties:
- Scrollable container
- Transparent background
- Row spacing
.searchDetailPage
Search detail page:
css
.searchDetailPage {
padding-left: 0px;
padding-right: 0px;
}
.searchDetailPage .searchResult {
display: flex;
flex-direction: column;
height: 100%;
box-shadow: none !important;
background-color: transparent !important;
padding-left: 20px;
padding-right: 20px;
}
.searchDetailPage .v-item-group {
height: 100%;
}
.searchDetailPage .v-window-item .customscrollbar,
.searchDetailPage .v-window-item .customscrollbar .row,
.searchDetailPage .v-window-item .table-lists-view.tableListSkeleton:not(.h-auto) {
margin-top: 0px !important;
}
.searchDetailPage .v-window-item .table-lists-view ~ .customscrollbar {
height: calc(100% - 40px);
}
.searchDetailPage .table-header {
padding-left: 20px;
padding-right: 20px;
}Properties:
- Full-height layout
- No padding
- Calculated heights
Responsive Design
Large Desktop
css
@media only screen and (max-width: 1639.98px) {
.searchType {
row-gap: 0px;
column-gap: 8px;
}
.searchTopFixed,
.searchDetailPage .searchResult {
/* Responsive adjustments */
}
}Behavior:
- Reduced gaps
- Adjusted spacing
Usage Examples
Search Header
html
<div class="searchTopFixed">
<div class="search-title border-title">
<h3>Search Results</h3>
</div>
<div class="searchType">
<v-tabs>
<v-tab>All</v-tab>
<v-tab>Assets</v-tab>
<v-tab>Folders</v-tab>
</v-tabs>
</div>
<div class="searchTags">
<v-chip>Filter 1</v-chip>
<v-chip>Filter 2</v-chip>
</div>
</div>Recent Searches
html
<div class="recent-search-list">
<v-list-item>
<v-list-item-content>Recent search 1</v-list-item-content>
</v-list-item>
<v-list-item>
<v-list-item-content>Recent search 2</v-list-item-content>
</v-list-item>
</div>Integration Points
- Search Page: Main search interface
- Search Components: SearchBar, SearchFilter, SearchTabs
- Result Display: Asset list, folder list
- Filter System: Tag filters, type filters
Notes for Development
- Uses CSS variables for theming
- Responsive breakpoints included
- Scrollable results area
- Fixed header on scroll
- Filter chips styled
Related Documentation
- Styles Overview - All styles documentation
- SearchBar Component - Search component
- Search Page - Search page