This repository has been archived by the owner on Oct 25, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
styles.css
76 lines (69 loc) · 1.53 KB
/
styles.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
/* Graph container */
.intvg {
position: relative;
width: 100%;
height: 20px;
background-color: #e1e0eb;
}
/* Single dates */
/* TODO Prevent the border from overflowing the graph container. */
.intvg .bar-date {
position: absolute;
height: 20px;
box-sizing: content-box;
border-width: 0 2px 0 2px;
border-style: solid;
border-color: black;
width: 0;
}
/* Intervals */
.intvg .bar-intv {
position: absolute;
height: 20px;
}
.bar-intv:hover {
border: thin solid black;
box-sizing: border-box;
}
/* Colors */
.color_0 {
background-color: #ff5450;
}
.color_1 {
background-color: #ff9431;
}
.color_2 {
background-color: #d7e174;
}
.color_3 {
background-color: #5cb781;
}
.color_4 {
background-color: #557ebf;
}
/* Stripes */
.striped {
background-image: repeating-linear-gradient(-45deg, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5) 5px, rgba(255, 255, 255, 0) 0px, rgba(255, 255, 255, 0) 10px);
}
.striped_wide {
background-image: repeating-linear-gradient(165deg, #ccc, #ccc 30px, #dbdbdb 30px, #dbdbdb 60px);
}
/* Popup */
/* Use bootstrap tooltips or equivalent for better results. */
.bar:hover:after {
content: attr(data-title);
padding: 4px 8px;
color: #333;
font-family: sans-serif;
font-size: small;
background: whitesmoke;
position: absolute;
left: 0;
top: 23px;
white-space: nowrap;
z-index: 20;
border-radius: 5px;
-moz-box-shadow: 0 0 4px #222;
-webkit-box-shadow: 0 0 4px #222;
box-shadow: 0 0 4px #222;
}