| LEFT | RIGHT | 
|---|
| 1 io-toggle { | 1 /* | 
|  | 2  * This file is part of Adblock Plus <https://adblockplus.org/>, | 
|  | 3  * Copyright (C) 2006-present eyeo GmbH | 
|  | 4  * | 
|  | 5  * Adblock Plus is free software: you can redistribute it and/or modify | 
|  | 6  * it under the terms of the GNU General Public License version 3 as | 
|  | 7  * published by the Free Software Foundation. | 
|  | 8  * | 
|  | 9  * Adblock Plus is distributed in the hope that it will be useful, | 
|  | 10  * but WITHOUT ANY WARRANTY; without even the implied warranty of | 
|  | 11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the | 
|  | 12  * GNU General Public License for more details. | 
|  | 13  * | 
|  | 14  * You should have received a copy of the GNU General Public License | 
|  | 15  * along with Adblock Plus.  If not, see <http://www.gnu.org/licenses/>. | 
|  | 16  */ | 
|  | 17 | 
|  | 18 io-toggle | 
|  | 19 { | 
| 2   --width: 30px; | 20   --width: 30px; | 
| 3   --height: 8px; | 21   --height: 8px; | 
| 4   --translateY: -4px; | 22   --translateY: -4px; | 
| 5   --translateX: 14px; | 23   --translateX: 14px; | 
| 6   display: inline-block; | 24   display: inline-block; | 
| 7   width: var(--width); | 25   width: var(--width); | 
| 8   height: var(--height); | 26   height: var(--height); | 
| 9   border-radius: 4px; | 27   border-radius: 4px; | 
| 10   background-color: #9b9b9b; | 28   background-color: #9b9b9b; | 
| 11   transition: background .2s ease-out; | 29   transition: background .2s ease-out; | 
| 12   will-change: background; | 30   will-change: background; | 
| 13   cursor: pointer; | 31   cursor: pointer; | 
| 14 } | 32 } | 
| 15 | 33 | 
| 16 io-toggle[checked] { | 34 io-toggle[checked] | 
|  | 35 { | 
| 17   background-color: #92d3ea; | 36   background-color: #92d3ea; | 
| 18 } | 37 } | 
| 19 | 38 | 
| 20 io-toggle[disabled] { | 39 io-toggle[disabled] | 
|  | 40 { | 
| 21   opacity: 0.5; | 41   opacity: 0.5; | 
| 22   cursor: default; | 42   cursor: default; | 
| 23 } | 43 } | 
| 24 | 44 | 
| 25 io-toggle button { | 45 io-toggle button | 
|  | 46 { | 
| 26   width: calc(var(--height) * 2); | 47   width: calc(var(--height) * 2); | 
| 27   height: calc(var(--height) * 2); | 48   height: calc(var(--height) * 2); | 
| 28   padding: 0; | 49   padding: 0; | 
| 29   border: 2px solid #e1e0e1; | 50   border: 2px solid #e1e0e1; | 
| 30   border-radius: var(--height); | 51   border-radius: var(--height); | 
| 31   transition: border .2s ease-out, box-shadow .2s ease-out, | 52   transition: border .2s ease-out, box-shadow .2s ease-out, | 
| 32               transform .2s ease-out, width .2s ease-out; | 53               transform .2s ease-out, width .2s ease-out; | 
| 33   will-change: border, box-shadow, transform, width; | 54   will-change: border, box-shadow, transform, width; | 
| 34   transform: translateY(var(--translateY)); | 55   transform: translateY(var(--translateY)); | 
| 35   outline: none; | 56   outline: none; | 
| (...skipping 23 matching lines...) Expand all  Loading... | 
| 59 { | 80 { | 
| 60   box-shadow: 0 2px 4px 0 #a6cede; | 81   box-shadow: 0 2px 4px 0 #a6cede; | 
| 61 } | 82 } | 
| 62 | 83 | 
| 63 io-toggle button:focus, | 84 io-toggle button:focus, | 
| 64 io-toggle button[aria-checked="true"]:focus | 85 io-toggle button[aria-checked="true"]:focus | 
| 65 { | 86 { | 
| 66   border: 2px solid #87bffe; | 87   border: 2px solid #87bffe; | 
| 67 } | 88 } | 
| 68 | 89 | 
| 69 /* in case we will need to switch active/disabled direction |  | 
| 70 body[dir="rtl"] io-toggle button[aria-checked="true"] | 90 body[dir="rtl"] io-toggle button[aria-checked="true"] | 
| 71 { | 91 { | 
| 72   transform: translateY(var(--translateY)) translateX(calc(var(--translateX) * -
    1)); | 92   transform: translateY(var(--translateY)) translateX(calc(var(--translateX) * -
    1)); | 
| 73 } | 93 } | 
| 74 //*/ |  | 
| LEFT | RIGHT | 
|---|