From 5ff22a371f649ef9b7c73f61edce17979c9ba54f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zlatan=20Vasovi=C4=87?= Date: Mon, 3 Mar 2014 12:14:57 +0100 Subject: [PATCH] Add variables for toggle :before states They are useful if you want to localize the strings. --- sass/toggles.scss | 4 ++-- sass/variables.scss | 7 +++++++ 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/sass/toggles.scss b/sass/toggles.scss index d79843b..ae06610 100644 --- a/sass/toggles.scss +++ b/sass/toggles.scss @@ -36,7 +36,7 @@ color: #999; font-size: 13px; text-transform: uppercase; - content: "Off"; + content: $toggle-before; } // Active state for toggle @@ -52,7 +52,7 @@ right: auto; left: 15px; color: #fff; - content: "On"; + content: $toggle-active-before; } } // Hide the checkbox diff --git a/sass/variables.scss b/sass/variables.scss index de2d9a2..12793e4 100644 --- a/sass/variables.scss +++ b/sass/variables.scss @@ -45,6 +45,13 @@ $card-bg: #fff; $button-font-size: 12px; +// Toggles +// -------------------------------------------------- + +$toggle-before: "Off"; +$toggle-active-before: "On"; + + // Transitions // --------------------------------------------------