upskill-event-manager/assets/css/hvac-searchable-selectors.css
ben d5239d7a3f fix: improve markdown conversion and advanced fields visibility
- Enhanced markdown to HTML conversion with proper list handling
- Added support for H4, H5, H6 headers in TinyMCE editor configuration
- Improved bullet list processing with proper <ul> wrapping
- Fixed advanced fields visibility by adding CSS display:none default
- Timezone selector and advanced options (capacity, cost) now properly hidden

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-09-26 18:16:47 -03:00

408 lines
No EOL
7.4 KiB
CSS

/**
* HVAC Searchable Selectors Styling
*
* Styles for dynamic multi-select organizers, categories, and single-select venue
* with autocomplete search and modal integration.
*/
/* Main selector container */
.hvac-searchable-selector {
position: relative;
width: 100%;
}
/* Input wrapper with arrow */
.selector-input-wrapper {
position: relative;
display: flex;
align-items: center;
border: 2px solid #ddd;
border-radius: 4px;
background: #fff;
transition: border-color 0.3s ease;
}
.hvac-searchable-selector.dropdown-open .selector-input-wrapper {
border-color: #0274be;
box-shadow: 0 0 0 3px rgba(2, 116, 190, 0.1);
}
.selector-search-input {
flex: 1;
border: none;
padding: 12px 16px;
font-size: 16px;
outline: none;
background: transparent;
}
.selector-search-input::placeholder {
color: #999;
}
.selector-arrow {
padding: 0 12px;
color: #666;
cursor: pointer;
user-select: none;
transition: transform 0.3s ease;
}
.hvac-searchable-selector.dropdown-open .selector-arrow {
transform: rotate(180deg);
}
/* Selected items display */
.selected-items {
margin-top: 8px;
display: flex;
flex-wrap: wrap;
gap: 6px;
min-height: 20px;
}
.selected-item {
display: inline-flex;
align-items: center;
background: #0274be;
color: white;
padding: 4px 8px;
border-radius: 16px;
font-size: 14px;
line-height: 1.2;
}
.selected-item-text {
margin-right: 6px;
}
.remove-item {
background: none;
border: none;
color: white;
font-size: 16px;
font-weight: bold;
cursor: pointer;
padding: 0;
width: 16px;
height: 16px;
display: flex;
align-items: center;
justify-content: center;
border-radius: 50%;
transition: background-color 0.2s ease;
}
.remove-item:hover {
background: rgba(255, 255, 255, 0.2);
}
/* Dropdown */
.selector-dropdown {
position: absolute;
top: 100%;
left: 0;
right: 0;
z-index: 1000;
background: white;
border: 2px solid #0274be;
border-top: none;
border-radius: 0 0 4px 4px;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
max-height: 300px;
overflow: hidden;
}
.dropdown-content {
display: flex;
flex-direction: column;
max-height: 300px;
}
/* Loading spinner */
.loading-spinner {
padding: 20px;
text-align: center;
color: #666;
font-style: italic;
}
/* No results message */
.no-results {
padding: 20px;
text-align: center;
color: #666;
font-style: italic;
}
/* Dropdown items */
.dropdown-items {
overflow-y: auto;
flex: 1;
}
.dropdown-item {
display: flex;
align-items: center;
padding: 12px 16px;
border-bottom: 1px solid #f0f0f0;
cursor: pointer;
transition: background-color 0.2s ease;
}
.dropdown-item:hover {
background-color: #f8f9fa;
}
.dropdown-item.selected {
background-color: #e6f3fb;
color: #0274be;
}
.item-content {
flex: 1;
}
.item-title {
font-weight: 500;
margin-bottom: 2px;
}
.item-subtitle {
font-size: 14px;
color: #666;
}
.item-selected {
color: #0274be;
font-weight: bold;
margin-left: 8px;
}
/* Create new section */
.create-new-section {
border-top: 1px solid #e0e0e0;
padding: 8px;
}
.create-new-btn {
width: 100%;
background: #f8f9fa;
border: 1px solid #ddd;
border-radius: 4px;
padding: 8px 12px;
color: #0274be;
font-size: 14px;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
gap: 6px;
transition: all 0.2s ease;
}
.create-new-btn:hover {
background: #e9ecef;
border-color: #0274be;
}
.create-new-btn .dashicons {
font-size: 16px;
width: 16px;
height: 16px;
}
.create-new-disabled {
padding: 8px 12px;
text-align: center;
color: #999;
font-size: 12px;
font-style: italic;
border-top: 1px solid #e0e0e0;
}
/* Hidden inputs container */
.hidden-inputs {
display: none;
}
/* Responsive design */
@media (max-width: 768px) {
.selector-search-input {
font-size: 16px; /* Prevent zoom on iOS */
}
.selected-items {
gap: 4px;
}
.selected-item {
font-size: 13px;
padding: 3px 6px;
}
.dropdown-item {
padding: 10px 12px;
}
}
/* Focus states for accessibility */
.selector-search-input:focus {
outline: none;
}
.dropdown-item:focus {
outline: 2px solid #0274be;
outline-offset: -2px;
}
.create-new-btn:focus {
outline: 2px solid #0274be;
outline-offset: -2px;
}
.remove-item:focus {
outline: 2px solid white;
outline-offset: -2px;
}
/* Error states */
.hvac-searchable-selector.error .selector-input-wrapper {
border-color: #d63638;
}
.hvac-searchable-selector.error .selector-input-wrapper:focus-within {
box-shadow: 0 0 0 3px rgba(214, 54, 56, 0.1);
}
/* Disabled state */
.hvac-searchable-selector.disabled {
opacity: 0.6;
pointer-events: none;
}
/* Animation for dropdown */
.selector-dropdown {
opacity: 0;
transform: translateY(-5px);
transition: opacity 0.2s ease, transform 0.2s ease;
}
.hvac-searchable-selector.dropdown-open .selector-dropdown {
opacity: 1;
transform: translateY(0);
}
/* High contrast mode support */
@media (prefers-contrast: high) {
.selector-input-wrapper {
border-width: 3px;
}
.dropdown-item {
border-bottom-width: 2px;
}
.selected-item {
border: 2px solid white;
}
}
/* Advanced Options Toggle */
.hvac-advanced-options-toggle {
margin: 20px 0;
text-align: center;
}
.toggle-advanced-options {
background: #f8f9fa;
border: 2px solid #e0e0e0;
border-radius: 6px;
padding: 12px 20px;
font-size: 14px;
font-weight: 600;
color: #333;
cursor: pointer;
display: inline-flex;
align-items: center;
gap: 8px;
transition: all 0.3s ease;
}
.toggle-advanced-options:hover {
background: #e9ecef;
border-color: #0274be;
color: #0274be;
}
.toggle-advanced-options .dashicons {
font-size: 16px;
transition: transform 0.3s ease;
}
.toggle-description {
display: block;
margin-top: 8px;
color: #666;
font-size: 12px;
font-style: italic;
}
/* Advanced fields */
.advanced-field {
border-left: 4px solid #0274be;
padding-left: 16px;
margin-left: 8px;
background: #f8f9fa;
border-radius: 0 4px 4px 0;
position: relative;
display: none; /* Hidden by default */
}
.advanced-field::before {
content: "Advanced";
position: absolute;
top: 8px;
right: 8px;
background: #0274be;
color: white;
font-size: 10px;
font-weight: bold;
padding: 2px 6px;
border-radius: 2px;
text-transform: uppercase;
letter-spacing: 0.5px;
}
/* Override advanced field styling for better integration */
.advanced-field .form-row {
background: transparent;
margin: 0;
padding: 0;
}
/* Focus states for advanced options toggle */
.toggle-advanced-options:focus {
outline: 2px solid #0274be;
outline-offset: 2px;
}
/* Responsive adjustments for advanced options */
@media (max-width: 768px) {
.toggle-advanced-options {
width: 100%;
justify-content: center;
padding: 10px 16px;
}
.advanced-field {
margin-left: 0;
border-left-width: 3px;
padding-left: 12px;
}
.advanced-field::before {
font-size: 9px;
padding: 1px 4px;
}
}