diff options
author | Luke Shumaker <lukeshu@sbcglobal.net> | 2016-05-01 15:30:02 -0400 |
---|---|---|
committer | Luke Shumaker <lukeshu@sbcglobal.net> | 2016-05-01 15:30:02 -0400 |
commit | 1de335ad3f395ca6861085393ba366a9e3fb4a0d (patch) | |
tree | f1fdd326034e05177596851be6a7127615d81498 /vendor/oojs/oojs-ui/src/styles/widgets/ToggleSwitchWidget.less | |
parent | 9c75fa8ff6d4d38ef552c00fef5969fb154765e8 (diff) | |
parent | f6d65e533c62f6deb21342d4901ece24497b433e (diff) |
Merge commit 'f6d65'
# Conflicts:
# skins/ArchLinux/ArchLinux.php
Diffstat (limited to 'vendor/oojs/oojs-ui/src/styles/widgets/ToggleSwitchWidget.less')
-rw-r--r-- | vendor/oojs/oojs-ui/src/styles/widgets/ToggleSwitchWidget.less | 41 |
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(); +} |