Skip to content

Commit

Permalink
BI
Browse files Browse the repository at this point in the history
  • Loading branch information
kaikalii committed Nov 2, 2023
1 parent 79146d7 commit 273fec4
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 1 deletion.
1 change: 1 addition & 0 deletions site/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -333,6 +333,7 @@ fn prim_class(prim: Primitive) -> &'static str {
match prim {
Primitive::Identity => code_font!("stack-function"),
Primitive::Transpose => code_font!("monadic-function trans"),
Primitive::Both => code_font!("monadic-modifier bi"),
prim if prim.is_ocean() => code_font!("ocean-function"),
prim if prim.class() == PrimClass::Stack && prim.modifier_args().is_none() => {
code_font!("stack-function")
Expand Down
24 changes: 23 additions & 1 deletion site/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -729,12 +729,34 @@ input[type=number] {
-moz-text-fill-color: transparent;
}

.bi {
background-image: linear-gradient(180deg,
#D60270 48%,
#9B4F96 48%,
#9B4F96 65%,
#0038A8 65%);
background-size: 100%;
background-clip: text;
-webkit-background-clip: text;
-moz-background-clip: text;
-webkit-text-fill-color: transparent;
-moz-text-fill-color: transparent;
}

@media (prefers-color-scheme: light) {
.trans {

.trans,
.bi {
-webkit-text-stroke: 0.2px #000;
}
}

@media (prefers-color-scheme: dark) {
.bi {
-webkit-text-stroke: 0.2px #fff;
}
}

.space-character {
border-width: 2px;
border-radius: 0.3em;
Expand Down

0 comments on commit 273fec4

Please sign in to comment.