Skip to content

Commit

Permalink
fix: adapt to waline2
Browse files Browse the repository at this point in the history
  • Loading branch information
Centaurus99 committed Aug 30, 2022
1 parent dcb178c commit 3a3c5e6
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 16 deletions.
4 changes: 2 additions & 2 deletions source/css/custom.styl
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ $transition_time ?= 0.2s
.navbar-main, .card
transition: background-color $transition_time ease-out !important

body, hr, .button, .tag, .level, .box, .vpanel, .vmeta span
body, hr, .button, .tag, .level, .box, .wl-panel, .wl-meta span, [data-waline] pre
transition: background-color $transition_time ease-out

img, ul, .highlight, code, p, i
Expand Down Expand Up @@ -89,7 +89,7 @@ body.night
--waline-badge-color: dark-primary-color !important
--waline-border: 1px solid var(--waline-border-color) !important

.v[data-class=v]
[data-waline]
pre::-webkit-scrollbar-track
background: rgba(0, 0, 0, 0.06) !important
box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.1) !important
Expand Down
24 changes: 12 additions & 12 deletions source/css/night.styl
Original file line number Diff line number Diff line change
Expand Up @@ -94,31 +94,31 @@ night()
border-color: dark-primary-color-hover

// comment
.v .vwrap,
.v .vwrap .vheader .vinput
[data-waline] .wl-wrap,
[data-waline] .wl-wrap .wl-header .wl-input
border-color: dark-primary-color
.v .vwrap .vheader .vinput:focus
[data-waline] .wl-wrap .wl-header .wl-input:focus
border-color: dark-primary-color-hover
.v .vbtn
[data-waline] .wl-btn
color: dark-font-color
background-color: dark-primary-color
border-color: dark-primary-color
&:hover
background-color: dark-primary-color-hover
&:active
background-color: dark-primary-color-active
.v .vlist .vcard .vhead .vsys
[data-waline] .wl-list .wl-card .wl-head .wl-sys
background-color: dark-primary-color
.v a:hover,
.v .vlist .vcard .vh .vmeta .vat
[data-waline] a:hover,
[data-waline] .wl-list .wl-card .wl-h .wl-meta .wl-at
color: #ffffff
.v .vlist .vcard .vcontent.expand:before
[data-waline] .wl-list .wl-card .wl-content.expand:before
background: -webkit-gradient(linear,left top,left bottom,from(rgba(37,41,54,0)),to(rgba(37,41,54,1)))
background: linear-gradient(180deg,rgba(37,41,54,0),rgba(37,41,54,1))
.v .vlist .vcard .vcontent.expand:after
[data-waline] .wl-list .wl-card .wl-content.expand:after
background: rgba(37,41,54,1)
.v .vlist .vcard .vh,
.v .vlist .vcard .vquote
[data-waline] .wl-list .wl-card .wl-h,
[data-waline] .wl-list .wl-card .wl-quote
border-color: dark-primary-color-hover

// font color
Expand All @@ -145,7 +145,7 @@ night()
.button.is-white,
.button.is-transparent,
.article-licensing,
.v *
[data-waline] *
color: dark-font-color
.media-content,
.has-text-grey,
Expand Down
4 changes: 2 additions & 2 deletions source/css/prismjs.styl
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

// default theme: https://github.com/PrismJS/prism-themes/blob/master/themes/prism-one-light.css
code-light()
.v[data-class=v]
[data-waline]
.token
all: unset

Expand Down Expand Up @@ -114,7 +114,7 @@ code-light()

// night theme: https://github.com/PrismJS/prism-themes/blob/master/themes/prism-one-dark.css
code-night()
.v[data-class=v]
[data-waline]
.token
all: unset

Expand Down

0 comments on commit 3a3c5e6

Please sign in to comment.