Skip to content

Commit

Permalink
Merge pull request #36 from starknet-io/code_headings
Browse files Browse the repository at this point in the history
Add code background to h2 and h3 with code font.
  • Loading branch information
stoobie authored Mar 7, 2024
2 parents 598d858 + c4a7721 commit b75e0aa
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 0 deletions.
Binary file modified build/ui-bundle.zip
Binary file not shown.
9 changes: 9 additions & 0 deletions preview-src/index.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -421,6 +421,15 @@ extern fn get_block_hash_syscall(
) -> SyscallResult<felt252> implicits(GasBuiltin, System) nopanic;
----

== `code_heading_2`

Blah blah

== `code_heading_3`

Blah blah


== Fin

That's all, folks!
2 changes: 2 additions & 0 deletions src/css/doc.css
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,8 @@
}

.doc p code,
.doc h2 code,
.doc h3 code,
.doc thead code,
.doc .colist > table code {
color: var(--code-font-color);
Expand Down
2 changes: 2 additions & 0 deletions src/css/extensions/custom-dark.css
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,8 @@

.doc .colist > table code,
.doc p code,
.doc h2 code,
.doc h3 code,
.doc thead code {
background-color: var(--color-jet-60);
color: var(--color-silver-gray);
Expand Down
2 changes: 2 additions & 0 deletions src/css/extensions/custom-light.css
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,8 @@

.doc .colist > table code,
.doc p code,
.doc h2 code,
.doc h3 code,
.doc thead code {
background-color: var(--nav-selected-bg);
color: #6B7280;
Expand Down

0 comments on commit b75e0aa

Please sign in to comment.