Preview: lvmr-header.css
Size: 10.91 KB
/home/certprox/test.certproxywizard.com/wp-content/plugins/lvmr-header/assets/css/lvmr-header.css
/* LVMR Header Premium Styles */
/* Top Bar */
#lvmr-top-bar {
width: 100%;
background-color: var(--lvmr-topbar-bg, #000a8b);
color: var(--lvmr-topbar-text, #ffffff);
text-align: center;
padding: 10px 20px;
font-size: 13px;
font-weight: 500;
line-height: 1.4;
box-sizing: border-box;
z-index: 10000;
position: relative;
font-family: var(--lvmr-menu-font-family, inherit);
}
#lvmr-header {
width: auto;
position: absolute;
top: 0;
left: 0;
right: 0;
z-index: 9999;
padding: 20px 20px;
box-sizing: border-box;
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
overflow: hidden;
/* Prevent child panels from triggering scrollbars */
}
#lvmr-header.is-sticky {
position: fixed;
top: 0;
left: 0;
right: 0;
}
#lvmr-header.scrolled {
background-color: transparent;
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
padding: 10px 20px;
}
.lvmr-header-container {
max-width: 100%;
margin: 0 auto;
background: var(--lvmr-header-bg);
border-radius: var(--lvmr-header-border-radius, 40px);
height: var(--lvmr-header-height);
position: relative;
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
overflow: visible;
}
.lvmr-header-inner {
max-width: 1440px;
width: 100%;
height: 100%;
margin: 0 auto;
display: flex;
align-items: center;
padding: 0 var(--lvmr-header-padding, 30px);
position: relative;
}
/* Logo positioning */
.lvmr-logo {
position: absolute;
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
z-index: 100;
line-height: 0;
text-align: center;
white-space: nowrap;
}
.lvmr-logo a,
.lvmr-logo img {
display: block;
width: var(--lvmr-header-logo-w);
height: auto;
transition: all 0.3s ease;
}
.lvmr-logo h1 {
margin: 0;
font-size: 24px;
font-weight: 700;
}
.lvmr-logo h1 a {
text-decoration: none;
color: var(--lvmr-header-text);
width: auto;
/* For text logos */
}
/* Nav Menus */
.lvmr-nav {
flex: 1;
display: flex;
align-items: center;
z-index: 10;
}
.lvmr-nav-left {
justify-content: flex-start;
padding-right: calc(var(--lvmr-header-logo-gap) / 2);
}
.lvmr-nav-right {
justify-content: flex-end;
padding-left: calc(var(--lvmr-header-logo-gap) / 2);
}
.lvmr-menu {
list-style: none;
margin: 0;
padding: 0;
display: flex;
gap: var(--lvmr-menu-gap, 25px);
}
.lvmr-menu li a {
text-decoration: none;
font-family: var(--lvmr-menu-font-family, inherit);
color: var(--lvmr-menu-link-color, #000000);
font-size: var(--lvmr-menu-font-size, 14px);
font-weight: var(--lvmr-menu-font-weight, 500);
text-transform: var(--lvmr-menu-text-transform, capitalize);
letter-spacing: var(--lvmr-menu-letter-spacing, 0px);
transition: color 0.3s ease;
white-space: nowrap;
}
.lvmr-menu li a:hover {
color: var(--lvmr-menu-hover-color, #0000ff);
}
/* Icons sit as a natural flex item — after the right nav, no overlap */
.lvmr-icons {
display: flex;
align-items: center;
gap: 15px;
flex-shrink: 0;
padding-left: var(--lvmr-icons-gap, 20px);
z-index: 110;
}
.lvmr-icon {
color: var(--lvmr-header-text);
transition: color 0.3s ease, transform 0.3s ease;
}
/* Cart widget */
.lvmr-cart {
display: flex;
align-items: center;
gap: 10px;
text-decoration: none;
}
.lvmr-cart-icon-wrap {
position: relative;
display: flex;
align-items: center;
justify-content: center;
flex-shrink: 0;
}
.lvmr-cart-count {
position: absolute;
top: -8px;
right: -8px;
background: var(--lvmr-cart-badge-color, #f07c00);
color: #fff;
font-size: 10px;
font-weight: 700;
min-width: 18px;
height: 18px;
border-radius: 50px;
display: flex;
align-items: center;
justify-content: center;
padding: 0 4px;
line-height: 1;
}
/* Offcanvas Cart Panel */
.lvmr-cart-panel {
position: fixed;
top: 0;
right: 0;
width: 350px;
max-width: 100vw;
height: 100vh;
background: var(--lvmr-header-bg);
z-index: 100000;
box-shadow: -5px 0 20px rgba(0, 0, 0, 0.05);
transform: translateX(100%);
transition: transform 0.4s cubic-bezier(0.77, 0, 0.175, 1);
display: flex;
flex-direction: column;
visibility: hidden;
}
.lvmr-cart-panel.is-active {
transform: translateX(0);
visibility: visible;
}
.lvmr-cart-backdrop {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.4);
z-index: 99999;
opacity: 0;
visibility: hidden;
transition: opacity 0.3s ease, visibility 0.3s ease;
}
.lvmr-cart-backdrop.is-active {
opacity: 1;
visibility: visible;
}
.lvmr-cart-panel-inner {
display: flex;
flex-direction: column;
height: 100%;
}
.lvmr-cart-panel-header {
display: flex;
align-items: center;
justify-content: space-between;
padding: 20px 25px;
border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}
.lvmr-cart-panel-header h3 {
margin: 0;
font-size: 18px;
font-weight: 600;
color: var(--lvmr-header-text);
}
.lvmr-panel-count {
font-size: 14px;
font-weight: 400;
color: var(--lvmr-header-text);
opacity: 0.6;
}
.lvmr-cart-panel-close {
background: none;
border: none;
cursor: pointer;
color: var(--lvmr-header-text);
display: flex;
align-items: center;
justify-content: center;
padding: 5px;
opacity: 0.5;
transition: opacity 0.3s ease;
}
.lvmr-cart-panel-close:hover {
opacity: 1;
}
.lvmr-cart-panel-items {
flex: 1;
overflow-y: auto;
padding: 20px 25px;
}
.lvmr-cart-empty {
text-align: center;
padding: 40px 0;
color: var(--lvmr-header-text);
}
.lvmr-cart-empty p {
margin: 15px 0 25px;
font-size: 16px;
opacity: 0.7;
}
.lvmr-cart-item {
display: flex;
align-items: center;
gap: 15px;
margin-bottom: 20px;
padding-bottom: 20px;
border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}
.lvmr-cart-item:last-child {
margin-bottom: 0;
padding-bottom: 0;
border-bottom: none;
}
.lvmr-cart-item-img img {
width: 60px;
height: 60px;
object-fit: cover;
border-radius: 6px;
}
.lvmr-cart-item-info {
flex: 1;
}
.lvmr-cart-item-name {
display: block;
font-size: 14px;
font-weight: 500;
color: var(--lvmr-header-text);
margin-bottom: 5px;
}
.lvmr-cart-item-meta {
display: flex;
align-items: center;
gap: 10px;
font-size: 13px;
}
.lvmr-cart-item-qty {
opacity: 0.6;
}
.lvmr-cart-item-price {
font-weight: 600;
}
.lvmr-cart-item-remove {
color: #ff3333;
opacity: 0.5;
transition: opacity 0.3s ease;
padding: 5px;
}
.lvmr-cart-item-remove:hover {
opacity: 1;
}
.lvmr-cart-panel-footer {
padding: 20px 25px;
border-top: 1px solid rgba(0, 0, 0, 0.05);
background: #fdfdfd;
}
.lvmr-cart-subtotal {
display: flex;
justify-content: space-between;
align-items: center;
font-size: 16px;
margin-bottom: 20px;
color: var(--lvmr-header-text);
}
.lvmr-cart-subtotal strong {
font-size: 18px;
font-weight: 700;
}
.lvmr-cart-panel-actions {
display: flex;
gap: 10px;
flex-direction: column;
}
.lvmr-btn {
display: inline-flex;
align-items: center;
justify-content: center;
padding: 12px 20px;
border-radius: 30px;
font-size: 14px;
font-weight: 600;
text-decoration: none;
transition: all 0.3s ease;
text-transform: uppercase;
letter-spacing: 0.5px;
}
.lvmr-btn-primary {
background: var(--lvmr-cart-badge-color, #f07c00);
color: #fff;
}
.lvmr-btn-primary:hover {
background: var(--lvmr-header-text);
color: var(--lvmr-header-bg);
}
.lvmr-btn-outline {
border: 2px solid rgba(0, 0, 0, 0.1);
color: var(--lvmr-header-text);
}
.lvmr-btn-outline:hover {
border-color: var(--lvmr-header-text);
}
.lvmr-mobile-toggle {
position: absolute;
left: var(--lvmr-header-padding, 30px);
top: 50%;
transform: translateY(-50%);
display: none;
flex-direction: column;
gap: 5px;
background: none;
border: none;
cursor: pointer;
z-index: 10001; /* Ensure higher than overlay */
padding: 10px; /* Increase hit area / basic padding */
margin: 0;
}
.lvmr-mobile-toggle span {
display: block;
width: 20px;
height: 2px;
background: var(--lvmr-header-text);
transition: all 0.3s ease;
}
/* Mobile Overlay */
.lvmr-mobile-overlay {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: var(--lvmr-header-bg);
z-index: 10000;
transform: translateX(100%);
transition: transform 0.4s cubic-bezier(0.77, 0, 0.175, 1);
display: flex;
align-items: center;
justify-content: center;
visibility: hidden;
}
.lvmr-mobile-overlay.is-active {
transform: translateX(0);
visibility: visible;
}
.lvmr-mobile-menu {
list-style: none;
padding: 0;
margin: 0;
text-align: center;
}
.lvmr-mobile-menu li a {
font-size: 24px;
text-decoration: none;
color: var(--lvmr-header-text);
font-weight: 600;
display: block;
margin-bottom: 20px;
}
/* Responsive */
@media (max-width: 1024px) {
#lvmr-header {
padding: 5px 10px; /* Reduced outer gap on responsive */
}
.lvmr-header-container {
height: var(--lvmr-header-height-tablet);
}
.lvmr-nav {
display: none;
}
.lvmr-mobile-toggle {
display: flex;
left: 5px; /* Bring hamburger near edge */
}
.lvmr-logo a,
.lvmr-logo img {
width: var(--lvmr-header-logo-w-tablet);
}
.lvmr-icons {
position: absolute;
right: 15px; /* Bring icons near edge */
top: 50%;
transform: translateY(-50%);
padding-left: 0;
}
}
@media (max-width: 768px) {
.lvmr-header-container {
height: var(--lvmr-header-height-mobile);
}
.lvmr-logo a,
.lvmr-logo img {
width: var(--lvmr-header-logo-w-mobile);
}
.lvmr-icons {
gap: 10px;
}
}
body.lvmr-no-scroll,
html.lvmr-no-scroll {
overflow: hidden !important;
}
/* Prevent horizontal overflow globally */
html,
body {
overflow-x: hidden;
width: 100%;
position: relative;
}
/* Admin Bar */
body.admin-bar #lvmr-header.is-sticky {
top: 32px;
}
@media (max-width: 782px) {
body.admin-bar #lvmr-header.is-sticky {
top: 46px;
}
}
Directory Contents
Dirs: 0 × Files: 1