summaryrefslogtreecommitdiff
path: root/vendor/oojs/oojs-ui/src/styles/widgets/ToggleSwitchWidget.less
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/oojs/oojs-ui/src/styles/widgets/ToggleSwitchWidget.less')
-rw-r--r--vendor/oojs/oojs-ui/src/styles/widgets/ToggleSwitchWidget.less41
1 files changed, 41 insertions, 0 deletions
diff --git a/vendor/oojs/oojs-ui/src/styles/widgets/ToggleSwitchWidget.less b/vendor/oojs/oojs-ui/src/styles/widgets/ToggleSwitchWidget.less
new file mode 100644
index 00000000..f030cf66
--- /dev/null
+++ b/vendor/oojs/oojs-ui/src/styles/widgets/ToggleSwitchWidget.less
@@ -0,0 +1,41 @@
+@import '../common';
+
+.oo-ui-toggleSwitchWidget {
+ position: relative;
+ display: inline-block;
+ vertical-align: middle;
+ overflow: hidden;
+ cursor: pointer;
+
+ .oo-ui-box-sizing(border-box);
+ .oo-ui-transform(translateZ(0px));
+
+ &.oo-ui-widget-disabled {
+ cursor: default;
+ }
+
+ &-grip {
+ position: absolute;
+ display: block;
+
+ .oo-ui-box-sizing(border-box);
+ }
+
+ .oo-ui-toggleSwitchWidget-glow {
+ position: absolute;
+ top: 0;
+ bottom: 0;
+ right: 0;
+ left: 0;
+
+ .oo-ui-unselectable();
+ }
+
+ .oo-ui-toggleWidget-off & {
+ &-glow {
+ display: none;
+ }
+ }
+
+ .theme-oo-ui-toggleSwitchWidget();
+}