mirror of
https://github.com/jgthms/bulma.git
synced 2024-11-14 11:14:24 +00:00
Fix #578
This commit is contained in:
parent
2452a69aa7
commit
e1f8e9ba1f
@ -9,6 +9,7 @@
|
|||||||
# Fix #607 has-addons z-index
|
# Fix #607 has-addons z-index
|
||||||
# Feature #586 select color modifiers
|
# Feature #586 select color modifiers
|
||||||
# Fix #537 -ms-expand
|
# Fix #537 -ms-expand
|
||||||
|
# Fix #578 better `+center` mixin
|
||||||
|
|
||||||
## 0.4.0
|
## 0.4.0
|
||||||
|
|
||||||
|
@ -1666,11 +1666,9 @@ a.box:active {
|
|||||||
height: 1em;
|
height: 1em;
|
||||||
position: relative;
|
position: relative;
|
||||||
width: 1em;
|
width: 1em;
|
||||||
left: 50%;
|
|
||||||
margin-left: -0.5em;
|
|
||||||
margin-top: -0.5em;
|
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 50%;
|
left: calc(50% - (1em / 2));
|
||||||
|
top: calc(50% - (1em / 2));
|
||||||
position: absolute !important;
|
position: absolute !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -20,12 +20,14 @@
|
|||||||
content: " "
|
content: " "
|
||||||
display: table
|
display: table
|
||||||
|
|
||||||
=center($size)
|
=center($width, $height: 0)
|
||||||
left: 50%
|
|
||||||
margin-left: -($size / 2)
|
|
||||||
margin-top: -($size / 2)
|
|
||||||
position: absolute
|
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
|
=delete
|
||||||
+unselectable
|
+unselectable
|
||||||
|
Loading…
Reference in New Issue
Block a user