-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathImpactStory.css
100 lines (83 loc) · 2.1 KB
/
ImpactStory.css
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
/* Layout setup */
.impact-story-report ul.metrics {
list-style: none;
padding: 0;
}
.impact-story-report .metrics li {
clear: both;
}
/* General text formatting */
.impact-story-report .metrics li .meta .value-and-name,
.impact-story-report .metrics li .line .metric-perc-range .endpoint {
color: #999;
font-size: 11px;
}
.impact-story-report .metrics li .line .metric-perc-range .endpoint {
font-size: 10px;
}
.impact-story-report .metrics li .value {
font-weight: bold;
}
.impact-story-report .metrics li .meta a.value-and-name:hover {
color: #ff4e00;
}
/* Hide lines w/ no percentile data */
.impact-story-report .metrics li .line.percentile-fail {
display: none;
}
/* data name + img */
.impact-story-report .metrics li .meta.values-simple img,
.impact-story-report .metrics li .meta.values-simple .value-and-name {
float: right;
margin-right: 10px;
}
.impact-story-report .metrics li .meta.values-simple .value-and-name {
margin-right: 5px;
}
/* data + bar graph alignemnt */
.impact-story-report .metrics li .meta.values-simple,
.impact-story-report .metrics li .meta.values-simple + .line {
float: left;
max-width: 200px;
width: 33%;
}
.impact-story-report .metrics li .meta.values-simple + .line {
border-bottom: 1px solid #bbb;
position: relative;
top: 5px;
width: 67%;
}
/* bar w/ percentile markers */
.impact-story-report .metrics li .line .metric-perc-range {
position: relative;
}
.impact-story-report .metrics li .line .metric-perc-range .bar {
background: #377eb8;
display: block;
height: 8px;
width: 100%;
}
.impact-story-report .metrics li .line .metric-perc-range .endpoint {
position: absolute;
top: 0.5em;
}
.impact-story-report .metrics li .line .metric-perc-range .endpoint.start {
left: 0;
}
.impact-story-report .metrics li .line .metric-perc-range .endpoint.end {
right: 0;
}
/* Clear floated elements */
/* http://www.yuiblog.com/blog/2010/09/27/clearfix-reloaded-overflowhidden-demystified */
.clearfix:before,
.clearfix:after {
content: '\0020';
display: block;
overflow: hidden;
visibility: hidden;
width: 0;
height: 0;
}
.clearfix:after {
clear: both;
}