Skip to content

Commit 7833f47

Browse files
committed
[WebProfilerBundle] Fix exception rendering
1 parent 6c7bced commit 7833f47

File tree

1 file changed

+100
-97
lines changed

1 file changed

+100
-97
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,99 +1,102 @@
1-
.sf-reset .traces {
2-
padding: 0 0 1em 1.5em;
3-
}
4-
.sf-reset .traces a {
5-
font-size: 14px;
6-
}
7-
.sf-reset .traces abbr {
8-
border-bottom-color: #AAA;
9-
padding-bottom: 2px;
10-
}
11-
.sf-reset .traces li {
12-
color: #222;
13-
font-size: 14px;
14-
padding: 5px 0;
15-
list-style-type: decimal;
16-
margin: 0 0 0 1em;
17-
}
18-
.sf-reset .traces li.selected {
19-
background: rgba(255, 255, 153, 0.5);
20-
}
1+
.hidden-xs-down { display: none; }
2+
.block { display: block; }
3+
.hidden { display: none; }
4+
.nowrap { white-space: nowrap; }
5+
.newline { display: block; }
6+
.break-long-words { -ms-word-break: break-all; word-break: break-all; word-break: break-word; -webkit-hyphens: auto; -moz-hyphens: auto; hyphens: auto; }
7+
.text-small { font-size: 12px !important; }
8+
.text-muted { color: #999; }
9+
.text-bold { font-weight: bold; }
10+
.empty { border: 4px dashed #E0E0E0; color: #999; margin: 1em 0; padding: .5em 2em; }
2111

22-
.sf-reset .traces ol li {
23-
font-size: 12px;
24-
color: #777;
25-
}
26-
.sf-reset #logs .traces li.error {
27-
color: #AA3333;
28-
}
29-
.sf-reset #logs .traces li.warning {
30-
background: #FFCC00;
31-
}
32-
.sf-reset .trace {
33-
border: 1px solid #DDD;
34-
background: #FFF;
35-
padding: 10px;
36-
overflow: auto;
37-
margin: 1em 0;
38-
}
39-
.sf-reset .trace code,
40-
#traces-text pre {
41-
font-size: 13px;
42-
}
43-
.sf-reset .block-exception {
44-
margin-bottom: 2em;
45-
background-color: #FFF;
46-
border: 1px solid #EEE;
47-
padding: 28px;
48-
word-wrap: break-word;
49-
overflow: hidden;
50-
}
51-
.sf-reset .block-exception h1 {
52-
font-size: 21px;
53-
font-weight: normal;
54-
margin: 0 0 12px;
55-
}
56-
.sf-reset .block-exception .linked {
57-
margin-top: 1em;
58-
}
12+
.status-success { background: rgba(94, 151, 110, 0.3); }
13+
.status-warning { background: rgba(240, 181, 24, 0.3); }
14+
.status-error { background: rgba(176, 65, 62, 0.2); }
15+
.status-success td, .status-warning td, .status-error td { background: transparent; }
16+
tr.status-error td, tr.status-warning td { border-bottom: 1px solid #FAFAFA; border-top: 1px solid #FAFAFA; }
17+
.status-warning .colored { color: #A46A1F; }
18+
.status-error .colored { color: #B0413E; }
5919

60-
.sf-reset .block {
61-
margin-bottom: 2em;
62-
}
63-
.sf-reset .block h2 {
64-
font-size: 16px;
65-
}
66-
.sf-reset .block-exception div {
67-
font-size: 14px;
68-
}
69-
.sf-reset .block-exception-detected .illustration-exception,
70-
.sf-reset .block-exception-detected .text-exception {
71-
float: left;
72-
}
73-
.sf-reset .block-exception-detected .illustration-exception {
74-
width: 110px;
75-
}
76-
.sf-reset .block-exception-detected .text-exception {
77-
width: 650px;
78-
margin-left: 20px;
79-
padding: 30px 44px 24px 46px;
80-
position: relative;
81-
}
82-
.sf-reset .text-exception .open-quote,
83-
.sf-reset .text-exception .close-quote {
84-
font-family: Arial, Helvetica, sans-serif;
85-
position: absolute;
86-
color: #C9C9C9;
87-
font-size: 8em;
88-
}
89-
.sf-reset .open-quote {
90-
top: 0;
91-
left: 0;
92-
}
93-
.sf-reset .close-quote {
94-
bottom: -0.5em;
95-
right: 50px;
96-
}
97-
.sf-reset .toggle {
98-
vertical-align: middle;
99-
}
20+
.sf-toggle { cursor: pointer; }
21+
.sf-toggle-content { -moz-transition: display .25s ease; -webkit-transition: display .25s ease; transition: display .25s ease; }
22+
.sf-toggle-content.sf-toggle-hidden { display: none; }
23+
.sf-toggle-content.sf-toggle-visible { display: block; }
24+
thead.sf-toggle-content.sf-toggle-visible, tbody.sf-toggle-content.sf-toggle-visible { display: table-row-group; }
25+
.sf-toggle-off .icon-close, .sf-toggle-on .icon-open { display: none; }
26+
.sf-toggle-off .icon-open, .sf-toggle-on .icon-close { display: block; }
27+
28+
.tab-navigation { margin: 0 0 1em 0; padding: 0; }
29+
.tab-navigation li { background: #FFF; border: 1px solid #DDD; color: #444; cursor: pointer; display: inline-block; font-size: 16px; margin: 0 0 0 -1px; padding: .5em .75em; z-index: 1; }
30+
.tab-navigation li:hover { background: #EEE; }
31+
.tab-navigation li.disabled { background: #F5F5F5; color: #999; }
32+
.tab-navigation li.active { background: #666; border-color: #666; color: #FAFAFA; z-index: 1100; }
33+
.tab-navigation li .badge { background-color: #F5F5F5; color: #777; display: inline-block; font-size: 14px; font-weight: bold; margin-left: 8px; min-width: 10px; padding: 1px 6px; text-align: center; }
34+
.tab-navigation li:hover .badge { background: #FAFAFA; color: #777; }
35+
.tab-navigation li.active .badge { background-color: #444; color: #FFF; }
36+
.tab-navigation li .badge.status-warning { background: #A46A1F; color: #FFF; }
37+
.tab-navigation li .badge.status-error { background: #B0413E; color: #FFF; }
38+
.tab-content > *:first-child { margin-top: 0; }
39+
40+
header { background-color: #222; color: rgba(255, 255, 255, 0.75); font-size: 13px; height: 33px; line-height: 33px; padding: 0; }
41+
header .container { display: flex; justify-content: space-between; }
42+
.logo { flex: 1; font-size: 13px; font-weight: normal; margin: 0; padding: 0; }
43+
.logo svg { height: 18px; width: 18px; opacity: .8; vertical-align: -5px; }
44+
45+
.help-link { margin-left: 15px; }
46+
.help-link a { color: inherit; }
47+
.help-link .icon svg { height: 15px; width: 15px; opacity: .7; vertical-align: -2px; }
48+
.help-link a:hover { color: #EEE; text-decoration: none; }
49+
.help-link a:hover svg { opacity: .9; }
50+
51+
.exception-summary { background: #B0413E; border-bottom: 2px solid rgba(0, 0, 0, 0.1); border-top: 1px solid rgba(0, 0, 0, .3); flex: 0 0 auto; margin-bottom: 15px; }
52+
.exception-metadata { background: rgba(0, 0, 0, 0.1); padding: 7px 0; }
53+
.exception-metadata .container { display: flex; flex-direction: row; justify-content: space-between; }
54+
.exception-metadata h2 { color: rgba(255, 255, 255, 0.8); font-size: 13px; font-weight: 400; margin: 0; }
55+
.exception-http small { font-size: 13px; opacity: .7; }
56+
.exception-hierarchy { flex: 1; }
57+
.exception-hierarchy .icon { margin: 0 3px; opacity: .7; }
58+
.exception-hierarchy .icon svg { height: 13px; width: 13px; vertical-align: -2px; }
59+
60+
.exception-message-wrapper { display: flex; align-items: flex-start; min-height: 70px; padding: 10px 0 8px; }
61+
.exception-message { flex-grow: 1; }
62+
.exception-message, .exception-message a { color: #FFF; font-size: 21px; font-weight: 400; margin: 0; }
63+
.exception-message.long { font-size: 18px; }
64+
.exception-message a { text-decoration: none; }
65+
.exception-message a:hover { text-decoration: underline; }
66+
67+
.exception-illustration { flex-basis: 111px; flex-shrink: 0; height: 66px; margin-left: 15px; opacity: .7; }
68+
69+
.trace + .trace { margin-top: 30px; }
70+
.trace-head { -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; }
71+
.trace-head .trace-class { color: #222; font-size: 18px; font-weight: bold; line-height: 1.3; margin: 0; position: relative; }
72+
.trace-head .trace-namespace { color: #999; display: block; font-size: 13px; }
73+
.trace-head .icon { position: absolute; right: 0; top: 0; }
74+
.trace-head .icon svg { height: 24px; width: 24px; }
75+
76+
.trace-message { font-size: 14px; font-weight: normal; margin: .5em 0 0; }
77+
78+
.trace-line { position: relative; padding-left: 36px; }
79+
.trace-line.sf-toggle:hover { background: #F5F5F5; }
80+
.trace-line a { color: #222; }
81+
.trace-line .icon { opacity: .4; position: absolute; left: 10px; top: 11px; }
82+
.trace-line .icon svg { height: 16px; width: 16px; }
83+
84+
.trace-file-path, .trace-file-path a { margin-top: 3px; color: #999; color: #795da3; color: #B0413E; color: #222; font-size: 13px; }
85+
.trace-class { color: #B0413E; }
86+
.trace-type { padding: 0 2px; }
87+
.trace-method { color: #B0413E; color: #222; font-weight: bold; color: #B0413E; }
88+
.trace-arguments { color: #222; color: #999; font-weight: normal; color: #795da3; color: #777; padding-left: 2px; }
89+
90+
.trace-code { background: #FFF; font-size: 12px; margin: 10px 0 2px; padding: 10px; }
91+
.trace-code ol { margin: 0; }
92+
.trace-code li { color: #969896; margin: 0; padding-left: 10px; }
93+
.trace-code li + li { margin-top: 10px; }
94+
.trace-code li.selected { background: #F8EEC7; padding: 3px 0 3px 10px; }
95+
.trace-code li code { color: #222; }
96+
97+
.trace-as-text .stacktrace { line-height: 1.8; margin: 0 0 15px; white-space: pre-wrap; }
98+
99+
@media (min-width: 575px) {
100+
.hidden-xs-down { display: initial; }
101+
.help-link { margin-left: 30px; }
102+
}

0 commit comments

Comments
 (0)