Skip to content

Commit

Permalink
fix(logs): row colors are white even on dark theme (closes #1642)
Browse files Browse the repository at this point in the history
  • Loading branch information
aarushtools authored and alanzhu0 committed Jul 5, 2024
1 parent 1d1ff53 commit d467fdb
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 1 deletion.
1 change: 1 addition & 0 deletions Ion.egg-info/SOURCES.txt
Original file line number Diff line number Diff line change
Expand Up @@ -945,6 +945,7 @@ intranet/static/css/dark/enrichment.scss
intranet/static/css/dark/events.scss
intranet/static/css/dark/files.scss
intranet/static/css/dark/login.scss
intranet/static/css/dark/logs.scss
intranet/static/css/dark/lostfound.scss
intranet/static/css/dark/nav.scss
intranet/static/css/dark/oauth.scss
Expand Down
1 change: 1 addition & 0 deletions intranet/settings/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -385,6 +385,7 @@
"dark/eighth.schedule",
"dark/oauth",
"dark/sessionmgmt",
"dark/logs",
]

for name in LIST_OF_INDEPENDENT_CSS:
Expand Down
7 changes: 7 additions & 0 deletions intranet/static/css/dark/logs.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
tr.shade:nth-child(even) {
background-color: #292929;
}

th.sticky {
background-color: #121212;
}
4 changes: 4 additions & 0 deletions intranet/static/css/logs.scss
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,10 @@ td {
color: green;
}

tr.shade:nth-child(even) {
background-color: #e7e7e7;
}

.key-red {
color: rgb(153, 0, 0);
}
Expand Down
1 change: 0 additions & 1 deletion intranet/static/js/logs.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ function goToPage(pageNum) {
}

$(function() {
$("tr.shade:even").css("background-color", "#e7e7e7");
$(".raw-json-header, .iframe-container-header").click(function () {
$(this).next().slideToggle("fast");
$(this.children[1]).toggleClass("fa-angle-up fa-angle-down");
Expand Down
1 change: 1 addition & 0 deletions intranet/templates/logs/home.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
{% if dark_mode_enabled %}
{% stylesheet 'dark/base' %}
{% stylesheet 'dark/nav' %}
{% stylesheet 'dark/logs' %}
{% endif %}
{% endblock %}

Expand Down

0 comments on commit d467fdb

Please sign in to comment.