Commit Graph

31 Commits

Author SHA1 Message Date
Maruan
71969cce7e
Fix: Improve footnote and citation colors in Distill posts (#3172)
Fixes #3168. (Implemented by [jules.google](https://jules.google).)

This commit resolves issues with footnote and citation styling in
Distill posts, particularly ensuring that pop-up contents and the
numbers themselves respect the site's light/dark theme via shadow DOM
style definitions.

Key changes:

1.  **`d-hover-box` Internal Styling (template.v2.js):**
    The `<style>` tag within the `d-hover-box` component's template
    in `assets/js/distillpub/template.v2.js` has been updated.
    Styles for `.panel` (the main pop-up container) now define:
    - `background-color: var(--global-card-bg-color);`
    - `border: 1px solid var(--global-divider-color);`
    - `color: var(--global-text-color);` (for default text)
    - Links within the panel are styled with
      `color: var(--global-theme-color);` and
      `color: var(--global-hover-color);` on hover.
    This ensures pop-up content is correctly themed from within its
    shadow DOM.

2.  **Footnote/Citation Number Color (template.v2.js):**
    The hardcoded `hsla(206, 90%, 20%, 0.7)` color previously used for
    footnote numbers (in `d-footnote` template) and citation numbers
    (in `d-cite` template) in `assets/js/distillpub/template.v2.js`
    has been replaced with `color: var(--global-theme-color);`.

3.  **Cleaned `_sass/_distill.scss`:**
    Removed the (now redundant) global CSS overrides for `d-hover-box`
    from `_sass/_distill.scss`, as these styles are now correctly
    encapsulated within the `d-hover-box` component itself.

These changes ensure that all aspects of Distill footnotes and
citations (numbers, pop-up background, pop-up text, and links within
pop-ups) are styled using theme-aware CSS variables, providing
correct visual appearance and readability in both light and dark modes.

---------

Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>
2025-05-23 06:42:09 -07:00
george-gca
ac99061bce Auto update markdown TOC 2025-05-12 19:49:17 +00:00
George
4f7da1d367
Removed link from header in FAQ.md 2025-05-12 16:48:58 -03:00
george-gca
c98d596e2d Auto update markdown TOC 2025-05-12 19:46:12 +00:00
George
5878b5c71d
Update FAQ.md layout 2025-05-12 16:45:56 -03:00
George
c5bdfebd5b
Fixed tocs (#3133)
Signed-off-by: George Araújo <george.gcac@gmail.com>
2025-04-14 17:02:59 -03:00
george-gca
b963b565bb Auto update markdown TOC 2025-04-14 18:43:53 +00:00
George
cc140ddc41
Update FAQ.md 2025-04-14 15:43:34 -03:00
george-gca
dfe4091c1c Auto update markdown TOC 2025-04-14 18:40:13 +00:00
George
91a2b63c80
Created GitHub action to update TOCs (#3132)
Signed-off-by: George Araújo <george.gcac@gmail.com>
2025-04-14 15:39:55 -03:00
Soumyaranjan Dash
1da2e64e73
Updated FAQ.md. (#2937)
Added documentation for Google Search Console ID creation and usage in
the template for google-site-verification.
2025-01-07 17:22:28 -03:00
George
84cf4aff3d
Update Font Awesome and Tabler Icons (#2884)
Solves #2881.

---------

Signed-off-by: George Araújo <george.gcac@gmail.com>
2024-12-11 15:19:38 -03:00
George
de2b3b87ae
Renamed all references to master branch to main (#2793)
Finishes #2086

Signed-off-by: George Araújo <george.gcac@gmail.com>
2024-10-21 21:54:16 -03:00
George
04ab383c4b
Fixed prettier complaints on FAQ.md 2024-08-07 13:46:07 -03:00
George
610f42bf61
Update Prettier information on FAQ.md 2024-08-07 12:40:32 -03:00
George
fc15dd6cc8
Fixed prettier complaints on FAQ 2024-07-21 20:48:32 -03:00
George
2ebbb801e3
Expliciting how to handle wrong theme for site in FAQ.md 2024-07-21 17:13:10 -03:00
George
c3ac17294c
Improved FAQ readability 2024-07-21 16:19:33 -03:00
George
8fe4bee5e6
Remove lsi command (#2428)
Removed lsi command from code since it was added to _config.yml

---------

Signed-off-by: George Araujo <george.gcac@gmail.com>
2024-05-17 14:19:02 -03:00
George
36bc24f7e4
Fixed link to last FAQ question 2024-05-10 21:25:16 -03:00
George
37dbff08ab
Added prettier link to FAQ 2024-05-09 14:16:21 -03:00
George
32deb3899b
Added information about GitHub workflows to FAQ (#2404)
Signed-off-by: George Araujo <george.gcac@gmail.com>
2024-05-09 14:08:20 -03:00
George
dba48c2b60
Update FAQ.md with layout error information 2024-04-14 22:34:05 -03:00
George
00fdc13d6c
Added Bluesky social (#2314)
Now that Bluesky is [finally
available](https://fontawesome.com/changelog) at Font Awesome, we can
add it to the template.

---------

Signed-off-by: George Araujo <george.gcac@gmail.com>
2024-04-02 17:28:27 -03:00
George
9ac08fe6f3
Update FAQ.md with sqrt error message 2024-03-31 22:46:34 -03:00
George
4dd3d6f441
Updated information about lsi 2024-03-01 13:04:53 -03:00
George
4cf657eb54
Added jekyll-diagrams error to FAQ (#2162)
Signed-off-by: George Araújo <george.gcac@gmail.com>
2024-02-05 12:22:24 -03:00
George
c39df67d5b
Updated FAQ with old repository information (#2161)
Signed-off-by: George Araújo <george.gcac@gmail.com>
2024-02-05 12:11:33 -03:00
George
43a3dd9e75
Update FAQ.md with Prettier info 2024-01-28 19:31:18 -03:00
George
f69d99a2ab
Closing #2122 (#2135)
Added lighthouse badger token info to FAQ

---------

Signed-off-by: George Araújo <george.gcac@gmail.com>
2024-01-27 22:17:37 -03:00
George
4a55cd1bd1
Upgrading the README file (#2034)
I decided to break the README file into different ones to declutter it
from the main page. Also adding some more explanation on the structure
of the template. Tackling #2032 and #2033

---------

Signed-off-by: George Araujo <george.gcac@gmail.com>
2024-01-02 22:30:48 -03:00