taiga-front/app/styles/components/summary.scss

199 lines
4.0 KiB
SCSS

$summary-background: $grayer;
.summary {
align-content: center;
background: $summary-background;
color: $white;
display: flex;
flex-wrap: wrap;
justify-content: flex-start;
margin-bottom: 2rem;
padding: 1em;
.summary-stats {
display: flex;
margin: 0 .5rem;
}
.data {
.number {
color: $primary-light;
}
}
.number {
@extend %xlarge;
@extend %bold;
line-height: .9;
margin-right: .3rem;
}
.description {
@extend %small;
@extend %light;
line-height: 1;
}
.stats {
cursor: pointer;
height: 2rem;
margin-left: auto;
width: 2rem;
path {
opacity: 1;
}
&:hover {
.graph,
.color-line {
fill: $primary-light;
transition: fill .2s;
}
}
&.active {
.white-line,
.color-line {
display: none;
}
.graph {
fill: $primary;
}
}
svg {
height: 100%;
width: 100%;
}
.graph,
.color-line {
fill: darken($gray-light, 20%);
transition: fill .2s;
}
.white-line {
fill: $summary-background;
}
.white-line,
.color-line {
display: block;
}
}
}
.summary-progress-bar {
background: $white;
height: 30px;
margin-bottom: 0;
margin-right: 10px;
padding: 3px;
position: relative;
width: 15%;
.current-progress {
background: $primary-light;
height: 24px;
}
.defined-points {
background: $red-light;
height: 24px;
position: absolute;
width: calc(100% - 6px);
}
.project-points-progress {
background: $white;
height: 24px;
position: absolute;
}
.closed-points-progress {
background: $primary-light;
height: 24px;
position: absolute;
}
}
.large-summary {
justify-content: space-between;
.large-summary-wrapper {
align-content: center;
display: flex;
flex-wrap: wrap;
justify-content: flex-start;
}
.summary-progress-wrapper {
display: flex;
}
.summary-progress-bar {
flex-basis: 200px;
min-width: 200px;
}
.summary-stats {
margin-right: 1rem;
&:last-child {
border: 0;
margin: 0;
}
}
.summary-stats-divider {
margin-right: 2rem;
}
.icon {
font-size: 1.4rem;
margin-right: .4rem;
&.icon-stats {
color: $primary;
float: right;
transition: color .3s linear;
&:hover {
color: $primary-light;
transition: color .3s linear;
}
&.active {
color: $primary-light;
}
&.active:hover {
color: $primary;
transition: color .3s linear;
}
}
}
}
.empty-burndown {
@extend %light;
align-content: center;
align-items: center;
background: rgba($primary-dark, .15);
display: flex;
flex-direction: row;
justify-content: center;
margin-bottom: 1rem;
padding: 2rem 6rem;
svg {
flex-basis: 5rem;
flex-shrink: 0;
margin-right: 1rem;
width: 5rem;
}
p {
margin: 0;
}
.empty-text {
flex: 1;
}
.title {
@extend %light;
@extend %large;
color: $primary-dark;
margin: 0;
text-transform: uppercase;
}
path {
fill: $primary-dark;
}
a {
@extend %bold;
animation: blink 2s infinite;
}
}
.graphics-container {
$height: 300px;
@include slide($height, hidden, 0);
&.shown {
max-height: $height;
transition: none;
}
}