Files
local-content-pro/style.css
2024-12-27 22:56:39 -08:00

182 lines
3.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 */
#lcp-sidecontent {
position: absolute;
left: 0;
top: var(--my-top);
width: 340px;
height: 100%;
overflow: auto;
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-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;
}
/* Highlight-to-share popup */
.popup {
position: absolute;
background-color: white;
color: black;
padding: 8px;
border-radius: 5px;
font-size: 14px;
display: none; /* Hidden by default */
z-index:8999
}
/* LCP Button */
.lcp-button {
display: inline-block;
background-color: var(--wp--preset--color--accent);
border: none;
color: #fff;
text-decoration: none;
padding: 10px;
font-weight: bold;
font-size: var(--wp--preset--font-size--small);
white-space: nowrap;
cursor: pointer;
}
.lcp-button .lcp-icon {
height: 1.2em;
max-height:100%;
width: auto;
vertical-align: middle; /* Aligns the icon with the text vertically */
margin-right: 10px; /* Space between the icon and the text */
fill:white;
}