Learn wirte a Jekyll theme
I want to build a website as to be the owned channel of content distribution.
As a software engineer, I know how to leverage computer programming to save money.
But, actually, when I started to be using the static site generator Jekyll, it turned out that I didn’t have enough knowledge about CSS.
So I got some source code to read.
The first one is minima.
The basic strucutre comes as following:
1 | ├── 404.html |
I started to read from the _sass
folder and keep writing notes here.
SCSS
Placeholder Selectors
1 | /** |
1 | /** |
At-rules
@mixin
https://sass-lang.com/documentation/at-rules/mixin
It’s a SCSS at-rule, pairing with @include
.
1 | @mixin relative-font-size($ratio) { |
@import
1 | // Import pre-styling-overrides hook and style-partials. |
Interpolation
https://sass-lang.com/documentation/interpolation
1 | body { |
CSS
Properties
Units
vh & vw
https://stackoverflow.com/questions/24876368/how-do-vw-and-vh-units-work