1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-08-19 03:41:19 +02:00

Add .translate-middle-x and .translate-middle-y utilities

This commit is contained in:
Martijn Cuppens
2020-11-29 15:58:20 +01:00
committed by XhmikosR
parent 1f2e600304
commit 5b0dcf8ffe
2 changed files with 19 additions and 1 deletions

View File

@@ -65,7 +65,9 @@ $utilities: map-merge(
property: transform,
class: translate-middle,
values: (
null: (translateX(-50%) translateY(-50%))
null: translate(-50%, -50%),
x: translateX(-50%),
y: translateY(-50%),
)
),
"border": (