Match demo.zibll.com slide markup (a/span wrap, data-* attrs, --pc/--m height on .new-swiper), keyword chip classes, and height CSS so the top multifunc block renders like the official demo.
402 lines
11 KiB
CSS
402 lines
11 KiB
CSS
/* Widget device visibility */
|
|
@media (max-width: 767.98px) {
|
|
.aksrt-widget--mobile-only {
|
|
display: none !important;
|
|
}
|
|
}
|
|
|
|
@media (min-width: 768px) {
|
|
.aksrt-widget--pc-only {
|
|
display: none !important;
|
|
}
|
|
}
|
|
|
|
/* CMS freeform modules only: hero as first module under nav.
|
|
* Prefer --nav-fixed-reserve when body.nav-fixed is present so the pull-up
|
|
* matches body padding-top (88/72/60), not just the 60px bar height. */
|
|
.home-modules > .header-components-container:first-child,
|
|
.home-modules--fullbleed > .header-components-container:first-child {
|
|
margin-top: calc(var(--nav-fixed-reserve, var(--nav-height, 60px)) * -1);
|
|
}
|
|
|
|
/* Fixed homepage hero under-nav is owned by nav/base.css (body.nav-fixed). */
|
|
|
|
/* ============================================================
|
|
* Layer 1: Swiper shell — zibll .new-swiper.slide-header
|
|
* Height lives on CSS vars of .new-swiper; wrapper height = --pc-height / --m-height
|
|
* ============================================================ */
|
|
.header-slider-container .new-swiper.slide-header,
|
|
.new-swiper.slide-index.slide-header {
|
|
position: relative;
|
|
width: 100%;
|
|
overflow: hidden;
|
|
padding-top: 0;
|
|
border-radius: 0;
|
|
background: #111;
|
|
/* Defaults if PHP did not set style vars */
|
|
--pc-height: 550px;
|
|
--m-height: 280px;
|
|
}
|
|
|
|
.header-slider-container .new-swiper.slide-header .swiper-wrapper,
|
|
.new-swiper.slide-index.slide-header .swiper-wrapper {
|
|
height: var(--pc-height);
|
|
display: flex;
|
|
}
|
|
|
|
.header-slider-container .new-swiper.slide-header .swiper-slide,
|
|
.new-swiper.slide-index.slide-header .swiper-slide {
|
|
position: relative;
|
|
height: 100%;
|
|
overflow: hidden;
|
|
width: 100%;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
/* zibll: slide media fill wrapper height */
|
|
.header-slider-container .new-swiper.slide-header .swiper-slide img,
|
|
.header-slider-container .new-swiper.slide-header .swiper-slide video,
|
|
.new-swiper.slide-index.slide-header .swiper-slide img,
|
|
.new-swiper.slide-index.slide-header .swiper-slide video {
|
|
width: 100%;
|
|
height: 100%;
|
|
object-fit: cover;
|
|
border-radius: 0 !important;
|
|
display: block;
|
|
}
|
|
|
|
.header-slider-container .new-swiper.slide-header .swiper-slide > a,
|
|
.header-slider-container .new-swiper.slide-header .swiper-slide > span,
|
|
.new-swiper.slide-index.slide-header .swiper-slide > a,
|
|
.new-swiper.slide-index.slide-header .swiper-slide > span {
|
|
display: block;
|
|
width: 100%;
|
|
height: 100%;
|
|
position: relative;
|
|
}
|
|
|
|
/* Keep legacy .header-components shell for gradient fallback only */
|
|
.header-components:not(.new-swiper) {
|
|
position: relative;
|
|
width: 100%;
|
|
--pc-height: 550px;
|
|
--m-height: 280px;
|
|
height: var(--pc-height);
|
|
max-height: none;
|
|
overflow: hidden;
|
|
background: #111;
|
|
}
|
|
|
|
.header-components.slide-header:not(.new-swiper) {
|
|
padding-top: 0;
|
|
border-radius: 0;
|
|
}
|
|
|
|
/* zibll: .slide-header .slide-text { padding-top: 70px; } — nav clearance only */
|
|
.header-components.slide-header .slide-text,
|
|
.header-components.slide-header .header-components__content.slide-text {
|
|
padding-top: 70px;
|
|
}
|
|
|
|
/* Gradient fallback */
|
|
.header-components--gradient {
|
|
background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-active, var(--color-primary-dark)) 100%);
|
|
display: block;
|
|
position: relative;
|
|
height: var(--pc-height);
|
|
}
|
|
|
|
.header-components--gradient::before {
|
|
content: "";
|
|
position: absolute;
|
|
inset: 0;
|
|
background: radial-gradient(ellipse 80% 60% at 20% 20%, rgba(255, 255, 255, 0.15), transparent),
|
|
radial-gradient(ellipse 50% 50% at 80% 80%, rgba(0, 0, 0, 0.2), transparent);
|
|
pointer-events: none;
|
|
}
|
|
|
|
.header-components:not(.new-swiper) .swiper-wrapper {
|
|
position: absolute;
|
|
inset: 0;
|
|
height: 100%;
|
|
width: 100%;
|
|
}
|
|
|
|
.header-components:not(.new-swiper) .swiper-slide {
|
|
position: relative;
|
|
height: 100%;
|
|
overflow: hidden;
|
|
cursor: pointer;
|
|
}
|
|
|
|
/* Legacy BEM slide bg — only when old markup still present */
|
|
.header-components__slide-bg {
|
|
position: absolute;
|
|
inset: 0;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.header-components__slide-bg img,
|
|
.header-components__slide-bg .fit-cover {
|
|
width: 100%;
|
|
height: 100%;
|
|
object-fit: cover;
|
|
}
|
|
|
|
.header-components__slide-fallback {
|
|
width: 100%;
|
|
height: 100%;
|
|
background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
|
|
}
|
|
|
|
.header-components__video {
|
|
position: absolute;
|
|
inset: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
object-fit: cover;
|
|
z-index: 0;
|
|
}
|
|
|
|
.header-components__layer {
|
|
position: absolute;
|
|
inset: 0;
|
|
background-size: cover;
|
|
background-repeat: no-repeat;
|
|
background-position: center;
|
|
pointer-events: none;
|
|
}
|
|
|
|
.header-components__layer--free-size {
|
|
background-size: auto;
|
|
}
|
|
|
|
.header-components__layer--parallax {
|
|
will-change: transform, opacity;
|
|
opacity: var(--layer-parallax-opacity, 0.6);
|
|
transform: translateY(calc(var(--scroll-y, 0) * var(--layer-parallax-scale, 0.3) * 1px));
|
|
}
|
|
|
|
/* Text parallax — keep abs-center vertical model (translateY only when abs-center is full-width) */
|
|
.has-text-parallax {
|
|
will-change: transform;
|
|
}
|
|
|
|
.header-components__content[style*="--hero-text-size-pc"] .slide-title,
|
|
.header-components__content[style*="--text-size-pc"] .slide-title {
|
|
font-size: inherit;
|
|
}
|
|
|
|
.header-components__slide-overlay {
|
|
position: absolute;
|
|
inset: 0;
|
|
background: linear-gradient(
|
|
to bottom,
|
|
rgba(0, 0, 0, 0.05) 0%,
|
|
rgba(0, 0, 0, 0.12) 55%,
|
|
rgba(0, 0, 0, 0.28) 100%
|
|
);
|
|
z-index: 1;
|
|
pointer-events: none;
|
|
}
|
|
|
|
/* Bottom-bar .s-desc mode */
|
|
.header-components__content.s-desc,
|
|
.header-components__content.slide-text.s-desc {
|
|
top: auto;
|
|
bottom: 0;
|
|
left: 0;
|
|
right: 0;
|
|
transform: none;
|
|
width: 100%;
|
|
max-width: none;
|
|
text-align: left;
|
|
padding: 1.8em 2.5em;
|
|
background: linear-gradient(0deg, rgba(0, 0, 0, 0.2), transparent);
|
|
border-radius: 0 0 var(--main-radius, 8px) var(--main-radius, 8px);
|
|
text-shadow: 0 0 8px rgba(0, 0, 0, 0.3);
|
|
font-size: 16px;
|
|
}
|
|
|
|
.header-components__content.s-desc .header-components__title,
|
|
.header-components__content.s-desc .slide-title {
|
|
font-size: 16px;
|
|
font-weight: normal;
|
|
text-shadow: 0 0 8px rgba(0, 0, 0, 0.3);
|
|
letter-spacing: 0;
|
|
}
|
|
|
|
.header-components__content.slide-text {
|
|
background: unset;
|
|
}
|
|
|
|
/* ============================================================
|
|
* Layer 2: Search — zibll .header-slider-search
|
|
* Full-width abs-center + fine-tuned top (NOT point-centered).
|
|
* Title/subtitle are in .header-slider-search-more.before (flow).
|
|
* ============================================================ */
|
|
.header-slider-search.abs-center,
|
|
.header-components-search.abs-center {
|
|
position: absolute;
|
|
left: 0;
|
|
right: 0;
|
|
width: 100%;
|
|
top: calc(50% - 10px);
|
|
transform: translateY(-50%);
|
|
z-index: 2;
|
|
margin: auto;
|
|
max-width: 840px;
|
|
padding: 0 20px;
|
|
font-size: 17px;
|
|
color: #fff;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
.header-slider-search,
|
|
.header-components-search {
|
|
max-width: 840px;
|
|
margin: auto;
|
|
padding: 0 20px;
|
|
font-size: 17px;
|
|
top: calc(50% - 10px);
|
|
z-index: 2;
|
|
}
|
|
|
|
.card-0 .header-slider-search,
|
|
.card-0 .header-components-search {
|
|
top: calc(50% + 20px);
|
|
}
|
|
|
|
.header-slider-search .search-input,
|
|
.header-components-search .search-input {
|
|
max-width: 800px;
|
|
margin: 0 auto;
|
|
}
|
|
|
|
.header-slider-search-more {
|
|
color: #fff;
|
|
}
|
|
|
|
.header-slider-search-more.before {
|
|
margin-bottom: 1.8em;
|
|
}
|
|
|
|
.header-slider-search .search-form,
|
|
.header-components-search .search-form {
|
|
margin: 0;
|
|
display: block;
|
|
background: transparent;
|
|
border-radius: 0;
|
|
padding: 0;
|
|
box-shadow: none;
|
|
-webkit-backdrop-filter: none;
|
|
backdrop-filter: none;
|
|
transform: none;
|
|
}
|
|
|
|
.header-slider-search .line-form,
|
|
.header-components-search .line-form {
|
|
background: rgba(255, 255, 255, 0.8);
|
|
border-radius: 100px;
|
|
padding: 0.5em 1.2em;
|
|
z-index: 1;
|
|
color: #555;
|
|
border: none;
|
|
box-shadow: none;
|
|
position: relative;
|
|
}
|
|
|
|
.has-blur-pc .header-slider-search .line-form,
|
|
.has-blur-mobile .header-slider-search .line-form,
|
|
.filter-blur .header-slider-search .line-form,
|
|
.has-blur-pc .header-components-search .line-form,
|
|
.has-blur-mobile .header-components-search .line-form,
|
|
.filter-blur .header-components-search .line-form {
|
|
-webkit-backdrop-filter: saturate(5) blur(20px);
|
|
backdrop-filter: saturate(5) blur(20px);
|
|
}
|
|
|
|
.header-slider-search .line-form .icon,
|
|
.header-slider-search .line-form a,
|
|
.header-components-search .line-form .icon,
|
|
.header-components-search .line-form a {
|
|
color: #555;
|
|
}
|
|
|
|
/* ============================================================
|
|
* Layer 3: Icon cards — margin-top:-40px (zibll)
|
|
* ============================================================ */
|
|
.header-slider-card,
|
|
.header-components-card {
|
|
position: relative;
|
|
margin-top: -40px;
|
|
z-index: 1;
|
|
}
|
|
|
|
.header-components-card .zib-widget,
|
|
.header-components-card .aksrt-theme-box,
|
|
.header-components-card .icon-cover-card {
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
.has-blur-pc .header-components-card .zib-widget,
|
|
.has-blur-pc .header-components-card .aksrt-theme-box,
|
|
.has-blur-mobile .header-components-card .zib-widget,
|
|
.filter-blur .header-components-card .zib-widget {
|
|
-webkit-backdrop-filter: saturate(5) blur(20px);
|
|
backdrop-filter: saturate(5) blur(20px);
|
|
background: var(--blur-bg);
|
|
}
|
|
|
|
.header-components.slide-header .swiper-slide img,
|
|
.header-components.slide-header .header-components__slide-bg img {
|
|
border-radius: 0 !important;
|
|
}
|
|
|
|
/* Decorative slide text content (not the main hero stack) */
|
|
.header-components__content.slide-text:not(.s-desc) {
|
|
/* Placement comes from .abs-center + optional alignment modifiers */
|
|
z-index: 1;
|
|
color: #fff;
|
|
max-width: none;
|
|
width: 100%;
|
|
}
|
|
|
|
.header-components__title,
|
|
.header-components .slide-title {
|
|
font-family: var(--font-ui);
|
|
font-weight: 600;
|
|
margin: 0;
|
|
line-height: 1.35;
|
|
letter-spacing: 0;
|
|
color: #fff;
|
|
text-shadow: 0 0 8px rgba(0, 0, 0, 0.3);
|
|
}
|
|
|
|
.header-components__subtitle,
|
|
.header-components .slide-desc {
|
|
margin: 0.6em 0 0;
|
|
line-height: 1.5;
|
|
color: rgba(255, 255, 255, 0.95);
|
|
text-shadow: 0 0 8px rgba(0, 0, 0, 0.3);
|
|
}
|
|
|
|
.header-components__description {
|
|
font-size: 0.85em;
|
|
margin: 0.4em 0 0;
|
|
line-height: 1.5;
|
|
color: rgba(255, 255, 255, 0.85);
|
|
text-shadow: 0 0 8px rgba(0, 0, 0, 0.3);
|
|
}
|
|
|
|
|
|
/* zibll: header-slider-search .search-input-text .line-form-line { display:none } */
|
|
.header-slider-search .search-input-text .line-form-line,
|
|
.header-components-search .search-input-text .line-form-line {
|
|
display: none;
|
|
}
|
|
|
|
.header-slider-search .search-type-but-average {
|
|
margin-bottom: 2em;
|
|
}
|