Files
bulma/docs/_sass/specific.sass

219 lines
4.1 KiB
Sass
Raw Normal View History

2018-04-09 14:15:31 +01:00
.bd-typo
2018-04-09 16:33:44 +01:00
&:not(:first-child)
margin-top: 3rem
2018-04-09 14:15:31 +01:00
2018-04-09 10:35:44 +01:00
.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
2017-10-26 19:47:48 +01:00
.bd-special-shadow
background-image: linear-gradient(rgba(#000, 0.1), rgba(#000, 0))
2017-10-26 20:00:25 +01:00
height: 8px
2017-10-26 19:47:48 +01:00
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
2017-07-02 23:49:54 +01:00
#images
tr
td:nth-child(2)
width: 320px
2017-08-14 12:44:24 +01:00
.bd-color
2017-07-02 23:49:54 +01:00
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
2017-08-14 12:44:24 +01:00
.button.bd-is-rss
2018-04-09 10:35:44 +01:00
background-color: $rss
2017-07-02 23:49:54 +01:00
border-color: transparent
color: #fff
&:hover
2018-04-09 10:35:44 +01:00
background-color: darken($rss, 5%)
2017-07-02 23:49:54 +01:00
&:active
2018-04-09 10:35:44 +01:00
background-color: darken($rss, 10%)
2017-07-24 15:44:24 +02:00
2017-08-14 12:44:24 +01:00
.bd-view-all-versions
2017-07-24 15:44:24 +02:00
color: $text-light
&:hover
text-decoration: underline
2017-07-26 21:06:52 +01:00
2017-08-14 12:44:24 +01:00
.bd-feature-title
2017-07-26 21:06:52 +01:00
color: $text-light
a
border-bottom: 1px solid transparent
color: $text-strong
&:hover
border-bottom-color: $primary
2017-07-29 14:38:45 +01:00
2017-08-14 12:44:24 +01:00
.bd-anchor-title
2017-07-29 15:31:19 +01:00
padding-top: 1.5rem
position: relative
2017-08-07 19:51:57 +01:00
+until($widescreen)
2017-07-29 23:16:31 +01:00
padding-left: 2rem
2017-07-29 15:31:19 +01:00
2017-08-14 12:44:24 +01:00
.bd-anchor-link
2017-07-29 15:31:19 +01:00
position: absolute
right: calc(100% + 1rem)
2017-08-07 19:51:57 +01:00
+until($widescreen)
2017-07-29 23:16:31 +01:00
left: 0
right: auto
2017-07-29 15:31:19 +01:00
2018-03-26 18:20:46 +01:00
.has-text-orange
color: $orange !important
2017-08-14 12:44:24 +01:00
.bd-article-image
2017-07-29 14:38:45 +01:00
background-color: $primary
display: block
height: 240px
margin-left: auto
margin-right: auto
2017-10-24 10:31:45 +01:00
overflow: hidden
2017-07-29 14:38:45 +01:00
position: relative
text-align: center
@each $name, $pair in $colors
$color: nth($pair, 1)
&.is-#{$name}
background-color: $color
2017-07-31 20:58:30 +01:00
&.is-bootstrap
background-color: $bootstrap
2017-08-03 20:46:00 +01:00
&.is-orange
background-color: $orange
2017-07-29 14:38:45 +01:00
&:hover
2017-08-14 12:44:24 +01:00
.bd-article-overlay
2017-07-29 14:38:45 +01:00
opacity: 0.25
2017-08-14 12:44:24 +01:00
.bd-article-icon
2017-08-03 20:29:09 +01:00
transform: scale(1.4)
2017-08-14 12:44:24 +01:00
.bd-article-date
2017-07-29 14:38:45 +01:00
transform: scale(0.9)
2017-08-14 12:44:24 +01:00
.bd-article-title
2017-08-03 20:29:09 +01:00
transform: scale(1.1)
2017-07-29 14:38:45 +01:00
&.is-single
margin-bottom: 2rem
width: 100%
2018-01-18 17:45:54 +00:00
&.is-share
height: 315px
margin: 2rem auto
width: 600px
2017-07-29 14:38:45 +01:00
2017-08-14 12:44:24 +01:00
.bd-article-overlay
2017-07-29 14:38:45 +01:00
+overlay
background-color: $black
opacity: 0
transition-duration: $speed
transition-property: opacity
transition-timing-function: $easing
2017-08-14 12:44:24 +01:00
.bd-article-icon,
.bd-article-info
2017-07-29 14:38:45 +01:00
+overlay
align-items: center
display: flex
justify-content: center
2017-08-03 20:29:09 +01:00
2017-08-14 12:44:24 +01:00
.bd-article-icon,
.bd-article-date,
.bd-article-title
2017-07-29 14:38:45 +01:00
transition-duration: $speed
transition-property: transform
transition-timing-function: $easing
2017-08-14 12:44:24 +01:00
.bd-article-icon
2017-07-29 14:38:45 +01:00
color: $black
2018-01-10 16:30:23 +00:00
font-size: 56px
2017-07-29 14:38:45 +01:00
opacity: 0.25
2017-08-03 20:29:09 +01:00
& > span
display: block
2017-07-29 14:38:45 +01:00
2017-08-14 12:44:24 +01:00
.bd-article-info
2017-08-03 20:29:09 +01:00
padding: 20px
2017-08-14 12:44:24 +01:00
.bd-article-date
2017-08-03 20:29:09 +01:00
color: rgba(#000, 0.5)
display: block
2017-08-14 12:44:24 +01:00
.bd-article-title
2017-07-29 14:38:45 +01:00
color: $white
2017-08-03 20:29:09 +01:00
display: block
2017-07-29 14:38:45 +01:00
font-size: 2.5rem
font-weight: $weight-bold
line-height: 1.25
2017-08-03 20:29:09 +01:00
padding: 0 20px
2017-07-30 18:22:13 +01:00
2017-08-14 12:44:24 +01:00
.bd-emoji
2017-07-30 18:22:13 +01:00
margin-right: 0.5em
2017-08-14 12:44:24 +01:00
margin-top: 2px
2017-08-14 13:59:16 +01:00
2018-01-10 11:48:03 +00:00
.bd-emoji-bis
font-size: 1.25em
vertical-align: middle
2017-08-14 13:59:16 +01:00
$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
2017-08-14 18:25:14 +01:00
padding: 1.25rem 0
2017-08-14 13:59:16 +01:00
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
2017-09-09 18:32:12 +02:00
.bd-icon-size .icon
2017-10-13 12:12:53 +01:00
background-color: $yellow
.bd-mwb-table
td
vertical-align: middle
img
2017-10-24 10:31:45 +01:00
vertical-align: middle