From 649f666a3a143e734d92f9f8b1a6f741db48d3b9 Mon Sep 17 00:00:00 2001 From: Mark McDowall Date: Fri, 9 Aug 2013 19:51:30 -0700 Subject: [PATCH] Switches are now red when set to off --- UI/Content/Overrides/bootstrap.toggle-switch.less | 12 ++++++++++++ UI/Content/overrides.less | 1 + 2 files changed, 13 insertions(+) create mode 100644 UI/Content/Overrides/bootstrap.toggle-switch.less diff --git a/UI/Content/Overrides/bootstrap.toggle-switch.less b/UI/Content/Overrides/bootstrap.toggle-switch.less new file mode 100644 index 000000000..57a7f4ae8 --- /dev/null +++ b/UI/Content/Overrides/bootstrap.toggle-switch.less @@ -0,0 +1,12 @@ +@import "Bootstrap/variables"; +@import "Bootstrap/mixins"; + +.toggle { + .slide-button { + .buttonBackground(@btnDangerBackground, @btnDangerBackgroundHighlight); + } + + input:first-of-type:checked ~ .slide-button { + .buttonBackground(@btnPrimaryBackground, @btnPrimaryBackgroundHighlight); + } +} \ No newline at end of file diff --git a/UI/Content/overrides.less b/UI/Content/overrides.less index 93839659e..94e1267b2 100644 --- a/UI/Content/overrides.less +++ b/UI/Content/overrides.less @@ -1,2 +1,3 @@ @import "Overrides/bootstrap"; @import "Overrides/browser"; +@import "Overrides/bootstrap.toggle-switch";