@ppci-mock/allocation-graph
Version:
Allocation graph
182 lines (160 loc) • 3.62 kB
JavaScript
import { css } from 'lit-element';
import {
iconFont, space, gray15, gray10,
gray, primary, primaryDark,
} from '@ppci-mock/styles';
export default css`
:host {
display: block;
height: 100%;
}
.flex-wrapper {
height: 100%;
display: flex;
flex-direction: column;
}
.loader-wrapper {
display: flex;
flex: 1 0 auto;
justify-content: center;
align-items: center;
min-height: 250px;
}
.tools {
height: 56px;
background-color: ${gray10.var};
display: flex;
align-items: center;
padding: calc(${space} / 2) ${space};
box-sizing: border-box;
}
.view {
display: flex;
list-style-type: none;
padding: 0;
}
.view li {
height: 40px;
border: 1px solid ${gray15.var};
background: white;
text-align: center;
font-family: 'Open Sans', sans-serif;
font-size: 0.875rem;
font-weight: normal;
font-stretch: normal;
font-style: normal;
line-height: 1.25rem;
letter-spacing: normal;
padding: calc(${space} / 2) ${space};
box-sizing: border-box;
color: ${gray.var};
position: relative;
z-index: 1;
margin: 0;
cursor: pointer;
transition: border-color 0.3s, background-color 0.3s ease-out;
}
.view li:first-child {
margin-right: -1px;
border-top-left-radius: 3px;
border-bottom-left-radius: 3px;
}
.view li:last-child {
margin-left: -1px;
border-top-right-radius: 3px;
border-bottom-right-radius: 3px;
}
.view li:hover {
color: white;
background-color: ${primaryDark.var};
border-color: ${primaryDark.var};
}
.view li.active {
color: white;
background-color: ${primary.var};
border-color: ${primary.var};
}
.calendar {
display: flex;
list-style-type: none;
padding: 0;
margin-left: auto;
}
.calendar li {
width: 34px;
height: 40px;
border: 1px solid #dfdfe0;
background: white;
text-align: center;
font-family: 'Open Sans', sans-serif;
font-size: 0.875rem;
font-weight: normal;
font-stretch: normal;
font-style: normal;
line-height: 1.25rem;
letter-spacing: normal;
color: ${gray.var};
position: relative;
padding: calc(${space} / 2) ${space};
box-sizing: border-box;
z-index: 1;
margin: 0;
cursor: pointer;
transition: border-color 0.3s, background-color 0.3s ease-out;
}
.calendar li:hover {
color: white;
background-color: ${primaryDark.var};
border-color: ${primaryDark.var}
}
.calendar li:first-child {
font-size: 14px;
margin-right: -1px;
line-height: 40px;
border-top-left-radius: 3px;
border-bottom-left-radius: 3px;
padding: 0;
}
.calendar li:first-child:after {
${iconFont}
content: "\\e905";
}
.calendar li:nth-child(2) {
display: flex;
justify-content: center;
flex-grow: 1;
width: 200px;
cursor: default;
}
.calendar li:nth-child(2):hover {
color: inherit;
background: white;
border-color: #dfdfe0;
}
.calendar li:last-of-type {
font-size: 14px;
margin-left: -1px;
line-height: 40px;
border-top-right-radius: 3px;
border-bottom-right-radius: 3px;
padding: 0;
}
.calendar li:last-child:after {
${iconFont}
content: "\\e906";
}
.total {
font-family: 'Open Sans', sans-serif;
font-size: 0.875rem;
font-weight: 600;
font-stretch: normal;
font-style: normal;
line-height: 1.25rem;
letter-spacing: normal;
color: ${gray.var};
margin: ${space};
}
stacked-column-chart {
flex-grow: 1;
}
`;