[gnome-shell/wip/sass: 13/23] theme: switches
- From: Jakub Steiner <jimmac src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell/wip/sass: 13/23] theme: switches
- Date: Tue, 21 Oct 2014 15:11:02 +0000 (UTC)
commit f207090b735cf6fe099e05187667fda608c41a2d
Author: Jakub Steiner <jimmac gmail com>
Date: Wed Oct 8 16:14:15 2014 +0200
theme: switches
data/theme/_common.scss | 13 +++++++++++++
data/theme/_gnome-shell-old.scss | 24 ------------------------
2 files changed, 13 insertions(+), 24 deletions(-)
---
diff --git a/data/theme/_common.scss b/data/theme/_common.scss
index 7128b3a..747e1cf 100644
--- a/data/theme/_common.scss
+++ b/data/theme/_common.scss
@@ -131,6 +131,19 @@ StScrollBar {
&:focus:checked Stbin { background-image: url("checkbox-focused.svg"); }
}
+/* Switches */
+.toggle-switch {
+ width: 65px;
+ height: 22px;
+ background-size: contain;
+}
+
+ @each $v in us, intl {
+ .toggle-switch-#{$v} {
+ background-image: url("toggle-off-#{$v}.svg");
+ &:checked { background-image: url("toggle-on-#{$v}.svg"); }
+ }
+ }
/* links */
.shell-link {
diff --git a/data/theme/_gnome-shell-old.scss b/data/theme/_gnome-shell-old.scss
index fc48ee5..ac8a389 100644
--- a/data/theme/_gnome-shell-old.scss
+++ b/data/theme/_gnome-shell-old.scss
@@ -18,30 +18,6 @@
*/
-/* Switches */
-.toggle-switch {
- width: 65px;
- height: 22px;
-}
-
-.toggle-switch-us {
- background-image: url("toggle-off-us.svg");
- background-size: contain;
-}
-.toggle-switch-us:checked {
- background-image: url("toggle-on-us.svg");
- background-size: contain;
-}
-
-.toggle-switch-intl {
- background-image: url("toggle-off-intl.svg");
- background-size: contain;
-}
-.toggle-switch-intl:checked {
- background-image: url("toggle-on-intl.svg");
- background-size: contain;
-}
-
/* Network */
.nm-dialog {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]