Skip to content
This repository has been archived by the owner on Jun 11, 2024. It is now read-only.

Commit

Permalink
Merge pull request #36 from bodograumann/block_style
Browse files Browse the repository at this point in the history
Show the checkbox border for block style
  • Loading branch information
Wikiki authored Apr 26, 2019
2 parents 2829114 + 85bac65 commit 991cfe9
Show file tree
Hide file tree
Showing 5 changed files with 8,064 additions and 3,551 deletions.
2 changes: 1 addition & 1 deletion dist/css/bulma-checkradio.min.css

Large diffs are not rendered by default.

39 changes: 32 additions & 7 deletions dist/css/bulma-checkradio.sass
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,16 @@ $checkradio-top-offset: 0rem !default

&.is-block
+ label
&::before,
&:before
width: 1.25 * $size
height: 1.25 * $size
left: .175rem
top: .175rem
&::after,
&:after
top: ( ( ( $newSize / 2 ) - ( $height / 2 ) ) * 1.3 )
left: $height * 1.3
top: .2rem + $size * 0.125
left: .2rem + $size * 0.45

&.is-rtl
+ label
Expand Down Expand Up @@ -77,6 +83,8 @@ $checkradio-top-offset: 0rem !default
margin: .5em
padding: .2rem .5rem .2rem 0
border-radius: $checkbox-radius
&:first-of-type
margin-left: 0

&:hover
&::before,
Expand Down Expand Up @@ -177,9 +185,10 @@ $checkradio-top-offset: 0rem !default
background: $checkbox-block-background
color: findColorInvert( $checkbox-block-background )
padding-right: .75em
&::before,
&:before
border: none !important
&:hover:not([disabled])
+ label
background: darken($checkbox-block-background, 5%);

This comment has been minimized.

Copy link
@Nothing-Works

Nothing-Works Apr 30, 2019

; should be removed

This comment has been minimized.

Copy link
@Nothing-Works

Nothing-Works Apr 30, 2019

line 190



.is-checkradio[type="checkbox"]
+ label
Expand All @@ -190,7 +199,7 @@ $checkradio-top-offset: 0rem !default
&::after,
&:after
box-sizing: border-box
transform: rotate(45deg)
transform: translateY($checkradio-top-offset) rotate(45deg)
border-width: $checkbox-checked-width
border-style: solid
border-color: $primary
Expand Down Expand Up @@ -241,14 +250,30 @@ $checkradio-top-offset: 0rem !default
&:after
border-color: $color-invert !important
background-color: $color !important
&.is-block
&.is-block
&:hover:not([disabled])
+ label
&::after,
&:after,
&::before,
&:before
border-color: $color !important
&:checked
+ label
color: $color-invert
border-color: $color !important
background: $color
&::after,
&:after
border-color: $color-invert !important
&:hover:not([disabled])
+ label
background: darken($color, 5%)
&::after,
&:after,
&::before,
&:before
border-color: darken($color-invert, 5%) !important

&:indeterminate
+ label
Expand Down
Loading

0 comments on commit 991cfe9

Please sign in to comment.