From 227c3e8d8012083e69c5d2d211a44827475f4d24 Mon Sep 17 00:00:00 2001 From: Felix Niklas Date: Tue, 3 May 2016 12:31:06 +0200 Subject: [PATCH] checkbox and radio replacement: add disabled state usage: - is-disabled class on label - disabled attribute on the input --- app/assets/stylesheets/zammad.scss | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/app/assets/stylesheets/zammad.scss b/app/assets/stylesheets/zammad.scss index 22750d1a3..28fac0adc 100644 --- a/app/assets/stylesheets/zammad.scss +++ b/app/assets/stylesheets/zammad.scss @@ -1041,7 +1041,19 @@ th.align-right { .checkbox-replacement .icon-unchecked, .radio-replacement .icon-unchecked { - color: #9C9C9B; + color: hsl(60,1%,61%); +} + +.checkbox-replacement.is-disabled, +.radio-replacement.is-disabled { + cursor: default; +} + +.checkbox-replacement input:disabled ~.icon, +.radio-replacement input:disabled ~.icon { + opacity: 0.33; + fill: none; + cursor: default; } .checkbox-replacement input:not(:checked) ~ .icon-checked,