Skip to content

Commit 175f8ff

Browse files
MatTheCatostrolucky
authored andcommitted
Fix dark theme time bar colors in the profiler
1 parent 6316ebc commit 175f8ff

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

templates/Collector/db.html.twig

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,9 +101,15 @@
101101

102102
{% block queries %}
103103
<style>
104+
:root {
105+
--query-time-bar-color: var(--gray-200);
106+
}
107+
.theme-dark {
108+
--query-time-bar-color: var(--gray-700);
109+
}
104110
.time-container { position: relative; }
105-
.time-container .nowrap { position: relative; z-index: 1; text-shadow: 0 0 2px #fff; }
106-
.time-bar { display: block; position: absolute; top: 0; left: 0; bottom: 0; background: #e0e0e0; }
111+
.time-container .nowrap { position: relative; z-index: 1; text-shadow: 0 0 2px var(--page-background); }
112+
.time-bar { display: block; position: absolute; top: 0; left: 0; bottom: 0; background: var(--query-time-bar-color); }
107113
.sql-runnable.sf-toggle-content.sf-toggle-visible { display: flex; flex-direction: column; }
108114
.sql-runnable button { align-self: end; }
109115
{% if profiler_markup_version >= 3 %}

0 commit comments

Comments
 (0)