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.

178 lines
2.8 KiB

7 years ago
.banner {
.container {
height: 560px;
max-width: 1440px;
}
.toggle-menu {
top: 30px;
right: 17px;
width: 25px;
height: 20px;
7 years ago
z-index: 99;
text-indent: -9999em;
.icon {
top: 7px;
width: 25px;
height: 3px;
background: var(--link, $brand-primary);
&::before,
&::after {
width: 25px;
height: 3px;
7 years ago
content: '';
background: var(--link, $brand-primary);
}
&::before {
position: absolute;
top: -7px;
right: 0;
}
&::after {
position: absolute;
top: 7px;
right: 0;
}
}
&.is-active .icon {
7 years ago
// TODO
background: var(--fg, $white);
&::before,
&::after {
background: var(--fg, $white);
}
}
}
7 years ago
.brand {
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
}
.primary-navigation {
7 years ago
height: 560px;
margin: 0 0 0 -100%;
padding: 0 17px;
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(--fg, $white);
letter-spacing: 0;
7 years ago
}
7 years ago
.sep {
display: none;
}
&.is-visible {
7 years ago
margin: 0;
padding: 0 52px;
7 years ago
z-index: 1;
background: var(--bg, $brand-primary);
a {
display: block;
width: 100%;
border-bottom: solid 1px var(--fg, $white);
&:last-child {
border-bottom: 0;
}
}
}
}
.branding {
height: 364px;
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
}
7 years ago
.brand {
width: 16.5625rem;
height: auto;
7 years ago
margin-top: 40px;
7 years ago
}
7 years ago
.primary-navigation {
7 years ago
top: 40px;
7 years ago
height: 40px;
max-width: 1440px;
margin: 0 auto;
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(--header-link, $brand-primary);
7 years ago
}
&:nth-child(1) {
7 years ago
margin-right: auto;
}
&:nth-child(2) {
7 years ago
margin: 0 1em 0 auto;
}
}
.sep {
display: inline-block;
margin: 0 0.5em;
}
}
.branding {
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
}
}
}