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:
@@ -59,7 +59,7 @@
|
||||
flex-direction: column;
|
||||
gap: 1.5rem;
|
||||
width: 100%;
|
||||
margin-bottom: 3rem; /* Generates clear space before the media controls block */
|
||||
margin-bottom: 3rem;
|
||||
}
|
||||
|
||||
.form-media-deck-section {
|
||||
@@ -69,7 +69,6 @@
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
/* Horizontal alignment grid for cover upload & thumbnail array side-by-side */
|
||||
.media-deck-row {
|
||||
display: grid;
|
||||
grid-template-columns: 240px 1fr;
|
||||
@@ -79,10 +78,12 @@
|
||||
}
|
||||
|
||||
.console-field-group {
|
||||
position: relative; /* Clamps absolute children to this specific slot's bounds */
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 0.6rem;
|
||||
width: 100%;
|
||||
margin-bottom: 1.5rem;
|
||||
}
|
||||
|
||||
.console-field-label {
|
||||
@@ -93,25 +94,53 @@
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
/* Handles responsive multi-column layout split blocks for form metrics */
|
||||
.console-field-row {
|
||||
display: flex;
|
||||
gap: 1.5rem;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.console-field-row .console-field-group {
|
||||
flex: 1;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
@media (max-width: 768px) {
|
||||
.console-field-row {
|
||||
flex-direction: column;
|
||||
gap: 0;
|
||||
}
|
||||
}
|
||||
|
||||
/* ==========================================================================
|
||||
Input Form Elements
|
||||
Input Form Elements & Custom Date Trigger Matching
|
||||
========================================================================== */
|
||||
::deep .console-input,
|
||||
::deep .console-textarea {
|
||||
::deep .console-textarea,
|
||||
.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;
|
||||
padding: 0.85rem 1rem; /* Matched exactly to snap row heights in line */
|
||||
color: #f8fafc !important;
|
||||
font-size: 0.9rem;
|
||||
outline: none;
|
||||
transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
|
||||
}
|
||||
|
||||
.custom-date-trigger-box {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
::deep .console-input:focus,
|
||||
::deep .console-textarea:focus {
|
||||
::deep .console-textarea:focus,
|
||||
.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;
|
||||
@@ -122,23 +151,114 @@
|
||||
line-height: 1.5;
|
||||
}
|
||||
|
||||
.calendar-icon {
|
||||
color: #64748b;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
/* ==========================================================================
|
||||
Deep Isolated Custom Popup Window
|
||||
========================================================================== */
|
||||
::deep .brand-calendar-popup,
|
||||
.brand-calendar-popup {
|
||||
position: absolute;
|
||||
top: 100%;
|
||||
left: 0;
|
||||
z-index: 1000;
|
||||
width: 100% !important; /* Force complete row span constraint */
|
||||
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);
|
||||
}
|
||||
|
||||
.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-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; /* Aligned with your brand's primary neon cyan glow */
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
.calendar-day-btn.is-selected {
|
||||
background-color: #0284c7 !important;
|
||||
color: #ffffff !important;
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
/* ==========================================================================
|
||||
Image Slots & Cloud Upload Dropzones
|
||||
========================================================================== */
|
||||
::deep .hidden-file-input,
|
||||
.hidden-file-input {
|
||||
position: absolute !important;
|
||||
top: 0 !important;
|
||||
left: 0 !important;
|
||||
width: 0 !important;
|
||||
height: 0 !important;
|
||||
opacity: 0 !important;
|
||||
overflow: hidden !important;
|
||||
display: none !important;
|
||||
pointer-events: none !important;
|
||||
display: none !important; /* Forces layout removal */
|
||||
}
|
||||
|
||||
/* Book Cover - Enforced Portrait Display Frame Aspect Ratio */
|
||||
.book-cover-dropzone {
|
||||
width: 240px;
|
||||
aspect-ratio: 2 / 3;
|
||||
@@ -169,7 +289,6 @@
|
||||
user-select: none;
|
||||
}
|
||||
|
||||
/* Thumbnails Grid */
|
||||
.thumbnail-deck-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(5, 1fr);
|
||||
@@ -178,7 +297,7 @@
|
||||
}
|
||||
|
||||
.thumbnail-slot-node {
|
||||
aspect-ratio: 2 / 3; /* Matches portrait layout format smoothly */
|
||||
aspect-ratio: 2 / 3;
|
||||
background: #060b13;
|
||||
border: 1px solid #1e293b;
|
||||
border-radius: 4px;
|
||||
@@ -231,7 +350,6 @@
|
||||
transition: opacity 0.2s ease;
|
||||
}
|
||||
|
||||
/* Show floating control node buttons cleanly on hover state */
|
||||
.book-cover-dropzone:hover .image-actions-overlay,
|
||||
.thumbnail-slot-node:hover .image-actions-overlay {
|
||||
opacity: 1;
|
||||
@@ -306,7 +424,6 @@
|
||||
object-fit: cover;
|
||||
}
|
||||
|
||||
/* Floating Close Action Icon sitting directly on top inside the drawer viewport frame */
|
||||
.btn-close-preview-floating {
|
||||
position: absolute;
|
||||
top: 12px;
|
||||
@@ -332,7 +449,7 @@
|
||||
|
||||
/* ==========================================================================
|
||||
Footer Action Dashboard Bar
|
||||
========================================================================= */
|
||||
========================================================================== */
|
||||
.form-action-footer {
|
||||
padding: 0.85rem 2.5rem;
|
||||
background: #04080f;
|
||||
|
||||
Reference in New Issue
Block a user