Skip to content

Instantly share code, notes, and snippets.

View Scroll-behavior
@media screen and (prefers-reduced-motion: no-preference)
scroll-behavior: smooth
baileys-li / svg-icon.sass
Created February 5, 2020 20:02
style for svg icons
View svg-icon.sass
position: relative
top: 0.125em
flex-shrink: 0
width: 1em
height: 1em
transition: fill 0.3s
baileys-li / visually-hidden.sass
Last active February 5, 2020 19:54
Visually hide class / Класс для скрытия
View visually-hidden.sass
.visually-hidden:not(:focus):not(:active), input[type="checkbox"].visually-hidden, input[type="radio"].visually-hidden
position: absolute
width: 1px
height: 1px
margin: -1px
border: 0
padding: 0
white-space: nowrap
baileys-li / visually-hidden.css
Created November 28, 2019 10:24
Visually hide class / Класс для скрытия
View visually-hidden.css
.visually-hidden:not(:focus):not(:active), input[type="checkbox"].visually-hidden, input[type="radio"].visually-hidden{
position: absolute;
width: 1px;
height: 1px;
margin: -1px;
border: 0;
padding: 0;
white-space: nowrap;