Skip to content

Commit

Permalink
fix(dashboard): move progress bar colors to variables
Browse files Browse the repository at this point in the history
  • Loading branch information
KostyaDanovsky committed May 13, 2016
1 parent 72c112b commit f0b6c1b
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 21 deletions.
3 changes: 1 addition & 2 deletions src/app/pages/dashboard/trafficChart/trafficChart.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<div class="channels-block">

<div class="channels-block transparent">
<div class="chart-bg"></div>
<div class="traffic-chart" id="trafficChart">
<div class="canvas-holder">
Expand Down
2 changes: 1 addition & 1 deletion src/sass/app/_form.scss
Original file line number Diff line number Diff line change
Expand Up @@ -504,7 +504,7 @@ label.custom-input-danger {
}

.progress {
background: rgba(black, 0.15);
background: $progress-background;
}

.progress-bar-primary {
Expand Down
2 changes: 2 additions & 0 deletions src/sass/theme/conf/_colorScheme.scss
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ $bootstrap-panel-text: #7d7d7d;
$bootstrap-panel-bg: #ffffff;
$mail-box: whitesmoke;
$auth-panel-background: rgba(#000000, 0.55);
$progress-background: rgba(#000000, 0.15);
$progress-default: #ffffff;

$primary: #209e91 !default;
$info: #2dacd1 !default;
Expand Down
38 changes: 20 additions & 18 deletions src/sass/theme/dashboard/_trafficChart.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,24 @@
position: relative;
}

.channels-block.transparent {
.traffic-chart canvas{
border: 10px solid rgba(0,0,0,0.35);
box-shadow: 0 0 5px 0 rgb(0, 0, 0) inset;
border-radius: 150px;
}

.chart-bg{
position: absolute;
width: 180px;
height: 180px;
left: 60px;
top: 60px;
background-color: rgba(0,0,0,0.35);
border-radius: 100px;
}
}

.channels-info {
display: inline-block;
width: calc(100% - 370px);
Expand Down Expand Up @@ -97,11 +115,11 @@
border-radius: 0;
width: 100%;
margin-bottom: 0;
background-color: rgba(0, 0, 0, 0.25);
background-color: $progress-background;
box-shadow: none;
.progress-bar{
height: 4px;
background-color: $default-text;
background-color: $progress-default;
box-shadow: none;
}
}
Expand All @@ -116,22 +134,6 @@
left: -45px;
}

.traffic-chart canvas{
border: 10px solid rgba(0,0,0,0.35);
box-shadow: 0 0 5px 0 rgb(0, 0, 0) inset;
border-radius: 150px;
}

.chart-bg{
position: absolute;
width: 180px;
height: 180px;
left: 60px;
top: 60px;
background-color: rgba(0,0,0,0.35);
border-radius: 100px;
}

@media (max-width: $resM) {
div.channels-info{
display: block;
Expand Down

0 comments on commit f0b6c1b

Please sign in to comment.