pressbooks aldine theme the theme used for the front page or default book
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

215 lines
3.6 KiB

7 years ago
.banner {
background-position: bottom;
background-size: cover;
.container {
display: flex;
flex-direction: column;
justify-content: space-between;
align-items: center;
height: 560px;
width: 100%;
max-width: 100%;
max-width: 1440px;
}
.toggle {
display: block;
position: absolute;
top: 30px;
right: 17px;
width: 25px;
height: 20px;
7 years ago
z-index: 99;
text-indent: -9999em;
&__icon {
display: block;
position: absolute;
top: 7px;
width: 25px;
height: 3px;
background: var(--primary, $brand-primary);
&::before,
&::after {
width: 25px;
height: 3px;
7 years ago
content: '';
background: var(--primary, $brand-primary);
}
&::before {
position: absolute;
top: -7px;
right: 0;
}
&::after {
position: absolute;
top: 7px;
right: 0;
}
}
&--active {
.toggle__icon {
background: var(--primary-fg, $white);
&::before,
&::after {
background: var(--primary-fg, $white);
}
}
}
}
&__brand {
display: block;
align-self: flex-start;
width: 6.5625rem;
height: auto;
7 years ago
margin: 30px 0 0 17px;
svg,
img {
width: auto;
max-width: 100%;
height: auto;
}
7 years ago
}
&__navigation {
display: flex;
position: absolute;
flex-direction: column;
justify-content: center;
align-items: flex-start;
top: 0;
width: 100%;
7 years ago
height: 560px;
margin: 0 0 0 -100%;
padding: 0 17px;
background: transparent;
a {
7 years ago
display: none;
font-family: $font-family-sans-serif;
font-size: rem(24);
7 years ago
line-height: (80/24);
color: var(--primary-fg, $white);
letter-spacing: 0;
7 years ago
}
7 years ago
.sep {
display: none;
}
&--visible {
7 years ago
margin: 0;
padding: 0 52px;
7 years ago
z-index: 1;
background: var(--primary, $brand-primary);
a {
display: block;
width: 100%;
border-bottom: solid 1px var(--primary-fg, $white);
&:last-child {
border-bottom: 0;
}
}
}
}
&__branding {
display: flex;
flex-direction: column;
justify-content: flex-start;
align-items: center;
height: 364px;
text-align: center;
7 years ago
7 years ago
p {
font-family: $font-family-sans-serif;
}
7 years ago
}
}
.page:not(.home) .banner__branding {
display: none;
}
7 years ago
@media #{$breakpoint-large} {
7 years ago
.banner {
.container {
height: 880px;
7 years ago
margin: 0 auto;
7 years ago
}
.toggle {
display: none;
}
&__brand {
align-self: center;
width: 16.5625rem;
height: auto;
7 years ago
margin-top: 40px;
7 years ago
}
&__navigation {
7 years ago
top: 40px;
7 years ago
height: 40px;
max-width: 1440px;
margin: 0 auto;
flex-direction: row;
justify-content: flex-start;
align-items: center;
7 years ago
a {
display: inline-block;
font-size: rem(18);
color: var(--header-text, $black);
7 years ago
line-height: normal;
7 years ago
&:hover,
&:focus {
color: var(--primary, $brand-primary);
7 years ago
}
}
7 years ago
&--catalog {
margin-right: auto;
}
&--contact {
margin: 0 1em 0 auto;
7 years ago
}
&--sep {
7 years ago
display: inline-block;
margin: 0 0.5em;
}
}
&__branding {
7 years ago
height: 576px;
7 years ago
p {
font-size: rem(30);
7 years ago
letter-spacing: 0.75px;
line-height: (40/30);
}
7 years ago
}
h1 {
margin-bottom: rem(32);
font-size: rem(72);
7 years ago
line-height: (40/72);
letter-spacing: rem(1.8);
7 years ago
}
}
}