mirror of
https://github.com/KivotosRailway/website.git
synced 2026-11-03 19:07:56 +09:00
Add solitude
This commit is contained in:
@@ -0,0 +1,80 @@
|
||||
pre[class*='language-']
|
||||
|
||||
.keyword
|
||||
.function
|
||||
color $highlight-variable-light
|
||||
|
||||
.operator
|
||||
color $highlight-variable-light
|
||||
|
||||
.number
|
||||
color $highlight-number-light
|
||||
|
||||
.property
|
||||
.class-name
|
||||
.title
|
||||
color $highlight-title-light
|
||||
|
||||
.string
|
||||
color $highlight-string-light
|
||||
|
||||
.parameter
|
||||
color $highlight-parameter-light
|
||||
|
||||
.blockquote
|
||||
cikir $highlight-emphasis-light
|
||||
|
||||
.comment
|
||||
color $highlight-comment-light
|
||||
|
||||
.atrule
|
||||
color $highlight-emphasis-light
|
||||
|
||||
.boolean
|
||||
color $highlight-important-light
|
||||
|
||||
.deleted
|
||||
color $highlight-deleted
|
||||
|
||||
.inserted
|
||||
color $highlight-inserted
|
||||
|
||||
[data-theme='dark'] &
|
||||
.keyword
|
||||
.function
|
||||
color $highlight-variable-dark
|
||||
|
||||
.operator
|
||||
color $highlight-variable-dark
|
||||
|
||||
.number
|
||||
color $highlight-number-dark
|
||||
|
||||
.property
|
||||
.class-name
|
||||
.title
|
||||
color $highlight-title-dark
|
||||
|
||||
.string
|
||||
color $highlight-string-dark
|
||||
|
||||
.parameter
|
||||
color $highlight-parameter-dark
|
||||
|
||||
.blockquote
|
||||
color $highlight-emphasis-dark
|
||||
|
||||
.comment
|
||||
color $highlight-comment-dark
|
||||
|
||||
.atrule
|
||||
color $highlight-emphasis-dark
|
||||
|
||||
.boolean
|
||||
color $highlight-important-dark
|
||||
|
||||
.deleted
|
||||
color $highlight-deleted
|
||||
|
||||
.inserted
|
||||
color $highlight-inserted
|
||||
@@ -0,0 +1,15 @@
|
||||
@require line-number
|
||||
|
||||
@require diff
|
||||
|
||||
#article-container
|
||||
pre[class*='language-']
|
||||
margin 0
|
||||
overflow-x auto
|
||||
scrollbar-color var(--hlscrollbar-bg) transparent
|
||||
|
||||
&::-webkit-scrollbar-thumb
|
||||
background var(--hlscrollbar-bg)
|
||||
|
||||
&:not(.line-numbers)
|
||||
padding 10px 20px
|
||||
@@ -0,0 +1,28 @@
|
||||
#article-container
|
||||
pre[class*='language-']
|
||||
&.line-numbers
|
||||
position relative
|
||||
|
||||
> code
|
||||
display block
|
||||
position relative
|
||||
padding 8px 0 8px 58px
|
||||
|
||||
.line-numbers-rows
|
||||
position absolute
|
||||
top 0
|
||||
left 0
|
||||
color var(--efu-secondtext)
|
||||
border-right var(--style-border-always)
|
||||
width 45px
|
||||
padding 8px 0
|
||||
|
||||
& > span
|
||||
display block
|
||||
counter-increment linenumber
|
||||
pointer-events none
|
||||
text-align center
|
||||
|
||||
&:before
|
||||
padding 0 0.5em
|
||||
content counter(linenumber)
|
||||
Reference in New Issue
Block a user