bulma/docs/bulma-docs.sass

396 lines
7.2 KiB
Sass
Raw Normal View History

@charset "utf-8"
2016-10-16 18:15:56 +00:00
@import "../bulma"
// Override
.button
+tablet
small
color: $text
left: 0
margin-top: 10px
position: absolute
top: 100%
width: 100%
body.page-grid .column > .notification
padding-left: 0
padding-right: 0
text-align: center
+tablet
.header-item .button + .button
2016-10-30 10:41:53 +00:00
margin-left: 0.75rem
// Additional
2016-09-24 17:56:26 +00:00
svg
max-height: 100%
max-width: 100%
$carbon-space: 15px
#carbon
max-width: 340px
min-height: 100px + ($carbon-space * 2)
padding: $carbon-space
+tablet
margin-left: auto
margin-right: auto
width: 340px
#carbonads
text-align: left
a:hover
text-decoration: underline
span
display: block
.carbon-img
float: left
height: 100px
width: 130px
img
display: block
.carbon-text
display: block
color: $text-strong
margin-left: 130px + $carbon-space
.carbon-poweredby
font-size: $size-small
margin-left: $carbon-space
$github: #333333
$twitter: #55acee
#github
color: $github
border-color: $github
&:hover
background: $github
border-color: $github
color: $white
#twitter
color: $twitter
border-color: $twitter
&:hover
background: $twitter
border-color: $twitter
color: $white
2016-09-24 09:35:20 +00:00
@keyframes floatUp
2016-09-24 11:41:10 +00:00
0%
2016-09-24 09:35:20 +00:00
box-shadow: 0 0 0 rgba($black, 0), 0 0 0 rgba($black, 0), 0 0 0 rgba($black, 0)
transform: scale(0.86)
2016-09-24 11:41:10 +00:00
67%
box-shadow: 0 0 0 rgba($black, 0), 0 5px 10px rgba($black, 0.1), 0 1px 1px rgba($black, 0.2)
transform: scale(1)
100%
2016-09-24 09:35:20 +00:00
box-shadow: 0 20px 60px rgba($black, 0.05), 0 5px 10px rgba($black, 0.1), 0 1px 1px rgba($black, 0.2)
transform: scale(1)
@keyframes strokePath
from
stroke-dashoffset: 880
to
stroke-dashoffset: 0
@keyframes fadeIn
from
opacity: 0
transform: scale(0.86)
to
opacity: 1
transform: scale(1)
@keyframes fadeOut
0%
opacity: 1
transform: scale(0.86)
67%
opacity: 1
transform: scale(0.86)
100%
opacity: 0
transform: scale(1)
2016-09-24 15:04:53 +00:00
@keyframes slideDown
0%
opacity: 0
transform: translateY(-10px)
100%
opacity: 1
transform: translateY(0)
@keyframes slideUp
0%
opacity: 0
transform: translateY(10px)
100%
opacity: 1
transform: translateY(0)
2016-09-24 09:35:20 +00:00
$curve: cubic-bezier(0, 0.71, 0.29, 1)
#b
2016-09-24 09:35:20 +00:00
animation-delay: 1s
2016-09-24 11:41:10 +00:00
animation-duration: 1.5s
2016-09-24 09:35:20 +00:00
animation-fill-mode: both
animation-name: floatUp
animation-timing-function: $curve
2016-09-24 17:56:26 +00:00
border-radius: 24px
display: inline-block
height: 240px
margin-bottom: 40px
2016-09-24 09:35:20 +00:00
position: relative
vertical-align: top
width: 240px
2016-09-22 18:48:42 +00:00
svg
2016-09-24 09:35:20 +00:00
+overlay
2016-09-22 18:48:42 +00:00
display: block
height: 240px
width: 240px
2016-09-24 09:35:20 +00:00
&:first-child
animation-duration: 1.5s
animation-fill-mode: both
animation-name: fadeOut
animation-timing-function: $curve
g
animation-duration: 1s
animation-fill-mode: both
animation-name: strokePath
animation-timing-function: $curve
fill: none
stroke: $turquoise
stroke-dasharray: 880
stroke-width: 2px
&:last-child
animation-delay: 1s
animation-duration: 1s
animation-fill-mode: both
animation-name: fadeIn
animation-timing-function: $curve
g
fill: $turquoise
+mobile
2016-09-24 17:56:26 +00:00
border-radius: 16px
height: 160px
width: 160px
2016-09-24 15:04:53 +00:00
#bulma
animation: slideDown 500ms both
animation-delay: 1s
#modern-framework
animation: slideUp 500ms both
animation-delay: 1.2s
#npm
2016-09-24 15:04:53 +00:00
animation: fadeIn 500ms both
animation-delay: 1.4s
background: none
margin: -10px 0 20px
code
border-radius: $radius
color: $link
display: inline-block
font-size: 16px
padding: 16px 32px
2016-09-24 15:04:53 +00:00
#ghbtns
animation: slideDown 500ms both
animation-delay: 1.6s
2016-09-24 15:10:11 +00:00
html.route-index #carbon
2016-09-24 15:04:53 +00:00
animation: slideUp 500ms both
animation-delay: 1.8s
#download
animation: fadeIn 500ms both
animation-delay: 2s
#grid
.notification
padding-left: 0
padding-right: 0
#message
display: none
#tweet
background: $white
border-radius: $radius-large
box-shadow: 0 2px 3px rgba($black, 0.1), 0 0 0 1px rgba($black, 0.1)
2016-10-30 10:41:53 +00:00
padding: 1.5rem
#mc_embed_signup
.control
margin-bottom: 0
.notification
2016-10-30 10:41:53 +00:00
margin-top: 0.75rem
#social
align-items: center
display: flex
2016-09-24 17:56:26 +00:00
flex-wrap: wrap
margin-bottom: 1em
justify-content: center
a
display: inline-block
font-size: 11px
height: 20px
line-height: 20px
2016-09-24 17:56:26 +00:00
margin: 5px
iframe
margin: 5px
#images
tr
td:nth-child(2)
width: 320px
.color
display: inline-block
float: left
height: 18px
margin-right: 5px
width: 18px
.example,
.structure
border: 1px solid $warning
border-top-right-radius: $radius
color: $warning-invert
2016-10-30 10:41:53 +00:00
padding: 1.25rem 1.5rem
position: relative
&:not(:first-child)
2016-10-30 10:41:53 +00:00
margin-top: 2rem
&:not(:last-child)
2016-10-30 10:41:53 +00:00
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
.example
& + .highlight
border: 1px solid $warning
border-radius: 0 0 $radius $radius
border-top: none
2016-10-30 10:41:53 +00:00
margin-top: -1.5rem
pre
max-height: 600px
&:not(:last-child)
2016-10-30 10:41:53 +00:00
margin-bottom: 3rem
$structure: $danger
$structure-invert: $danger-invert
.structure
border-color: $structure
border-radius: $radius
2016-10-30 10:41:53 +00:00
padding: 1.5rem
&:before
background: $structure
color: $structure-invert
content: "Structure"
.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
&.is-structure-container
2016-10-30 10:41:53 +00:00
padding: 1.5rem 0.75rem 0.75rem
&:after
align-items: flex-start
justify-content: flex-start
2016-10-30 10:41:53 +00:00
padding: 0.5rem 0.75rem
.highlight
position: relative
.copy,
.expand
2016-09-22 22:14:18 +00:00
+unselectable
background: $white
border: solid $border
border-width: 0 0 1px 1px
color: $text-light
2016-09-23 21:08:03 +00:00
cursor: pointer
outline: none
position: absolute
right: 0
top: 0
&:hover
border-color: $code
color: $code
.expand
border-right-width: 1px
right: 50px
2016-10-30 16:11:04 +00:00
+tablet
pre
white-space: pre-wrap
+tablet
.section:not(.is-fullwidth) > .example:not(.is-fullwidth)
2016-10-30 10:41:53 +00:00
margin-left: 1.5rem
margin-right: 1.5rem
& + .highlight
2016-10-30 10:41:53 +00:00
margin-left: 1.5rem
margin-right: 1.5rem
.section.is-fullwidth
padding: 0 !important
.example
border-left: none
border-radius: 0
border-right: none
padding: 0
& + .highlight
border-left: none
border-radius: 0
border-right: none
#newsletter
.input
border-color: $white
box-shadow: none
2016-09-24 11:41:10 +00:00
html
\::-moz-selection
background: $primary
color: $primary-invert
\::selection
background: $primary
color: $primary-invert