traffic chart bg position fix

This commit is contained in:
nixa 2016-05-19 13:25:59 +03:00
parent 69acf25d43
commit be05565bdd

View file

@ -6,23 +6,21 @@
} }
.ng2, .blur { .ng2, .blur {
.channels-block { .traffic-chart canvas {
.traffic-chart canvas{ border: 15px solid rgba(0, 0, 0, 0.2);
border: 15px solid rgba(0,0,0,0.2);
//box-shadow: 0 0 5px 0 rgb(0, 0, 0) inset; //box-shadow: 0 0 5px 0 rgb(0, 0, 0) inset;
border-radius: 150px; border-radius: 150px;
} }
.chart-bg{ .chart-bg {
position: absolute; position: absolute;
width: 180px; width: 180px;
height: 180px; height: 180px;
left: 60px; left: 60px;
top: 60px; top: 60px;
background-color: rgba(0,0,0,0.4); background-color: rgba(0, 0, 0, 0.4);
border-radius: 100px; border-radius: 100px;
} }
}
} }
.channels-info { .channels-info {
@ -31,6 +29,7 @@
margin-left: 70px; margin-left: 70px;
margin-top: -20px; margin-top: -20px;
} }
.small-container { .small-container {
.channels-info { .channels-info {
display: none; display: none;
@ -43,7 +42,7 @@
font-size: 18px; font-size: 18px;
opacity: 0.9; opacity: 0.9;
} }
.channel-number{ .channel-number {
display: inline-block; display: inline-block;
float: right; float: right;
} }
@ -121,17 +120,17 @@
margin-bottom: 0; margin-bottom: 0;
background-color: $progress-background; background-color: $progress-background;
box-shadow: none; box-shadow: none;
.progress-bar{ .progress-bar {
height: 4px; height: 4px;
background-color: $progress-default; background-color: $progress-default;
box-shadow: none; box-shadow: none;
} }
} }
.legend-color{ .legend-color {
width: 30px; width: 30px;
height: 30px; height: 30px;
box-shadow:0 2px 2px 0 rgba(0, 0, 0, 0.25); box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.25);
position: relative; position: relative;
top: 27px; top: 27px;
border-radius: 15px; border-radius: 15px;
@ -139,47 +138,55 @@
} }
@media (max-width: $resM) { @media (max-width: $resM) {
div.channels-info{
.card.medium-card.traffic-panel {
height: auto;
}
.channels-block {
div.channels-info {
display: block; display: block;
width: calc(100% - 88px); width: calc(100% - 88px);
margin-top: -65px; margin-top: -65px;
margin-bottom: 10px; margin-bottom: 10px;
} }
.card.medium-card.traffic-panel{ .traffic-chart {
height: auto;
}
.traffic-chart{
position: inherit; position: inherit;
float: none; float: none;
margin: 0 auto; margin: 0 auto;
} }
.chart-bg{ .chart-bg {
left: calc(50% - 90px); left: calc(50% - 90px);
} }
}
} }
@media (max-width: 1465px) and (min-width: 1199px){ @media (max-width: 1465px) and (min-width: 1199px) {
.channels-info{
.channels-block {
.channels-info {
display: none; display: none;
} }
.traffic-chart{ .traffic-chart {
position: inherit; position: inherit;
float: none; float: none;
margin: 0 auto; margin: 0 auto;
} }
.chart-bg{
.chart-bg {
left: calc(50% - 90px); left: calc(50% - 90px);
} }
}
} }
@media (max-width: 380px) {
@media (max-width: 380px){ .channels-block {
.traffic-chart {
.traffic-chart{
width: 240px; width: 240px;
} }
.canvas-holder{ .canvas-holder {
width: 240px; width: 240px;
height: 240px; height: 240px;
} }
@ -187,12 +194,16 @@
.chart-bg { .chart-bg {
top: 30px; top: 30px;
} }
}
} }
@media (max-width: 320px){
@media (max-width: 320px) {
.channels-block {
.chart-bg { .chart-bg {
left: 50px; left: 50px;
top: 50px; top: 50px;
width: 142px; width: 142px;
height: 142px; height: 142px;
} }
}
} }