bulma/sass/layout/hero.sass

156 lines
3.3 KiB
Sass
Raw Normal View History

.hero-video
+overlay
overflow: hidden
video
left: 50%
min-height: 100%
min-width: 100%
position: absolute
top: 50%
transform: translate3d(-50%, -50%, 0)
2016-04-10 15:56:27 +00:00
// Modifiers
&.is-transparent
opacity: 0.3
// Responsiveness
+mobile
display: none
2016-01-24 12:32:11 +00:00
.hero-content
padding: 40px 20px
2016-04-10 15:56:27 +00:00
// Responsiveness
2016-01-24 12:32:11 +00:00
+desktop
padding: 40px 0
.hero-buttons
margin-top: 20px
2016-04-10 15:56:27 +00:00
// Responsiveness
2016-01-24 12:32:11 +00:00
+mobile
.button
display: block
&:not(:last-child)
margin-bottom: 10px
+tablet
display: flex
justify-content: center
.button:not(:last-child)
margin-right: 20px
2016-01-24 00:03:43 +00:00
.hero
background: $white
2016-01-24 00:03:43 +00:00
.header
background: none
2016-02-27 13:29:54 +00:00
.container
box-shadow: 0 1px 0 rgba($border, 0.3)
2016-01-24 00:03:43 +00:00
.tabs
a
border: none
ul
border-bottom: none
2016-04-10 15:56:27 +00:00
// Modifiers
&.is-boxed
a
padding: 8px 15px
2016-04-10 15:56:27 +00:00
// Colors
2016-01-24 00:03:43 +00:00
@each $name, $pair in $colors
$color: nth($pair, 1)
$color-invert: nth($pair, 2)
&.is-#{$name}
background: $color
color: $color-invert
.title
color: $color-invert
a,
2016-01-24 00:03:43 +00:00
strong
color: inherit
.subtitle
color: rgba($color-invert, 0.7)
2016-04-16 15:29:36 +00:00
a,
2016-01-24 00:03:43 +00:00
strong
color: $color-invert
.header .container
box-shadow: 0 1px 0 rgba($color-invert, 0.2)
.header-icon,
2016-03-25 13:38:40 +00:00
a.header-item,
2016-01-24 00:03:43 +00:00
.header-item > a:not(.button)
2016-03-25 13:38:40 +00:00
color: rgba($color-invert, 0.5)
2016-01-24 00:03:43 +00:00
&:hover,
&.is-active
2016-03-25 13:38:40 +00:00
color: $color-invert
2016-01-24 00:03:43 +00:00
.tabs
a
color: $color-invert
opacity: 0.5
&:hover
opacity: 1
li.is-active a
opacity: 1
&.is-boxed,
&.is-toggle
2016-01-24 00:03:43 +00:00
a
color: $color-invert
&:hover
background: rgba($black, 0.1)
2016-01-24 00:03:43 +00:00
li.is-active a
&,
&:hover
background: $color-invert
color: $color
2016-04-10 15:56:27 +00:00
// Modifiers
2016-01-24 00:03:43 +00:00
&.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%)
2016-04-10 15:56:27 +00:00
// Responsiveness
2016-01-24 00:03:43 +00:00
+mobile
.header-toggle
span
background: $color-invert
&:hover
background: rgba($black, 0.1)
2016-01-24 00:03:43 +00:00
&.is-active
span
background: $color-invert
.header-menu
.header-item
border-top-color: rgba($color-invert, 0.2)
2016-04-10 15:56:27 +00:00
// Sizes
2016-01-24 00:03:43 +00:00
&.is-fullheight,
&.is-large
2016-04-10 15:56:27 +00:00
// Responsiveness
2016-01-24 00:03:43 +00:00
+tablet
.tabs
font-size: $size-medium
&.is-medium
2016-04-10 15:56:27 +00:00
// Responsiveness
2016-01-24 00:03:43 +00:00
+tablet
2016-01-24 12:32:11 +00:00
.hero-content
2016-01-24 00:03:43 +00:00
padding: 120px 20px
+desktop
2016-01-24 12:32:11 +00:00
.hero-content
2016-01-24 00:03:43 +00:00
padding: 120px 0
2016-01-24 12:32:11 +00:00
&.is-fullheight
align-items: stretch
display: flex
flex-direction: column
justify-content: space-between
min-height: 100vh
.tabs
a
padding: 15px 20px
2016-01-24 12:32:11 +00:00
.hero-content
display: flex
flex: 1
flex-direction: column
justify-content: center
2016-04-10 15:56:27 +00:00
&.is-large
.tabs
a
padding: 10px 15px
// Responsiveness
+tablet
.hero-content
padding: 240px 20px
+desktop
.hero-content
padding: 240px 0