1
0
Fork 0
mirror of https://github.com/codex-team/codex.docs.git synced 2025-07-19 13:19:42 +02:00
codex.docs/src/frontend/styles/components/header.pcss
YeoKyung Yoon 9ecf8f90d9
Change list of menus and add hover effect of menu (#189)
* feat: change list of menus and add hover effect of menu

* fix: fix hover effect

* fix: fix wrong font size, height, padding and etc to same as Figma

* fix: fix class name

* fix: fix wrong css values

* fix: fix typo

* Delete package-lock.json

* fix: change menu height as much as button height and padding

* fix: fix logo and menu items on header

* fix: fix --layout-padding-horizontal value

* fix: remove irrelevant var

Co-authored-by: Umang G. Patel <23169768+robonetphy@users.noreply.github.com>
2022-06-02 23:57:07 +09:00

86 lines
1.5 KiB
Text

.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;
@media (--mobile){
line-height: 40px;
}
&__menu-link,
&__logo {
display: inline-block;
text-decoration: none;
align-self: center;
line-height: 24px;
}
&__logo {
padding: 4px 0;
font-weight: bold;
color: inherit;
}
&__menu-link {
padding: 4px 10px;
font-weight: 500;
border-radius: 8px;
transition: background-color .13s;
&:hover {
background-color: var(--color-link-hover);
}
}
&__menu {
display: flex;
margin: 0;
gap: 10px;
padding-left: 0;
font-size: 16px;
@media (--mobile) {
flex-basis: 100%;
font-size: 12px;
}
li {
display: inline-flex;
align-items: center;
list-style: none;
@media (--mobile) {
margin-left: 0;
margin-right: 15px;
}
}
&-add {
@media (--mobile) {
position: absolute;
right: 15px;
top: 15px;
line-height: 1em;
margin: 0 !important;
}
a {
@media (--mobile) {
font-size: 0;
padding: 0 4px;
margin-right: 0;
}
}
.docs-button__icon {
@media (--mobile) {
margin-right: 0;
}
}
}
}
}