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.

261 lines
4.1 KiB

7 years ago
.home {
.block {
height: 445px;
background-color: $white;
7 years ago
h3 {
7 years ago
font-size: em(30);
7 years ago
font-weight: 600;
letter-spacing: 2px;
7 years ago
line-height: (36/30);
7 years ago
margin: 0;
&::before {
7 years ago
content: "";
7 years ago
display: block;
7 years ago
margin: 0 auto 1em;
7 years ago
width: 46px;
height: 5px;
7 years ago
background-color: $brand-secondary;
7 years ago
}
}
.widget p {
7 years ago
font-size: em(16);
line-height: (32/16);
}
&.latest-books {
box-shadow: unset;
height: auto;
padding-bottom: 50px;
h3 {
margin-top: 70px;
}
.inside {
padding: 0;
}
.navigation {
a {
&.slick-disabled {
opacity: 0;
}
}
}
}
.books {
.book,
.slick-slide {
width: 100vw;
height: 386px;
margin: 45px 0 0;
padding: 0 29.5px;
border: solid 2px;
a {
7 years ago
font-family: $font-family-sans-serif;
color: $white;
text-decoration: none;
}
.subject {
height: 91px;
margin-top: 24px;
7 years ago
font-size: em(24);
}
.title {
height: 329px - 115px;
7 years ago
font-size: em(30);
font-weight: 500;
}
.read-more {
7 years ago
font-size: em(18);
}
}
}
}
.one-two {
width: 100%;
display: flex;
flex-direction: column;
.block-2 {
background: $brand-secondary;
p,
h3 {
color: $white;
}
7 years ago
h3::before {
background-color: $white;
}
7 years ago
}
}
.main > .block-2,
.one-two + .block {
background: transparent;
border: solid 2px $brand-primary;
// margin-bottom: 401px;
&::after {
position: absolute;
left: 0;
top: 1840px;
content: "";
display: block;
display: none;
width: 100vw;
height: 600px;
z-index: -1;
// background: url('../images/banner-two.jpg');
background-position: center;
background-repeat: no-repeat;
background-size: cover;
}
}
}
@media (min-width: $medium) {
.home {
7 years ago
.wrap {
margin-top: -366px;
}
.block {
width: 775px;
margin-bottom: 119px;
box-shadow: -3px 5px 4px 2px rgba(135, 135, 135, 0.09);
h3 {
7 years ago
font-size: em(48);
line-height: (56/48);
7 years ago
&::before {
width: 74px;
}
}
p {
7 years ago
font-size: em(18);
line-height: (32/18);
}
.inside {
width: 595px;
}
}
.one-two {
align-items: center;
}
.main > .block-2,
.one-two + .block {
border: solid 2px $brand-primary;
box-shadow: unset;
&::after {
top: 2020px;
}
}
.block.latest-books {
width: 100%;
.inside {
width: 100%;
}
.books {
flex-direction: row;
justify-content: space-between;
}
.book,
.slick-slide {
width: 300px;
margin-right: 30px;
&:last-child {
margin-right: 0;
}
}
}
}
}
@media (min-width: $large) {
.home {
.block {
width: 1115px;
height: 494px;
}
.main > .block-2,
.one-two + .block {
&::after {
top: 2150px;
}
}
.block.latest-books {
width: 1200px;
margin-bottom: 0;
.inside {
width: 100%;
}
.book,
.slick-slide {
width: 367px;
margin-right: 50px;
&:last-child {
margin-right: 0;
}
}
}
}
}
@media (min-width: $extra-large) {
.home {
.block {
width: 1115px;
box-shadow: -3px 5px 4px 2px rgba(135, 135, 135, 0.09);
}
.one-two {
flex-direction: row;
justify-content: space-between;
width: 1615px;
.block {
border-radius: 4px;
width: 775px;
.inside {
width: 595px;
}
}
}
.main > .block-2,
.one-two + .block {
&::after {
top: 1550px;
}
}
7 years ago
}
}