bulma/docs/_sass/main.sass

215 lines
3.5 KiB
Sass
Raw Normal View History

2018-04-09 09:35:44 +00:00
.bd-main
overflow: hidden
position: relative
// Lead
.bd-lead
position: relative
.bd-breadcrumb
2018-04-09 11:45:52 +00:00
display: flex
justify-content: space-between
2018-04-09 15:50:33 +00:00
margin-bottom: $main-spacing
2018-04-09 11:45:52 +00:00
.breadcrumb:not(:last-child)
margin-bottom: 0
.bd-prev-next
align-items: flex-start
color: $grey-light
display: none
flex-grow: 0
flex-shrink: 0
margin-left: 0.5rem
text-align: center
a,
span
border-radius: $radius
width: 1.5rem
a
&:hover
background-color: $background
2018-04-09 09:35:44 +00:00
2018-04-09 19:19:29 +00:00
.bd-prev-next-bis
border-top: 2px solid $background
display: flex
justify-content: space-between
margin-top: $main-spacing
a
margin-top: $main-spacing / 2
.bd-prev-next-bis-previous
margin-right: auto
.bd-prev-next-bis-next
margin-left: auto
2018-04-09 09:35:44 +00:00
.bd-header
2018-04-09 15:50:33 +00:00
border-bottom: 2px solid $background
margin-bottom: $main-spacing
padding-bottom: $main-spacing
2018-04-09 09:35:44 +00:00
.subtitle
color: $text-light
strong
color: currentColor
2018-04-09 15:50:33 +00:00
#meta
margin-top: -0.5rem
2018-04-09 09:35:44 +00:00
2018-04-09 16:11:24 +00:00
.bd-content
hr:first-child
display: none
& + .bd-anchor-title
padding-top: 0
2018-04-09 09:35:44 +00:00
// Side
.bd-side,
.bd-side-background
background-color: $white-bis
.bd-side
position: relative
.bd-side-background
bottom: 0
left: 50%
position: absolute
right: 0
top: 0
2018-04-10 22:52:51 +00:00
%bd-list
font-size: 0.875rem
li
&:not(:last-child)
margin-bottom: 0.5em
2018-04-11 00:14:29 +00:00
&.is-past
a
color: $grey-light
2018-04-10 22:52:51 +00:00
&.is-current
a
color: $link
a
color: $text-light
&:hover
color: $link
2018-04-09 16:59:04 +00:00
.bd-category
a
&:hover
color: $link
&:not(:last-child)
margin-bottom: 0.5rem
2018-04-09 19:19:29 +00:00
&.is-active
.bd-category-toggle
.icon
transform: rotate(180deg)
.bd-category-list
display: block
2018-04-09 16:59:04 +00:00
.bd-category-header
position: relative
.bd-category-toggle
+overlay
align-items: center
color: $grey-light
display: flex
justify-content: flex-end
.icon
font-size: 0.75rem
2018-04-09 19:19:29 +00:00
transform-origin: center
transition-duration: $speed
transition-property: transform
2018-04-09 16:59:04 +00:00
.bd-category-name
color: $text-strong
position: relative
.bd-category-list
2018-04-10 22:52:51 +00:00
@extend %bd-list
2018-04-09 16:59:04 +00:00
display: none
padding: 0.5rem
2018-04-10 22:52:51 +00:00
.bd-anchors-reference
height: 1px
.bd-anchors
2018-04-11 01:11:12 +00:00
display: none
max-width: $sidebar-width
2018-04-10 22:52:51 +00:00
padding-top: calc(1.5rem - 1px)
2018-04-11 00:14:29 +00:00
+tablet
2018-04-11 01:11:12 +00:00
&.is-active
display: block
2018-04-11 00:14:29 +00:00
&.is-pinned
position: fixed
top: 0
2018-04-10 22:52:51 +00:00
.bd-anchors-title
color: $grey-light
font-size: 0.875rem
font-weight: $weight-semibold
margin-bottom: 0.5rem
.bd-anchors-list
@extend %bd-list
2018-04-09 16:59:04 +00:00
li
2018-04-10 22:52:51 +00:00
&:last-child
margin-top: 1em
2018-04-11 00:14:29 +00:00
a
color: $text-strong
2018-04-09 16:59:04 +00:00
2018-04-09 09:35:44 +00:00
+touch
.bd-lead,
.bd-side
padding: 1.5rem
2018-04-09 16:11:24 +00:00
.bd-header-carbon
margin-top: 1.5rem
2018-04-09 09:35:44 +00:00
+mobile
.bd-side-background
display: none
+tablet
.bd-duo
display: flex
.bd-lead
background-color: $white
overflow: hidden
flex-grow: 1
flex-shrink: 1
2018-04-09 11:45:52 +00:00
.bd-prev-next
display: flex
2018-04-09 09:35:44 +00:00
.bd-side
2018-04-09 16:32:12 +00:00
flex: 0 0 calc(#{$sidebar-width} + 1.5rem)
2018-04-09 09:35:44 +00:00
+desktop
.bd-main
padding: 0 3rem
.bd-lead
2018-04-09 13:15:31 +00:00
margin-left: -3rem
padding: 3rem
2018-04-09 22:53:34 +00:00
&:last-child
margin-right: -3rem
2018-04-09 16:11:24 +00:00
.bd-header
2018-04-09 16:32:12 +00:00
align-items: center
2018-04-09 16:11:24 +00:00
display: flex
2018-04-09 16:32:12 +00:00
min-height: 130px
2018-04-09 16:11:24 +00:00
.bd-header-titles
flex-grow: 1
flex-shrink: 1
.bd-header-carbon
flex-grow: 0
flex-shrink: 0
2018-04-09 22:53:34 +00:00
margin: -15px 0 -15px ($main-spacing * 2)
2018-04-09 16:11:24 +00:00
width: $carbon-width
2018-04-09 09:35:44 +00:00
.bd-side
padding: 3rem 0 3rem 1.5rem
2018-04-11 01:11:12 +00:00
+widescreen
.bd-header-carbon
margin-left: ($main-spacing * 3)
+fullhd
.bd-header-carbon
margin-left: ($main-spacing * 4)