LeNPaul / Lagrange

A minimalist Jekyll theme for running a personal blog powered by Jekyll and GitHub Pages
https://lenpaul.github.io/Lagrange/
MIT License
682 stars 661 forks source link

Strange code in main.css #29

Closed lynn9388 closed 6 years ago

lynn9388 commented 7 years ago

I don't have much knowledge about css, so I am not sure if the code in the 270th line is correct. I have checked the code in VS code and WebStorm, they all show '}' expected.

pre {
    padding: 8px 12px;
    overflow-x: auto;

    > code {
        border: 0;
        padding-right: 0;
        padding-left: 0;
    }
}
alesmit commented 6 years ago

Hi @lynn9388 !

that is SCSS code. basically it's the same thing as writing it like this:

pre {
    padding: 8px 12px;
    overflow-x: auto;
}

pre > code {
  border: 0;
  padding-right: 0;
  padding-left: 0;
}

the > targets the code direct child of a pre tag.

lynn9388 commented 6 years ago

Hi @alesmit, thanks for your explanation!