You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by ur...@apache.org on 2022/05/24 09:09:57 UTC

[pulsar-site] branch main updated: style: prettify line number in code blocks

This is an automated email from the ASF dual-hosted git repository.

urfree pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/pulsar-site.git


The following commit(s) were added to refs/heads/main by this push:
     new 1f73639cf4c style: prettify line number in code blocks
     new f155434619a Merge pull request #94 from SignorMercurio/main
1f73639cf4c is described below

commit 1f73639cf4c906459091830ab1fb9f8637627e9a
Author: Mercurio <si...@gmail.com>
AuthorDate: Tue May 24 09:03:33 2022 +0100

    style: prettify line number in code blocks
---
 site2/website-next/src/css/custom.css | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/site2/website-next/src/css/custom.css b/site2/website-next/src/css/custom.css
index eec31fe7dda..f2ead1ee54e 100644
--- a/site2/website-next/src/css/custom.css
+++ b/site2/website-next/src/css/custom.css
@@ -999,11 +999,10 @@ footer .row.footer__links {
 .prism-code .token-line::before {
   counter-increment: line-number;
   content: counter(line-number);
-  margin-right: calc(var(--ifm-pre-padding) * 1.5);
+  margin-right: var(--ifm-pre-padding);
   text-align: right;
   min-width: 1rem;
   display: inline-block;
   opacity: .3;
-  position: sticky;
   left: var(--ifm-pre-padding);
 }
\ No newline at end of file