Skip to content
This repository has been archived by the owner on Nov 17, 2021. It is now read-only.

Commit

Permalink
fix(RPNG): Ensure contents of all node types are fully visible
Browse files Browse the repository at this point in the history
  • Loading branch information
alex-ketch committed Mar 4, 2021
1 parent 3a53950 commit f2586b3
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions src/themes/rpng/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ body {

:--root {
--color-ok: #95e8af;
--symbol-width: 18px;

display: inline-block;
font-family: monospace;
Expand Down Expand Up @@ -68,11 +69,6 @@ body {
}
}

:--MathFragment {
/* Ensure that the icon does not overlap the equation */
padding-left: 18px;
}

/* Hide the UI chrome etc that is not wanted */
:--CodeChunk stencila-action-menu,
:--CodeChunk [slot='text'],
Expand All @@ -89,8 +85,11 @@ body {
}

:--CodeChunk stencila-node-list,
:--CodeExpression stencila-node-list {
padding: 0 !important;
:--CodeExpression .output,
:--MathBlock > :first-child,
:--MathFragment > :first-child {
/* Ensure that the icon does not overlap the content */
padding: 0 0 0 var(--symbol-width) !important;
}

/* Make display of datatables a little more pleasing */
Expand Down

0 comments on commit f2586b3

Please sign in to comment.