Files
bulma/docs/_sass/specific.sass

316 lines
5.7 KiB
Sass
Raw Permalink Normal View History

2018-04-10 11:45:48 +01:00
+selection
background-color: $primary
color: $primary-invert
2019-10-14 01:42:05 +01:00
.bd-post-container
margin: 0 auto
max-width: 56rem
.bd-post-fullwidth
text-align: center
+from(60rem)
.bd-post-fullwidth
margin-left: calc(28rem - 50vw)
margin-right: calc(28rem - 50vw)
2018-04-12 00:20:58 +01:00
.bd-post
.table
font-size: 1rem
.bd-anchor-title
margin-top: 0 !important
2018-04-11 12:54:56 +01:00
.bd-has-drawing
position: relative
.bd-drawing
display: none
pointer-events: none
position: absolute
&.bd-is-try-it-out
bottom: 100%
right: 100%
&.bd-is-love-letters
bottom: 110%
right: 10%
&.bd-is-crazy
left: -10%
top: 110%
&.bd-is-customize
right: -10%
top: 105%
&.bd-is-opinion-free
right: 100%
top: 110%
&.bd-is-join-us
bottom: 80%
left: 100%
&.bd-is-spam-free
bottom: 100%
right: 90%
+tablet
.bd-drawing
display: inline
2018-04-09 20:19:29 +01:00
.bd-links
counter-reset: bd-links
.bd-link
border-radius: $radius-large
2019-10-18 20:29:40 -04:00
color: var(--#{$prefix}text-light)
2018-04-09 20:19:29 +01:00
display: block
font-size: $size-5
2018-04-10 22:38:00 +01:00
padding: 1rem 3rem 1.5rem 5rem
position: relative
2018-04-10 15:38:50 +01:00
transition-duration: $speed
transition-property: background-color, color
2018-04-09 20:19:29 +01:00
strong
font-weight: $weight-semibold
&:hover
2019-10-18 20:29:40 -04:00
background-color: var(--#{$prefix}scheme-main-bis)
2018-04-09 20:19:29 +01:00
2018-04-12 00:20:58 +01:00
.bd-link-surtitle
float: right
font-size: 0.75em
margin-bottom: 1em
margin-left: 2em
opacity: 0.5
padding-top: 0.25em
2018-04-09 20:19:29 +01:00
.bd-link-name
2018-04-09 21:16:50 +01:00
line-height: 1.25
margin-bottom: 0.25em
2018-04-09 20:19:29 +01:00
position: relative
2018-04-09 21:16:50 +01:00
2018-04-10 22:38:00 +01:00
.bd-link-figure
position: absolute
2018-10-02 08:54:58 +01:00
right: calc(100% + 0.75em)
2018-04-10 22:38:00 +01:00
text-align: center
top: 0
min-width: 1.5em
2018-04-09 21:16:50 +01:00
.bd-link-counter
2019-10-18 20:29:40 -04:00
color: var(--#{$prefix}link)
2018-04-10 22:38:00 +01:00
display: block
2018-04-09 21:16:50 +01:00
counter-increment: bd-links
font-weight: $weight-normal
2018-04-09 20:19:29 +01:00
&::before
content: counter(bd-links)
2018-04-09 21:16:50 +01:00
.bd-link-icon
2018-04-10 22:38:00 +01:00
display: block
2018-04-09 21:16:50 +01:00
font-size: 2rem
width: 1.5em
2018-04-09 20:19:29 +01:00
2018-04-11 18:58:11 +01:00
.bd-link-more
font-size: 0.75em
opacity: 0.5
2018-10-02 06:39:55 +01:00
+mobile
.bd-links
margin-left: -1.5rem
margin-right: -1.5rem
.bd-link
border-radius: 0
padding-right: 1.5rem
2018-04-09 20:19:29 +01:00
+desktop
.bd-links
display: flex
flex-wrap: wrap
.bd-link
width: 50%
.bd-link-name
2019-10-18 20:29:40 -04:00
color: var(--#{$prefix}text-strong)
2018-04-09 20:19:29 +01:00
font-size: $size-4
font-weight: $weight-semibold
.bd-docs
display: flex
flex-wrap: wrap
.bd-doc
margin: 0 3rem 1.5rem 0
+mobile
min-width: calc(50% - 3rem)
+tablet
min-width: calc(33.3333% - 3rem)
.bd-doc-title
2019-10-18 20:29:40 -04:00
color: var(--#{$prefix}text-strong)
2018-04-09 20:19:29 +01:00
a
color: currentColor
&:hover
2019-10-18 20:29:40 -04:00
color: var(--#{$prefix}link)
2018-04-09 20:19:29 +01:00
&:not(:last-child)
margin-bottom: 0.75rem
.bd-boxes
display: flex
flex-wrap: wrap
justify-content: space-between
.bd-box
border: 4px solid $background
border-radius: $radius
.bd-box-header
text-align: center
2018-04-09 14:15:31 +01:00
.bd-typo
2018-04-09 20:19:29 +01:00
text-align: center
2018-04-09 16:33:44 +01:00
&:not(:first-child)
2018-04-09 20:19:29 +01:00
margin-top: $main-spacing
2018-04-09 14:15:31 +01:00
2018-04-09 10:35:44 +01:00
.bd-has-text-rss
color: $rss
2018-04-10 18:22:04 +01:00
.has-text-star
2018-04-09 10:35:44 +01:00
color: $star
2018-04-09 23:53:34 +01:00
// $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: #8F6900 !important
// .icon
// color: #F4B300 !important
2018-04-09 10:35:44 +01:00
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
2019-10-18 20:29:40 -04:00
color: var(--#{$prefix}text-light)
2017-07-24 15:44:24 +02:00
&:hover
text-decoration: underline
2017-07-26 21:06:52 +01:00
2017-08-14 12:44:24 +01:00
.bd-feature-title
2019-10-18 20:29:40 -04:00
color: var(--#{$prefix}text-light)
2017-07-26 21:06:52 +01:00
a
border-bottom: 1px solid transparent
2019-10-18 20:29:40 -04:00
color: var(--#{$prefix}text-strong)
2017-07-26 21:06:52 +01:00
&: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)
2018-07-14 14:18:43 +01:00
top: 1.5rem
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
2018-04-11 09:41:32 +01:00
.has-text-purple
color: $purple !important
2018-04-09 21:16:50 +01:00
.has-text-bootstrap
color: $bootstrap !important
2017-08-03 20:29:09 +01:00
2018-04-09 21:16:50 +01:00
.has-text-patreon
color: $patreon !important
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
2019-10-18 20:29:40 -04:00
$notification-background-color: var(--#{$prefix}background) !default
2017-08-14 13:59:16 +01:00
$notification-radius: $radius !default
$notification-padding: 1.25rem 2.5rem 1.25rem 1.5rem !default
.bd-notification
2019-10-18 20:29:40 -04:00
background-color: var(--#{$prefix}background)
2017-08-14 13:59:16 +01:00
border-radius: $radius
2019-10-18 20:29:40 -04:00
color: var(--#{$prefix}text-light)
2018-04-10 11:45:48 +01:00
font-weight: $weight-semibold
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
2019-10-18 20:29:40 -04:00
background-color: rgba(var(--#{$prefix}scheme-invert), 0.2)
2018-04-10 11:45:48 +01:00
border-radius: $radius
2019-10-18 20:29:40 -04:00
color: var(--#{$prefix}scheme-main)
2017-08-14 13:59:16 +01:00
pre code
2018-04-10 11:45:48 +01:00
background-color: transparent
2017-08-14 13:59:16 +01:00
// 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