/
outthevoid
/
frontend_developer
Обзор
Документация
Войти
/
outthevoid
/
frontend_developer
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
src/styles/modules/common.scss
121 строка
2 KB
darthmorgot
Внес изменения в код после установки stylelint
01 июл 2023, 16:00
01 июл 2023, 16:00
87def82
Код
Авторство
О чём код?
// common html { height: 100%; box-sizing: border-box; } *, *::before, *::after { box-sizing: inherit; } body { display: flex; flex-direction: column; min-width: 1220px; min-height: 100%; margin: 0; padding: 0; font-family: "Rubik", "Arial", sans-serif; font-weight: 400; font-style: normal; font-size: 16px; line-height: 20px; background: $white; color: $black; } img { max-width: 100%; height: auto; object-fit: contain; } a { color: inherit; text-decoration: none; } button { color: inherit; border: none; background-color: transparent; cursor: pointer; text-transform: uppercase; } .visually-hidden:not(:focus, :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; clip-path: inset(100%); clip: rect(0 0 0 0); overflow: hidden; } .font-raleway { font-family: "Raleway", "Arial", sans-serif; font-style: normal; font-weight: 800; font-size: 18px; line-height: 21px; } .container { width: 1160px; margin: 0 auto; } .main-container { flex-grow: 1; } .button { display: inline-block; padding-top: 10px; padding-bottom: 9px; text-transform: uppercase; } .button-background { display: inline-block; width: 220px; padding-top: 4px; padding-bottom: 4px; position: absolute; top: 16px; left: 0; background-color: $yellow; transition: all 0.05s ease-in; } .button:hover + .button-background { top: 0; padding-top: 20px; padding-bottom: 20px; } .button:active + .button-background { background-color: $yellow-hover; } .button:focus { outline: 2px solid $violet; } .new::after { content: ""; position: absolute; top: 27px; right: 27px; width: 60px; height: 60px; background: url("Images/new.svg") no-repeat; }