laozhu / hugo-nuo

🎨 A responsive light & clean hugo theme for blogger.

Home Page:https://laozhu.me

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

CSS highlight problem for linenos=table

bebound opened this issue · comments

commented

The table width is not 100% when using linenos=table.

Screen Shot 2019-03-10 at 18 47 45

Here is the markdown file. (linenos=inline works as expected)

+++
title = "test"
+++


{{< highlight python3 "linenos=table, linenostart=1" >}}
def X1():
    return "x1"
{{< / highlight >}}

{{< highlight python3 "linenos=inline, linenostart=1" >}}
def X1():
    return "x1"
{{< / highlight >}}

@bebound I tested with your code, there's some style overrides with my content.scss and table.scss, I will fix it later.

commented

There is also a CSS problem only occur on Safari(macOS and iOS).
The code block has space on the right side.
url

Screen Shot 2019-03-12 at 5 12 42 PM
Screen Shot 2019-03-12 at 5 12 50 PM

@bebound Safari problem is caused by this CSS property.

body {  
  font-feature-settings: "liga" on;
}

I will fix the issue tonight.