forked from janavipandole/Cara
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathheader-fix.css
More file actions
67 lines (58 loc) · 1.56 KB
/
Copy pathheader-fix.css
File metadata and controls
67 lines (58 loc) · 1.56 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
/* header-fix.css
Offsets the page content to account for the fixed header
Keeps the change isolated from style.css as requested.
*/
:root {
--header-height: 80px;
}
@media (max-width: 1024px) {
:root { --header-height: 72px; }
}
@media (max-width: 640px) {
:root { --header-height: 64px; }
}
/* apply the offset to the document body so the hero/products are pushed below the header */
body {
padding-top: var(--header-height);
transition: padding-top 0.18s ease;
}
/* Make hero occupy viewport minus header so it doesn't overlap content below */
.hero-slider {
height: calc(100vh - var(--header-height));
min-height: 420px; /* keep a sensible minimum */
box-sizing: border-box;
}
.hero-slider .slide {
height: 100% !important;
}
/* Ensure slider controls and dots remain visible above content */
.hero-slider .slider-btn,
.hero-slider .slider-dots {
z-index: 9999 !important;
pointer-events: auto !important;
}
/* Pull the products section up so it visually sits right under the hero
without editing global styles. Adjust per breakpoint for safe overlap. */
.hero-slider + .section-p1,
#hero + .section-p1,
.hero-slider + #product1,
#hero + #product1 {
margin-top: -48px; /* pull up */
padding-top: 20px; /* keep internal spacing */
}
@media (max-width: 991px) {
.hero-slider + .section-p1,
#hero + .section-p1,
.hero-slider + #product1,
#hero + #product1 {
margin-top: -28px;
}
}
@media (max-width: 640px) {
.hero-slider + .section-p1,
#hero + .section-p1,
.hero-slider + #product1,
#hero + #product1 {
margin-top: -16px;
}
}