Skip to content

Commit ee710f5

Browse files
author
Chris K
committed
More CSS clean up.
1 parent 1ab04a3 commit ee710f5

File tree

7 files changed

+29
-24
lines changed

7 files changed

+29
-24
lines changed

src/build-application/build_ecmascript_debugger_6_0.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,9 @@ window.app.builders.EcmascriptDebugger["6.0"] = function(service)
185185
if (service_interface.satisfies_version(6, 11))
186186
{
187187
cls.EventListenersView.prototype = ViewBase;
188-
new cls.EventListenersView("ev-listeners", "Listeners", "ev-listeners scroll mono");
188+
new cls.EventListenersView("ev-listeners",
189+
ui_strings.M_VIEW_LABEL_EVENT_LISTENERS,
190+
"ev-listeners scroll");
189191
}
190192

191193
/* adjust the base class */

src/ecma-debugger/dominspection/templates.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
const PSEUDO_ELEMENT_FIRST_LINE = 4;
3636
const EVENT_LISTENER_LIST = 15;
3737

38-
var EV_LISTENER_MARKUP = "<span class=\"node-with-ev-listener\" "+
38+
var EV_LISTENER_MARKUP = "<span class=\"ev-listener\" "+
3939
"data-tooltip=\"event-listener\" " +
4040
"></span>"
4141

src/ecma-debugger/eventlisteners/evlisteners.css

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,29 @@
88
margin: 0 3px;
99
}
1010

11-
.ev-listener
11+
.ev-listener-tooltip
1212
{
1313
margin: 0;
1414
}
1515

16+
.ev-listener
17+
{
18+
display: inline-block;
19+
height: 12px;
20+
line-height: 12px;
21+
vertical-align: middle;
22+
margin-left: 3px;
23+
padding: 0 2px;
24+
background-color: hsl(0, 0% , 70%);
25+
color: #fff;
26+
border-radius: 2px;
27+
}
28+
29+
.ev-listener::after
30+
{
31+
content: "ev";
32+
}
33+
1634
.ev-type
1735
{
1836
font-weight: bold;

src/ecma-debugger/eventlisteners/evlistenertemplates.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959
{
6060
var tmpl_obj_l = window.templates.ev_window_listeners(ev_type);
6161
var tmpl_node_l = window.templates.dom_search(ev_type);
62-
return["div", tmpl_obj_l, [tmpl_node_l], "class", "ev-listener-list"];
62+
return["div", tmpl_obj_l, [tmpl_node_l], "class", "ev-listener-list mono"];
6363
};
6464

6565
this.ev_window_listeners = function(ev_type)
@@ -75,7 +75,7 @@
7575
ret =
7676
["div",
7777
"window",
78-
["span", "class", "node-with-ev-listener",
78+
["span", "class", "ev-listener",
7979
"data-tooltip", "event-listener"],
8080
"data-model-id", String(ev_type.id),
8181
"data-window-id", String(win_listeners.win_id),
@@ -92,7 +92,7 @@
9292
this.ev_listeners_tooltip = function(listener_list, rt_id)
9393
{
9494
return ["dl", listener_list.map(this._ev_listener_tooltip.bind(this, rt_id)),
95-
"class", "ev-listener mono"];
95+
"class", "ev-listener-tooltip"];
9696
};
9797

9898
this._ev_listener_tooltip = function(rt_id, listener)
-2.95 KB
Binary file not shown.

src/ui-strings/ui_strings-en.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1508,3 +1508,6 @@ ui_strings.S_LISTENER_CAPTURING_PHASE = "capturing phase";
15081508

15091509
/* DESC: Info in an event listener tooltip that the according listener listens in the bubbling phase. */
15101510
ui_strings.S_LISTENER_BUBBLING_PHASE = "bubbling phase";
1511+
1512+
/* DESC: View with all event listeners. */
1513+
ui_strings.M_VIEW_LABEL_EVENT_LISTENERS = "Listeners";

src/ui-style/debugger_style.css

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -691,24 +691,6 @@ parent-offset
691691
outline-offset: -2px; /* Hides the normal (dotted) outline when pressing Enter on the expand/collapse button */
692692
}
693693

694-
.node-with-ev-listener
695-
{
696-
display: inline-block;
697-
height: 12px;
698-
line-height: 12px;
699-
vertical-align: middle;
700-
margin-left: 3px;
701-
padding: 0 2px;
702-
background-color: hsl(0, 0% , 70%);
703-
color: #fff;
704-
border-radius: 2px;
705-
}
706-
707-
.node-with-ev-listener::after
708-
{
709-
content: "ev";
710-
}
711-
712694
.css-layout > div > h2:first-child
713695
{
714696
border-width: 0 0 1px;

0 commit comments

Comments
 (0)