master
xaoxuu 4 years ago
parent 1bb82516a5
commit cd93432768
  1. 4
      _config.yml
  2. 18
      source/css/_base/index.styl
  3. 2
      source/css/_defines/func.styl
  4. 4
      source/css/_highlight/index.styl

@ -12,9 +12,9 @@ info:
style: style:
max_width: 1080px # Sum of body width and sidebar width (This limit will be exceeded when the device width is greater than 2000px, reaching 75% of the total width) max_width: 1080px # Sum of body width and sidebar width (This limit will be exceeded when the device width is greater than 2000px, reaching 75% of the total width)
scrollbar: scrollbar:
size: 8px size: 8px
border: 1px border: 1px
color: '#2196f3' color: '#2196f3'
navbar: navbar:
height: 64px height: 64px
width: auto # auto, max width: auto # auto, max

@ -243,23 +243,23 @@ optgroup
table table
border-collapse: collapse border-collapse: collapse
margin-top: .7em
margin-bottom: .7em
overflow: auto overflow: auto
display: block display: inline-block
max-width: 100%
scrollbar()
th th
background-color: darken($color-block, 2) background-color: darken($color-block, 2)
td,th td,th
padding: 6px 16px padding: 6px 16px
border: 1px solid darken($color-block, 3) border: 2px solid darken($color-block, 2)
tr tr
word-break: keep-all word-break: keep-all
background-color: lighten($color-block, 3) background-color: lighten($color-block, 3)
tbody>tr tbody
trans() >tr
&:hover trans()
background-color: darken($color-block, 2) &:hover
background-color: darken($color-block, 2)
td,th td,th
padding: 0 padding: 0

@ -42,7 +42,7 @@ scrollbar($w = 4px, $b = 2px, $c = mix($color-p, $color-card, 70))
&::-webkit-scrollbar-track-piece &::-webkit-scrollbar-track-piece
background: transparent background: transparent
&::-webkit-scrollbar-thumb &::-webkit-scrollbar-thumb
background: alpha($c, .5) background: alpha($c, .4)
cursor: pointer cursor: pointer
border-radius: $b border-radius: $b
&:hover &:hover

@ -19,10 +19,10 @@
left: 0 left: 0
padding: $gap * 0.25 $gap * 0.5 $gap * 0.25 $gap * 0.5 padding: $gap * 0.25 $gap * 0.5 $gap * 0.25 $gap * 0.5
background-color: darken($color-codeblock, 5%) background-color: darken($color-codeblock, 5%)
border-top-left-radius: $border-codeblock
border-top-right-radius: $border-codeblock
>table >table
scrollbar()
overflow: auto overflow: auto
display: block display: block
td,th td,th

Loading…
Cancel
Save