Skip to content

Commit

Permalink
More attractive homepage numbers
Browse files Browse the repository at this point in the history
  • Loading branch information
dphfox committed Aug 28, 2024
1 parent c93f718 commit 4ef4f31
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 6 deletions.
3 changes: 3 additions & 0 deletions docs/assets/home/fusion-clip-shape.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
34 changes: 28 additions & 6 deletions docs/assets/theme/home.css
Original file line number Diff line number Diff line change
Expand Up @@ -170,19 +170,41 @@
margin-top: 1rem;
}

#fusiondoc-home-belowfold > h2.first::before {
content: "➀";
#fusiondoc-home-belowfold > h2.first::before,
#fusiondoc-home-belowfold > h2.second::before,
#fusiondoc-home-belowfold > h2.third::before {
content: "1";
display: inline flex;
align-items: center;
justify-content: center;
width: 2.2em;
height: 2em;
mask: url(../home/fusion-clip-shape.svg);
mask-size: contain;
mask-position: center;
mask-repeat: no-repeat;
background-color: var(--fusiondoc-grey-5);
color: var(--fusiondoc-bg-1);
margin-right: 0.75rem;
vertical-align: middle;
}

@media screen and (min-width: 80em) {
#fusiondoc-home-belowfold > h2.first::before,
#fusiondoc-home-belowfold > h2.second::before,
#fusiondoc-home-belowfold > h2.third::before {
margin-left: -3.5rem;
margin-top: -1rem;
margin-bottom: -1rem;
}
}

#fusiondoc-home-belowfold > h2.second::before {
content: "➁";
margin-right: 0.75rem;
content: "2";
}

#fusiondoc-home-belowfold > h2.third::before {
content: "➂";
margin-right: 0.75rem;
content: "3";
}

#fusiondoc-home {
Expand Down

0 comments on commit 4ef4f31

Please sign in to comment.