Generalised datetime picker into component for reuse
continuous-integration/drone/pr Build is passing
continuous-integration/drone/pr Build is passing
This commit is contained in:
@@ -0,0 +1,124 @@
|
||||
/* Custom Date Trigger and Box Engines only */
|
||||
.custom-date-trigger-box {
|
||||
width: 100%;
|
||||
box-sizing: border-box;
|
||||
background: #060b13 !important;
|
||||
border: 1px solid #1e293b !important;
|
||||
border-radius: 4px;
|
||||
padding: 0.85rem 1rem;
|
||||
color: #f8fafc !important;
|
||||
font-size: 0.9rem;
|
||||
outline: none;
|
||||
transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.custom-date-trigger-box.focused {
|
||||
border-color: #00f2fe !important;
|
||||
box-shadow: 0 0 0 1px rgba(0, 242, 254, 0.2), 0 0 12px rgba(0, 242, 254, 0.1) !important;
|
||||
background: #02060d !important;
|
||||
}
|
||||
|
||||
.calendar-icon {
|
||||
color: #64748b;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
/* Floating Overlay Window Panel Layout */
|
||||
.brand-calendar-popup {
|
||||
position: absolute;
|
||||
top: 100%;
|
||||
left: 0;
|
||||
z-index: 1000;
|
||||
width: 100% !important;
|
||||
box-sizing: border-box;
|
||||
padding: 1rem;
|
||||
background-color: #0b0f19;
|
||||
border: 1px solid #1e293b;
|
||||
border-radius: 6px;
|
||||
box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5), 0 8px 10px -6px rgba(0, 0, 0, 0.5);
|
||||
margin-top: 0.5rem;
|
||||
}
|
||||
|
||||
.calendar-nav-header {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
margin-bottom: 0.75rem;
|
||||
}
|
||||
|
||||
.calendar-current-month {
|
||||
font-size: 0.85rem;
|
||||
font-weight: 600;
|
||||
color: #f1f5f9;
|
||||
font-family: monospace;
|
||||
}
|
||||
|
||||
.btn-cal-nav {
|
||||
background: transparent;
|
||||
border: none;
|
||||
color: #94a3b8;
|
||||
font-size: 0.9rem;
|
||||
cursor: pointer;
|
||||
padding: 0.2rem 0.5rem;
|
||||
border-radius: 4px;
|
||||
transition: background-color 0.1s;
|
||||
}
|
||||
|
||||
.btn-cal-nav:hover {
|
||||
background-color: #1e293b;
|
||||
color: #f8fafc;
|
||||
}
|
||||
|
||||
.calendar-days-grid-header {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(7, 1fr);
|
||||
text-align: center;
|
||||
font-size: 0.7rem;
|
||||
font-weight: 700;
|
||||
color: #475569;
|
||||
text-transform: uppercase;
|
||||
margin-bottom: 0.5rem;
|
||||
}
|
||||
|
||||
.calendar-days-matrix {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(7, 1fr);
|
||||
gap: 2px;
|
||||
}
|
||||
|
||||
.calendar-day-blank {
|
||||
padding: 0.4rem 0;
|
||||
}
|
||||
|
||||
.calendar-day-btn {
|
||||
background: transparent;
|
||||
border: none;
|
||||
color: #cbd5e1;
|
||||
font-size: 0.8rem;
|
||||
padding: 0.4rem 0;
|
||||
text-align: center;
|
||||
cursor: pointer;
|
||||
border-radius: 4px;
|
||||
font-family: monospace;
|
||||
transition: all 0.1s ease;
|
||||
}
|
||||
|
||||
.calendar-day-btn:hover {
|
||||
background-color: #1e293b;
|
||||
color: #ffffff;
|
||||
}
|
||||
|
||||
.calendar-day-btn.is-today {
|
||||
color: #00f2fe;
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
.calendar-day-btn.is-selected {
|
||||
background-color: #0284c7 !important;
|
||||
color: #ffffff !important;
|
||||
font-weight: 700;
|
||||
}
|
||||
Reference in New Issue
Block a user