Some quarto note
ctrl+shift+B
runs the website
Tools –> Global options –> R Markdown –>show output preview in:: –> Viewer Pane.
Then click the apply and okay.
Then go to the Viewer panel you could see the website there
Go to the website –>select the font–>get font –>get embedd the code. Then change to @import and copy paste the line BETWEEN the
<style> </style>
In your scss file you copy paste. Note that 2 type of font is imported. In the font-family-sans-serif, the first one is specified as desired font and the second one is what will be used if the first font is not found.
The extension needs to be downloaded following inststruction
https://github.com/quarto-ext/fontawesome
https://fontawesome.com/download
This is what it looks like in fontawesome
This is what you write in quarto
{{< fa school >}} Education
https://github.com/jmbuhr/quarto-qrcode?tab=readme-ov-file
https://jmbuhr.de/quarto-qrcode/
Note: It can not be changed that the title of table of content(toc) is h2. It is hardwire in quarto. However, the h2 style of toc can be changed.
For example, to change the color of toc but not ordinary h2 title, I write in my scss file
Right click what you want to be changed and select inspect
fontcolor - The main color for text on the site
linkcolor - Color of the links
backgroundcolor - Background color of the whole site
monobackgroundcolor - background for code chunks
mainfont - The main font for text on the site
monofont - Font for code elements
max-width - Width of the main text area of the pages
fontsize - Base font size for website
linestretch - Distance between lines of text
Specifying a length in CSS can be done in dozens of ways: Using pixel counts 18px or 100px. Calculated font-size of an element, 1em should remain unchanged, 2em should double
https://quarto.org/docs/websites/website-navigation.html#github-links
https://quarto.org/docs/websites/website-navigation.html#page-navigation
https://quarto.org/docs/websites/website-navigation.html#breadcrumbs
https://quarto.org/docs/websites/website-navigation.html#page-footer
How we use CSS
In its simplest form, we need to define 2 things
by tags - h1 {}
by class - .important {}
by id - #title-text {}
https://www.w3schools.com/cssref/css_selectors.php
https://www.w3schools.com/css/css_selectors.asp
https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_selectors
https://www.freecodecamp.org/news/css-selectors-cheat-sheet-for-beginners/
https://www.w3.org/TR/CSS21/selector.html%23id-selectors
pseudo classes
The attributes are instructions on how elements should look and behave.
How things look
How elements are positioned to other elements
Border - A border that goes around the padding and content
Margin - Clears an area outside the border. The margin is transparent
https://css-tricks.com/snippets/css/complete-guide-grid/
https://css-tricks.com/snippets/css/a-guide-to-flexbox/
https://github.com/rostools/coding-club/blob/main/index.qmd
https://quarto.org/docs/websites/website-listings.html
https://posit-conf-2024.github.io/quarto-websites/06-listings.html#/listings