From f9c76acccc1ee58451064bb9b9ac90bb85cbbdb9 Mon Sep 17 00:00:00 2001 From: Kuldeep M Date: Thu, 13 Jun 2019 18:28:51 +0100 Subject: [PATCH] [feature] add controls for header button style --- css/base.css | 6 +++--- css/form.css | 46 ++++++++++++++++++++++++++++++++++++++++++++++ index.html | 10 ++++++++++ js/control.js | 14 ++++++++++++++ js/header.js | 22 ++++++++++++++++++++++ js/state.js | 1 + js/update.js | 10 ++++++++++ js/version.js | 2 +- 8 files changed, 107 insertions(+), 4 deletions(-) diff --git a/css/base.css b/css/base.css index 9eb504a0..491407dc 100755 --- a/css/base.css +++ b/css/base.css @@ -26,9 +26,9 @@ --button-text-hover-focus: var(--style-neutral-text); --button-text-active: var(--style-neutral-text); --button-text-disabled: var(--gray-04); - --button-link-text: var(--gray-10); - --button-link-text-hover-focus: var(--gray-14); - --button-link-text-active: var(--gray-18); + --button-link-text: var(--gray-12); + --button-link-text-hover-focus: var(--style-neutral-text); + --button-link-text-active: var(--style-neutral-text); --button-link-text-disabled: var(--gray-04); --form-input-text: var(--gray-16); --form-input-border: 2; diff --git a/css/form.css b/css/form.css index c9602d86..61427c8b 100755 --- a/css/form.css +++ b/css/form.css @@ -640,6 +640,52 @@ input[type="range"][disabled]~.input-helper { cursor: default; } +.input-button-link input[type="checkbox"]+label, +.input-button-link input[type="radio"]+label, +.input-button-link input[type="color"]+label { + background-color: transparent; + border: 0; + color: rgb(var(--button-link-text)); +} + +.input-button-link input[type="checkbox"]:hover+label, +.input-button-link input[type="checkbox"]:focus+label, +.input-button-link input[type="checkbox"]:checked+label, +.input-button-link input[type="radio"]:hover+label, +.input-button-link input[type="radio"]:focus+label, +.input-button-link input[type="radio"]:checked+label, +.input-button-link input[type="color"]:hover+label, +.input-button-link input[type="color"]:focus+label, +.input-button-link input[type="color"]:checked+label { + background-color: transparent; + color: rgb(var(--button-link-text-hover-focus)); +} + +.input-button-link input[type="checkbox"]:active+label, +.input-button-link input[type="radio"]:active+label, +.input-button-link input[type="color"]:active+label { + background-color: transparent; + color: rgb(var(--button-link-text-active)); +} + +.input-button-link input[disabled][type="checkbox"]+label, +.input-button-link input[disabled][type="radio"]+label, +.input-button-link input[disabled][type="color"]+label { + background-color: transparent; + color: transparent; + pointer-events: none; +} + +.input-button-link input[disabled][type="checkbox"]:hover+label, +.input-button-link input[disabled][type="checkbox"]:focus+label, +.input-button-link input[disabled][type="radio"]:hover+label, +.input-button-link input[disabled][type="radio"]:focus+label, +.input-button-link input[disabled][type="color"]:hover+label, +.input-button-link input[disabled][type="color"]:focus+label { + background-color: transparent; + color: transparent; +} + .input-color-dot input[type="color"] { margin: 0; position: absolute; diff --git a/index.html b/index.html index cc76dd1f..3a77ff4d 100644 --- a/index.html +++ b/index.html @@ -625,6 +625,16 @@

Buttons