diff options
| author | garbash <dor.garbash@gmail.com> | 2014-11-28 17:29:15 +0200 |
|---|---|---|
| committer | garbash <dor.garbash@gmail.com> | 2014-11-28 17:29:15 +0200 |
| commit | 045597184560d4579cb5e34d3e731a5d6bb022c9 (patch) | |
| tree | cdc80d22e4f92712963f2cfb8bf3c7f24d964610 /res/css/partials/buttons.scss | |
| parent | 92eb91a3c605cbd830d20dae6488a44d3679299c (diff) | |
Implemented stylesheet structure+font change
Diffstat (limited to 'res/css/partials/buttons.scss')
| -rw-r--r-- | res/css/partials/buttons.scss | 63 |
1 files changed, 63 insertions, 0 deletions
diff --git a/res/css/partials/buttons.scss b/res/css/partials/buttons.scss new file mode 100644 index 00000000..945dce46 --- /dev/null +++ b/res/css/partials/buttons.scss @@ -0,0 +1,63 @@ +.onoffswitch { + z-index:100; + position: fixed; + width: 160px; + top:35px; + right: 180px; + -webkit-user-select:none; -moz-user-select:none; -ms-user-select: none; +} + +.onoffswitch-checkbox { + display: none; +} + +.onoffswitch-label { + display: block; overflow: hidden; cursor: pointer; + border: 2px solid #303030; border-radius: 5px; +} + +.onoffswitch-inner { + display: block; width: 200%; margin-left: -100%; + -moz-transition: margin 0.3s ease-in 0s; -webkit-transition: margin 0.3s ease-in 0s; + -o-transition: margin 0.3s ease-in 0s; transition: margin 0.3s ease-in 0s; +} + +.onoffswitch-inner:before, .onoffswitch-inner:after { + display: block; float: left; width: 50%; height: 20px; padding: 0; line-height: 20px; + font-size: 14px; color: white; font-weight: bold; + -moz-box-sizing: border-box; -webkit-box-sizing: border-box; box-sizing: border-box; +} + +.onoffswitch-inner:before { + content: "TIMELINE VIEW"; + padding-left: 5px; + background-color: #080808; color: #FFFFFF; +} + +.onoffswitch-inner:after { + content: "GRAPH VIEW"; + padding-right: 5px; + background-color: #080808; color: #FFFFFF; + text-align: right; +} + +.onoffswitch-switch { + display: block; width: 35px; margin: 0px; + background: #3D3D3D; + border: 1px solid #FFFFFF; border-radius: 5px; + position: absolute; top: 0; bottom: 0; right: 125px; + -moz-transition: all 0.3s ease-in 0s; -webkit-transition: all 0.3s ease-in 0s; + -o-transition: all 0.3s ease-in 0s; transition: all 0.3s ease-in 0s; + background-image: -moz-linear-gradient(center top, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0) 100%); + background-image: -webkit-linear-gradient(rgba(0,0,0,0.1) 0%, rgba(0,0,0,0) 100%); + background-image: -o-linear-gradient(center top, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0) 100%); + background-image: linear-gradient(center top, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0) 100%); +} + +.onoffswitch-checkbox:checked + .onoffswitch-label .onoffswitch-inner { + margin-left: 0; +} + +.onoffswitch-checkbox:checked + .onoffswitch-label .onoffswitch-switch { + right: 0px; +} |
