MediaWiki:CRT Search.css
Note: After publishing, you may have to bypass your browser's cache to see the changes.
- Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
- Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
- Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5.
/**
* EveryCRT Advanced Search Styles
*
*/
/* Container */
.crt-search-wrapper {
display: flex;
gap: 24px;
max-width: 1400px;
margin: 0 auto;
padding: 16px;
}
/* Mobile filter toggle */
.crt-mobile-filter-toggle {
display: none;
width: 100%;
padding: 12px 16px;
background: #2a2a2e;
border: 1px solid #3a3a3e;
border-radius: 8px;
color: #fff;
font-size: 16px;
cursor: pointer;
margin-bottom: 16px;
}
.crt-mobile-filter-toggle:hover {
background: #3a3a3e;
}
.crt-mobile-filter-toggle .crt-filter-icon {
margin-right: 8px;
}
/* Filters Sidebar */
.crt-search-filters {
width: 280px;
flex-shrink: 0;
background: #1a1a1e;
border-radius: 12px;
padding: 16px;
max-height: calc(100vh - 120px);
overflow-y: auto;
position: sticky;
top: 80px;
}
.crt-filters-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 16px;
padding-bottom: 12px;
border-bottom: 1px solid #3a3a3e;
}
.crt-filters-header h2 {
margin: 0;
font-size: 18px;
color: #fff;
}
.crt-reset-btn {
padding: 6px 12px;
background: transparent;
border: 1px solid #666;
border-radius: 6px;
color: #999;
font-size: 12px;
cursor: pointer;
transition: all 0.2s;
}
.crt-reset-btn:hover {
background: #333;
color: #fff;
border-color: #888;
}
/* Filter Sections */
.crt-filter-section {
margin-bottom: 8px;
background: #2a2a2e;
border-radius: 8px;
overflow: hidden;
}
.crt-section-header {
display: flex;
justify-content: space-between;
align-items: center;
padding: 12px 16px;
cursor: pointer;
user-select: none;
}
.crt-section-header:hover {
background: #333;
}
.crt-section-title {
font-weight: 600;
color: #fff;
font-size: 14px;
}
.crt-section-toggle {
color: #888;
font-size: 12px;
transition: transform 0.2s;
}
.crt-filter-section.collapsed .crt-section-toggle {
transform: rotate(-90deg);
}
.crt-section-content {
padding: 0 16px 16px;
}
.crt-filter-section.collapsed .crt-section-content {
display: none;
}
/* Filter Items */
.crt-filter-item {
margin-bottom: 12px;
}
.crt-filter-item:last-child {
margin-bottom: 0;
}
.crt-filter-item label {
display: block;
font-size: 12px;
color: #aaa;
margin-bottom: 6px;
}
/* Select inputs */
.crt-filter-select {
width: 100%;
padding: 8px 12px;
background: #1a1a1e;
border: 1px solid #3a3a3e;
border-radius: 6px;
color: #fff;
font-size: 14px;
cursor: pointer;
}
.crt-filter-select:hover {
border-color: #4a4a4e;
}
.crt-filter-select:focus {
outline: none;
border-color: #0088ff;
}
/* Number inputs */
.crt-filter-number {
width: 100%;
padding: 8px 12px;
background: #1a1a1e;
border: 1px solid #3a3a3e;
border-radius: 6px;
color: #fff;
font-size: 14px;
}
.crt-filter-number:focus {
outline: none;
border-color: #0088ff;
}
.crt-filter-number::placeholder {
color: #666;
}
/* Range inputs */
.crt-range-inputs {
display: flex;
align-items: center;
gap: 8px;
}
.crt-range-inputs input {
flex: 1;
min-width: 0;
}
.crt-range-sep {
color: #666;
}
/* Checkbox inputs */
.crt-checkbox-label {
display: flex !important;
align-items: center;
gap: 8px;
cursor: pointer;
font-size: 14px !important;
color: #ddd !important;
}
.crt-filter-checkbox {
width: 18px;
height: 18px;
accent-color: #0088ff;
cursor: pointer;
}
/* Multiselect */
.crt-multiselect {
position: relative;
}
.crt-multiselect-selected {
display: flex;
flex-wrap: wrap;
gap: 6px;
margin-bottom: 8px;
min-height: 0;
}
.crt-multiselect-tag {
display: inline-flex;
align-items: center;
gap: 6px;
padding: 4px 8px;
background: #0066cc;
border-radius: 4px;
font-size: 12px;
color: #fff;
}
.crt-tag-remove {
cursor: pointer;
opacity: 0.7;
font-size: 14px;
}
.crt-tag-remove:hover {
opacity: 1;
}
.crt-multiselect-input {
width: 100%;
padding: 8px 12px;
background: #1a1a1e;
border: 1px solid #3a3a3e;
border-radius: 6px;
color: #fff;
font-size: 14px;
}
.crt-multiselect-input:focus {
outline: none;
border-color: #0088ff;
}
.crt-multiselect-input::placeholder {
color: #666;
}
.crt-multiselect-dropdown {
display: none;
position: absolute;
top: 100%;
left: 0;
right: 0;
max-height: 200px;
overflow-y: auto;
background: #1a1a1e;
border: 1px solid #3a3a3e;
border-top: none;
border-radius: 0 0 6px 6px;
z-index: 100;
}
.crt-multiselect-dropdown.visible {
display: block;
}
.crt-multiselect-option {
display: flex;
align-items: center;
gap: 8px;
padding: 8px 12px;
cursor: pointer;
font-size: 13px;
color: #ddd;
}
.crt-multiselect-option:hover {
background: #2a2a2e;
}
.crt-multiselect-option.selected {
background: #0066cc33;
}
.crt-option-check {
width: 16px;
color: #0088ff;
}
.crt-multiselect-empty {
padding: 12px;
text-align: center;
color: #666;
font-size: 13px;
}
/* Apply button */
.crt-apply-filters {
margin-top: 16px;
padding-top: 16px;
border-top: 1px solid #3a3a3e;
}
.crt-apply-btn {
width: 100%;
padding: 12px 16px;
background: #0088ff;
border: none;
border-radius: 8px;
color: #fff;
font-size: 14px;
font-weight: 600;
cursor: pointer;
transition: background 0.2s;
}
.crt-apply-btn:hover {
background: #0077dd;
}
/* Results Area */
.crt-search-results {
flex: 1;
min-width: 0;
}
.crt-results-header {
display: flex;
justify-content: space-between;
align-items: center;
flex-wrap: wrap;
gap: 12px;
margin-bottom: 16px;
padding-bottom: 16px;
border-bottom: 1px solid #3a3a3e;
}
.crt-results-count {
font-size: 14px;
color: #aaa;
}
.crt-results-controls {
display: flex;
align-items: center;
gap: 16px;
}
.crt-results-sort {
display: flex;
align-items: center;
gap: 8px;
}
.crt-results-sort label {
font-size: 13px;
color: #888;
}
.crt-results-sort select {
padding: 6px 10px;
background: #2a2a2e;
border: 1px solid #3a3a3e;
border-radius: 6px;
color: #fff;
font-size: 13px;
cursor: pointer;
}
.crt-view-toggle {
display: flex;
gap: 4px;
}
.crt-view-btn {
padding: 6px 10px;
background: #2a2a2e;
border: 1px solid #3a3a3e;
border-radius: 6px;
color: #888;
font-size: 16px;
cursor: pointer;
transition: all 0.2s;
}
.crt-view-btn:hover {
background: #333;
color: #fff;
}
.crt-view-btn.active {
background: #0066cc;
border-color: #0066cc;
color: #fff;
}
/* Active Filters */
.crt-active-filters {
display: flex;
flex-wrap: wrap;
gap: 8px;
margin-bottom: 16px;
}
.crt-active-filter {
display: inline-flex;
align-items: center;
gap: 6px;
padding: 6px 10px;
background: #2a2a2e;
border: 1px solid #3a3a3e;
border-radius: 6px;
font-size: 12px;
color: #ddd;
}
.crt-af-label {
color: #888;
}
.crt-af-remove {
cursor: pointer;
color: #888;
font-size: 14px;
margin-left: 2px;
}
.crt-af-remove:hover {
color: #ff6666;
}
.crt-clear-all-filters {
padding: 6px 12px;
background: transparent;
border: 1px solid #666;
border-radius: 6px;
color: #888;
font-size: 12px;
cursor: pointer;
}
.crt-clear-all-filters:hover {
background: #333;
color: #fff;
}
/* Results Grid */
.crt-results-grid {
display: grid;
gap: 16px;
}
.crt-results-grid.grid-view {
grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}
.crt-results-grid.list-view {
grid-template-columns: 1fr;
}
/* Result Cards */
.crt-result-card {
display: block;
background: #2a2a2e;
border-radius: 12px;
overflow: hidden;
text-decoration: none;
color: inherit;
transition: transform 0.2s, box-shadow 0.2s;
}
.crt-result-card:hover {
transform: translateY(-4px);
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}
.grid-view .crt-card-image {
aspect-ratio: 4/3;
background: #1a1a1e;
display: flex;
align-items: center;
justify-content: center;
overflow: hidden;
}
.grid-view .crt-card-image img {
width: 100%;
height: 100%;
object-fit: contain;
}
.crt-no-image {
display: flex;
align-items: center;
justify-content: center;
width: 100%;
height: 100%;
color: #444;
font-size: 48px;
}
.crt-card-info {
padding: 12px;
}
.crt-card-brand {
font-size: 11px;
color: #888;
text-transform: uppercase;
letter-spacing: 0.5px;
margin-bottom: 4px;
}
.crt-card-title {
font-size: 14px;
font-weight: 600;
color: #fff;
margin-bottom: 8px;
line-height: 1.3;
}
.crt-card-meta {
display: flex;
flex-wrap: wrap;
gap: 6px;
}
.crt-card-meta span {
display: inline-block;
padding: 2px 6px;
background: #1a1a1e;
border-radius: 4px;
font-size: 11px;
color: #aaa;
}
.crt-meta-type {
background: #0066cc33 !important;
color: #66aaff !important;
}
/* List view adjustments */
.list-view .crt-result-card {
display: flex;
align-items: center;
}
.list-view .crt-card-image {
width: 120px;
height: 90px;
flex-shrink: 0;
background: #1a1a1e;
display: flex;
align-items: center;
justify-content: center;
}
.list-view .crt-card-image img {
max-width: 100%;
max-height: 100%;
object-fit: contain;
}
.list-view .crt-no-image {
font-size: 32px;
}
.list-view .crt-card-info {
flex: 1;
display: flex;
align-items: center;
gap: 16px;
}
.list-view .crt-card-brand {
display: none;
}
.list-view .crt-card-title {
margin: 0;
min-width: 200px;
}
.list-view .crt-card-meta {
margin: 0;
}
/* Loading State */
.crt-loading {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
padding: 64px;
color: #888;
}
.crt-spinner {
width: 40px;
height: 40px;
border: 3px solid #333;
border-top-color: #0088ff;
border-radius: 50%;
animation: spin 0.8s linear infinite;
margin-bottom: 16px;
}
@keyframes spin {
to { transform: rotate(360deg); }
}
.crt-loading-text {
font-size: 14px;
}
/* No Results */
.crt-no-results {
text-align: center;
padding: 64px 32px;
color: #888;
}
.crt-no-results-icon {
font-size: 64px;
margin-bottom: 16px;
opacity: 0.3;
}
.crt-no-results-text {
font-size: 18px;
margin-bottom: 8px;
color: #aaa;
}
.crt-no-results-hint {
font-size: 14px;
}
.crt-no-results-hint a {
color: #0088ff;
}
/* Error State */
.crt-error {
text-align: center;
padding: 64px 32px;
color: #ff6666;
}
.crt-error-icon {
font-size: 48px;
margin-bottom: 16px;
}
.crt-error-text {
font-size: 16px;
}
/* Pagination */
.crt-pagination {
display: flex;
justify-content: center;
align-items: center;
flex-wrap: wrap;
gap: 16px;
margin-top: 32px;
padding-top: 24px;
border-top: 1px solid #3a3a3e;
}
.crt-pagination-info {
font-size: 13px;
color: #888;
}
.crt-pagination-buttons {
display: flex;
align-items: center;
gap: 4px;
}
.crt-page-btn {
padding: 8px 12px;
background: #2a2a2e;
border: 1px solid #3a3a3e;
border-radius: 6px;
color: #ddd;
font-size: 13px;
cursor: pointer;
transition: all 0.2s;
}
.crt-page-btn:hover {
background: #333;
border-color: #4a4a4e;
}
.crt-page-btn.active {
background: #0066cc;
border-color: #0066cc;
color: #fff;
}
.crt-page-prev,
.crt-page-next {
font-weight: 500;
}
.crt-page-ellipsis {
color: #666;
padding: 0 8px;
}
/* Mobile Styles */
@media (max-width: 900px) {
.crt-search-wrapper {
flex-direction: column;
}
.crt-mobile-filter-toggle {
display: flex;
align-items: center;
justify-content: center;
}
.crt-search-filters {
display: none;
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
width: 100%;
max-height: none;
border-radius: 0;
z-index: 1000;
padding-top: 60px;
}
.crt-search-filters.visible {
display: block;
}
.crt-filters-header {
position: fixed;
top: 0;
left: 0;
right: 0;
background: #1a1a1e;
padding: 16px;
margin: 0;
border-bottom: 1px solid #3a3a3e;
z-index: 1;
}
.crt-results-grid.grid-view {
grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
}
.list-view .crt-card-info {
flex-direction: column;
align-items: flex-start;
gap: 8px;
}
}
@media (max-width: 600px) {
.crt-results-grid.grid-view {
grid-template-columns: repeat(2, 1fr);
gap: 12px;
}
.crt-card-info {
padding: 10px;
}
.crt-card-title {
font-size: 13px;
}
.crt-results-header {
flex-direction: column;
align-items: stretch;
}
.crt-results-controls {
justify-content: space-between;
}
}
/* Light mode overrides (for non-dark theme wikis) */
.skin-theme-clientpref-day .crt-search-filters,
.skin-theme-clientpref-day .crt-filter-section {
background: #f5f5f5;
}
.skin-theme-clientpref-day .crt-section-header:hover {
background: #eee;
}
.skin-theme-clientpref-day .crt-section-title,
.skin-theme-clientpref-day .crt-card-title {
color: #222;
}
.skin-theme-clientpref-day .crt-filter-select,
.skin-theme-clientpref-day .crt-filter-number,
.skin-theme-clientpref-day .crt-multiselect-input,
.skin-theme-clientpref-day .crt-multiselect-dropdown {
background: #fff;
border-color: #ddd;
color: #222;
}
.skin-theme-clientpref-day .crt-result-card {
background: #fff;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.skin-theme-clientpref-day .crt-card-image {
background: #f5f5f5;
}
.skin-theme-clientpref-day .crt-card-meta span {
background: #eee;
color: #666;
}
.skin-theme-clientpref-day .crt-page-btn {
background: #f5f5f5;
border-color: #ddd;
color: #222;
}
.skin-theme-clientpref-day .crt-page-btn:hover {
background: #eee;
}