mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
ui: support data-line
This commit is contained in:
1 parent
b28fa5ca08
commit
e67ecd9768
4 files changed
+25
-4
No files matched your search
@@ -25,6 +25,18 @@ code
|
||||
[data-syntax-hl-show-line-number] pre.line-numbers > code
|
||||
white-space: pre
|
||||
|
||||
.line-highlight
|
||||
position: absolute
|
||||
left: 0
|
||||
right: 0
|
||||
padding: inherit 0
|
||||
margin-top: 1em /* Same as .prism’s padding-top */
|
||||
background: hsla(24, 20%, 50%,.08)
|
||||
background: linear-gradient(to right, hsla(24, 20%, 50%,.1) 70%, hsla(24, 20%, 50%,0))
|
||||
pointer-events: none
|
||||
line-height: inherit
|
||||
white-space: pre
|
||||
|
||||
.sample > .toolbar
|
||||
right: 0.9375em !important
|
||||
top: 3.7875em !important
|
||||
|
||||
Reference in new issue
Block a user