93 lines
2.2 KiB
CSS
93 lines
2.2 KiB
CSS
/* --- Midrand Books Sliding Cart Extensions --- */
|
|
|
|
/* Ensure the navbar stays on top while scrolling */
|
|
.sticky-top {
|
|
position: -webkit-sticky !important; /* Safari */
|
|
position: sticky !important;
|
|
top: 0 !important;
|
|
z-index: 1000 !important;
|
|
}
|
|
|
|
/* Dimmed backdrop background blur styling */
|
|
.cart-overlay {
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100vw;
|
|
height: 100vh;
|
|
background-color: rgba(0, 0, 0, 0.25);
|
|
backdrop-filter: blur(4px);
|
|
-webkit-backdrop-filter: blur(4px);
|
|
z-index: 1040;
|
|
opacity: 0;
|
|
pointer-events: none;
|
|
transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1);
|
|
}
|
|
|
|
.cart-overlay.is-visible {
|
|
opacity: 1;
|
|
pointer-events: auto;
|
|
}
|
|
|
|
/* Slide-out Sidebar Panel layout specification */
|
|
.cart-drawer {
|
|
position: fixed;
|
|
top: 0;
|
|
right: -420px;
|
|
width: 100%;
|
|
max-width: 400px;
|
|
height: 100vh;
|
|
z-index: 1050;
|
|
pointer-events: none; /* Block layout actions while hidden off-screen */
|
|
transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
|
|
}
|
|
|
|
.cart-drawer.is-open {
|
|
transform: translateX(-420px);
|
|
pointer-events: auto; /* Allow complete drawer clicks once slid forward */
|
|
}
|
|
|
|
/* FIXED: Prevent badge rendering from stealing button-down mouse highlights */
|
|
.cart-badge {
|
|
position: absolute;
|
|
top: 2px;
|
|
right: 2px;
|
|
background-color: #1A1A1A;
|
|
color: #FFF;
|
|
font-size: 0.62rem;
|
|
font-weight: 700;
|
|
border-radius: 50%;
|
|
width: 15px;
|
|
height: 15px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
pointer-events: none;
|
|
}
|
|
|
|
/* Micro typography utility sizes */
|
|
.xx-small {
|
|
font-size: 0.68rem;
|
|
}
|
|
|
|
/* Clean dashed divider lines for item items listing styling */
|
|
.border-bottom-dashed {
|
|
border-bottom: 1px dashed rgba(0, 0, 0, 0.12);
|
|
}
|
|
|
|
/* Custom quantity container inline metrics layout structure */
|
|
.quantity-picker {
|
|
padding: 2px 4px;
|
|
}
|
|
|
|
.quantity-picker button {
|
|
font-size: 0.85rem;
|
|
font-weight: 600;
|
|
line-height: 1;
|
|
}
|
|
|
|
.quantity-picker button:hover {
|
|
background-color: rgba(0,0,0,0.05);
|
|
border-radius: 50%;
|
|
}
|