Add customisation variables

This commit is contained in:
Jeremy Thomas
2017-07-28 21:05:15 +01:00
parent 2e08a844d7
commit 1be49f2190
47 changed files with 888 additions and 683 deletions

0
sass/layout/_all.sass Normal file → Executable file
View File

4
sass/layout/footer.sass Normal file → Executable file
View File

@@ -1,3 +1,5 @@
$footer-background-color: $background !default
.footer
background-color: $background
background-color: $footer-background-color
padding: 3rem 1.5rem 6rem

91
sass/layout/hero.sass Normal file → Executable file
View File

@@ -1,53 +1,7 @@
// Components
.hero-video
+overlay
overflow: hidden
video
left: 50%
min-height: 100%
min-width: 100%
position: absolute
top: 50%
transform: translate3d(-50%, -50%, 0)
// Modifiers
&.is-transparent
opacity: 0.3
// Responsiveness
+mobile
display: none
.hero-buttons
margin-top: 1.5rem
// Responsiveness
+mobile
.button
display: flex
&:not(:last-child)
margin-bottom: 0.75rem
+tablet
display: flex
justify-content: center
.button:not(:last-child)
margin-right: 1.5rem
// Containers
.hero-head,
.hero-foot
flex-grow: 0
flex-shrink: 0
.hero-body
flex-grow: 1
flex-shrink: 0
padding: 3rem 1.5rem
// Main container
.hero
align-items: stretch
background-color: $white
display: flex
flex-direction: column
justify-content: space-between
@@ -150,3 +104,48 @@
min-height: 50vh
&.is-fullheight
min-height: 100vh
// Components
.hero-video
+overlay
overflow: hidden
video
left: 50%
min-height: 100%
min-width: 100%
position: absolute
top: 50%
transform: translate3d(-50%, -50%, 0)
// Modifiers
&.is-transparent
opacity: 0.3
// Responsiveness
+mobile
display: none
.hero-buttons
margin-top: 1.5rem
// Responsiveness
+mobile
.button
display: flex
&:not(:last-child)
margin-bottom: 0.75rem
+tablet
display: flex
justify-content: center
.button:not(:last-child)
margin-right: 1.5rem
// Containers
.hero-head,
.hero-foot
flex-grow: 0
flex-shrink: 0
.hero-body
flex-grow: 1
flex-shrink: 0
padding: 3rem 1.5rem

10
sass/layout/section.sass Normal file → Executable file
View File

@@ -1,9 +1,13 @@
$section-padding: 3rem 1.5rem !default
$section-padding-medium: 9rem 1.5rem !default
$section-padding-large: 18rem 1.5rem !default
.section
padding: 3rem 1.5rem
padding: $section-padding
// Responsiveness
+desktop
// Sizes
&.is-medium
padding: 9rem 1.5rem
padding: $section-padding-medium
&.is-large
padding: 18rem 1.5rem
padding: $section-padding-large