2021-02-15 07:50:28 +00:00
|
|
|
@import "../utilities/mixins"
|
|
|
|
|
|
|
|
$hero-body-padding: 3rem 1.5rem !default
|
2022-08-27 16:43:27 +00:00
|
|
|
$hero-body-padding-tablet: 3rem 3rem !default
|
2021-02-15 07:50:28 +00:00
|
|
|
$hero-body-padding-small: 1.5rem !default
|
2022-08-27 16:43:27 +00:00
|
|
|
$hero-body-padding-medium: 9rem 4.5rem !default
|
|
|
|
$hero-body-padding-large: 18rem 6rem !default
|
2021-02-15 07:50:28 +00:00
|
|
|
|
|
|
|
$hero-colors: $colors !default
|
2018-01-29 09:42:34 +00:00
|
|
|
|
2021-02-15 07:50:28 +00:00
|
|
|
// Main container
|
2018-01-29 09:42:34 +00:00
|
|
|
.hero
|
|
|
|
align-items: stretch
|
|
|
|
display: flex
|
|
|
|
flex-direction: column
|
|
|
|
justify-content: space-between
|
|
|
|
.navbar
|
|
|
|
background: none
|
|
|
|
.tabs
|
|
|
|
ul
|
|
|
|
border-bottom: none
|
|
|
|
// Colors
|
2021-02-15 07:50:28 +00:00
|
|
|
@each $name, $pair in $hero-colors
|
2018-01-29 09:42:34 +00:00
|
|
|
$color: nth($pair, 1)
|
|
|
|
$color-invert: nth($pair, 2)
|
|
|
|
&.is-#{$name}
|
|
|
|
background-color: $color
|
|
|
|
color: $color-invert
|
2021-02-15 07:50:28 +00:00
|
|
|
a:not(.button):not(.dropdown-item):not(.tag):not(.pagination-link.is-current),
|
2018-01-29 09:42:34 +00:00
|
|
|
strong
|
|
|
|
color: inherit
|
|
|
|
.title
|
|
|
|
color: $color-invert
|
|
|
|
.subtitle
|
2021-02-15 07:50:28 +00:00
|
|
|
color: bulmaRgba($color-invert, 0.9)
|
2018-01-29 09:42:34 +00:00
|
|
|
a:not(.button),
|
|
|
|
strong
|
|
|
|
color: $color-invert
|
|
|
|
.navbar-menu
|
|
|
|
+touch
|
|
|
|
background-color: $color
|
|
|
|
.navbar-item,
|
|
|
|
.navbar-link
|
2021-02-15 07:50:28 +00:00
|
|
|
color: bulmaRgba($color-invert, 0.7)
|
2018-01-29 09:42:34 +00:00
|
|
|
a.navbar-item,
|
|
|
|
.navbar-link
|
|
|
|
&:hover,
|
|
|
|
&.is-active
|
2021-02-15 07:50:28 +00:00
|
|
|
background-color: bulmaDarken($color, 5%)
|
2018-01-29 09:42:34 +00:00
|
|
|
color: $color-invert
|
|
|
|
.tabs
|
|
|
|
a
|
|
|
|
color: $color-invert
|
|
|
|
opacity: 0.9
|
|
|
|
&:hover
|
|
|
|
opacity: 1
|
|
|
|
li
|
|
|
|
&.is-active a
|
2022-08-27 16:43:27 +00:00
|
|
|
color: $color !important
|
2018-01-29 09:42:34 +00:00
|
|
|
opacity: 1
|
|
|
|
&.is-boxed,
|
|
|
|
&.is-toggle
|
|
|
|
a
|
|
|
|
color: $color-invert
|
|
|
|
&:hover
|
2021-02-15 07:50:28 +00:00
|
|
|
background-color: bulmaRgba($scheme-invert, 0.1)
|
2018-01-29 09:42:34 +00:00
|
|
|
li.is-active a
|
|
|
|
&,
|
|
|
|
&:hover
|
|
|
|
background-color: $color-invert
|
|
|
|
border-color: $color-invert
|
|
|
|
color: $color
|
|
|
|
// Modifiers
|
2021-02-15 07:50:28 +00:00
|
|
|
@if type-of($color) == 'color'
|
|
|
|
&.is-bold
|
|
|
|
$gradient-top-left: darken(saturate(adjust-hue($color, -10deg), 10%), 10%)
|
|
|
|
$gradient-bottom-right: lighten(saturate(adjust-hue($color, 10deg), 5%), 5%)
|
|
|
|
background-image: linear-gradient(141deg, $gradient-top-left 0%, $color 71%, $gradient-bottom-right 100%)
|
|
|
|
+mobile
|
|
|
|
.navbar-menu
|
|
|
|
background-image: linear-gradient(141deg, $gradient-top-left 0%, $color 71%, $gradient-bottom-right 100%)
|
2018-01-29 09:42:34 +00:00
|
|
|
// Sizes
|
|
|
|
&.is-small
|
|
|
|
.hero-body
|
2021-02-15 07:50:28 +00:00
|
|
|
padding: $hero-body-padding-small
|
2018-01-29 09:42:34 +00:00
|
|
|
&.is-medium
|
|
|
|
+tablet
|
|
|
|
.hero-body
|
2021-02-15 07:50:28 +00:00
|
|
|
padding: $hero-body-padding-medium
|
2018-01-29 09:42:34 +00:00
|
|
|
&.is-large
|
|
|
|
+tablet
|
|
|
|
.hero-body
|
2021-02-15 07:50:28 +00:00
|
|
|
padding: $hero-body-padding-large
|
2018-01-29 09:42:34 +00:00
|
|
|
&.is-halfheight,
|
2021-02-15 07:50:28 +00:00
|
|
|
&.is-fullheight,
|
|
|
|
&.is-fullheight-with-navbar
|
2018-01-29 09:42:34 +00:00
|
|
|
.hero-body
|
|
|
|
align-items: center
|
|
|
|
display: flex
|
|
|
|
& > .container
|
|
|
|
flex-grow: 1
|
|
|
|
flex-shrink: 1
|
|
|
|
&.is-halfheight
|
|
|
|
min-height: 50vh
|
|
|
|
&.is-fullheight
|
|
|
|
min-height: 100vh
|
|
|
|
|
|
|
|
// Components
|
|
|
|
|
|
|
|
.hero-video
|
2021-02-15 07:50:28 +00:00
|
|
|
@extend %overlay
|
2018-01-29 09:42:34 +00:00
|
|
|
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)
|
2021-02-15 07:50:28 +00:00
|
|
|
+ltr-property("margin", 1.5rem)
|
2018-01-29 09:42:34 +00:00
|
|
|
|
|
|
|
// Containers
|
|
|
|
|
|
|
|
.hero-head,
|
|
|
|
.hero-foot
|
|
|
|
flex-grow: 0
|
|
|
|
flex-shrink: 0
|
|
|
|
|
|
|
|
.hero-body
|
|
|
|
flex-grow: 1
|
|
|
|
flex-shrink: 0
|
2021-02-15 07:50:28 +00:00
|
|
|
padding: $hero-body-padding
|
2022-08-27 16:43:27 +00:00
|
|
|
+tablet
|
|
|
|
padding: $hero-body-padding-tablet
|