Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
jgthms committed Apr 2, 2017
1 parent 2452a69 commit e1f8e9b
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 9 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
# Fix #607 has-addons z-index
# Feature #586 select color modifiers
# Fix #537 -ms-expand
# Fix #578 better `+center` mixin

## 0.4.0

Expand Down
6 changes: 2 additions & 4 deletions docs/css/bulma-docs.css
Original file line number Diff line number Diff line change
Expand Up @@ -1666,11 +1666,9 @@ a.box:active {
height: 1em;
position: relative;
width: 1em;
left: 50%;
margin-left: -0.5em;
margin-top: -0.5em;
position: absolute;
top: 50%;
left: calc(50% - (1em / 2));
top: calc(50% - (1em / 2));
position: absolute !important;
}

Expand Down
12 changes: 7 additions & 5 deletions sass/utilities/mixins.sass
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,14 @@
content: " "
display: table

=center($size)
left: 50%
margin-left: -($size / 2)
margin-top: -($size / 2)
=center($width, $height: 0)
position: absolute
top: 50%
@if $height != 0
left: calc(50% - (#{$width} / 2))
top: calc(50% - (#{$height} / 2))
@else
left: calc(50% - (#{$width} / 2))
top: calc(50% - (#{$width} / 2))

=delete
+unselectable
Expand Down

0 comments on commit e1f8e9b

Please sign in to comment.