Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix Bug 915317 UI, display total volume of gc crashes over time
- Loading branch information
Showing
16 changed files
with
475 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 2 additions & 26 deletions
28
webapp-django/crashstats/crashstats/static/crashstats/css/base.less
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,4 @@ | ||
@import "reset.less"; | ||
@import "variables.less"; | ||
@import "mixins.less"; | ||
|
||
/*http://developer.yahoo.com/blogs/ydn/posts/2012/10/clip-your-hidden-content-for-better-accessibility/*/ | ||
.visually-hidden { | ||
position: absolute; | ||
clip: rect(1px 1px 1px 1px); /* IE6, IE7 */ | ||
clip: rect(1px, 1px, 1px, 1px); | ||
padding:0; | ||
border:0; | ||
height: 1px; | ||
width: 1px; | ||
overflow: hidden; | ||
} | ||
.notification { | ||
background-color: #fff; | ||
margin: 1rem; | ||
padding: .5rem; | ||
.rounded-corners(6px); | ||
} | ||
.button() { | ||
background-color: rgb(46, 93, 116); | ||
color: #fff; | ||
padding: .5em .5em; | ||
text-decoration: none; | ||
white-space: nowrap; | ||
.rounded-corners(.5em); | ||
} | ||
@import "forms.less"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 9 additions & 0 deletions
9
webapp-django/crashstats/crashstats/static/crashstats/css/forms.less
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
input[type="submit"], | ||
input[type="button"], | ||
.button { | ||
.button(); | ||
} | ||
.field_elem_container { | ||
display: block; | ||
margin: 1.2rem 1.2rem 1.2rem 0; | ||
} |
65 changes: 65 additions & 0 deletions
65
webapp-django/crashstats/crashstats/static/crashstats/css/gccrashes.less
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
@import "mixins.less"; | ||
|
||
main { | ||
position: relative; | ||
margin: 1rem 2rem; | ||
/* current footer stick solution in screen.css */ | ||
min-height: 44rem; | ||
} | ||
header { | ||
margin: 30px 20px 0; | ||
} | ||
|
||
.panel { | ||
color: #303030; | ||
margin: 0 20px; | ||
.rounded-corners(8px); | ||
.shadow(0, 1px, 5px, -1px, #888); | ||
label { | ||
display: inline-block; | ||
width: 50px; | ||
font-weight: bold; | ||
} | ||
.title { | ||
background-color: #f0f0f0; | ||
margin: 0; | ||
padding: 0 6px 0 10px; | ||
border: 1px solid #c0c0c0; | ||
font-size: 12px; | ||
line-height: 32px; | ||
width: 100%; | ||
.rounded-corners(8px, 8px, 0, 0); | ||
} | ||
.body { | ||
background-color: #fff; | ||
padding: 8px; | ||
border: 1px solid #c0c0c0; | ||
border-top: none; | ||
width: 100%; | ||
min-height: 4em; | ||
overflow: auto; | ||
.rounded-corners(0, 0, 8px, 8px); | ||
input[type="submit"] { | ||
float: right; | ||
} | ||
} | ||
.error, | ||
.info { | ||
color: #333; | ||
padding: .5em 1em .5em 1em; | ||
border: 1px solid #333; | ||
width: 98%; | ||
.rounded-corners(0); | ||
} | ||
} | ||
.report-criteria { | ||
display: inline-block; | ||
width: 30%; | ||
} | ||
.report-graph { | ||
display: inline-block; | ||
position: relative; | ||
margin: 0 0 0 2rem; | ||
width: 63%; | ||
vertical-align: top; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
96 changes: 96 additions & 0 deletions
96
webapp-django/crashstats/crashstats/static/crashstats/css/reset.less
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,96 @@ | ||
html { | ||
background: white; | ||
color: black; | ||
} | ||
body, | ||
div, | ||
dl, | ||
dt, | ||
dd, | ||
ul, | ||
ol, | ||
li, | ||
h1, | ||
h2, | ||
h3, | ||
h4, | ||
h5, | ||
h6, | ||
pre, | ||
code, | ||
form, | ||
fieldset, | ||
legend, | ||
input, | ||
textarea, | ||
p, | ||
blockquote, | ||
th, | ||
td, | ||
figure { | ||
margin: 0; | ||
padding: 0; | ||
} | ||
table { | ||
border-collapse: collapse; | ||
border-spacing: 0; | ||
} | ||
fieldset, | ||
img { | ||
border: 0; | ||
} | ||
address, | ||
caption, | ||
cite, | ||
code, | ||
dfn, | ||
em, | ||
strong, | ||
th, | ||
var { | ||
font-style: normal; | ||
font-weight: normal; | ||
} | ||
li { | ||
list-style: none; | ||
} | ||
caption, | ||
th { | ||
text-align: left; | ||
} | ||
h1, | ||
h2, | ||
h3, | ||
h4, | ||
h5, | ||
h6 { | ||
font-size: 100%; | ||
font-weight: normal; | ||
} | ||
q:before, | ||
q:after { | ||
content:''; | ||
} | ||
abbr, | ||
acronym { | ||
border: 0; | ||
font-variant: normal; | ||
} | ||
sup { | ||
vertical-align: text-top; | ||
} | ||
sub { | ||
vertical-align: text-bottom; | ||
} | ||
input, | ||
textarea, | ||
select { | ||
font-family: inherit; | ||
font-size: inherit; | ||
font-weight: inherit; | ||
font-size: 100%; | ||
} | ||
legend { | ||
color: black; | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
webapp-django/crashstats/crashstats/static/crashstats/css/variables.less
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 23 additions & 0 deletions
23
webapp-django/crashstats/crashstats/static/crashstats/js/socorro/gccrashes.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
/*global socorro:false, $:false */ | ||
|
||
$(function() { | ||
'use strict'; | ||
var supportedProducts = ['Firefox']; | ||
var selectedProduct = $('#product'); | ||
|
||
selectedProduct.on('change', function() { | ||
var product = $(this).val(); | ||
|
||
if ($.inArray(product, supportedProducts) === -1) { | ||
var response = { | ||
status: 'error', | ||
message: 'Report currently only supports ' + supportedProducts.toString() | ||
}; | ||
socorro.ui.setUserMsg('#gccrashes', response); | ||
} else { | ||
// Ensure there are no user message that linger when | ||
// a supported product is selected. | ||
socorro.ui.removeUserMsg('#gccrashes'); | ||
} | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.