Skip to content

Commit

Permalink
chore: updated mdBook specific files
Browse files Browse the repository at this point in the history
  • Loading branch information
dr460nf1r3 committed Aug 19, 2024
1 parent 3cf6bba commit 6ebb71b
Show file tree
Hide file tree
Showing 5 changed files with 45 additions and 2,103 deletions.
3 changes: 0 additions & 3 deletions docs/book.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,4 @@ after = ["links"]
command = "mdbook-admonish"
assets_version = "3.0.2" # do not edit: managed by `mdbook-admonish install`

[preprocessor.catppuccin]
assets_version = "2.1.0" # DO NOT EDIT: Managed by `mdbook-catppuccin install`

[preprocessor.emojicodes]
4 changes: 2 additions & 2 deletions docs/theme/css/general.css
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,8 @@ h6:target::before {
}

/* This is broken on Safari as of version 14, but is fixed
in Safari Technology Preview 117 which I think will be Safari 14.2.
https://bugs.webkit.org/show_bug.cgi?id=218076
in Safari Technology Preview 117 which I think will be Safari 14.2.
https://bugs.webkit.org/show_bug.cgi?id=218076
*/
:target {
/* Safari does not support logical properties */
Expand Down
41 changes: 40 additions & 1 deletion docs/theme/css/variables.css
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,13 @@
--search-mark-bg: #e3b171;

--color-scheme: dark;

/* Same as `--icons` */
--copy-button-filter: invert(45%) sepia(6%) saturate(621%) hue-rotate(198deg)
brightness(99%) contrast(85%);
/* Same as `--sidebar-active` */
--copy-button-filter-hover: invert(68%) sepia(55%) saturate(531%)
hue-rotate(341deg) brightness(104%) contrast(101%);
}

.coal {
Expand Down Expand Up @@ -101,6 +108,13 @@
--search-mark-bg: #355c7d;

--color-scheme: dark;

/* Same as `--icons` */
--copy-button-filter: invert(26%) sepia(8%) saturate(575%) hue-rotate(169deg)
brightness(87%) contrast(82%);
/* Same as `--sidebar-active` */
--copy-button-filter-hover: invert(36%) sepia(70%) saturate(503%)
hue-rotate(167deg) brightness(98%) contrast(89%);
}

.light {
Expand Down Expand Up @@ -145,6 +159,12 @@
--search-mark-bg: #a2cff5;

--color-scheme: light;

/* Same as `--icons` */
--copy-button-filter: invert(45.49%);
/* Same as `--sidebar-active` */
--copy-button-filter-hover: invert(14%) sepia(93%) saturate(4250%)
hue-rotate(243deg) brightness(99%) contrast(130%);
}

.navy {
Expand Down Expand Up @@ -189,6 +209,13 @@
--search-mark-bg: #a2cff5;

--color-scheme: dark;

/* Same as `--icons` */
--copy-button-filter: invert(51%) sepia(10%) saturate(393%) hue-rotate(198deg)
brightness(86%) contrast(87%);
/* Same as `--sidebar-active` */
--copy-button-filter-hover: invert(46%) sepia(20%) saturate(1537%)
hue-rotate(156deg) brightness(85%) contrast(90%);
}

.rust {
Expand Down Expand Up @@ -232,7 +259,12 @@
--searchresults-li-bg: #dec2a2;
--search-mark-bg: #e69f67;

--color-scheme: light;
/* Same as `--icons` */
--copy-button-filter: invert(51%) sepia(10%) saturate(393%) hue-rotate(198deg)
brightness(86%) contrast(87%);
/* Same as `--sidebar-active` */
--copy-button-filter-hover: invert(77%) sepia(16%) saturate(1798%)
hue-rotate(328deg) brightness(98%) contrast(83%);
}

@media (prefers-color-scheme: dark) {
Expand Down Expand Up @@ -276,5 +308,12 @@
--searchresults-border-color: #98a3ad;
--searchresults-li-bg: #2b2b2f;
--search-mark-bg: #355c7d;

/* Same as `--icons` */
--copy-button-filter: invert(26%) sepia(8%) saturate(575%)
hue-rotate(169deg) brightness(87%) contrast(82%);
/* Same as `--sidebar-active` */
--copy-button-filter-hover: invert(36%) sepia(70%) saturate(503%)
hue-rotate(167deg) brightness(98%) contrast(89%);
}
}
Loading

0 comments on commit 6ebb71b

Please sign in to comment.