mirror of
https://github.com/Coldsmiles/infstarweb.git
synced 2026-04-23 02:30:41 +08:00
feat: Enhance facility modal with custom select dropdowns and improved styling
This commit is contained in:
@@ -313,10 +313,18 @@
|
||||
.modal-title {
|
||||
font-size: 32px;
|
||||
font-weight: 700;
|
||||
margin-bottom: 0;
|
||||
margin-bottom: 16px;
|
||||
line-height: 1.2;
|
||||
}
|
||||
|
||||
.modal-badges-row {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
gap: 16px;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
.modal-badges {
|
||||
display: flex;
|
||||
gap: 10px;
|
||||
@@ -521,14 +529,6 @@
|
||||
transform: translateY(-1px);
|
||||
}
|
||||
|
||||
.modal-title-row {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: flex-start;
|
||||
gap: 16px;
|
||||
margin-bottom: 16px;
|
||||
}
|
||||
|
||||
.btn-edit-facility {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
@@ -734,28 +734,117 @@
|
||||
|
||||
.form-group input[type="text"],
|
||||
.form-group input[type="number"],
|
||||
.form-group textarea,
|
||||
.form-group select {
|
||||
.form-group textarea {
|
||||
width: 100%;
|
||||
padding: 10px 14px;
|
||||
padding: 12px 16px;
|
||||
border: 1.5px solid rgba(0,0,0,0.1);
|
||||
border-radius: 12px;
|
||||
font-size: 14px;
|
||||
font-family: inherit;
|
||||
background: #f9f9fa;
|
||||
transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
|
||||
background-color: #f9f9fa;
|
||||
transition: all 0.2s ease;
|
||||
color: var(--text-primary);
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
.form-group input:focus,
|
||||
.form-group textarea:focus,
|
||||
.form-group select:focus {
|
||||
.form-group textarea:focus {
|
||||
outline: none;
|
||||
border-color: var(--accent-color);
|
||||
background: #fff;
|
||||
background-color: #fff;
|
||||
box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.1);
|
||||
}
|
||||
|
||||
/* Custom Select Dropdown */
|
||||
.custom-select {
|
||||
position: relative;
|
||||
width: 100%;
|
||||
user-select: none;
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
.custom-select-trigger {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
width: 100%;
|
||||
padding: 12px 16px;
|
||||
border: 1.5px solid rgba(0,0,0,0.1);
|
||||
border-radius: 12px;
|
||||
background-color: #f9f9fa;
|
||||
color: var(--text-primary);
|
||||
cursor: pointer;
|
||||
transition: all 0.2s ease;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
.custom-select-trigger i {
|
||||
color: var(--text-secondary);
|
||||
font-size: 12px;
|
||||
transition: transform 0.3s ease;
|
||||
}
|
||||
|
||||
.custom-select:hover .custom-select-trigger {
|
||||
background-color: #fff;
|
||||
border-color: rgba(0,0,0,0.2);
|
||||
}
|
||||
|
||||
.custom-select.open .custom-select-trigger {
|
||||
border-color: var(--accent-color);
|
||||
background-color: #fff;
|
||||
box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.1);
|
||||
}
|
||||
|
||||
.custom-select.open .custom-select-trigger i {
|
||||
transform: rotate(180deg);
|
||||
}
|
||||
|
||||
.custom-select-options {
|
||||
position: absolute;
|
||||
top: calc(100% + 8px);
|
||||
left: 0;
|
||||
right: 0;
|
||||
background: #fff;
|
||||
border-radius: 12px;
|
||||
box-shadow: 0 10px 40px rgba(0,0,0,0.15);
|
||||
border: 1px solid rgba(0,0,0,0.08);
|
||||
opacity: 0;
|
||||
visibility: hidden;
|
||||
transform: translateY(-10px);
|
||||
transition: all 0.2s cubic-bezier(0.25, 1, 0.5, 1);
|
||||
z-index: 100;
|
||||
padding: 8px;
|
||||
}
|
||||
|
||||
.custom-select.open .custom-select-options {
|
||||
opacity: 1;
|
||||
visibility: visible;
|
||||
transform: translateY(0);
|
||||
}
|
||||
|
||||
.custom-option {
|
||||
padding: 10px 14px;
|
||||
border-radius: 8px;
|
||||
cursor: pointer;
|
||||
transition: background 0.2s, color 0.2s;
|
||||
color: var(--text-primary);
|
||||
margin-bottom: 2px;
|
||||
}
|
||||
|
||||
.custom-option:last-child {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
.custom-option:hover {
|
||||
background: #f5f5f7;
|
||||
}
|
||||
|
||||
.custom-option.selected {
|
||||
background: #e0f2fe;
|
||||
color: #0369a1;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.form-group textarea {
|
||||
resize: vertical;
|
||||
min-height: 60px;
|
||||
|
||||
Reference in New Issue
Block a user