Skip to content

Commit 2ce2f36

Browse files
committed
Some styling changes.
1 parent 947c10a commit 2ce2f36

File tree

2 files changed

+13
-21
lines changed

2 files changed

+13
-21
lines changed

src/profiler/profiler_style.css

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
left: 0;
55
top: 60px;
66
width: 160px;
7-
border-top: 1px solid #e6e6e6;
8-
border-bottom: 1px solid #e6e6e6;
7+
border-top: 1px solid rgba(0, 0, 0, 0.055);
8+
border-bottom: 1px solid rgba(0, 0, 0, 0.055);
99
overflow: hidden;
1010
}
1111

@@ -16,8 +16,8 @@
1616
right: 0;
1717
top: 15px;
1818
height: 26px; /* 8 types * 3px height + 2 extra for padding */
19-
border-top: 1px solid #e6e6e6;
20-
border-bottom: 1px solid #e6e6e6;
19+
border-top: 1px solid rgba(0, 0, 0, 0.055);
20+
border-bottom: 1px solid rgba(0, 0, 0, 0.055);
2121
overflow-x: hidden;
2222
}
2323

@@ -36,8 +36,8 @@
3636
left: 160px;
3737
right: 0;
3838
top: 60px;
39-
background-image: -o-linear-gradient(to bottom, transparent 50%, #f7f7f7 50%);
40-
background-image: linear-gradient(to bottom, #f7f7f7 50%, transparent 50%);
39+
background-image: -o-linear-gradient(to bottom, rgba(0, 0, 0, 0.03) 50%, transparent 50%);
40+
background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.03) 50%, transparent 50%);
4141
background-position: 0 1px;
4242
background-size: 1px 36px;
4343
height: 145px;
@@ -49,8 +49,8 @@
4949
left: 160px;
5050
right: 0;
5151
top: 60px;
52-
border-top: 1px solid #e6e6e6;
53-
border-bottom: 1px solid #e6e6e6;
52+
border-top: 1px solid rgba(0, 0, 0, 0.055);
53+
border-bottom: 1px solid rgba(0, 0, 0, 0.055);
5454
overflow-x: hidden;
5555
height: 144px;
5656
}
@@ -76,7 +76,7 @@
7676
height: 20px;
7777
line-height: 20px;
7878
width: 100%;
79-
border-top: 1px solid #e6e6e6;
79+
border-top: 1px solid rgba(0, 0, 0, 0.055);
8080
text-align: center;
8181
}
8282

@@ -115,9 +115,9 @@
115115
position: relative;
116116
}
117117

118-
.profiler-timeline-row.odd
118+
.profiler-timeline-row.even
119119
{
120-
background-color: #f7f7f7;
120+
background-color: rgba(0, 0, 0, 0.03);
121121
}
122122

123123
.profiler-legend-label
@@ -134,7 +134,6 @@
134134
{
135135
position: absolute;
136136
right: 2px;
137-
text-shadow: 1px 1px #fff;
138137
}
139138

140139
.profiler-legend-time-bar
@@ -156,7 +155,7 @@
156155
position: absolute;
157156
height: 100%;
158157
width: 1px;
159-
background: #e6e6e6;
158+
background: rgba(0, 0, 0, 0.055);
160159
top: 0;
161160
}
162161

src/profiler/profiler_templates.js

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ var ProfilerTemplates = function()
138138
"class", "profiler-legend-time-bar",
139139
"style", "width: " + percentage + "%"
140140
],
141-
"class", "profiler-legend-row profiler-timeline-row" + (index % 2 ? " odd" : ""),
141+
"class", "profiler-legend-row profiler-timeline-row" + (index % 2 ? "" : " even"),
142142
"data-event-type", String(event.type),
143143
"handler", "profiler-event"
144144
]
@@ -188,13 +188,6 @@ var ProfilerTemplates = function()
188188
return template;
189189
};
190190

191-
this._background_bar = function(order, index)
192-
{
193-
return ["div",
194-
"class", "profiler-timeline-row" + (index % 2 ? " odd" : "")
195-
];
196-
};
197-
198191
this.event_list_full = function(event_list, interval, container_width)
199192
{
200193
var template = [];

0 commit comments

Comments
 (0)