mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-19 17:38:19 +08:00
ui-default: init
将ui-default合并至主存储库便于维护
This commit is contained in:
1 parent
6317c9057f
commit
5faa54c7ca
564 files changed
+23083
-14
No files matched your search
Binary file not shown.
|
After Width: | Height: | Size: 77 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 155 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 9.7 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 22 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 22 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 52 KiB |
@@ -0,0 +1,176 @@
|
||||
$header-gap-mini = ($header-bg-height-mini - $nav-item-height - $header-logo-height) / 2
|
||||
$header-gap-mini-domain = ($header-bg-height-mini - $nav-item-height - $header-logo-domain-lh - $header-logo-system-lh) / 2
|
||||
|
||||
.global-notification
|
||||
padding: rem(20px 0)
|
||||
background: #FFF
|
||||
|
||||
&.warning
|
||||
background: #ffe1a6
|
||||
|
||||
.header__options
|
||||
background-image: url(./header-background.png)
|
||||
background-image: url(./header-background@2x.png)
|
||||
|
||||
.header
|
||||
position: relative
|
||||
height: rem($header-bg-height)
|
||||
background: #5eafca no-repeat center top
|
||||
background-size: cover
|
||||
transition: height .5s
|
||||
transition-timing-function: ease-out-cubic
|
||||
overflow: hidden
|
||||
+retina()
|
||||
background-size: rem($header-bg-width $header-bg-height)
|
||||
|
||||
&.mini
|
||||
height: rem($header-bg-height-mini)
|
||||
|
||||
+mobile()
|
||||
background: #FFF
|
||||
height: auto !important
|
||||
.header__content
|
||||
display: none
|
||||
|
||||
.header__logo__options
|
||||
background-image: url(./header-logo.png)
|
||||
background-image: url(./header-logo@2x.png)
|
||||
background-image: url(./header-logo-summer.png)
|
||||
background-image: url(./header-logo-summer@2x.png)
|
||||
|
||||
.header__logo
|
||||
display: block
|
||||
width: rem($header-logo-width-real)
|
||||
height: rem($header-logo-height + $header-gap-mini + $nav-item-height)
|
||||
background: no-repeat
|
||||
background-size: rem($header-logo-width-real) rem($header-logo-height-real)
|
||||
background-position: 0 rem($header-gap-mini + $nav-item-height - ($header-logo-height-real - $header-logo-height))
|
||||
transition: transform .5s, opacity .5s
|
||||
transition-timing-function: ease-out-cubic
|
||||
transform-origin: 0 0
|
||||
opacity: 1
|
||||
+mobile()
|
||||
display: inline-block
|
||||
|
||||
.header__logo--domain
|
||||
font-size: rem(40px)
|
||||
margin-top: rem($header-gap-mini-domain + $nav-item-height)
|
||||
height: rem($header-logo-domain-lh)
|
||||
line-height: rem($header-logo-domain-lh)
|
||||
|
||||
a
|
||||
text-shadow: 1px 1px 5px rgba(#000, 0.4)
|
||||
|
||||
&, &:hover, &:visited, &:link
|
||||
color: #FFF
|
||||
text-decoration: none
|
||||
|
||||
.header__logo--system
|
||||
line-height: rem($header-logo-system-lh)
|
||||
color: #FFF
|
||||
font-size: rem($font-size-small)
|
||||
|
||||
a
|
||||
opacity: 0.8
|
||||
|
||||
&, &:hover, &:visited, &:link
|
||||
text-decoration: none
|
||||
color: #FFF
|
||||
|
||||
&:hover
|
||||
opacity: 1
|
||||
text-decoration: underline
|
||||
|
||||
.header--collapsed
|
||||
|
||||
#panel
|
||||
padding-top: $header-bg-height
|
||||
|
||||
.header
|
||||
position: absolute
|
||||
left: 0
|
||||
top: 0
|
||||
width: 100%
|
||||
height: 0
|
||||
|
||||
.header__logo
|
||||
transform: scale(0)
|
||||
opacity: 0
|
||||
|
||||
.location
|
||||
position: absolute
|
||||
left: 0
|
||||
bottom: 0
|
||||
width: 100%
|
||||
height: rem($header-layer-height)
|
||||
background: rgba(#000, 0.5)
|
||||
|
||||
+mobile()
|
||||
position: relative
|
||||
height: auto
|
||||
|
||||
.header__hamburger
|
||||
display: none
|
||||
|
||||
+mobile()
|
||||
display: block
|
||||
|
||||
.header.mini .location
|
||||
display: none
|
||||
|
||||
.location-path
|
||||
color: rgba(#FFF, 0.3)
|
||||
line-height: rem(30px)
|
||||
margin-top: rem(10px)
|
||||
a, a:visited
|
||||
color: rgba(#FFF, 0.6)
|
||||
a:hover
|
||||
color: rgba(#FFF, 0.9)
|
||||
|
||||
.location-current
|
||||
color: #9ad4f1
|
||||
line-height: rem(40px)
|
||||
white-space: nowrap
|
||||
overflow: hidden
|
||||
text-overflow: ellipsis
|
||||
|
||||
+mobile()
|
||||
color: #91fcff
|
||||
font-size: 1.7rem
|
||||
white-space: normal
|
||||
|
||||
.header--mobile
|
||||
display: none
|
||||
|
||||
.header--mobile, .location
|
||||
+mobile()
|
||||
display: block
|
||||
background: #56758f
|
||||
color: #FFF
|
||||
line-height: rem($nav-item-height)
|
||||
font-size: rem($font-size-title)
|
||||
padding: rem(10px 0)
|
||||
|
||||
a, a:visited, a:hover
|
||||
color: #FFF
|
||||
|
||||
.header--mobile__domain.is--system
|
||||
display: block
|
||||
width: $nav-logo-width // no rem
|
||||
height: $nav-logo-height // no rem
|
||||
margin-top: rem(10px)
|
||||
+retina()
|
||||
background-size: $nav-logo-width $nav-logo-height // no rem
|
||||
|
||||
.header--mobile__system
|
||||
margin-left: rem(10px)
|
||||
font-size: rem($font-size-secondary)
|
||||
|
||||
&, &:hover, &:visited
|
||||
color: $supplementary-color
|
||||
|
||||
.header__hamburger
|
||||
background: none
|
||||
border: 0
|
||||
border-radius: 0
|
||||
outline: 0
|
||||
Reference in new issue
Block a user