From 32d23e31788258d70bf34f4228b175b45a5c8823 Mon Sep 17 00:00:00 2001 From: peterd Date: Thu, 5 Feb 2015 12:52:39 +0100 Subject: [PATCH] Demo improvements --- index.css | 18 +++++- index.html | 166 ++++++++++++++++++++++++++++++++++++++++++++++++----- 2 files changed, 168 insertions(+), 16 deletions(-) diff --git a/index.css b/index.css index 155d5d3..cbb3b7f 100644 --- a/index.css +++ b/index.css @@ -34,11 +34,12 @@ pre { position: relative; display: inline-block; width: 40px; - padding: 5px; + padding: 4px; height: 25px; border: 1px solid #666; border-radius: 2px; background: #eee; + box-shadow: inset 0 -17px 8px rgba(0,0,0,0.3), inset 0 -4px 7px rgba(0,0,0,0.3); } .div-toggles .color:after { content: ""; @@ -50,6 +51,20 @@ pre { border: 5px solid; border-color: #000 transparent transparent; } +.div-toggles .color:before { + content: ""; + display: block; + position: absolute; + top: 50%; + right: 4px; + margin-top: -1px; + border: 5px solid; + border-color: #eee transparent transparent; +} +.div-toggles .active:before { + margin-top: -7px; + border-color: transparent transparent #eee; +} .div-toggles .active:after { margin-top: -8px; border-color: transparent transparent #000; @@ -62,5 +77,6 @@ pre { } .div-toggles .color div div { border: 1px solid #666; + border-color: #666 #ccc #ccc #666; background: #aaa; } \ No newline at end of file diff --git a/index.html b/index.html index a27cbf0..a9e59a1 100644 --- a/index.html +++ b/index.html @@ -34,9 +34,9 @@ On all elements with className 'color':
$('.color').colorPicker();
-
+
-
+

Features

Tiny jQuery colorPicker only loads if triggered to show. It uses battery saving technologies and super fast rendering for best performance on desktop and mobile browsers.
@@ -73,9 +73,9 @@ window.myColorPicker = $('input.color').colorPicker({

Will follow... See tinyColorPicke on GitHub for now.

- - - + + +