xaoxuu 4 years ago
parent b9afc0a77f
commit 1bb82516a5
  1. 2
      _config.yml
  2. 21
      source/css/_layout/sidebar.styl
  3. 10
      source/css/_layout/toc.styl
  4. 7
      source/css/_tag-plugins/dropmenu.styl

@ -4,7 +4,7 @@ info:
version: '2.4.1' # This is theme's version. version: '2.4.1' # This is theme's version.
docs: https://volantis.js.org/ # This is theme's URL. docs: https://volantis.js.org/ # This is theme's URL.
cdn: # To use CDN, write 'use_cdn: true' in 'blog/_config.yml'. cdn: # To use CDN, write 'use_cdn: true' in 'blog/_config.yml'.
css: https://cdn.jsdelivr.net/gh/xaoxuu/cdn-volantis@2.4.1.6/css/style.css # css: https://cdn.jsdelivr.net/gh/xaoxuu/cdn-volantis@2.4.1.6/css/style.css
js: https://cdn.jsdelivr.net/gh/xaoxuu/cdn-volantis@2.4.1/js/app.js js: https://cdn.jsdelivr.net/gh/xaoxuu/cdn-volantis@2.4.1/js/app.js

@ -83,7 +83,7 @@
&:hover &:hover
border-left: $border-line solid $color-theme border-left: $border-line solid $color-theme
background: alpha($color-theme, .1) background: bgcolor($color-theme)
&.active &.active
border-left: $border-line solid $color-theme border-left: $border-line solid $color-theme
@ -223,11 +223,11 @@
display: flex display: flex
flex-wrap: wrap flex-wrap: wrap
justify-content: space-around justify-content: space-around
padding: 0 $gap padding: $gap * 0.25 $gap
a a
text-align: center text-align: center
border-radius: $border-card border-radius: $border-line
margin: 4px 0 margin: 0
padding: 4px 8px padding: 4px 8px
display: flex display: flex
flex-direction: column flex-direction: column
@ -249,19 +249,14 @@
&#round &#round
border-radius: 100% border-radius: 100%
&.active
border: 1px solid transparent
&:hover
color: $color-theme color: $color-theme
background: bgcolor($color-theme) background: bgcolor($color-theme)
border-radius: 4px &:hover
&:active
color: $color-theme color: $color-theme
border-radius: $border-line
background: bgcolor($color-theme)
&.active
color: $color-theme
border: 1px solid $color-theme
&.fixed a &.fixed a
width: "calc(100%/3 - 0 * %s)" % $gap width: "calc(100%/3 - 0 * %s)" % $gap

@ -54,30 +54,26 @@
display: inline-block display: inline-block
ul,ol ul,ol
.toc-child a
font-weight: normal
.toc-item.toc-level-1 .toc-item.toc-level-1
.toc-child a .toc-child a
padding-left: 0.8 * $gap padding-left: 0.8 * $gap
font-weight: normal
.toc-item.toc-level-2 .toc-item.toc-level-2
.toc-child a .toc-child a
padding-left: 1.6 * $gap padding-left: 1.6 * $gap
font-weight: normal
.toc-item.toc-level-3 .toc-item.toc-level-3
.toc-child a .toc-child a
padding-left: 2.4 * $gap padding-left: 2.4 * $gap
font-weight: normal
.toc-item.toc-level-4 .toc-item.toc-level-4
.toc-child a .toc-child a
padding-left: 3.2 * $gap padding-left: 3.2 * $gap
font-weight: normal
.toc-item.toc-level-5 .toc-item.toc-level-5
.toc-child a .toc-child a
padding-left: 4 * $gap padding-left: 4 * $gap
font-weight: normal
.toc-item.toc-level-6 .toc-item.toc-level-6
.toc-child a .toc-child a
padding-left: 4 * $gap padding-left: 4.8 * $gap
font-weight: normal
li li
a a

@ -5,13 +5,16 @@ div.dropmenu
cursor: default cursor: default
trans() trans()
color: alpha($color-text, 85%) color: alpha($color-text, 85%)
background: $color-card background: $color-codeblock
border-radius: $border-codeblock border-radius: $border-codeblock
border: 1px solid darken($color-codeblock, 6) border: 1px solid darken($color-codeblock, 6)
padding: 0 $gap padding: 0 $gap
padding-top: 1px padding-top: 1px
font-size: $fontsize-meta
font-weight: bold
&:hover &:hover
background: $color-codeblock background: bgcolor($color-theme)
border-color: darken(bgcolor($color-theme), 6)
>ul >ul
display: block display: block
margin-left: 0 - $gap * 0.5 margin-left: 0 - $gap * 0.5

Loading…
Cancel
Save