123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196 |
- #header
- @extend $block
- background: white
- position: relative
- a, a:visited
- white-space: nowrap
- transition: 0.2s ease
- color: color-default
- a:hover
- color: color-link
- $header-block
- height: logo-height
- line-height: logo-height
- padding: ((header-height - logo-height)/2) 15px
- $header-block-left
- float: left
- $header-block-right
- float: right
- .header-inner
- height: 100%
- position: relative
- #logo
- @extend $header-block
- @extend $header-block-left
- display: inline-block
- .logo
- margin-right: 5px
- display: inline-block
- .site-title
- font-size: 16px
- display: inline-block
- vertical-align: top
- font-weight: 600
- #header-title
- text-align: center
- height: logo-height
- position: absolute
- top: 50%
- left: 0
- margin-top: logo-height * -0.5
- .header-sub
- border-top: 1px solid color-border
- ul
- clearfix()
- margin: 0 15px
- li
- float: left
- margin: 0 10px
- a
- display: inline-block
- line-height: header-sub-height
- .main-nav-link
- display: inline-block
- line-height: header-sub-height
- #header-sub
- @media mq-mobile
- display: none
- @media mq-mini
- display: none
- #main-nav
- @extend $header-block
- @extend $header-block-left
- @media mq-mobile
- display: none
- @media mq-mini
- display: none
- #main-nav-mobile
- @media mq-tablet
- display: none
- @media mq-normal
- display: none
- $nav-link
- float: left
- display: block
- padding: 0 15px
- .nav-icon
- @extend $nav-link
- text-align: center
- font-size: font-size
- width: font-size
- height: font-size
- position: relative
- cursor: pointer
- height: logo-height !important
- line-height: logo-height !important
- .main-nav-link
- @extend $nav-link
- font-weight: 300
- #sub-nav
- @media mq-normal
- display: none
- @extend $header-block
- @extend $header-block-right
- #profile-nav
- #profile-anchor
- clearfix()
- display: block
- height: logo-height
- line-height: logo-height
- .avatar, .fa
- float: left
- .avatar
- width: logo-height
- height: logo-height
- margin-right: 8px
- .fa
- line-height: logo-height
- #search-form-wrap
- @media mq-mini
- display: none
- @extend $header-block
- @extend $header-block-right
- .search-form
- position: relative
- .search-form-input
- width: 100%
- height: logo-height
- padding: 0 30px 0 15px
- line-height: logo-height
- border-radius: ((logo-height + 2)/2)
- &::-webkit-search-results-decoration
- &::-webkit-search-cancel-button
- -webkit-appearance: none
- .search-form-submit
- top: 50%
- right: 15px
- border: none
- cursor: pointer
- margin-top: -7px
- background: none
- position: absolute
- font: 13px font-icon
- font-family: 'FontAwesome'
- &:before
- content: '\f002'
- &:hover, &:focus
- color: #777
- .search-form-input,
- .search-form-input.ins-search-input,
- .search-form-input.st-ui-search-input,
- .search-form-input.st-default-search-input
- -webkit-appearance: textarea
- appearance: textarea
- padding: 0
- width: 200px
- box-shadow: none
- color: color-default
- transition: 0.2s ease
- box-sizing: border-box
- height: auto !important
- line-height: line-height
- outline: none !important
- background: none !important
- font: font-size font-sans
- border: 1px solid color-border !important
- &:focus
- border-color: color-link !important
- &::-webkit-search-results-decoration
- &::-webkit-search-cancel-button
- -webkit-appearance: none
- #main-nav-mobile
- overflow-y: hidden
- overflow-x: auto
- .menu
- clearfix()
- margin: 0
- height: header-sub-height
- .search-form-input
- display: none
- @media mq-mini
- display: block
- padding: 0 10px
- margin-right: 15px
- height: header-sub-height - 16
- line-height: header-sub-height - 16
- border-radius: ((header-sub-height - 16)/2)
- &::-webkit-search-results-decoration
- &::-webkit-search-cancel-button
- -webkit-appearance: none
|