From 29a99edf57ca47b3980997848418a532a712d867 Mon Sep 17 00:00:00 2001 From: nrpatten Date: Fri, 13 Sep 2013 21:48:56 +1000 Subject: [PATCH 1/7] Update custom.css --- public/site_assets/test/css/custom.css | 79 +++++++++++++++++++++++++- 1 file changed, 78 insertions(+), 1 deletion(-) diff --git a/public/site_assets/test/css/custom.css b/public/site_assets/test/css/custom.css index 2383e42a..be7d9dc8 100644 --- a/public/site_assets/test/css/custom.css +++ b/public/site_assets/test/css/custom.css @@ -1,6 +1,7 @@ /* Custom checkboxes */ input[type=checkbox] { - display:none; + position: absolute; + opacity: 0; } input[type=checkbox] + label @@ -19,3 +20,79 @@ input[type=checkbox]:checked + label width: 16px; display:inline-block; padding: 0 0 0 0px; +} + +/* Test toggle switch Begin */ + +:root input[type="checkbox"] { + position: absolute; + opacity: 0; +} + +:root input[type="checkbox"].ios-switch + div { + display: inline-block; + vertical-align: middle; + width: 3em; height: 1em; + border: 1px solid rgba(0,0,0,.3); + border-radius: 999px; + margin: 0 .5em; + background: white; + background-image: linear-gradient(rgba(0,0,0,.1), transparent), + linear-gradient(90deg, hsl(210, 90%, 60%) 50%, transparent 50%); + background-size: 200% 100%; + background-position: 100% 0; + background-origin: border-box; + background-clip: border-box; + overflow: hidden; + transition-duration: .4s; + transition-property: padding, width, background-position, text-indent; + box-shadow: 0 .1em .1em rgba(0,0,0,.2) inset, + 0 .45em 0 .1em rgba(0,0,0,.05) inset; + font-size: 150%; +} + +:root input[type="checkbox"].ios-switch:checked + div { + padding-left: 2em; width: 1em; + background-position: 0 0; +} + +:root input[type="checkbox"].ios-switch + div:before { + content: 'On'; + float: left; + width: 1.65em; height: 1.65em; + margin: -.1em; + border: 1px solid rgba(0,0,0,.35); + border-radius: inherit; + background: white; + background-image: linear-gradient(rgba(0,0,0,.2), transparent); + box-shadow: 0 .1em .1em .1em hsla(0,0%,100%,.8) inset, + 0 0 .5em rgba(0,0,0,.3); + color: white; + text-shadow: 0 -1px 1px rgba(0,0,0,.3); + text-indent: -2.5em; +} + +:root input[type="checkbox"].ios-switch:active + div:before { + background-color: #eee; +} + +:root input[type="checkbox"].ios-switch:focus + div { + box-shadow: 0 .1em .1em rgba(0,0,0,.2) inset, + 0 .45em 0 .1em rgba(0,0,0,.05) inset, + 0 0 .4em 1px rgba(255,0,0,.5); +} + +:root input[type="checkbox"].ios-switch + div:before, +:root input[type="checkbox"].ios-switch + div:after { + font: bold 60%/1.9 sans-serif; + text-transform: uppercase; +} + +:root input[type="checkbox"].ios-switch + div:after { + content: 'Off'; + float: left; + text-indent: .5em; + color: rgba(0,0,0,.45); + text-shadow: none; + +} From 5e873c3d8af7cbbec0bb9631ca51c9cef70b4fdc Mon Sep 17 00:00:00 2001 From: nrpatten Date: Fri, 13 Sep 2013 21:56:38 +1000 Subject: [PATCH 2/7] Update default.tpl Toggle Switch test --- public/templates/test/account/workers/default.tpl | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/public/templates/test/account/workers/default.tpl b/public/templates/test/account/workers/default.tpl index 23b82b6d..faef529e 100644 --- a/public/templates/test/account/workers/default.tpl +++ b/public/templates/test/account/workers/default.tpl @@ -49,9 +49,11 @@ {if $GLOBAL.config.disable_notifications != 1} - - - + + {/if} {$WORKERS[worker].hashrate|number_format} From ca780ba164874a9f647ee997cb24918765ff2cc6 Mon Sep 17 00:00:00 2001 From: nrpatten Date: Fri, 13 Sep 2013 21:58:12 +1000 Subject: [PATCH 3/7] Update default.tpl Toggle Switch Test --- public/templates/test/account/edit/default.tpl | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/public/templates/test/account/edit/default.tpl b/public/templates/test/account/edit/default.tpl index 80e255b0..3704cf67 100644 --- a/public/templates/test/account/edit/default.tpl +++ b/public/templates/test/account/edit/default.tpl @@ -39,10 +39,12 @@
- Hide username on website others. Admins can still get your user information. - - - + Hide username on website from others. Admins can still get your user information. +
From aeb3827b4d9eda21dae31d5b278092c5ae3c469b Mon Sep 17 00:00:00 2001 From: nrpatten Date: Fri, 13 Sep 2013 22:01:05 +1000 Subject: [PATCH 4/7] Update default.tpl Toggle Switch Test --- .../test/account/notifications/default.tpl | 43 ++++++++++--------- 1 file changed, 23 insertions(+), 20 deletions(-) diff --git a/public/templates/test/account/notifications/default.tpl b/public/templates/test/account/notifications/default.tpl index 423eb7a6..9d5d8176 100644 --- a/public/templates/test/account/notifications/default.tpl +++ b/public/templates/test/account/notifications/default.tpl @@ -3,9 +3,7 @@
-
-

Notification Settings

-
+

Notification Settings

@@ -14,34 +12,42 @@ - - - -
IDLE Worker + +
New Blocks + +
Auto Payout + +
Manual Payout + +
@@ -55,11 +61,8 @@
-
-

Notification History

- -
- +

Notification History

+
From 48e89d78cbaad5f11720bdf0a91e1a9629c264f3 Mon Sep 17 00:00:00 2001 From: nrpatten Date: Fri, 13 Sep 2013 22:05:26 +1000 Subject: [PATCH 5/7] Update default.tpl Toggle Switch Test --- public/templates/test/account/notifications/default.tpl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/public/templates/test/account/notifications/default.tpl b/public/templates/test/account/notifications/default.tpl index 9d5d8176..5dc05ba7 100644 --- a/public/templates/test/account/notifications/default.tpl +++ b/public/templates/test/account/notifications/default.tpl @@ -3,7 +3,9 @@
-

Notification Settings

+
+

Notification Settings

+
ID
From 25027c09b5821aae5d85dad497ccc8fe04c9ad8d Mon Sep 17 00:00:00 2001 From: nrpatten Date: Fri, 13 Sep 2013 22:13:30 +1000 Subject: [PATCH 6/7] Update default.tpl Update Toggle Switch Test --- public/templates/test/account/notifications/default.tpl | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/public/templates/test/account/notifications/default.tpl b/public/templates/test/account/notifications/default.tpl index 5dc05ba7..8d90d3b8 100644 --- a/public/templates/test/account/notifications/default.tpl +++ b/public/templates/test/account/notifications/default.tpl @@ -63,7 +63,10 @@
-

Notification History

+
+

Notification History

+ +
From e691c5cd8b91ae92f8ef70f56ad50e613418a15f Mon Sep 17 00:00:00 2001 From: nrpatten Date: Fri, 13 Sep 2013 22:16:46 +1000 Subject: [PATCH 7/7] Update default.tpl --- public/templates/test/account/notifications/default.tpl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/public/templates/test/account/notifications/default.tpl b/public/templates/test/account/notifications/default.tpl index 8d90d3b8..946d6490 100644 --- a/public/templates/test/account/notifications/default.tpl +++ b/public/templates/test/account/notifications/default.tpl @@ -65,9 +65,9 @@

Notification History

- +
-
+
ID