From 56e5c456a4c408df113dea1ed3c3a300d63ee3e2 Mon Sep 17 00:00:00 2001 From: Juho Vepsalainen Date: Mon, 15 Aug 2016 11:17:12 +0300 Subject: [PATCH] demo - Simplify default CSS Thanks for the idea @SamPotts. Closes #6. --- css/colorjoe.css | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/css/colorjoe.css b/css/colorjoe.css index 8c0fbdd..9c45b17 100644 --- a/css/colorjoe.css +++ b/css/colorjoe.css @@ -94,8 +94,7 @@ position: absolute; } .colorPicker .twod .pointer .shape1 { - margin-left: -7px; - margin-top: -7px; + transform: translate(-50%, -50%); width: 10px; height: 10px; border: 2px solid black; @@ -103,8 +102,7 @@ border-radius: 5px; } .colorPicker .twod .pointer .shape2 { - margin-left: -6px; - margin-top: -6px; + transform: translate(-50%, -50%); width: 8px; height: 8px; border: 2px solid white;