Commit Graph

21 Commits

Author SHA1 Message Date
vihuna
f552746a10
feat: add CSS counter for figure captions (#72)
* feat: add CSS counter for figure captions

* Add translations for figure captions prefix

Added translations for Czech, Danish, German, Spanish, French and
Italian, from their respective `babel-<lang>` LaTeX packages.
2024-09-21 08:14:16 +02:00
vihuna
c848d815c5
fix: replace old one-colon pseudo-element syntax (#70)
Old one-colon pseudo element syntax is already set to be deprecated in
'Selectors Level 4' working draft:

- https://www.w3.org/TR/selectors-4/#pseudo-element-syntax
2024-09-21 08:11:33 +02:00
Vincent Dörig
ee2bb85334 chore: move all .now.sh references to .vercel.app 2024-06-27 11:19:34 +02:00
vihuna
9726e4f316
fix: avoid unwanted extra hyphens in code fragments (#61) 2024-02-19 14:21:52 +01:00
vihuna
b2975d2b09
feat: add custom table borders and column alignment (#60)
Allow some few customization options for table borders and column alignment.

- For custom borders: adds classes `border-<position>-<weight>` for `top`, `right`, `top`, `bottom` and `thin`/`thick` respectively. Use with the `borders-custom` class.
- For custom column alignment: adds classes `col-<num>-l`, `col-<num>-c`, `col-<num>-r` for `num` being the n-th column of the table from 1 to 12.
2023-09-22 12:08:19 +02:00
vihuna
dec3909be1
feat: adds paragraph first line indentation (#50)
Co-authored-by: Vincent Dörig <dvincdt@gmail.com>
2023-03-05 21:46:32 +01:00
Daniele Sluijters
5ab03c6779
Support for dark mode (#48)
* Turn all colors into variables

This turns each color into a $elem(-$pseudo)-$attribute named variable
on the :root element and replaces their usage by calling the var()
function instead.

* Add dark mode colors

This overrides the colors when prefers-color-scheme is set to dark,
indicating the user has configured their OS or user-agent to prefer
a light text on dark background instead. It includes a way to manually
toggle dark mode by using a data attribute on the html element.

The syntax highlight colors are also updated to support dark mode.

* feat: improve dark mode implementation and docs

- Dark mode based on classes, with three options
  - light mode (default, no changes needed)
  - auto dark mode (based on prefers-color-scheme; latex-dark-auto class on body)
  - dark mode (latex-dark class on body)
- Removed the mention of dark mode from the lead and moved it to the getting started section
- Moved the dark mode section up, since it is a pretty important feature imo.
- Added a dark mode toggle button for demo
- Added a CSS filter to the proof symbol so that it shows up as dark grey instead of white
- Built the project to generate the minified css file

Co-authored-by: Vincent Dörig <dvincdt@gmail.com>
2022-10-10 14:52:53 +02:00
Error
2a1d4d9757
fix counter-reset in style.css (#47) 2022-10-02 12:37:29 +02:00
mrwolferinc
c21e045aef
Added smooth scrolling media query (#42) 2022-02-23 19:23:34 +01:00
Vincent Dörig
4559ee48f6
feat: add Libertinus as alternative typeface (#35) 2020-12-15 08:20:52 +01:00
Vincent Dörig
72e226d44d
Add sidenotes (#28) 2020-08-11 11:15:27 +02:00
Vincent Dörig
04497134ca
Improve table styles (#24) 2020-06-09 21:12:08 +02:00
Vincent Dörig
5a5fe7079f Fix abstract header
- change abstract h5 to h2
- remove some horizontal margins
2020-06-02 11:19:00 +02:00
Ole Guldberg
32a4cceaa6
Add 2px blue focus-frame (accessibility) and danish language file (#16) 2020-05-26 20:14:01 +02:00
Vincent Dörig
880b1b3587 Improve <pre> styles and tweak LaTeX symbol
- remove border and change bg color on `<pre>`
- tweak properties on the LaTeX symbol
2020-05-24 15:19:30 +02:00
Vincent Dörig
a6808cbd72 Render text using optimizeLegibility 2020-05-24 07:54:06 +02:00
Vincent Dörig
f7c00ebc1a Add attribution 2020-05-23 17:35:07 +02:00
Vincent Dörig
9e2453bd83 Format, add sa script 2020-05-23 13:23:00 +02:00
Vincent Dörig
f58dc2893a Tweak heading/input/body/fn styles, add kbd styles 2020-05-23 13:16:34 +02:00
Vincent Dörig
5f9a2ea6eb Improve styles
- remove css variable
- add horizontal padding on the body
- add table styling
- add heading typography
2020-05-21 10:03:48 +02:00
Vincent Dörig
e81716868c Create the initial stylesheet and index page 2020-05-20 18:16:36 +02:00