306 lines
6.9 KiB
CSS
306 lines
6.9 KiB
CSS
/*
|
|
Theme Name: Local Content Pro
|
|
Theme URI: https://localcontentpro.com
|
|
Description: A simple Block Theme for local content publishers.
|
|
Version: 0.0.1
|
|
*/
|
|
|
|
/* 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 */
|
|
|
|
}
|
|
#lcp-viewport-inner {
|
|
display:flex;flex-direction:column;
|
|
min-height:100vh
|
|
}
|
|
#lcp-main-container.lcp-grow-vertical {
|
|
flex-grow:1
|
|
}
|
|
|
|
.admin-bar #lcp-viewport-inner {
|
|
min-height:calc(100vh - 32px)
|
|
}
|
|
|
|
|
|
|
|
|
|
/* Main Content */
|
|
.lcp-has-sidecontent #lcp-main-container > * > *{ padding:20px
|
|
|
|
}
|
|
|
|
#lcp-main-container {
|
|
margin-top: var(--lcp--header--height)
|
|
}
|
|
/* Side content */
|
|
#lcp-sidecontent {
|
|
overflow:auto;
|
|
position: absolute;
|
|
left: 0;
|
|
top: 0;
|
|
width: 340px;
|
|
height: 100%;
|
|
background: #fff;
|
|
border-right: 2px solid #eee;
|
|
z-index: 2;
|
|
outline: 0;
|
|
}
|
|
|
|
#lcp-viewport-outer.lcp-has-sticky-header #lcp-sidecontent {
|
|
top: var(--lcp--header--height);
|
|
position:fixed!important;
|
|
height: calc(100vh - var(--lcp--header--height))
|
|
}
|
|
|
|
.admin-bar #lcp-viewport-outer.lcp-has-sticky-header #lcp-sidecontent {
|
|
top: calc(var(--lcp--header--height) + 32px);
|
|
height: calc(100vh - var(--lcp--header--height) - 32px)
|
|
}
|
|
|
|
|
|
#lcp-sidecontent-inner > * {
|
|
margin-top: 10px;}
|
|
|
|
|
|
#lcp-sidecontent.lcp-fixed {
|
|
position:fixed
|
|
}
|
|
|
|
@media only screen and (max-width: 1199px) {
|
|
|
|
#lcp-sidecontent:not(.lcp-open) {display:none}
|
|
#lcp-sidecontent.lcp-open {
|
|
display: block;
|
|
position: fixed;
|
|
overflow:auto;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
background-color: rgba(0, 0, 0, 0.5);
|
|
z-index: 999;
|
|
}
|
|
|
|
}
|
|
/* Main content an Footer */
|
|
@media only screen and (min-width: 1200px) {
|
|
|
|
|
|
.lcp-has-sidecontent #lcp-main-container {
|
|
flex: 1; /* Main content takes up the rest of the space */
|
|
margin-left: 340px; /* Space for side content */
|
|
}
|
|
.lcp-has-sidecontent #lcp-footer-container {
|
|
margin-left: 340px; /* Space for side content */
|
|
}
|
|
}
|
|
/* Sticky header styles (if applicable) */
|
|
#lcp-header-container {
|
|
z-index: 3;
|
|
width: 100%
|
|
}
|
|
#lcp-sidecontent {top:var(--lcp---header--height)}
|
|
#lcp-sidecontent {
|
|
top: calc(var(--lcp--header--height) );
|
|
}
|
|
.admin-bar #lcp-sidecontent.lcp-fixed {
|
|
top: calc(var(--lcp--header--height) + 32px);
|
|
}
|
|
|
|
#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:32px;
|
|
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;
|
|
}
|
|
|
|
|
|
|
|
/* 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-2);
|
|
border: none;
|
|
color: var(--wp--preset--color--font-color-1);
|
|
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: var(--wp--preset--color--font-color-1);
|
|
}
|
|
|
|
|
|
/* Backend */
|
|
|
|
.lcp-dimension-value-control .lcp-number-control {margin:0;flex:3;border:0}
|
|
.lcp-dimension-value-control .components-input-control__backdrop{border:0!important}
|
|
.lcp-padding-control .lcp-dimension-value-control,.lcp-padding-control .components-range-control {flex:1!important}
|
|
.lcp-dimension-value-control .lcp-select-control{padding:0;flex:1}
|
|
.lcp-dimension-value-control .components-base-control__field {margin-bottom:0!important}
|
|
.lcp-padding-control .components-input-control__suffix {display:none!important}
|
|
.lcp-dimension-value-control .components-select-control__input {padding:5px!important}
|
|
.lcp-padding-control .lcp-dimension-value-control .lcp-number-control input,.components-select-control__input {height:25px!important;min-height:25px!important;line-height:13px!important}
|
|
.lcp-dimension-value-control .lcp-number-control input[type="number"]::-webkit-outer-spin-button,
|
|
.lcp-dimension-value-control .lcp-number-control input[type="number"]::-webkit-inner-spin-button {
|
|
-webkit-appearance: none;
|
|
margin: 0;
|
|
}
|
|
|
|
/* For Firefox */
|
|
.lcp-dimension-value-control .lcp-number-control input[type="number"] {
|
|
-moz-appearance: textfield; /* Hide the spinner */
|
|
}
|
|
|
|
/* Optional: Remove the appearance in other browsers */
|
|
.lcp-dimension-value-control .lcp-number-control input[type="number"] {
|
|
appearance: none;
|
|
}
|
|
|
|
/* LCP UI */
|
|
|
|
/* LCP Accordions */
|
|
.lcp-accordion {
|
|
width: 100%;
|
|
}
|
|
|
|
.lcp-accordion-tab {
|
|
border: 1px solid #ccc;
|
|
margin-bottom: 5px;
|
|
}
|
|
|
|
.lcp-accordion-tab h3 {
|
|
background-color: #f1f1f1;
|
|
padding: 10px;
|
|
cursor: pointer;
|
|
margin: 0;
|
|
}
|
|
|
|
.lcp-accordion-content {
|
|
padding: 10px;
|
|
display: none; /* Initially hide the content */
|
|
background-color: #f9f9f9;
|
|
}
|
|
|
|
.lcp-accordion-tab.active .lcp-accordion-content {
|
|
display: block; /* Show the content when tab is active */
|
|
}
|
|
|
|
|
|
|
|
/* LCP TABS */
|
|
/* Simple styles for tabs */
|
|
#myTab {
|
|
list-style-type: none;
|
|
padding: 0;
|
|
margin: 0;
|
|
}
|
|
|
|
#myTab li {
|
|
display: inline-block;
|
|
margin-right: 10px;
|
|
}
|
|
|
|
.tab-link {
|
|
cursor: pointer;
|
|
text-decoration: none;
|
|
padding: 10px 20px;
|
|
background-color: lightgray;
|
|
color: black;
|
|
border: 1px solid #ccc;
|
|
border-radius: 5px;
|
|
}
|
|
|
|
.tab-link.active {
|
|
background-color: #007bff;
|
|
color: white;
|
|
}
|
|
|
|
/* Style for the content panes */
|
|
.tab-pane {
|
|
display: none;
|
|
padding: 20px;
|
|
border: 1px solid #ccc;
|
|
border-top: none;
|
|
}
|
|
|
|
.tab-pane.active {
|
|
display: block;
|
|
}
|
|
|