mirror of
https://github.com/BoostIo/Boostnote
synced 2025-12-15 10:46:32 +00:00
adding TOC UI
This commit is contained in:
@@ -447,6 +447,38 @@ pre.fence
|
|||||||
color $ui-text-color
|
color $ui-text-color
|
||||||
background-color $ui-tag-backgroundColor
|
background-color $ui-tag-backgroundColor
|
||||||
|
|
||||||
|
.markdownIt-TOC
|
||||||
|
list-style none
|
||||||
|
padding 15px
|
||||||
|
position fixed
|
||||||
|
right 0
|
||||||
|
top 0
|
||||||
|
margin-left 15px
|
||||||
|
z-index 1000
|
||||||
|
transition transform .2s ease-in-out
|
||||||
|
transform translateX(100%)
|
||||||
|
|
||||||
|
&,
|
||||||
|
&:before
|
||||||
|
background-color $ui-dark-backgroundColor
|
||||||
|
color: $ui-dark-text-color
|
||||||
|
|
||||||
|
&:hover
|
||||||
|
transform translateX(-15px)
|
||||||
|
|
||||||
|
&:before
|
||||||
|
content 'TOC'
|
||||||
|
position absolute
|
||||||
|
width 60px
|
||||||
|
height 30px
|
||||||
|
top 60px
|
||||||
|
left -30px
|
||||||
|
display flex
|
||||||
|
align-items center
|
||||||
|
justify-content center
|
||||||
|
transform-origin top left
|
||||||
|
transform rotate(-90deg)
|
||||||
|
|
||||||
themeDarkBackground = darken(#21252B, 10%)
|
themeDarkBackground = darken(#21252B, 10%)
|
||||||
themeDarkText = #f9f9f9
|
themeDarkText = #f9f9f9
|
||||||
themeDarkBorder = lighten(themeDarkBackground, 20%)
|
themeDarkBorder = lighten(themeDarkBackground, 20%)
|
||||||
@@ -514,6 +546,14 @@ body[data-theme="dark"]
|
|||||||
color $ui-dark-text-color
|
color $ui-dark-text-color
|
||||||
background-color $ui-dark-tag-backgroundColor
|
background-color $ui-dark-tag-backgroundColor
|
||||||
|
|
||||||
|
.markdownIt-TOC
|
||||||
|
&,
|
||||||
|
&:before
|
||||||
|
background-color darken(themeDarkBackground, 5%)
|
||||||
|
color themeDarkText
|
||||||
|
|
||||||
|
|
||||||
|
themeSolarizedDarkBackground = $ui-solarized-dark-noteDetail-backgroundColor
|
||||||
themeSolarizedDarkTableOdd = $ui-solarized-dark-noteDetail-backgroundColor
|
themeSolarizedDarkTableOdd = $ui-solarized-dark-noteDetail-backgroundColor
|
||||||
themeSolarizedDarkTableEven = darken($ui-solarized-dark-noteDetail-backgroundColor, 10%)
|
themeSolarizedDarkTableEven = darken($ui-solarized-dark-noteDetail-backgroundColor, 10%)
|
||||||
themeSolarizedDarkTableHead = themeSolarizedDarkTableEven
|
themeSolarizedDarkTableHead = themeSolarizedDarkTableEven
|
||||||
@@ -522,7 +562,7 @@ themeSolarizedDarkTableBorder = themeDarkBorder
|
|||||||
body[data-theme="solarized-dark"]
|
body[data-theme="solarized-dark"]
|
||||||
color $ui-solarized-dark-text-color
|
color $ui-solarized-dark-text-color
|
||||||
border-color themeDarkBorder
|
border-color themeDarkBorder
|
||||||
background-color $ui-solarized-dark-noteDetail-backgroundColor
|
background-color themeSolarizedDarkBackground
|
||||||
table
|
table
|
||||||
thead
|
thead
|
||||||
tr
|
tr
|
||||||
@@ -557,6 +597,13 @@ body[data-theme="solarized-dark"]
|
|||||||
color $ui-solarized-dark-button--active-color
|
color $ui-solarized-dark-button--active-color
|
||||||
background-color $ui-solarized-dark-button-backgroundColor
|
background-color $ui-solarized-dark-button-backgroundColor
|
||||||
|
|
||||||
|
.markdownIt-TOC
|
||||||
|
&,
|
||||||
|
&:before
|
||||||
|
background-color darken(themeSolarizedDarkBackground, 15%)
|
||||||
|
color themeDarkText
|
||||||
|
|
||||||
|
themeMonokaiBackground = $ui-monokai-noteDetail-backgroundColor
|
||||||
themeMonokaiTableOdd = $ui-monokai-noteDetail-backgroundColor
|
themeMonokaiTableOdd = $ui-monokai-noteDetail-backgroundColor
|
||||||
themeMonokaiTableEven = darken($ui-monokai-noteDetail-backgroundColor, 10%)
|
themeMonokaiTableEven = darken($ui-monokai-noteDetail-backgroundColor, 10%)
|
||||||
themeMonokaiTableHead = themeMonokaiTableEven
|
themeMonokaiTableHead = themeMonokaiTableEven
|
||||||
@@ -565,7 +612,7 @@ themeMonokaiTableBorder = themeDarkBorder
|
|||||||
body[data-theme="monokai"]
|
body[data-theme="monokai"]
|
||||||
color $ui-monokai-text-color
|
color $ui-monokai-text-color
|
||||||
border-color themeDarkBorder
|
border-color themeDarkBorder
|
||||||
background-color $ui-monokai-noteDetail-backgroundColor
|
background-color themeMonokaiBackground
|
||||||
table
|
table
|
||||||
thead
|
thead
|
||||||
tr
|
tr
|
||||||
@@ -603,6 +650,13 @@ body[data-theme="monokai"]
|
|||||||
color $ui-monokai-button--active-color
|
color $ui-monokai-button--active-color
|
||||||
background-color $ui-monokai-button-backgroundColor
|
background-color $ui-monokai-button-backgroundColor
|
||||||
|
|
||||||
|
.markdownIt-TOC
|
||||||
|
&,
|
||||||
|
&:before
|
||||||
|
background-color darken(themeMonokaiBackground, 15%)
|
||||||
|
color themeDarkText
|
||||||
|
|
||||||
|
themeDraculaBackground = $ui-dracula-noteDetail-backgroundColor
|
||||||
themeDraculaTableOdd = $ui-dracula-noteDetail-backgroundColor
|
themeDraculaTableOdd = $ui-dracula-noteDetail-backgroundColor
|
||||||
themeDraculaTableEven = darken($ui-dracula-noteDetail-backgroundColor, 10%)
|
themeDraculaTableEven = darken($ui-dracula-noteDetail-backgroundColor, 10%)
|
||||||
themeDraculaTableHead = themeDraculaTableEven
|
themeDraculaTableHead = themeDraculaTableEven
|
||||||
@@ -611,7 +665,7 @@ themeDraculaTableBorder = themeDarkBorder
|
|||||||
body[data-theme="dracula"]
|
body[data-theme="dracula"]
|
||||||
color $ui-dracula-text-color
|
color $ui-dracula-text-color
|
||||||
border-color themeDarkBorder
|
border-color themeDarkBorder
|
||||||
background-color $ui-dracula-noteDetail-backgroundColor
|
background-color themeDraculaBackground
|
||||||
table
|
table
|
||||||
thead
|
thead
|
||||||
tr
|
tr
|
||||||
@@ -648,3 +702,9 @@ body[data-theme="dracula"]
|
|||||||
.prev, .next
|
.prev, .next
|
||||||
color $ui-dracula-button--active-color
|
color $ui-dracula-button--active-color
|
||||||
background-color $ui-dracula-button-backgroundColor
|
background-color $ui-dracula-button-backgroundColor
|
||||||
|
|
||||||
|
.markdownIt-TOC
|
||||||
|
&,
|
||||||
|
&:before
|
||||||
|
background-color darken(themeDraculaBackground, 15%)
|
||||||
|
color themeDarkText
|
||||||
|
|||||||
Reference in New Issue
Block a user