bulma/docs/_sass/example.sass
Jeremy Thomas 3985fff747 Add klmn
2017-08-15 00:01:34 +01:00

141 lines
2.8 KiB
Sass

.bd-example,
.bd-structure
border: 1px solid $warning
border-top-right-radius: $radius
color: $warning-invert
padding: 1.5rem
position: relative
&:not(:first-child)
margin-top: 2rem
&:not(:last-child)
margin-bottom: 1.5rem
&:before
background: $warning
border-radius: $radius $radius 0 0
bottom: 100%
content: "Example"
display: inline-block
font-size: 7px
font-weight: bold
left: -1px
letter-spacing: 1px
padding: 3px 5px
position: absolute
text-transform: uppercase
vertical-align: top
+tablet
&.is-fullwidth
border-left: none
border-right: none
padding: 0
.bd-example
& + .highlight
border: 1px solid $warning
border-radius: 0 0 $radius $radius
border-top: none
margin-top: -1.5rem
&:not(:last-child)
margin-bottom: 1.5rem
.highlight.bd-is-hovering
border-radius: 2px
box-shadow: 0 0 0 3px $border
.highlight pre
max-height: 480px
margin-bottom: 0 !important
padding: 0
code
padding: 1.25em 1.5em
.highlight-full,
#navbarJsExample
&:not(:last-child)
margin-bottom: 1.5rem
.highlight pre
max-height: none
$structure: $danger
$structure-invert: $danger-invert
.bd-structure
border-color: $structure
border-radius: $radius
padding: 1.5rem
&:before
background: $structure
color: $structure-invert
content: "Structure"
.bd-structure-item
position: relative
&:before
+overlay
background: rgba($black, 0.7)
background: $background
border: 1px solid $border
content: ""
display: block
z-index: 1
&:after
+overlay
align-items: center
content: attr(title)
display: flex
font-family: $family-monospace
font-size: 11px
justify-content: center
padding: 3px 5px
z-index: 2
&.bd-is-structure-container
padding: 1.5rem 0.75rem 0.75rem
&:after
align-items: flex-start
justify-content: flex-start
padding: 0.5rem 0.75rem
.highlight
position: relative
.bd-copy,
.bd-expand
background: none
border: none
color: $text
cursor: pointer
font-size: 0.625rem
outline: none
padding-bottom: 0
padding-top: 0
position: absolute
right: 0.25rem
top: 0.25rem
&:hover
background-color: $text
color: $white
.bd-expand
right: 45px
+tablet
pre
white-space: pre-wrap
+tablet
.section:not(.is-fullwidth) > .bd-example:not(.is-fullwidth)
margin-left: 1.5rem
margin-right: 1.5rem
& + .highlight
margin-left: 1.5rem
margin-right: 1.5rem
.section.is-fullwidth
padding: 0 !important
.bd-example
border-left: none
border-radius: 0
border-right: none
padding: 0
& + .highlight
border-left: none
border-radius: 0
border-right: none