Commit 2430db67 authored by Nikolay Gromov's avatar Nikolay Gromov

Рефакторинг: field-toggler

parent 7a52e01e
...@@ -32,10 +32,10 @@ ...@@ -32,10 +32,10 @@
&:before { &:before {
content: ''; content: '';
position: absolute; position: absolute;
top: rem(3px); top: 3px;
left: 0; left: 0;
width: rem(35px); width: 35px;
height: rem(18px); height: 18px;
background-color: #fff; background-color: #fff;
border: 1px solid $border-color; border: 1px solid $border-color;
...@@ -47,17 +47,17 @@ ...@@ -47,17 +47,17 @@
&:after { &:after {
content: ''; content: '';
position: absolute; position: absolute;
top: rem(5px); top: 5px;
left: 2px; left: 2px;
width: rem(14px); width: 14px;
height: rem(14px); height: 14px;
background-color: $gray-lightest; background-color: $gray-lightest;
border: 1px solid $border-color; border: 1px solid $border-color;
transition: all 0.3s; transition: all 0.3s;
} }
@at-root input:checked ~ &:after { @at-root input:checked ~ &:after {
transform: translate(rem(17px), 0); transform: translate(17px, 0);
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment