xaoxuu 4 years ago
parent d1fb1ecf59
commit 9c963fd7c0
  1. 50
      source/css/_layout/main.styl
  2. 31
      source/css/_layout/navbar.styl
  3. 9
      source/css/_layout/search.styl
  4. 2
      source/css/_layout/sidebar.styl

@ -45,30 +45,8 @@
margin-bottom: $gap margin-bottom: $gap
.title .title
font-size: $font-size-h3 font-size: $font-size-h3
.full-width @media screen and (max-width: $device-mobile)
margin-left: 0 - $gap padding: 1.5 * $gap $gap
margin-right: 0 - $gap
padding-left: $gap
padding-right: $gap
width:"calc(100% + 2 * %s)" % $gap
.auto-padding
padding-left: $gap
padding-right: $gap
border-bottom-left-radius: $border-radius
border-bottom-right-radius: $border-radius
overflow: auto
.highlight
margin-left: 0*$gap
margin-right: 0*$gap
width: 100%
@media(max-width:@on_phone)
padding: 1.5*$gap $gap
.highlight
margin-left: 0*$gap
margin-right: 0*$gap
.auto-padding
border-bottom-left-radius: 0
border-bottom-right-radius: 0
.post-wrapper .post-wrapper
margin-bottom: $gap margin-bottom: $gap
@ -79,26 +57,7 @@
font-size: $font-size-h2 font-size: $font-size-h2
a a
font-size: $font-size-h2 font-size: $font-size-h2
@media screen and (max-width: $device-mobile)
.full-width
margin-left: -1.5*$gap
margin-right: -1.5*$gap
width: "calc(100% + 3 * %s)" % $gap
.auto-padding
padding-left: 1.5*$gap
padding-right: 1.5*$gap
border-bottom-left-radius: $border-radius
border-bottom-right-radius: $border-radius
overflow: auto
.tags
margin-bottom: -2*$gap
@media(max-width:@on_phone)
.tags
margin-bottom: -1.5*$gap
mobile-post() mobile-post()
.widget .widget
@ -139,7 +98,6 @@
border-radius: 25% border-radius: 25%
transform: scale(1.1) transform: scale(1.1)
box-shadow: $box-shadow-card-float box-shadow: $box-shadow-card-float
@media screen and (max-width: $device-mobile) @media screen and (max-width: $device-mobile)
&:hover &:hover
border-radius: 100% border-radius: 100%
@ -332,6 +290,8 @@ details
@media screen and (max-width: $device-mobile) @media screen and (max-width: $device-mobile)
margin: $navbar-height + $gap 0 $gap margin: $navbar-height + $gap 0 $gap
border-radius: 0 border-radius: 0
&.nocover
margin-top: $navbar-height - $gap
.s-top .s-top
trans(0.6s) trans(0.6s)

@ -189,11 +189,12 @@
width: $iconW width: $iconW
left: $iconMargin + 1px left: $iconMargin + 1px
color: alpha($color-text, 70%) color: alpha($color-text, 70%)
@media screen and (max-width: $device-mobile)
display: none
.input .input
display: block display: block
padding-top: 8px padding-top: $gap * 0.5
padding-bottom: 8px padding-bottom: $gap * 0.5
width: 100% width: 100%
color: $color-text color: $color-text
background: alpha(darken($color-card, 5), .75) background: alpha(darken($color-card, 5), .75)
@ -201,28 +202,21 @@
box-sizing: border-box box-sizing: border-box
padding-left: $iconW + $iconMargin padding-left: $iconW + $iconMargin
font-size: $font-size-meta font-size: $font-size-meta
@media screen and (max-width: $device-mobile)
padding-left: $iconW + $iconMargin
border-radius: $border-radius-searchbar border-radius: $border-radius-searchbar
border: 1px dashed transparent border: 1px dashed transparent
// .set-placeholder( @media screen and (max-width: $device-mobile)
// color: alpha($color-text, 50%) padding-left: $gap
// ) line-height: "calc(%s - 32px)" % $navbar-height
border: none
&:hover,&:focus
border: none
&:hover &:hover
color: $color-inner
~.icon ~.icon
color: alpha($color-theme, 80%) color: alpha($color-theme, 80%)
border: 1px solid alpha($color-theme, 60%)
&:focus &:focus
~.icon ~.icon
color: $color-theme color: $color-theme
color: $color-text
background: bgcolor($color-theme)
border: 1px solid $color-theme
@media (max-width: $device-mobile) @media (max-width: $device-mobile)
@ -232,13 +226,14 @@
overflow: hidden overflow: hidden
position: absolute position: absolute
trans() trans()
margin: 0 $gap * 0.5 margin-left: $gap * 0.5
&.z_search-open &.z_search-open
.logo .logo
opacity:0 opacity:0
.m_search .m_search
width: "calc(100vw - %s)" % (2 * $gap + 2 * $iconW) $offset = 2 * ($gap + $iconW)
width: "calc(100vw - %s)" % $offset
.menu-phone .menu-phone

@ -216,17 +216,10 @@
-webkit-overflow-scrolling: touch -webkit-overflow-scrolling: touch
background: $color-card background: $color-card
border-radius: $border-radius border-radius: $border-radius
@media screen and (max-width: $modal-threshold)
padding: 60px 20px 80px 20px
.modal-results .modal-results
list-style: none list-style: none
// li
// border-bottom: 1px solid #e6e8ea
// &:last-child
// border-bottom: none
.result .result
position: relative position: relative
display: block display: block

@ -26,7 +26,7 @@
&.mobile &.mobile
display: block !important display: block !important
@media screen and (max-width: @on_phone) @media screen and (max-width: $device-mobile)
width: "calc(100% - 2 * %s)" % $gap width: "calc(100% - 2 * %s)" % $gap
margin: $gap $gap 0 $gap margin: $gap $gap 0 $gap
display: none !important display: none !important

Loading…
Cancel
Save