1
0
Fork 0
mirror of https://github.com/codex-team/codex.docs.git synced 2025-07-19 05:09:41 +02:00
codex.docs/src/frontend/styles/components/header.pcss

92 lines
1.5 KiB
Text
Raw Normal View History

2018-09-18 13:10:44 +03:00
.docs-header {
display: flex;
justify-content: space-between;
flex-shrink: 0;
padding: 12px var(--layout-padding-horizontal);
border-bottom: 1px solid var(--color-line-gray);
font-size: 18px;
flex-wrap: wrap;
position: relative;
height: var(--layout-height-header);
box-sizing: border-box;
position: sticky;
top: 0;
background: white;
z-index: 10;
2018-09-18 13:10:44 +03:00
2019-02-18 11:15:03 +03:00
@media (--mobile){
line-height: 40px;
}
&__menu-link,
&__logo {
2018-09-18 13:10:44 +03:00
display: inline-block;
text-decoration: none;
align-self: center;
line-height: 24px;
2018-09-18 13:10:44 +03:00
}
&__logo {
padding: 4px 0;
2018-09-18 13:10:44 +03:00
font-weight: bold;
color: inherit;
2018-09-18 13:10:44 +03:00
}
&__menu-link {
padding: 4px 10px;
font-weight: 500;
border-radius: 8px;
transition: background-color .13s;
&:hover {
background-color: var(--color-link-hover);
}
}
2018-09-18 13:10:44 +03:00
&__menu {
display: flex;
margin: 0;
gap: 10px;
padding-left: 0;
font-size: 16px;
@media (--mobile) {
flex-basis: 100%;
font-size: 12px;
}
2018-09-18 13:10:44 +03:00
li {
display: inline-flex;
align-items: center;
2018-09-18 13:10:44 +03:00
list-style: none;
@media (--mobile) {
margin-left: 0;
margin-right: 15px;
}
}
li&-add {
flex-shrink: 0;
&--desktop {
@media (--mobile) {
display: none;
}
}
&--mobile {
display: none;
@media (--mobile) {
display: block;
position: absolute;
right: 15px;
top: 15px;
line-height: 1em;
}
}
}
}
2018-09-18 13:10:44 +03:00
}