1
0
Fork 0
empact/app/styles/charts.css

152 lines
3.4 KiB
CSS
Raw Normal View History

2015-03-15 10:40:07 +00:00
@media (min-width: 640px) {
.barchart-container, .sachart-container {
width: 100%;
}
}
@media (min-width: 1100px) {
.barchart-container, .sachart-container {
width: 50%;
}
}
2015-03-09 13:31:51 +00:00
.barchart-container {
2015-03-10 07:51:56 +00:00
box-sizing: border-box;
float: left;
padding: 0 20px 20px 0;
2015-03-09 13:31:51 +00:00
}
2015-03-08 10:02:14 +00:00
.barchart g {
cursor: pointer;
}
2015-03-10 16:29:54 +00:00
.barchart g:hover .bar {
opacity: .8;
}
2015-03-08 10:02:14 +00:00
.barchart .label {
font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
2015-03-08 10:02:14 +00:00
font-size: 16px;
}
.barchart .label_underlay {
fill: rgba(255, 255, 255, .7);
2015-03-08 10:02:14 +00:00
}
2015-03-09 13:31:51 +00:00
2015-03-11 12:10:11 +00:00
.sachart-container {
box-sizing: border-box;
float: left;
padding: 0 20px 20px 0;
}
.sachart-container .legend {
display: block;
margin: 0;
padding: 0;
}
.color-dot {
display: block;
float: left;
content: '';
width: 16px;
height: 16px;
margin: 1px 5px 0 0;
border-radius: 8px;
}
.sachart-container .legend li {
display: inline-block;
margin: 10px 15px 0 0;
}
2015-03-16 08:36:15 +00:00
.selector {
2015-03-09 13:31:51 +00:00
width: 100%;
2015-03-16 08:36:15 +00:00
height: 22px;
font-size: 16px;
line-height: 21px;
margin-bottom: 8px;
2015-03-09 13:31:51 +00:00
}
2015-03-16 08:36:15 +00:00
.selector .title {
width: auto;
2015-03-09 13:31:51 +00:00
float: left;
2015-03-16 08:36:15 +00:00
font-weight: 400;
margin-right: 8px;
2015-03-09 13:31:51 +00:00
}
2015-03-16 08:36:15 +00:00
.selector .items {
display: block;
float: left;
2015-03-10 16:29:54 +00:00
margin: 0;
padding: 0;
2015-03-09 13:31:51 +00:00
}
2015-03-16 08:36:15 +00:00
.selector li {
2015-03-09 13:31:51 +00:00
display: inline-block;
font-weight: 300;
color: #aaa;
cursor: pointer;
2015-03-16 08:36:15 +00:00
margin-right: 8px;
2015-03-09 13:31:51 +00:00
}
2015-03-16 08:36:15 +00:00
.selector li.active {
2015-03-09 13:31:51 +00:00
font-weight: 400;
color: #222;
cursor: default;
2015-03-16 08:36:15 +00:00
border-bottom: #222 1px solid;
2015-03-09 13:31:51 +00:00
}
2015-03-14 10:13:28 +00:00
.whatsgoingon {
color: #444;
margin-bottom: 20px;
line-height: 24px;
}
.whatsgoingon em {
display: inline-block;
line-height: 16px;
color: #000;
font-style: normal;
margin: 3px 0 0;
2015-03-14 19:00:31 +00:00
padding: 3px 6px;
2015-03-16 10:46:18 +00:00
background-color: #f0f0f0;
2015-03-16 08:36:15 +00:00
border-radius: 2px;
2015-03-14 10:13:28 +00:00
}
2015-03-16 11:20:32 +00:00
.week-selector em {
2015-03-16 10:46:18 +00:00
background-color: #d0f0f0;
}
2015-03-16 11:20:32 +00:00
.week-selector em:before {
2015-03-16 10:46:18 +00:00
content: '';
display: inline-block;
margin: 0 3px -1px 0;
width: 14px;
height: 14px;
background-size: 14px 14px;
/* Source: https://github.com/github/octicons/blob/master/svg/calendar.svg */
background-image: url("data:image/svg+xml;base64,PHN2ZyBoZWlnaHQ9IjEwMjQiIHdpZHRoPSIxMDI0IiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPgogIDxwYXRoIGQ9Ik03MDQgNTEyaC02NHYxMjhoNjRWNTEyek01NzYgNTEyaC02NHYxMjhoNjRWNTEyek03MDQgMzIwaC02NHYxMjhoNjRWMzIwek04MzIgNTEyaC02NHYxMjhoNjRWNTEyek01NzYgNzA0aC02NHYxMjhoNjRWNzA0ek03NjggMGgtNjR2MTI4aDY0VjB6TTI1NiAwaC02NHYxMjhoNjRWMHpNODMyIDMyMGgtNjR2MTI4aDY0VjMyMHpNNTc2IDMyMGgtNjR2MTI4aDY0VjMyMHpNMzIwIDcwNGgtNjR2MTI4aDY0VjcwNHpNMTkyIDUxMmgtNjR2MTI4aDY0VjUxMnpNMzIwIDUxMmgtNjR2MTI4aDY0VjUxMnpNODMyIDY0djEyOEg2NDBWNjRIMzIwdjEyOEgxMjhWNjRIMHY4OTZoOTYwVjY0SDgzMnpNODk2IDg5Nkg2NFYyNTZoODMyVjg5NnpNMTkyIDcwNGgtNjR2MTI4aDY0VjcwNHpNNDQ4IDMyMGgtNjR2MTI4aDY0VjMyMHpNNDQ4IDcwNGgtNjR2MTI4aDY0VjcwNHpNMzIwIDMyMGgtNjR2MTI4aDY0VjMyMHpNNDQ4IDUxMmgtNjR2MTI4aDY0VjUxMnpNNzA0IDcwNGgtNjR2MTI4aDY0VjcwNHoiIC8+Cjwvc3ZnPg==");
}
2015-03-16 11:20:32 +00:00
.week-selector {
display: inline-block;
}
.week-selector .selector {
position: relative;
display: inline-block;
padding: 0 6px;
width: 110px;
}
.week-selector .selector em {
width: 100%;
}
.week-selector .selector select {
position: absolute;
top: 5px;
left: 5%;
width: 90%;
margin: 0;
display: none;
}
.week-selector .selector:hover em {
visibility: hidden;
}
.week-selector .selector:hover select {
display: inline;
}