.admin-roles { .role-name { @extend %xlarge; @extend %title; color: $grayer; } .edit-value { @extend %medium; @include transition(opacity .3s linear); color: $gray-light; cursor: pointer; margin-left: .5rem; opacity: 0; } .edit-role { @include table-flex(stretch, left, center, row, wrap); background-color: $whitish; display: none; margin-bottom: 1rem; padding: .5rem; input { background-color: $white; width: 50%; } .icon-floppy { @include transition(color.3s linear); color: $gray-light; margin-left: .5rem; &:hover { @include transition(color.3s linear); color: $green-taiga; } } } .any-computable-role { background: $red; color: $white; margin-bottom: .5rem; padding: .5rem; } .general-category { @include display(flex); @include align-items(center); @include justify-content(flex-end); padding-bottom: 2rem; .check { margin-left: .5rem; } } .check { background-color: darken($whitish, 10%); border-radius: 2px; cursor: pointer; height: 1.5rem; overflow: hidden; position: relative; width: 65px; input[type=checkbox] { cursor: pointer; height: 500px; left: -10px; opacity: 0; position: absolute; top: -10px; width: 500px; z-index: 999; + div { @include transition (all .2s linear); background-color: $button-gray; height: 25px; width: 50%; } ~ .check-text { //@include transition(opacity .3s linear); @extend %small; color: $white; position: absolute; top: .1rem; } ~ .check-yes { opacity: 0; right: .5rem; } ~ .check-no { left: .5rem; opacity: .6; } } input[type=checkbox]:checked { + div { @include transition (all .2s linear); background-color: #74a218; margin-left: 50%; } ~ .check-yes { opacity: .6; right: .4rem; } ~ .check-no { left: .4rem; opacity: 0; } } } }