Permalink
Browse files

fix(slider): updated O/0 sign

  • Loading branch information...
Freihofner, Katrin Freihofner, Katrin
Freihofner, Katrin authored and Freihofner, Katrin committed Oct 17, 2016
1 parent 5b946eb commit f760168a1a8fc41660f6c35bfd6fc148510e3f61
Showing with 17 additions and 5 deletions.
  1. +17 −5 src/switch/switch.scss
View
@@ -28,11 +28,10 @@
left: 0;
box-sizing: border-box;
background-color: transparent;
//background-image: radial-gradient(circle 5px, transparent 0, transparent 2px, $gray-700 3px, transparent 4px);
background-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 10 10" width="10" height="10" xmlns="http://www.w3.org/2000/svg"><ellipse fill="transparent" cx="5" cy="5" rx="2.5" ry="4" stroke="#{$gray-700}" stroke-width="1" /></svg>');
background-image: radial-gradient(circle 5px, transparent 0, transparent 2px, $gray-700 3px, transparent 4px);
background-size: 10px 10px;
background-repeat: no-repeat;
background-position: 20px 4px;
background-position: 21px 4px;
transition: background-color 100ms ease-in;
top: -1px;
}
@@ -98,7 +97,7 @@
.switch.to-right:checked + .switch__label:after {
left: auto;
right: 2px;
right: 4px;
}
.switch[disabled] + .switch__label:before {
@@ -112,19 +111,32 @@
}
.switch[disabled] + .switch__label:after {
background-color: transparent;
background-color: $gray-300;
border: 1px solid $gray-300;
}
.switch[disabled]:checked + .switch__label:before {
background-color: transparent;
outline: none;
}
.switch[disabled] + .switch__label {
color: $gray-300;
cursor: default;
}
.switch[disabled]:checked:hover + .switch__label:hover:before {
background-color: transparent;
border-color: $gray-300;
box-shadow: none;
}
.switch[disabled]:not(checked):hover + .switch__label:hover:before {
background-color: transparent;
border-color: $gray-300;
box-shadow: none;
}
.switch:focus:not(:active) + .switch__label:before {
box-shadow: 0 0 0 2px $focuscolor;
}

0 comments on commit f760168

Please sign in to comment.