Skip to content

Commit

Permalink
refactor(#120): extract notebook colors
Browse files Browse the repository at this point in the history
  • Loading branch information
jannis-baum committed Aug 1, 2024
1 parent 6d17e6f commit dbfab63
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions static/colors.css
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@
--alert-important: #ff8ffd;
--alert-warning: #ffaf00;
--alert-caution: #ff5f5f;

--ipynb-bg-error: rgba(255, 0, 0, 0.1);
}

/* --------------------------------------------------------------------------
Expand Down Expand Up @@ -89,5 +91,6 @@
--alert-warning: #bf8700;
--alert-caution: #cf222e;

--ipynb-bg-error: rgba(255, 0, 0, 0.1);
}
}
4 changes: 2 additions & 2 deletions static/ipynb.css
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@
padding: unset;
background-color: unset;
}
.ipynb-output-stream-stderr { background-color: rgba(255, 0, 0, 0.1); }
.ipynb-output-stream-stderr { background-color: var(--ipynb-bg-error); }

.ipynb-output-error { background-color: rgba(255, 0, 0, 0.1); }
.ipynb-output-error { background-color: var(--ipynb-bg-error); }

.ipynb-output-plain {
padding: unset;
Expand Down

0 comments on commit dbfab63

Please sign in to comment.