You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

261 lines
5.8 KiB

#u-search
$border-card = 4px
display: none
position: fixed
top: 0
left: 0
width: 100%
height: 100%
padding: 60px 20px
z-index: 999999
@media screen and (max-width: $modal-threshold)
padding: 0px
.modal
position: fixed
height: 80%
width: 100%
max-width: 640px
left: 50%
top: 0
margin: 64px 0px 0px -320px
background: $color-card
z-index: 3
border-radius: $border-card
overflow: hidden
@media screen and (max-width: $modal-threshold)
box-shadow: none
max-width: none
top: 0
left: 0
margin: 0
height: 100%
border-radius: 0
.modal-ajax-content
opacity: 0
visibility: hidden
trans()
&.loaded
opacity: 1
visibility: visible
.modal-header
position: relative
width: 100%
height: $navbar-height
z-index: 3
border-top-left-radius: $border-card
border-top-right-radius: $border-card
font-size: $fontsize
box-shadow: $boxshadow-card
background: darken($color-card, 5)
@media screen and (max-width: $modal-threshold)
border-radius: 0
padding: 0px
trans()
.btn-close
display: block
position: absolute
width: 50px + 5px
height: $navbar-height
top: 0
right: 0
color: $color-theme
cursor: pointer
text-align: center
line-height: $navbar-height
vertical-align: middle
trans()
z-index: 2
&:hover
transform: rotate(90deg)
.modal-loading
position: absolute
bottom: 0
left: 0
width: 100%
height: 2px
background: transparent
z-index: 1
.modal-loading-bar
display: block
position: relative
width: 0%
height: 100%
background: $color-theme
trans()
#u-search-modal-form
position: relative
width: 100%
height: 100%
z-index: 2
#u-search-modal-input
margin: $gap 50px
padding: 0 $gap * 0.5
width: "calc(100% - 100px - %s)" % $gap
@media screen and (max-width: $modal-threshold)
padding: 0
line-height: 2rem
border-radius: $border-card
vertical-align: middle
border: none
appearance: none
box-shadow: none
background: transparent
trans()
&:focus
border-top-left-radius: $border-card
border-top-right-radius: $border-card
#u-search-modal-btn-submit
position: absolute
top: 0
left: 0
padding-left: 5px
padding-top: 2px
background: transparent
border: none
width: 50px
height: $navbar-height
vertical-align: middle
color: $color-theme
z-index: 2
.modal-footer
position: absolute
display: none
bottom: 0
left: 0
width: 100%
height: 50px
padding: 0px 15px
background: $color-card
.logo
position: absolute
top: 0
left: 0
width: 100%
height: 100%
text-align: center
z-index: 0
a
display: inline-block
height: 50px
&.google img
height: 24px
margin-top: 13px
&.baidu img
height: 22px
margin-top: 14px
img
position: relative
display: inline-block
width: auto
height: 18px
margin-top: 16px
.modal-error
position: relative
float: left
vertical-align: middle
line-height: 50px
font-size: 13px
z-index: 1
.modal-metadata
position: relative
float: left
vertical-align: middle
line-height: 50px
font-size: 13px
z-index: 1
.nav
position: relative
display: block
float: right
vertical-align: middle
font-size: $fontsize-meta
font-weight: bold
line-height: 50px
color: $color-meta
cursor: pointer
z-index: 1
&:hover
color: $color-hover
&.btn-next
margin-left: $gap
.icon
font-size: $fontsize-meta
.modal-body
position: absolute
padding: $gap
width: 100%
height: "calc(100% - %s)" % $navbar-height
top: $navbar-height
left: 0
overflow-y: scroll
-webkit-overflow-scrolling: touch
background: $color-card
border-radius: $border-card
.modal-results
list-style: none
.result
position: relative
display: block
padding: $gap
border-radius: $border-card
b[mark]
color: darken($color-theme, 10)
text-decoration: underline
&:hover
background: bgcolor($color-theme)
.title
display: inline-block
max-width: 100%
color: lighten($color-text, 10)
font-weight: bold
padding: 1px
margin-bottom: 2px
white-space: normal
overflow: hidden
text-overflow: ellipsis
font-size: $fontsize-h4
.digest
display: block
white-space: inherit
overflow: hidden
word-break: break-all
text-overflow: ellipsis
font-size: $fontsize-code
color: $color-meta
.icon
position: absolute
top: 50%
right: 0
margin-top: -4px
font-size: 11px
color: gray
.modal-overlay
position: absolute
top: 0
left: 0
width: 100%
height: 100%
background: rgba(0,0,0,0.7)
z-index: 1