2018-03-26 13:46:39 +00:00
|
|
|
$book-beige: #FFEDD7
|
|
|
|
|
2018-03-26 14:33:31 +00:00
|
|
|
@keyframes fadeIn
|
|
|
|
from
|
|
|
|
opacity: 0
|
|
|
|
to
|
|
|
|
opacity: 1
|
|
|
|
|
|
|
|
@keyframes zoomIn
|
|
|
|
from
|
|
|
|
transform: scale(0.8)
|
|
|
|
to
|
|
|
|
transform: scale(1)
|
|
|
|
|
2018-03-26 13:46:39 +00:00
|
|
|
.bd-book-banner
|
2019-02-07 18:03:02 +00:00
|
|
|
background-color: $primary
|
2018-03-26 13:46:39 +00:00
|
|
|
position: relative
|
|
|
|
|
2018-03-26 14:33:31 +00:00
|
|
|
.bd-book-pattern,
|
|
|
|
.bd-book-modal-column.bd-is-cover
|
2018-03-26 13:46:39 +00:00
|
|
|
background-image: url("/images/hab/lightpaperfibers_@2X.png")
|
|
|
|
background-repeat: repeat
|
|
|
|
background-size: 250px 150px
|
2018-03-26 14:33:31 +00:00
|
|
|
&::before
|
2018-03-26 13:46:39 +00:00
|
|
|
+overlay
|
|
|
|
background-color: rgba($book-beige, 0.1)
|
|
|
|
content: ""
|
|
|
|
display: block
|
|
|
|
|
2018-03-26 14:33:31 +00:00
|
|
|
.bd-book-pattern
|
|
|
|
+overlay
|
|
|
|
|
2018-03-26 13:46:39 +00:00
|
|
|
.bd-book-header
|
|
|
|
position: relative
|
|
|
|
|
|
|
|
.bd-book-cover
|
2018-03-26 14:33:31 +00:00
|
|
|
padding-top: 0.75rem
|
|
|
|
position: relative
|
|
|
|
text-align: center
|
|
|
|
a
|
|
|
|
display: inline-block
|
|
|
|
vertical-align: top
|
2018-03-26 13:46:39 +00:00
|
|
|
img
|
|
|
|
display: block
|
|
|
|
|
|
|
|
.bd-book-content
|
2018-04-10 22:02:30 +00:00
|
|
|
@extend %bd-box
|
2018-04-11 12:36:41 +00:00
|
|
|
box-shadow: 0 3rem 3rem -1rem rgba($black, 0.2)
|
2018-03-26 13:46:39 +00:00
|
|
|
max-width: 520px
|
|
|
|
padding: 3rem
|
|
|
|
|
|
|
|
.bd-book-description
|
|
|
|
max-width: 340px
|
|
|
|
|
|
|
|
.bd-book-tags
|
2018-03-26 17:20:46 +00:00
|
|
|
margin-bottom: 1.5rem
|
2018-03-26 13:46:39 +00:00
|
|
|
.tags
|
|
|
|
.tag
|
|
|
|
margin-right: 1px
|
|
|
|
|
2018-03-26 17:20:46 +00:00
|
|
|
.bd-book-buttons
|
|
|
|
.button
|
|
|
|
height: auto
|
|
|
|
padding-bottom: calc(1em - 1px)
|
|
|
|
padding-top: calc(0.5em - 1px)
|
|
|
|
& > span
|
|
|
|
font-size: 0.875em
|
|
|
|
& > em
|
|
|
|
display: block
|
|
|
|
font-size: 0.5em
|
|
|
|
font-style: normal
|
|
|
|
line-height: 1em
|
|
|
|
margin-bottom: 0.5em
|
|
|
|
opacity: 0.5
|
|
|
|
img
|
|
|
|
display: block
|
|
|
|
max-height: 24px
|
|
|
|
&.bd-is-bleeding
|
|
|
|
background-color: $bleeding-green
|
|
|
|
border-color: transparent
|
|
|
|
&:hover
|
|
|
|
background-color: darken($bleeding-green, 5%)
|
|
|
|
&.bd-is-amazon
|
|
|
|
background-color: $amazon
|
|
|
|
border-color: transparent
|
|
|
|
&:hover
|
|
|
|
background-color: darken($amazon, 5%)
|
|
|
|
img
|
|
|
|
margin-bottom: -11px
|
|
|
|
|
2018-03-26 13:46:39 +00:00
|
|
|
.bd-book-columns
|
|
|
|
align-items: center
|
|
|
|
display: flex
|
|
|
|
justify-content: center
|
|
|
|
margin-left: auto
|
|
|
|
margin-right: auto
|
|
|
|
max-width: 1080px
|
|
|
|
|
2018-03-26 14:33:31 +00:00
|
|
|
.bd-book-modal-background
|
|
|
|
+overlay
|
|
|
|
background-color: rgba($black, 0.86)
|
|
|
|
|
|
|
|
.bd-book-modal
|
|
|
|
.bd-book-modal-background,
|
|
|
|
.modal-content
|
|
|
|
animation-duration: 250ms
|
|
|
|
animation-easing-function: ease-out
|
|
|
|
animation-fill-mode: both
|
|
|
|
.bd-book-modal-background
|
|
|
|
animation-name: fadeIn
|
|
|
|
.modal-content
|
|
|
|
animation-name: zoomIn
|
|
|
|
transform-origin: center
|
|
|
|
.bd-book-modal-cover
|
|
|
|
padding: 2rem
|
|
|
|
position: relative
|
|
|
|
|
|
|
|
.bd-book-modal-columns
|
|
|
|
align-items: stretch
|
|
|
|
display: flex
|
|
|
|
justify-content: center
|
|
|
|
|
2018-03-26 13:46:39 +00:00
|
|
|
+mobile
|
|
|
|
.bd-book-columns
|
|
|
|
flex-direction: column
|
2018-03-26 17:20:46 +00:00
|
|
|
.bd-book-buttons
|
|
|
|
.button
|
|
|
|
width: 100%
|
|
|
|
&:not(:last-child)
|
|
|
|
margin-right: 0
|
|
|
|
margin-bottom: 1rem
|
2018-03-26 14:33:31 +00:00
|
|
|
.bd-book-modal
|
|
|
|
.bd-book-content
|
|
|
|
padding: 2rem
|
|
|
|
.bd-book-modal-column.bd-is-cover
|
|
|
|
display: none
|
2018-03-26 13:46:39 +00:00
|
|
|
|
|
|
|
+tablet
|
|
|
|
.bd-book-columns
|
|
|
|
justify-content: space-around
|
|
|
|
.bd-book-header
|
|
|
|
.tag
|
|
|
|
position: absolute
|
|
|
|
right: calc(100% + 1.25rem)
|
|
|
|
top: 0.5rem
|
2018-03-26 17:20:46 +00:00
|
|
|
.bd-book-buttons
|
|
|
|
.button
|
|
|
|
width: calc(50% - 0.5rem)
|
2018-03-26 14:33:31 +00:00
|
|
|
// Modal
|
|
|
|
.bd-book-modal
|
|
|
|
.modal-content
|
|
|
|
width: 960px
|
|
|
|
.bd-book-inline-cover
|
|
|
|
display: none
|
|
|
|
.bd-book-modal-column
|
|
|
|
background-color: $white
|
|
|
|
position: relative
|
|
|
|
&.bd-is-cover
|
|
|
|
align-items: center
|
|
|
|
display: flex
|
|
|
|
justify-content: center
|
|
|
|
padding: 2rem
|
|
|
|
&.bd-is-content
|
|
|
|
.bd-book-content
|
|
|
|
box-shadow: none
|