Files
local-content-pro/style.css
Jeremy Rangel 1234341241 New dev branch
2024-12-16 20:12:25 -08:00

103 lines
2.3 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; /* or fixed depending on your JS logic */
left: 0;
background: #fff;
width: 340px; /* Fixed width of 340px */
height: 100%;
overflow: scroll;
z-index: 2;
border-right: 2px solid #eee;
outline: 0;
top: var(--my-top); /* Dynamically controlled top position via JS */
}
/* Main content */
.lcp-viewport.has-sidecontent #lcp-main-content {
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-stuck {
position: fixed;
top: 32px; /* Adjusted for admin bar, if present */
left: 0;
right: 0;
z-index: 3;
}
.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 {
position: absolute;
top: 0;
left: 0;
right: 0;
}
#lcp-header-container.lcp-sticky-on-scroll.lcp-stuck {
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;
}