Files
bulma/sass/elements/elements.sass

192 lines
3.5 KiB
Sass
Raw Permalink Normal View History

2016-01-24 00:03:43 +00:00
@charset "utf-8"
@import "controls"
@import "buttons"
@import "titles"
@import "images"
@import "messages"
@import "notifications"
2016-03-26 16:46:15 +00:00
@import "progress"
2016-01-24 00:03:43 +00:00
.delete
+unselectable
-moz-appearance: none
-webkit-appearance: none
2016-01-24 00:03:43 +00:00
background: rgba(black, 0.2)
border: none
2016-01-24 00:03:43 +00:00
border-radius: 290486px
cursor: pointer
display: inline-block
height: 24px
position: relative
vertical-align: top
width: 24px
&:before,
&:after
background: white
content: ""
display: block
height: 2px
left: 50%
margin-left: -25%
margin-top: -1px
2016-01-24 00:03:43 +00:00
position: absolute
top: 50%
width: 50%
2016-01-24 00:03:43 +00:00
&:before
transform: rotate(45deg)
&:after
transform: rotate(-45deg)
&:hover
2016-04-11 22:51:11 +01:00
background: rgba(black, 0.5)
2016-04-10 16:00:32 +01:00
// Sizes
2016-01-24 00:03:43 +00:00
&.is-small
height: 16px
width: 16px
&.is-medium
height: 32px
width: 32px
&.is-large
height: 40px
width: 40px
2016-01-24 00:03:43 +00:00
.icon
+fa(21px, 24px)
.fa
font-size: inherit
line-height: inherit
2016-04-10 16:00:32 +01:00
// Sizes
2016-01-24 00:03:43 +00:00
&.is-small
+fa(14px, 16px)
2016-01-24 00:03:43 +00:00
&.is-medium
+fa(28px, 32px)
&.is-large
+fa(42px, 48px)
.hamburger
cursor: pointer
display: block
2016-01-31 22:27:58 +00:00
height: 50px
2016-01-24 00:03:43 +00:00
position: relative
2016-01-31 22:27:58 +00:00
width: 50px
2016-01-24 00:03:43 +00:00
span
background: $text
display: block
height: 1px
left: 50%
margin-left: -7px
2016-01-24 00:03:43 +00:00
position: absolute
top: 50%
2016-01-24 00:03:43 +00:00
transition: none $speed $easing
transition-property: background, left, opacity, transform
width: 15px
&:nth-child(1)
margin-top: -6px
2016-01-24 00:03:43 +00:00
&:nth-child(2)
margin-top: -1px
2016-01-24 00:03:43 +00:00
&:nth-child(3)
margin-top: 4px
2016-01-24 00:03:43 +00:00
&:hover
background: $background
2016-04-10 16:00:32 +01:00
// Modifers
2016-01-24 00:03:43 +00:00
&.is-active
span
background: $link
&:nth-child(1)
margin-left: -5px
2016-01-24 00:03:43 +00:00
transform: rotate(45deg)
transform-origin: left top
&:nth-child(2)
opacity: 0
&:nth-child(3)
margin-left: -5px
2016-01-24 00:03:43 +00:00
transform: rotate(-45deg)
transform-origin: left bottom
2016-01-31 22:27:58 +00:00
+tablet
height: $header-height
width: $header-height
2016-01-24 00:03:43 +00:00
.heading
display: block
font-size: 11px
letter-spacing: 1px
margin-bottom: 5px
text-transform: uppercase
.highlight
@extend .block
font-size: 12px
font-weight: normal
max-width: 100%
overflow: hidden
padding: 0
pre
overflow: auto
max-width: 100%
2016-01-24 00:03:43 +00:00
.loader
animation: spin-around 500ms infinite linear
border: 2px solid $border
border-radius: 290486px
border-right-color: transparent
border-top-color: transparent
content: ""
display: block
height: 16px
position: relative
width: 16px
.number
background: $background
border-radius: 290486px
display: inline-block
font-size: $size-medium
vertical-align: top
.tag
2016-04-10 16:00:32 +01:00
align-items: center
2016-01-24 00:03:43 +00:00
background: $background
2016-04-10 16:00:32 +01:00
border-radius: 290486px
2016-01-24 00:03:43 +00:00
color: $text
2016-04-10 16:00:32 +01:00
display: inline-flex
2016-01-24 00:03:43 +00:00
font-size: 12px
height: 24px
2016-04-10 16:00:32 +01:00
justify-content: center
2016-01-24 00:03:43 +00:00
line-height: 16px
padding: 4px 10px
vertical-align: top
white-space: nowrap
2016-04-10 16:00:32 +01:00
.delete
margin-left: 4px
margin-right: -6px
&:not(.is-large)
.delete
@extend .delete.is-small
// Colors
@each $name, $pair in $colors
$color: nth($pair, 1)
$color-invert: nth($pair, 2)
&.is-#{$name}
background: $color
color: $color-invert
2016-01-24 00:03:43 +00:00
&.is-dark
background: $text
color: $text-invert
2016-04-10 16:00:32 +01:00
// Sizes
&.is-small
font-size: $size-small
height: 20px
padding: 2px 8px
2016-01-24 00:03:43 +00:00
&.is-medium
font-size: $size-normal
height: 32px
2016-04-10 16:00:32 +01:00
padding: 8px 14px
2016-01-24 00:03:43 +00:00
&.is-large
font-size: $size-5
height: 40px
line-height: 24px
2016-04-10 16:00:32 +01:00
padding: 8px 18px
2016-01-24 00:03:43 +00:00
.delete
margin-left: 4px
margin-right: -8px