|
7 | 7 | 'subtle_border_and_shadow': 'background: #FFF; border: 1px solid #E0E0E0; box-shadow: 0px 0px 1px rgba(128, 128, 128, .2);'
|
8 | 8 | } %}
|
9 | 9 |
|
| 10 | +{# when updating any of these colors, do the same in toolbar.css.twig #} |
| 11 | +{% set colors = { 'success': '#4F805D', 'warning': '#A46A1F', 'error': '#B0413E' } %} |
| 12 | + |
10 | 13 | {# Normalization
|
11 | 14 | (normalize.css v3.0.3 | MIT License | github.com/necolas/normalize.css)
|
12 | 15 | ========================================================================= #}
|
@@ -232,9 +235,9 @@ table tbody ul {
|
232 | 235 | padding: 3px 7px;
|
233 | 236 | white-space: nowrap;
|
234 | 237 | }
|
235 |
| -.label.status-success { background: #5E976E; color: #FFF; } |
236 |
| -.label.status-warning { background: #BC8034; color: #FFF; } |
237 |
| -.label.status-error { background: #B0413E; color: #FFF; } |
| 238 | +.label.status-success { background: {{ colors.success|raw }}; color: #FFF; } |
| 239 | +.label.status-warning { background: {{ colors.warning|raw }}; color: #FFF; } |
| 240 | +.label.status-error { background: {{ colors.error|raw }}; color: #FFF; } |
238 | 241 |
|
239 | 242 | {# Metrics
|
240 | 243 | ------------------------------------------------------------------------- #}
|
@@ -341,11 +344,11 @@ tr.status-warning td {
|
341 | 344 | border-top: 1px solid #FAFAFA;
|
342 | 345 | }
|
343 | 346 |
|
344 |
| -.status-warning .colored { |
345 |
| - color: #BC8034; |
| 347 | +.status-warning .colored { |
| 348 | + color: {{ colors.warning|raw }}; |
346 | 349 | }
|
347 | 350 | .status-error .colored {
|
348 |
| - color: #B0413E; |
| 351 | + color: {{ colors.error|raw }}; |
349 | 352 | }
|
350 | 353 |
|
351 | 354 | {# Syntax highlighting
|
@@ -469,9 +472,9 @@ tr.status-warning td {
|
469 | 472 | text-decoration: underline;
|
470 | 473 | }
|
471 | 474 |
|
472 |
| -#summary .status-success { background: #5E976E; } |
473 |
| -#summary .status-warning { background: #BC8034; } |
474 |
| -#summary .status-error { background: #B0413E; } |
| 475 | +#summary .status-success { background: {{ colors.success|raw }}; } |
| 476 | +#summary .status-warning { background: {{ colors.warning|raw }}; } |
| 477 | +#summary .status-error { background: {{ colors.error|raw }}; } |
475 | 478 |
|
476 | 479 | #summary .status-success h2,
|
477 | 480 | #summary .status-success h2 a,
|
@@ -670,10 +673,10 @@ tr.status-warning td {
|
670 | 673 | }
|
671 | 674 |
|
672 | 675 | #menu-profiler .label-status-warning .count {
|
673 |
| - background: #BC8034; |
| 676 | + background: {{ colors.warning|raw }}; |
674 | 677 | }
|
675 | 678 | #menu-profiler .label-status-error .count {
|
676 |
| - background: #B0413E; |
| 679 | + background: {{ colors.error|raw }}; |
677 | 680 | }
|
678 | 681 |
|
679 | 682 | {# Timeline panel
|
|
0 commit comments