/
terya1
/
12331
Обзор
Документация
Войти
/
terya1
/
12331
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
src/components/header/Header.css
226 строк
3 KB
IHARNAZAROV
feat: add project
16 июл 2022, 14:25
16 июл 2022, 14:25
31653a6
Код
Авторство
О чём код?
/* header */ .header { display: block; max-width: 90%; padding: 20px 10px; margin: -10px auto; } .header ul { margin: 0; padding: 10px; list-style: none; overflow: hidden; } .grey-color { color: #868e96; } .header li a { display: block; padding: 10px 20px; /* color: black; */ text-decoration: none; } .header .logo { display: block; float: left; font-size: 1.5em; text-decoration: none; margin-top: -12px; line-height: normal; } .header .logo-name { font-family: "Lato", sans-serif; font-weight: bold; padding: 0 10px; letter-spacing: 3px; color: #55198b; } /* menu */ .menu { font-family: "Lato", sans-serif; } .header .menu { margin-top: 10px; clear: both; max-height: 0; transition: max-height 0.2s ease-out; } /* menu icon */ .header .menu-icon { cursor: pointer; display: inline-block; float: right; padding: 28px 20px; position: relative; user-select: none; } .header .menu-icon .navicon { background: #6768ab; display: block; height: 2px; position: relative; transition: background 0.2s ease-out; width: 18px; } .header .menu-icon .navicon:before, .header .menu-icon .navicon:after { background: #6768ab; content: ""; display: block; height: 100%; position: absolute; transition: all 0.2s ease-out; width: 100%; } .header .menu-icon .navicon:before { top: 5px; } .header .menu-icon .navicon:after { top: -5px; } /* menu btn */ .header .menu-btn { display: none; } .header .menu-btn:checked ~ .menu { max-height: 370px; } .header .menu-btn:checked ~ .menu-icon .navicon { background: transparent; } .header .menu-btn:checked ~ .menu-icon .navicon:before { transform: rotate(-45deg); } .header .menu-btn:checked ~ .menu-icon .navicon:after { transform: rotate(45deg); } .header .menu-btn:checked ~ .menu-icon:not(.steps) .navicon:before, .header .menu-btn:checked ~ .menu-icon:not(.steps) .navicon:after { top: 0; } .homei { margin: 2px 5px 20px 10px; transition: all 0.2s ease-in-out; color: #ffffff; } .homei:hover { box-shadow: 0 2px 10px #9d90be; background-color: #9d90be; color: #ffffff !important; } .ec { margin: 2px 5px 20px; transition: all 0.2s ease-in-out; color: #ffffff; } .ec:hover { box-shadow: 0 2px 10px #5e4d9b; background-color: #5e4d9b; color: #ffffff !important; } .xp { margin: 2px 5px 20px; transition: all 0.2s ease-in-out; color: #ffffff; } .xp:hover { box-shadow: 0 2px 10px #6768ab; background-color: #6768ab; color: #ffffff !important; } .projects { margin: 2px 5px 20px; transition: all 0.2s ease-in-out; color: #ffffff; } .projects:hover { box-shadow: 0 2px 10px #c46fb2; background-color: #c46fb2; color: #ffffff !important; } .cr { margin: 2px 5px 20px; transition: all 0.2s ease-in-out; color: #ffffff; } .cr:hover { box-shadow: 0 1px 10px #7b337d; background-color: #7b337d; color: #ffffff !important; } /* 48em = 768px */ @media (min-width: 48em) { .header li { float: left; } .header { display: flex; align-items: center; justify-content: space-between; } .header .menu { max-height: none; } .header .menu-icon { display: none; } } @media (max-width: 768px) { .header .logo { display: block; float: left; font-size: 1.25em; text-decoration: none; margin-top: 15px; line-height: normal; } .header { padding-top: 10px; text-align: center; } } @media (max-width: 960px) and (min-width: 768px) { .header { font-size: 12px; } }