Skip to content

Commit

Permalink
Use the modern Saas Modules
Browse files Browse the repository at this point in the history
  • Loading branch information
pradyunsg committed Jan 3, 2025
1 parent 2ed36c1 commit 3e9e50b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion src/furo/assets/styles/content/_admonitions.sass
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
@use "sass:list"
//
// The design here is strongly inspired by mkdocs-material.
.admonition, .topic
Expand Down Expand Up @@ -71,7 +72,7 @@ p.topic-title
background-color: var(--color-admonition-title-background--#{$type})
&::before
background-color: var(--color-admonition-title--#{$type})
mask-image: var(--icon-#{nth($value, 2)})
mask-image: var(--icon-#{list.nth($value, 2)})

.admonition-todo > .admonition-title
text-transform: uppercase
5 changes: 3 additions & 2 deletions src/furo/assets/styles/variables/_admonitions.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
@use "sass:list";
// Admonitions

// Structure of these is:
Expand Down Expand Up @@ -39,9 +40,9 @@ $admonitions: (

@mixin admonitions {
@each $name, $values in $admonitions {
--color-admonition-title--#{$name}: #{nth($values, 1)};
--color-admonition-title--#{$name}: #{list.nth($values, 1)};
--color-admonition-title-background--#{$name}: #{rgba(
nth($values, 1),
list.nth($values, 1),
0.2
)};
}
Expand Down

0 comments on commit 3e9e50b

Please sign in to comment.