286 lines
9.4 KiB
CSS
286 lines
9.4 KiB
CSS
/*
|
|
Theme Name: Logico Child
|
|
Description: Logico Child Theme
|
|
Theme URI: https://demo.artureanec.com/themes/logico
|
|
Author: Artureanec
|
|
Author URI: https://demo.artureanec.com
|
|
Template: logico
|
|
Version: 1.0.0
|
|
License: GNU General Public License version 3.0
|
|
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
|
Text Domain: logico-child
|
|
*/
|
|
|
|
/* =Theme customization starts here
|
|
------------------------------------------------------- */
|
|
|
|
/* Hide mobile-specific logo by default */
|
|
.logo-mobile {
|
|
display: none !important;
|
|
}
|
|
|
|
/* ============================================================
|
|
MOBILE HEADER REFINEMENT (< 1200px)
|
|
Matches reference pill-shaped design
|
|
============================================================ */
|
|
|
|
@media (max-width: 1200px) {
|
|
|
|
/* Logo toggling */
|
|
.logo-desktop {
|
|
display: none !important;
|
|
}
|
|
|
|
.logo-mobile {
|
|
display: block !important;
|
|
}
|
|
|
|
/* 1. Header Wrapper (Outer): Position & Spacing
|
|
Creates the floating card effect with horizontal margins
|
|
*/
|
|
.elementor-5180 .elementor-element.elementor-element-466de1b {
|
|
position: fixed !important;
|
|
top: 30px !important;
|
|
left: 0 !important;
|
|
right: 0 !important;
|
|
width: 100% !important;
|
|
padding-left: 20px !important;
|
|
/* Screen margin left */
|
|
padding-right: 20px !important;
|
|
/* Screen margin right */
|
|
height: auto !important;
|
|
z-index: 10000 !important;
|
|
background: transparent !important;
|
|
pointer-events: none;
|
|
/* Let clicks pass through padding zones */
|
|
}
|
|
|
|
/* 2. The Header Box / Card (Inner)
|
|
Aggressive border-radius and white background
|
|
*/
|
|
.elementor-5180 .elementor-element.elementor-element-e052838 {
|
|
margin: 0 10px auto !important;
|
|
width: 100% !important;
|
|
max-width: 100% !important;
|
|
background-color: #ffffff !important;
|
|
border-radius: 25px !important;
|
|
/* Aggressive radius (pill look) */
|
|
overflow: hidden !important;
|
|
box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08) !important;
|
|
pointer-events: all;
|
|
/* Re-enable clicks */
|
|
display: flex !important;
|
|
flex-direction: column !important;
|
|
}
|
|
|
|
/* 3. Main Row Layout Container
|
|
Strict single row, vertically centered
|
|
*/
|
|
.elementor-5180 .elementor-element.elementor-element-d681ece {
|
|
display: flex !important;
|
|
flex-direction: row !important;
|
|
flex-wrap: nowrap !important;
|
|
align-items: center !important;
|
|
/* Perfect vertical centering */
|
|
justify-content: space-between !important;
|
|
width: 100% !important;
|
|
padding: 12px 25px !important;
|
|
/* Slightly increased padding */
|
|
min-height: 70px !important;
|
|
/* Increased height for larger logo */
|
|
box-sizing: border-box !important;
|
|
gap: 0 !important;
|
|
}
|
|
|
|
/* 4. Logo Container (Left) */
|
|
.elementor-5180 .elementor-element.elementor-element-472172e {
|
|
flex: 1 !important;
|
|
display: flex !important;
|
|
align-items: center !important;
|
|
justify-content: flex-start !important;
|
|
padding: 0 !important;
|
|
margin: 0 !important;
|
|
}
|
|
|
|
/* 5. Menu Container (Right / Hamburger) */
|
|
.elementor-5180 .elementor-element.elementor-element-e44ee7e {
|
|
flex: 0 0 auto !important;
|
|
display: flex !important;
|
|
align-items: center !important;
|
|
justify-content: flex-end !important;
|
|
padding: 0 !important;
|
|
margin: 0 !important;
|
|
}
|
|
|
|
/* 6. Logo Widget Adjustments */
|
|
.elementor-5180 .elementor-element.elementor-element-846e53d {
|
|
width: auto !important;
|
|
margin: 0 !important;
|
|
display: flex !important;
|
|
align-items: center !important;
|
|
max-width: none !important;
|
|
}
|
|
|
|
.elementor-5180 .elementor-element.elementor-element-846e53d .hfe-site-logo .hfe-site-logo-container img {
|
|
margin: 0 !important;
|
|
/* Remove any theme-set margins */
|
|
max-width: none !important;
|
|
}
|
|
|
|
.elementor-5180 .elementor-element.elementor-element-846e53d .logo-mobile {
|
|
width: 180px !important; /* Base mobile size */
|
|
height: auto !important;
|
|
min-width: 100px !important; /* Allow it to shrink if needed */
|
|
}
|
|
|
|
/* 7. Menu Trigger (Hamburger) alignment */
|
|
.elementor-5180 .elementor-element.elementor-element-0b7bf6f .menu-trigger {
|
|
display: flex !important;
|
|
align-items: center !important;
|
|
justify-content: flex-end !important;
|
|
padding: 5px !important;
|
|
margin: 0 !important;
|
|
}
|
|
|
|
/* Hamburger icon size boost */
|
|
.elementor-5180 .elementor-element.elementor-element-0b7bf6f .hamburger {
|
|
width: 30px !important;
|
|
}
|
|
|
|
.elementor-5180 .elementor-element.elementor-element-0b7bf6f .hamburger span {
|
|
background-color: #1f1f1f !important;
|
|
height: 2px !important;
|
|
/* Slightly thicker for visibility */
|
|
margin-bottom: 5px !important;
|
|
}
|
|
|
|
/* Hide desktop-only elements */
|
|
.elementor-5180 .elementor-element.elementor-element-0b7bf6f .header-menu-container,
|
|
.elementor-5180 .elementor-element.elementor-element-2f31137,
|
|
.elementor-5180 .elementor-element.elementor-element-f961133 {
|
|
display: none !important;
|
|
}
|
|
}
|
|
|
|
/* Tablet Scaling (768px - 1024px) */
|
|
@media (max-width: 1024px) and (min-width: 768px) {
|
|
.elementor-5180 .elementor-element.elementor-element-846e53d .logo-mobile {
|
|
width: 210px !important;
|
|
}
|
|
}
|
|
|
|
/* Standard Mobile Scaling */
|
|
@media (max-width: 767px) {
|
|
.elementor-5180 .elementor-element.elementor-element-846e53d .logo-mobile {
|
|
width: 175px !important;
|
|
}
|
|
}
|
|
|
|
/* Extra Small Devise Optimization */
|
|
@media (max-width: 480px) {
|
|
.elementor-5180 .elementor-element.elementor-element-466de1b {
|
|
top: 15px !important;
|
|
padding-left: 15px !important;
|
|
padding-right: 15px !important;
|
|
}
|
|
|
|
.elementor-5180 .elementor-element.elementor-element-d681ece {
|
|
padding: 6px 20px !important;
|
|
min-height: 55px !important; /* Smaller height for small screens */
|
|
}
|
|
|
|
.elementor-5180 .elementor-element.elementor-element-846e53d .logo-mobile {
|
|
width: 155px !important; /* Scaled down for tiny screens */
|
|
}
|
|
}
|
|
|
|
/* ============================================================
|
|
HOME SECTION IMAGE RESPONSIVENESS (wp-image-4481)
|
|
============================================================ */
|
|
|
|
/* Fix for Tablet and Mobile */
|
|
@media (max-width: 1024px) {
|
|
.elementor-element.elementor-element-99768ba .elementor-widget-container img.wp-image-4481 {
|
|
width: 100% !important;
|
|
max-width: 450px !important;
|
|
/* Prevent oversized/zoomed appearance on tablets */
|
|
height: auto !important;
|
|
aspect-ratio: auto !important;
|
|
/* Maintain original proportions */
|
|
object-fit: contain !important;
|
|
/* Ensure no cropping of important content */
|
|
margin: 0 auto !important;
|
|
/* Centering */
|
|
display: block !important;
|
|
padding-bottom: 0px !important;
|
|
/* Spacing below the image */
|
|
}
|
|
|
|
/* Ensure parent container centers the image */
|
|
.elementor-element.elementor-element-99768ba {
|
|
text-align: center !important;
|
|
}
|
|
}
|
|
|
|
/* Specific scaling for small mobile phones */
|
|
@media (max-width: 767px) {
|
|
.elementor-element.elementor-element-99768ba .elementor-widget-container img.wp-image-4481 {
|
|
max-width: 90% !important;
|
|
/* Reduce scale on small screens */
|
|
margin: 0 auto !important;
|
|
border-radius: 18px !important;
|
|
/* Consistent rounded edges */
|
|
}
|
|
}
|
|
|
|
/* ============================================================
|
|
WHY CHOOSE DOORMILE SECTION RESPONSIVENESS (< 1020px)
|
|
============================================================ */
|
|
|
|
@media (max-width: 1020px) {
|
|
/* 1. Parent Wrapper: Switch to Column Stack */
|
|
.elementor-element.elementor-element-ead59d3 {
|
|
display: flex !important;
|
|
flex-direction: column !important;
|
|
padding-top: 50px !important;
|
|
padding-bottom: 50px !important;
|
|
}
|
|
|
|
/* 2. Absolute Image: Pull into Flow and Place First */
|
|
.elementor-element.elementor-element-f35119c {
|
|
position: relative !important;
|
|
width: 100% !important;
|
|
max-width: 500px !important; /* Optimal tablet/mobile size */
|
|
margin: 0 auto 40px !important; /* Center and add spacing below */
|
|
left: auto !important;
|
|
top: auto !important;
|
|
order: -1 !important; /* Force to top of stack */
|
|
transform: none !important;
|
|
display: none !important;
|
|
}
|
|
|
|
/* 3. Content Section: Expand to 100% Width */
|
|
.elementor-element.elementor-element-56ecbb3,
|
|
.elementor-element.elementor-element-56ecbb3 .e-con-inner,
|
|
.elementor-element.elementor-element-47f8cbe {
|
|
width: 100% !important;
|
|
max-width: 100% !important;
|
|
margin: 0 !important;
|
|
padding-left: 20px !important;
|
|
padding-right: 20px !important;
|
|
}
|
|
|
|
/* Align content consistently for stacked view */
|
|
.elementor-element.elementor-element-47f8cbe {
|
|
display: flex !important;
|
|
flex-direction: column !important;
|
|
align-items: center !important;
|
|
text-align: center !important;
|
|
}
|
|
|
|
/* Adjust specific widgets inside content */
|
|
.elementor-element.elementor-element-47f8cbe .logico-title {
|
|
margin-left: auto !important;
|
|
margin-right: auto !important;
|
|
}
|
|
} |