Merge "OpenStackify the scoreboard style."

This commit is contained in:
Jenkins 2015-06-15 18:43:14 +00:00 committed by Gerrit Code Review
commit 780e54568d
9 changed files with 44 additions and 9259 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

File diff suppressed because it is too large Load Diff

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.6 KiB

View File

@ -1,21 +1,11 @@
@font-face {
font-family: 'Myriad Pro Regular';
font-style: normal;
font-weight: normal;
src: local('Myriad Pro Regular'), url('/static/MYRIADPRO-REGULAR.woff') format('woff');
}
body {
font-family: 'Myriad Pro Regular';
background-image: url("site_bg.png");
background-repeat: repeat-x;
background-attachment: fixed;
font-family: helvetica, arial, sans-serif;
background: white url("site_bg.jpg") no-repeat scroll 0px 0px;
color: #535353;
}
.pretty_table {
box-shadow: 5px 5px 2px #888888;
-moz-border-radius-bottomleft:5px;
-webkit-border-bottom-left-radius:5px;
border-bottom-left-radius:5px;
@ -68,21 +58,21 @@ body {
vertical-align: middle;
text-align: center;
padding: 5px;
border: solid 1px black;
border: solid 1px grey;
color: black;
}
.pretty_table_header {
background-color:#5C5C5C;
text-align:center;
color:#ffffff;
border: solid 1px black;
background-color:#F1F1F1;
text-align: center;
color: black;
border: solid 1px grey;
padding: 5px;
/* white-space: nowrap; */
}
.pretty_table_header:hover {
font-weight: bold;
cursor:pointer;
cursor: pointer;
text-decoration: underline;
}
.success {
@ -90,9 +80,9 @@ body {
}
.success:hover {
font-weight: bold;
cursor:pointer;
background-color: #33CC00;
cursor: pointer;
border: solid 1px #3C763D;
text-decoration: underline;
}
.fail {
@ -100,44 +90,36 @@ body {
}
.fail:hover {
font-weight: bold;
cursor:pointer;
background-color: #FF0000;
text-decoration: underline;
}
.unknown {
background-color: #A0A0A0;
background-color: #FF0000;
}
.unknown:hover {
font-weight: bold;
cursor:pointer;
background-color: #808080;
text-decoration: underline;
}
.no_result {
background-color: #E0E0E0;
background-color: white;
opacity: 0.75;
}
.scoreboard_container {
margin-top: 10px;
margin-left: auto;
margin-right: auto;
margin-left: 10px;
width: 90%;
}
.query_box_container {
margin-top: 15px;
margin-left: auto;
margin-right: auto;
background: #5C5C5C;
margin-left: 10px;
background: rgba(255, 255, 255, 0);
width: 90%;
border: solid 1px black;
border-radius: 5px;
-webkit-border-radius: 5px;
color: #ffffff;
box-shadow: 5px 5px 2px #888888;
color: #535353;
}
.query_box {
@ -146,23 +128,19 @@ body {
}
.query_box_title {
font-size: 250%;
font-weight: bold;
display: inline-block;
}
.query_box form {
margin-left: 25px;
font-size: 150%;
display: inline-block;
color: #264D69;
margin: 2px;s
}
.query_box input {
border-radius:5px;
-webkit-border-radius:5px;
margin-left: 5px;
margin-right: 5px;
border: solid 1px black;
padding: 5px
margin-top: 2px;
margin-bottom: 2px;
margin-left: 10px;
margin-right: 10px;
border: solid 1px #bbb;
/* padding: 5px; */
}
.overlay_opaque {
@ -178,7 +156,7 @@ body {
.overlay_title {
width: 100%;
font-size: 250%;
font-size: 125%;
font-weight: bold;
text-align: center;
position: absolute;
@ -196,3 +174,6 @@ body {
z-index: 100000; /* more than the opaque one */
}
#logo {
margin-left: 10px;
}

View File

@ -264,6 +264,10 @@ var Scoreboard = (function () {
return input;
}
var add_break_to_form = function (form) {
$('<br/>').appendTo(form);
}
var get_param_by_name = function (name) {
name = name.replace(/[\[]/, "\\[").replace(/[\]]/, "\\]");
var regex = new RegExp("[\\?&]" + name + "=([^&#]*)"),
@ -295,6 +299,7 @@ var Scoreboard = (function () {
add_input_to_form(form, 'text', 'Project Name', 'project', current_project);
add_input_to_form(form, 'text', 'CI Account Username', 'user', current_user);
add_break_to_form(form);
add_input_to_form(form, 'text', 'Timeframe (hours)', 'timeframe', current_timeframe);
add_input_to_form(form, 'date', 'Start Date', 'start', start_date);
add_input_to_form(form, 'date', 'End Date', 'end', end_date);

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 137 KiB

View File

@ -1,11 +1,15 @@
<html>
<head>
<link rel='icon' type='image/png' href='/static/favicon.ico'>
<script type='text/javascript' src='/static/jquery-2.1.3.min.js'></script>
<script type='text/javascript' src='/static/scoreboard.js'></script>
<script type='text/javascript' src='http://fgnass.github.io/spin.js/spin.js'></script>
<link rel='stylesheet' type='text/css' href='/static/scoreboard.css'>
</head>
<body>
<div id="logo">
<img src="/static/open-stack-cloud-computing-logo-2.png" />
</div>
<div id='query-box'></div>
<div id='scoreboard'></div>
<script type='text/javascript'>