Skip to content
● Meet Grav Guard: keep every Grav site you run secure and up to date, all from one place. Free for up to 3 sites. Read more →

Antimatter header

Started by Matt 9 years ago · 3 replies · 1004 views
9 years ago

Hi,

I'm removed the .flush-top part in the CSS so i now have a white section above the showcase image.

However, the gap between the top of the browser and the top of the image is large. Is there anyway to decrease it?

image|690x66

last edited 03/03/18 by Matt
9 years ago

I've actually had to make it larger (9rem) for a site and dug this up which might help you get started:

scss/template/_custom.scss:

TXT
$home-header-height: 9rem;

scss/template/_min-tablet.scss:

CSS
.fullwidth header#header {
    height: $home-header-height !important;
}

and

CSS
.fullwidth #body {
    padding-top: $home-header-height;
}

I'm sorry I can't remember if this references custom classes etc but it might give you pointers.

1 reply
9 years ago

Thanks Herb, unfortunately, that doesn't appear to work for me 😦

If i put box shadow:

CSS
 .modular.header-image #header {
 background-color: rgba(255, 255, 255, 0);
 box-shadow: 0 0.05rem 1rem rgba(0, 0, 0, 0.15); }

i get this:

image|690x152

so it's the space between showdown modular and the nav / header.

Any more help would be greatly appreciated.

Suggested topics

Topic Participants Replies Views Activity
General · by themetman, 23 hours ago
2 40 16 hours ago
General · by Hanns Mattes, 1 week ago
0 121 1 week ago
General · by Karmalakas, 1 week ago
2 185 1 week ago
General · by Hanns Mattes, 3 weeks ago
0 235 3 weeks ago
General · by Dima, 4 weeks ago
1 211 4 weeks ago