title: Outlines should only be modified using focus
body: <p>I have an animation: trying to install but <code>outline:none</code>is perhaps the reason it doesn't work. Error message from css: <code>outlines should only be modified using focus.</code> At the moment just getting a grey page with text when there should be a light switch on page: <a href="https://adsler.co.uk/privacy-policy/" rel="nofollow noreferrer">https://adsler.co.uk/privacy-policy/</a>. It might not be that, but trying to discount all options and it's listed as a css error. </p>
  
  <p>Css:</p>
  
  <pre><code>*,
  *::before,
  *::after {
  box-sizing: border-box;
  }
  
  body,
  html {
  height: 100%;
  font-weight: 500px;
  font-family: 'Titillium Web', sans-serif;
  background: #eee;
  }
  
  [type="checkbox"] {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: all .05s ease-in-out;
  width: 80px;
  height: 110px;
  z-index: 2;
  opacity: 0.001;
  cursor: pointer;
  -webkit-appearance: none;
  -webkit-tap-highlight-color: transparent;
  outline: none;
  }
  
  [type="checkbox"] ~ .switch {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: all .05s ease-in-out;
  width: 80px;
  height: 110px;
  border-radius: 12px;
  background: linear-gradient(to bottom, #d2d4d6, #fff);
  box-shadow: inset 0 -2px 4px rgba(212, 205, 199, 0.75), 
            inset 0 -8px 0 1px rgba(156, 156, 157, 0.85), 
            0 0 0 1px rgba(116, 116, 118, 0.8), 
            0 6px 6px rgba(41, 41, 41, 0.3), 
            0 0 0 4px #d4d7d8;
  filter: contrast(1);
  }
  
  [type="checkbox"] ~ .switch::before, 
  [type="checkbox"] ~ .switch::after {
  content: 'on';
  position: absolute;
  left: 0;
  bottom: 11px;
  color: rgba(0, 0, 0, 0.5);
  font-size: 20px;
  width: 100%;
  text-align: center;
  text-transform: uppercase;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
  transition: all .05s ease-in-out;
  }
  
  [type="checkbox"] ~ .switch::after {
  content: 'off';
  bottom: auto;
  top: 5px;
  color: rgba(0, 0, 0, 0.45);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.4);
  }
  
  [type="checkbox"]:checked ~ .switch {
  background: linear-gradient(to bottom, #a1a2a3, #f0f0f0);
  box-shadow: inset 0 2px 4px rgba(212, 205, 199, 0.75), 
            inset 0 8px 0 1px rgba(255, 255, 255, 0.77), 
            0 0 0 1px rgba(116, 116, 118, 0.8), 
            0 -2px 2px rgba(41, 41, 41, 0.18), 
            0 0 0 4px #d4d7d8;
  filter: none;
  }
  
  [type="checkbox"]:checked ~ .switch::before {
  bottom: 3px;
  color: rgba(0, 0, 0, 0.5);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
  }
  
  [type="checkbox"]:checked ~ .switch::after {
  top: 13px;
  color: rgba(0, 0, 0, 0.45);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.15);
  }
  
  [type="checkbox"] ~ .light {
  background: #0a0a16;
  opacity: 0.7;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  mix-blend-mode: multiply;
  pointer-events: none;
  z-index: 2;
  }
  
  [type="checkbox"]:checked ~ .light {
  opacity: 0;
  }
  </code></pre>
  
  <p>Html:</p>
  
  <pre><code>&lt;input type="checkbox" 
  checked="checked" /&gt;
  &lt;div class="switch"&gt;&lt;/div&gt;
  &lt;div class="light"&gt;&lt;/div&gt;
  </code></pre>
  
  <p>Also getting <code>unknown property</code>for <code>mix-blend-mode</code>? </p>