bulma/docs/_sass/specific.sass
2018-04-09 14:15:31 +01:00

218 lines
4.0 KiB
Sass

.bd-typo
margin-top: 3rem
.bd-has-text-rss
color: $rss
.bd-has-text-star
color: $star
$navbar-items: ("documentation": $primary, "templates": $info, "videos": $success, "blog": $rss, "expo": $star, "love": $red)
@each $name, $color in $navbar-items
.bd-navbar-item-#{$name}
.icon
color: $color
&:hover
background-color: $color !important
color: #fff !important
.icon
color: currentColor !important
.bd-navbar-item-expo
&:hover
color: #744F09 !important
.icon
color: #FF7B00 !important
.bd-special-shadow
background-image: linear-gradient(rgba(#000, 0.1), rgba(#000, 0))
height: 8px
left: 0
opacity: 0
position: absolute
right: 0
top: 100%
transform: scaleY(0)
transform-origin: center top
+touch
.bd-is-clipped-touch
overflow: hidden !important
#images
tr
td:nth-child(2)
width: 320px
.bd-color
border-radius: 2px
box-shadow: 0 2px 3px 0 rgba(0, 0, 0, 0.1), inset 0 0 0 1px rgba(0, 0, 0, 0.1)
display: inline-block
float: left
height: 24px
margin-right: 8px
width: 24px
.button.bd-is-rss
background-color: $rss
border-color: transparent
color: #fff
&:hover
background-color: darken($rss, 5%)
&:active
background-color: darken($rss, 10%)
.bd-view-all-versions
color: $text-light
&:hover
text-decoration: underline
.bd-feature-title
color: $text-light
a
border-bottom: 1px solid transparent
color: $text-strong
&:hover
border-bottom-color: $primary
.bd-anchor-title
padding-top: 1.5rem
position: relative
+until($widescreen)
padding-left: 2rem
.bd-anchor-link
position: absolute
right: calc(100% + 1rem)
+until($widescreen)
left: 0
right: auto
.has-text-orange
color: $orange !important
.bd-article-image
background-color: $primary
display: block
height: 240px
margin-left: auto
margin-right: auto
overflow: hidden
position: relative
text-align: center
@each $name, $pair in $colors
$color: nth($pair, 1)
&.is-#{$name}
background-color: $color
&.is-bootstrap
background-color: $bootstrap
&.is-orange
background-color: $orange
&:hover
.bd-article-overlay
opacity: 0.25
.bd-article-icon
transform: scale(1.4)
.bd-article-date
transform: scale(0.9)
.bd-article-title
transform: scale(1.1)
&.is-single
margin-bottom: 2rem
width: 100%
&.is-share
height: 315px
margin: 2rem auto
width: 600px
.bd-article-overlay
+overlay
background-color: $black
opacity: 0
transition-duration: $speed
transition-property: opacity
transition-timing-function: $easing
.bd-article-icon,
.bd-article-info
+overlay
align-items: center
display: flex
justify-content: center
.bd-article-icon,
.bd-article-date,
.bd-article-title
transition-duration: $speed
transition-property: transform
transition-timing-function: $easing
.bd-article-icon
color: $black
font-size: 56px
opacity: 0.25
& > span
display: block
.bd-article-info
padding: 20px
.bd-article-date
color: rgba(#000, 0.5)
display: block
.bd-article-title
color: $white
display: block
font-size: 2.5rem
font-weight: $weight-bold
line-height: 1.25
padding: 0 20px
.bd-emoji
margin-right: 0.5em
margin-top: 2px
.bd-emoji-bis
font-size: 1.25em
vertical-align: middle
$notification-background-color: $background !default
$notification-radius: $radius !default
$notification-padding: 1.25rem 2.5rem 1.25rem 1.5rem !default
.bd-notification
background-color: $background
border-radius: $radius
padding: 1.25rem 0
position: relative
text-align: center
.title,
.subtitle,
.content,
strong
color: currentColor
code,
pre
background: $white
pre code
background: transparent
// Colors
@each $name, $pair in $colors
$color: nth($pair, 1)
$color-invert: nth($pair, 2)
&.is-#{$name}
background-color: $color
color: $color-invert
.bd-icon-size .icon
background-color: $yellow
.bd-mwb-table
td
vertical-align: middle
img
vertical-align: middle