From fc4e1c879d0f3ba7ad8569843b2f20b3f274b15e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20For=C3=A9?= Date: Tue, 24 Mar 2015 08:55:51 -0700 Subject: center more intelligently --- data/speeddial-head.html | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) (limited to 'data') diff --git a/data/speeddial-head.html b/data/speeddial-head.html index a4419572..e61de3f8 100644 --- a/data/speeddial-head.html +++ b/data/speeddial-head.html @@ -88,9 +88,10 @@ text-align: center; border-radius: 32px; position: absolute; - margin-left: 50%; - margin-top: 25%; - -webkit-transform: translate(-50%, -50%); + left: 50%; + top: 50%; + margin-left: -32px; + margin-top: -32px; box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24); outline: none; @@ -100,8 +101,7 @@ content: "+"; color: #fff; font-size: 48px; - position: inherit; - -webkit-transform: translateX(-50%); + display: inline-block; } .title { @@ -151,8 +151,7 @@ content: '×'; font-weight: bold; font-size: 20px; - position: inherit; - -webkit-transform: translateX(-50%); + display: inline-block; } div.shortcut .preview:hover .cross { -- cgit v1.2.1