ui: update nav logo renderer

This commit is contained in:
undefined committed 2022-10-27 14:25:42 +08:00
1 parent f863d80ee0
commit ae00cbc53b
11 files changed
+14 -47

No files matched your search

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 KiB

After

Width:  |  Height:  |  Size: 1.9 KiB

@@ -13,10 +13,6 @@
z-index: 500
background: rgba(#FFF, 0.98)
.nav__logo
width: rem($nav-logo-width + 10)
opacity: 1
.nav__item
color: $text-1-color
&.nav--active
@@ -137,20 +133,10 @@
.nav__list--secondary .nav__item--round
margin-left: rem(5px)
.nav__logo__options
background-image: url(./nav-logo-small_dark.png)
background-image: url(./nav-logo-small@2x_dark.png)
.nav__logo
display: block
background-size:100% 100%;
width: 0
opacity: 0
height: rem($nav-logo-height)
margin: rem((($nav-item-height - $nav-logo-height) / 2) 0)
background: no-repeat
transition: width .3s, opacity .3s
transition-timing-function: ease-out-cubic
margin: rem((($nav-item-height - $nav-logo-height) / 2) 5px)
&:hover
text-decoration: none