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

Commit

Permalink
Fix issue - #7 Radio button misalignment
Browse files Browse the repository at this point in the history
  • Loading branch information
Wikiki committed Sep 21, 2017
1 parent ad3ec60 commit de06bc2
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Bulma-Checkradio Changelog

## 0.0.6

* #7 Radio button misalignment

## 0.0.5

* #5 Add Right-To-Left display
Expand Down
12 changes: 7 additions & 5 deletions checkradio.sass
Original file line number Diff line number Diff line change
Expand Up @@ -29,19 +29,21 @@ $checkbox-border: .1rem solid $grey-lighter !default
// Use a mixin to define all ratios in the same spot
=radio-size($size)
$newSize: $size * 1.5
$radio-marker-size: $newSize * .5
$height: $newSize
$width: $newSize
$radio-marker-size: $newSize / 2

+ label
font-size: $size
line-height: $newSize
&::before
width: $newSize
height: $newSize
width: $width
height: $height
&::after
width: $radio-marker-size
height: $radio-marker-size
top: ( ( $newSize / 2 ) - ( $radio-marker-size / 2 ) ) / 2
left: ( $newSize / 2 ) - ( $radio-marker-size / 2 )
top: ( ($height / 2) - ($radio-marker-size / 2) ) - .2rem
left: ($width / 2) - ($radio-marker-size / 2)
&.is-rtl
+ label
&::after
Expand Down

0 comments on commit de06bc2

Please sign in to comment.