mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-19 17:38:19 +08:00
ui: update nav logo renderer
This commit is contained in:
1 parent
f863d80ee0
commit
ae00cbc53b
11 files changed
+14
-47
No files matched your search
@@ -68,10 +68,13 @@ $header-gap-mini-domain = ($header-bg-height-mini - $nav-item-height - $header-l
|
||||
display: block
|
||||
width: $nav-logo-width // no rem
|
||||
height: $nav-logo-height // no rem
|
||||
margin-top: rem(10px)
|
||||
margin-top: rem(5px)
|
||||
+retina()
|
||||
background-size: $nav-logo-width $nav-logo-height // no rem
|
||||
|
||||
img
|
||||
height: 100%
|
||||
|
||||
.header__hamburger
|
||||
background: none
|
||||
border: 0
|
||||
|
||||
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
|
||||
|
||||
Reference in new issue
Block a user