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.

259 lines
4.2 KiB

.catalog {
.page-header {
margin-top: rem(-68);
padding-bottom: 2rem;
}
.network-catalog {
width: 100%;
}
.controls {
width: 100%;
}
.filters,
.search,
.sort {
width: 100%;
border-top: solid 2px var(--accent, $brand-accent);
a {
display: flex;
flex-direction: row;
justify-content: space-between;
align-items: center;
width: 100%;
padding: rem(16) rem(19);
font-size: rem(16);
font-weight: 600;
font-family: $font-family-sans-serif;
letter-spacing: rem(0.67);
color: $black;
transition: color 0.2s;
&:hover,
&:focus {
background: #fafdff;
color: var(--link, $brand-primary);
}
}
ul {
margin: 0;
padding: 0;
list-style: none;
li {
font-size: rem(16);
font-family: $font-family-sans-serif;
letter-spacing: rem(0.67);
a {
display: block;
font-weight: normal;
}
a.is-active {
font-weight: 600;
color: var(--link, $brand-primary);
}
}
}
}
.arrow {
path {
fill: var(--link, $brand-primary);
}
}
.is-active > a .arrow {
transform: rotate(180deg);
}
.filters {
.filter-groups {
display: none;
border-top: solid 2px var(--accent, $brand-accent);
h3 {
margin: 0;
border-top: solid 1px $light-gray;
}
h3:first-of-type {
border-top: none;
}
}
.filter-list {
display: none;
}
&.is-active {
.filter-groups {
display: block;
}
}
.is-active ul {
display: block;
}
}
.search {
display: none;
}
.sort {
border-bottom: solid 2px var(--accent, $brand-accent);
.sorts {
display: none;
}
&.is-active {
.sorts {
display: block;
}
}
}
.books {
align-self: flex-start;
width: percent(358, 360);
margin: rem(32) 0 0 percent(10.5, 360);
padding: 0;
}
.book {
display: flex;
flex-direction: column;
justify-content: flex-end;
width: percent(165, 358);
margin: 0 percent(9, 358) rem(8) 0;
height: rem(230);
float: left;
padding: 1.5rem rem(8) rem(26);
border: solid 2px var(--bg, $brand-accent);
background: var(--bg, $brand-accent);
p {
margin: 0;
}
a {
font-family: $font-family-sans-serif;
color: $white;
text-decoration: none;
}
.subject {
height: rem(44);
font-size: rem(14);
}
.title {
height: rem(118);
font-size: rem(16);
font-weight: 600;
line-height: (20/16);
}
.read-more {
font-size: rem(14);
}
}
}
@media (min-width: 768px) {
.catalog {
.books {
align-self: flex-start;
width: percent(735, 768);
margin-bottom: rem(15);
margin-left: percent(24, 768);
}
.book {
width: percent(230, 735);
height: rem(260);
margin: 0 percent(15, 735) 2rem 0;
padding: 0 rem(14) rem(21.35);
.subject {
height: rem(45.85);
font-size: rem(18);
}
.title {
height: rem(147.65);
font-size: rem(22);
font-weight: 600;
line-height: (40/30);
}
.read-more {
font-size: rem(16);
}
}
}
}
@media (min-width: $medium) {
// TODO
}
@media (min-width: $large) {
// TODO
}
@media (min-width: $extra-large) {
.catalog {
.main {
width: rem(1535);
margin: 0 auto;
}
.network-catalog {
display: flex;
flex-direction: row;
align-items: flex-start;
margin-top: rem(205);
}
.controls {
width: percent(314, 1535);
}
.books {
width: percent(1221.5, 1535);
margin: 0 0 0 percent(2, 1535);
}
.book {
width: percent(367, 1221.5);
height: rem(386);
margin: 0 0 2rem percent(39.5, 1221.5);
padding: 1.5rem 1.85rem 2.1875rem;
.subject {
height: 4.625rem;
font-size: rem(24);
}
.title {
height: 13rem;
font-size: rem(30);
font-weight: 500;
line-height: (40/30);
}
.read-more {
font-size: rem(18);
}
}
}
}