bespoke-theme-voltaire
Version:
A theme for Bespoke.js
162 lines (134 loc) • 2.53 kB
text/stylus
@import 'normalizecss/normalize.css'
$background = #111
$orange = #F30
$white = #FFF
$serif = didot, times new roman, serif
$sans-serif = gill sans, helvetica, arial, arial, sans-serif
$monospace = prestige elite std, consolas, courier new, monospace
$emdash = '\2014'
*
margin: 0
padding: 0
html
text-size-adjust: auto
.bespoke-parent
font-size: 1.5em
background: $background
color: $white
font-family: $sans-serif
position: absolute
top: 0
left: 0
right: 0
bottom: 0
overflow: hidden
text-align: center
transition: background 1s ease
background-position: 50% 50%
.bespoke-scale-parent
position: absolute
top: 0
left: 0
right: 0
bottom: 0
pointer-events: none
z-index: 1
.bespoke-active
pointer-events: auto
.bespoke-slide
text-shadow: 0px 1px 0 rgba(0, 0, 0, 0.75)
transition: opacity .3s ease
width: 720px
height: 480px
position: absolute
top: 50%
left: 50%
margin-left: -(@width / 2)
margin-top: -(@height / 2)
display: flex
flex-direction: column
justify-content: center
align-items: center
z-index: 1
.bespoke-active
transition-delay: .3s
.bespoke-inactive
opacity: 0
pointer-events: none
.bespoke-backdrop
transition: opacity 1s ease
position: absolute
top: 0
left: 0
right: 0
bottom: 0
opacity: 0
&-active
opacity: 1
.bespoke-progress-parent
position: absolute
top: 0
left: 0
right: 0
height: .3vw
z-index: 1
.bespoke-progress-bar
background: $white
position: absolute
top: 0
left: 0
height: 100%
transition: width 1s ease
.bespoke-bullet
transition: opacity .3s ease
.bespoke-bullet-inactive
opacity: 0
strong
font-weight: 400
h1 strong
font-weight: 600
h1, h2, h3, p, li
padding-left: 20px
padding-right: 20px
h1, h2, h3, p, li, pre
font-weight: 200
h1
font-family: $serif
font-style: italic
h1
margin: 0.17em 0
h2
font-family: $sans-serif
font-style: normal
font-weight: normal
font-size: 1.1em
margin: 0.1em 0
h3
font-style: normal
font-size: .6em
margin: 1.1em 0
ul, ol
padding: 0
margin: 0
text-align: left
li
list-style: none
margin: .2em
font-style: normal
transform: translateX(-6px)
&:before
content: $emdash
margin-right: 4px
pre
background: none
code
font-family: $monospace
font-style: normal
font-weight: 200
text-align: left
a
color: currentColor
text-decoration: none
border-bottom: 1px solid currentColor
.emphatic
background: $orange