149 lines
2.8 KiB
CSS
149 lines
2.8 KiB
CSS
/*
|
|
Theme Name: Local Content Pro
|
|
Theme URI: https://localcontentpro.com
|
|
Description: A simple Block Theme for local content publishers.
|
|
Version: 1.0
|
|
*/
|
|
|
|
/* Main viewport container */
|
|
#lcp-viewport-outer {
|
|
overflow: hidden; /* Hide overflow */
|
|
margin: 0 auto; /* Center the viewport container */
|
|
min-height:100vh
|
|
}
|
|
|
|
.admin-bar #lcp-viewport-outer {
|
|
min-height:calc(100vh - 32px)
|
|
}
|
|
/* Wrapper for side content and main content */
|
|
#lcp-viewport-inner {
|
|
display: block; /* Arrange the side content and main content side-by-side */
|
|
width: 100%;
|
|
position: relative; /* To ensure side content stays in place */
|
|
|
|
}
|
|
|
|
/* Side content - absolute or fixed position */
|
|
#lcp-sidecontent {
|
|
position: absolute; /* Positioned relative to the parent with position: relative */
|
|
left: 0;
|
|
top: var(--my-top); /* Dynamically controlled top position via JS */
|
|
width: 340px; /* Fixed width */
|
|
height: 100%; /* Full height */
|
|
overflow: auto; /* Allow scrolling inside */
|
|
background: #fff;
|
|
border-right: 2px solid #eee;
|
|
z-index: 2;
|
|
outline: 0;
|
|
}
|
|
|
|
#lcp-sidecontent.lcp-fixed {
|
|
position:fixed
|
|
}
|
|
|
|
/* Main content */
|
|
.has-sidecontent #lcp-main-wrap {
|
|
flex: 1; /* Main content takes up the rest of the space */
|
|
margin-left: 340px; /* Space for side content */
|
|
padding: 20px;
|
|
}
|
|
|
|
/* Sticky header styles (if applicable) */
|
|
#lcp-header-container {
|
|
z-index: 3;
|
|
width: 100%
|
|
}
|
|
|
|
#lcp-header-container.lcp-sticky {
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
z-index: 3;
|
|
}
|
|
|
|
#lcp-header-container.lcp-sticky-on-scroll.lcp-fixed {
|
|
position: fixed;
|
|
top:0;
|
|
left: 0;
|
|
right: 0;
|
|
z-index: 3;
|
|
}
|
|
|
|
.admin-bar #lcp-header-container.lcp-sticky-on-scroll.lcp-fixed {
|
|
top:32px
|
|
}
|
|
.admin-bar #lcp-header-container.lcp-sticky,
|
|
.admin-bar #lcp-header-container.lcp-sticky-on-scroll,
|
|
.admin-bar #lcp-header-container.lcp-sticky-on-scroll.lcp-stuck {
|
|
top: 32px; /* Adjust for admin bar visibility */
|
|
}
|
|
|
|
|
|
#lcp-header-container.lcp-sticky-on-scroll.lcp-fixed {
|
|
position: fixed;
|
|
top: 32px; /* Adjusted if admin bar is visible */
|
|
}
|
|
|
|
|
|
/* ---- POPUPS ----- */
|
|
.lcp-popup:not(.open) {
|
|
display:none
|
|
}
|
|
|
|
.lcp-popup.open {
|
|
position:fixed;
|
|
top:0;
|
|
left:0;
|
|
height:100vh;
|
|
width:100vw;
|
|
z-index: 999;
|
|
background: red;
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#lcp-sidecontent {
|
|
|
|
overflow: hidden; /* Hide native scrollbar */
|
|
}
|
|
|
|
#lcp-sidecontent-inner {
|
|
height: 100%;
|
|
overflow: auto; /* Enable scrolling for inner content */
|
|
padding-right: 15px; /* Space for the custom scrollbar */
|
|
}
|
|
|
|
#lcp-scroll-track {
|
|
position: absolute;
|
|
top: 0;
|
|
right: 0;
|
|
width: 5px;
|
|
height: 100%;
|
|
background-color: #e0e0e0;
|
|
}
|
|
|
|
#lcp-scroll-bar {
|
|
width: 100%;
|
|
background-color: #333;
|
|
cursor: pointer;
|
|
border-radius: 5px;
|
|
}
|
|
|
|
|