Skip to content

Commit 5c8d6b3

Browse files
authored
Merge pull request #205 from evilhonduco/visual-improvements
Some modernization of the UI
2 parents b1ca8fa + 984534a commit 5c8d6b3

File tree

15 files changed

+77
-52
lines changed

15 files changed

+77
-52
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
*.pyc
2+
*.swp
3+
*.swo
4+
.DS_Store
25
*.db
36
sample_project/repos/*
47
override

codespeed/static/css/main.css

Lines changed: 33 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
/* Global styles */
22
body {
3+
font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
34
min-width: 650px;
45
margin: 0;
56
padding: 0;
67
background-color: #596A74;
7-
background-image: url(../images/vgradient.png);
88
background-repeat: repeat-x;
99
font-size: 16px;
1010
margin-bottom: 0.8em;
@@ -27,12 +27,12 @@ div#title {
2727
margin-bottom: 0.8em;
2828
background-color: #F1F1F1;
2929
color: #000000;
30-
-moz-border-radius-bottomleft: 10px;
31-
-moz-border-radius-bottomright: 10px;
32-
-webkit-border-bottom-left-radius: 10px;
33-
-webkit-border-bottom-right-radius: 10px;
34-
border-bottom-left-radius: 10px;
35-
border-bottom-right-radius: 10px;
30+
-moz-border-radius-bottomleft: 4px;
31+
-moz-border-radius-bottomright: 4px;
32+
-webkit-border-bottom-left-radius: 4px;
33+
-webkit-border-bottom-right-radius: 4px;
34+
border-bottom-left-radius: 4px;
35+
border-bottom-right-radius: 4px;
3636
}
3737
div#title img { float: left; padding: 0.2em; margin: 0; }
3838
div#title h2 { float: left; margin: 0 0 0 0.4em; font-style: italic; margin-top: 0.55em; }
@@ -47,30 +47,28 @@ ul.inline li {
4747

4848
ul#links {
4949
position: relative;
50-
margin-top: 0.6em;
50+
margin: 0.9em;
5151
float: right;
52-
padding: 0.7em;
53-
padding-bottom: 0.5em;
5452
font-size: large;
5553
}
5654
ul#links li { margin-left: 0.8em; }
57-
ul#links li a:link, ul#links li a:visited { color: #000000; }
55+
ul#links li a:link, ul#links li a:visited { color: #000000; text-decoration: underline; }
5856
ul#links li a:hover { text-decoration: underline; }
5957

6058
div#wrapper { margin: 0; }
6159

6260
div#nav ul {
6361
padding-left: 15.3em;
64-
font-family: Verdana, sans-serif;
62+
font-size: 17px;
6563
}
6664
div#nav ul li {
6765
background-color: #DADADA;
68-
-moz-border-radius-topleft: 16px;
69-
-moz-border-radius-topright: 16px;
70-
-webkit-border-top-left-radius: 16px;
71-
-webkit-border-top-right-radius: 16px;
72-
border-top-left-radius: 16px;
73-
border-top-right-radius: 16px;
66+
-moz-border-radius-topleft: 4px;
67+
-moz-border-radius-topright: 4px;
68+
-webkit-border-top-left-radius: 4px;
69+
-webkit-border-top-right-radius: 4px;
70+
border-top-left-radius: 4px;
71+
border-top-right-radius: 4px;
7472
}
7573
div#nav ul li a {
7674
display: block;
@@ -90,9 +88,9 @@ div#nav ul li:hover a { color: #2D2F32; }
9088
div#workarea {
9189
background-color: #F1F1F1;
9290
padding: 0.8em;
93-
-moz-border-radius: 10px;
94-
-webkit-border-radius: 10px;
95-
border-radius: 10px;
91+
-moz-border-radius: 4px;
92+
-webkit-border-radius: 4px;
93+
border-radius: 4px;
9694
}
9795

9896
div#presentation {
@@ -109,7 +107,7 @@ div#presentation div.menubox {
109107
background-image: url(../images/vgradient.png);
110108
background-repeat: repeat-x;
111109
background-color: #FFFFFF;
112-
color: white;
110+
color: black;
113111
width: 220px;
114112
cursor: pointer;
115113
text-align: center;
@@ -199,7 +197,7 @@ div.about_content { text-align: left; }
199197
}
200198
.boxhead h2 {
201199
margin: 0;
202-
padding: 0.5em 0.8em 0.3em;
200+
padding: 0.5em 0.8em 0.5em;
203201
color: white;
204202
font-weight: bold;
205203
font-size: 1.1em;
@@ -289,6 +287,9 @@ table.reports {
289287
margin-bottom: 2em
290288
}
291289

290+
a.feed {
291+
text-decoration: underline;
292+
}
292293
/*table.reports {
293294
border-width: 2px;
294295
}*/
@@ -468,8 +469,11 @@ p.note, p.warning {
468469
border-radius: 10px;
469470
}
470471
p.warning {
471-
padding-left: 42px;
472-
background-image: url(../images/warning.png);
472+
margin-left: 10px;
473+
}
474+
p.warning::before{
475+
content: '⚠ ';
476+
color: #f53535;
473477
}
474478
p.note {
475479
margin-top: 20px;
@@ -482,15 +486,17 @@ p.note {
482486
background-image: url(../images/note.png);
483487
}
484488

485-
div.footer {
489+
div.footer{
490+
color: white;
486491
font-size: small;
487492
margin-top: 0.6em;
488493
margin-left: auto; margin-right: auto;
489494
text-align: center;
490495
}
491496

492497
div.footer a {
493-
color: black;
498+
color: inherit;
499+
font-weight: bold;
494500
text-decoration: underline;
495501
}
496502

-673 Bytes
Binary file not shown.

codespeed/static/images/logo.png

8.25 KB
Loading

codespeed/static/images/rss.png

-689 Bytes
Binary file not shown.
-340 Bytes
Binary file not shown.
-1.54 KB
Binary file not shown.

codespeed/static/js/changes.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ function refreshContent() {
7272
var h = $("#content").height();//get height for loading text
7373
$("#contentwrap").fadeOut("fast", function() {
7474
$(this).show();
75-
$(this).html(getLoadText("Loading...", h, true));
75+
$(this).html(getLoadText("Loading...", h));
7676
$(this).load("table/", $.param(getConfiguration()), function() { updateTable(); });
7777
});
7878
}

codespeed/static/js/codespeed.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ function readCheckbox(el) {
99
return config;
1010
}
1111

12-
function getLoadText(text, h, showloader) {
12+
function getLoadText(text, h) {
1313
var loadtext = '<div style="text-align:center;">';
1414
var pstyle = "";
1515
if (h > 0) {
@@ -19,9 +19,6 @@ function getLoadText(text, h, showloader) {
1919
pstyle = ' style="line-height:' + h + 'px;"';
2020
}
2121
loadtext += '<p' + pstyle + '>'+ text;
22-
if (showloader) {
23-
loadtext += ' <img src="' + window.STATIC_URL +'images/ajax-loader.gif" align="bottom">';
24-
}
2522
loadtext += '</p></div>';
2623
return loadtext;
2724
}

codespeed/static/js/comparison.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -337,6 +337,9 @@ function renderComparisonPlot(plotid, benchmarks, exes, enviros, baseline, chart
337337

338338
plotoptions.legend = {show: true, location: 'ne'};
339339
plotoptions.series = series;
340+
plotoptions.grid = {borderColor: '#9DADC6', shadow: false, drawBorder: true};
341+
plotoptions.seriesDefaults.shadow = false;
342+
plotoptions.axesDefaults.tickOptions = {fontFamily:'Arial'};
340343

341344
// determine conditions for rendering the legend outside the plot area
342345
var offplot = false;
@@ -417,7 +420,7 @@ function init(defaults) {
417420

418421
// Get comparison data
419422
var h = $("#content").height();//get height for loading text
420-
$("#cplot").html(getLoadText("Loading...", h, true));
423+
$("#cplot").html(getLoadText("Loading...", h));
421424
$.getJSON("json/", savedata);
422425

423426
$("#permalink").click(function() {

0 commit comments

Comments
 (0)