1
0
Fork 0
mirror of https://github.com/codex-team/codex.docs.git synced 2025-07-27 17:19:41 +02:00

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>
This commit is contained in:
YeoKyung Yoon 2022-06-02 23:57:07 +09:00 committed by GitHub
parent dd7537a6a0
commit 9ecf8f90d9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 28 additions and 19 deletions

View file

@ -1,10 +1,10 @@
.docs-header {
display: flex;
justify-content: space-between;
flex-shrink: 0;
padding: 0 var(--layout-padding-horisontal);
padding: 12px var(--layout-padding-horizontal);
border-bottom: 1px solid var(--color-line-gray);
font-size: 15.8px;
line-height: 50px;
font-size: 18px;
flex-wrap: wrap;
position: relative;
@ -15,17 +15,34 @@
&__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 0 0 auto;
margin: 0;
gap: 10px;
padding-left: 0;
font-size: 16px;
@media (--mobile) {
flex-basis: 100%;
@ -36,7 +53,6 @@
display: inline-flex;
align-items: center;
list-style: none;
margin-left: 20px;
@media (--mobile) {
margin-left: 0;
@ -66,11 +82,5 @@
}
}
}
&-link {
&:hover {
color: var(--color-link-active);
}
}
}
}