mirror of
https://github.com/flarum/framework.git
synced 2025-01-19 04:02:45 +08:00
245 lines
3.9 KiB
Plaintext
245 lines
3.9 KiB
Plaintext
.StatisticsPage {
|
|
margin-top: 38px;
|
|
}
|
|
|
|
.StatisticsWidget {
|
|
padding: 0;
|
|
|
|
&--mini {
|
|
padding-top: 20px;
|
|
}
|
|
|
|
&-title {
|
|
margin: 0 20px;
|
|
color: @muted-color;
|
|
}
|
|
|
|
&-entities {
|
|
display: flex;
|
|
align-items: flex-end;
|
|
margin: 0 20px;
|
|
|
|
& > :not(:last-child) {
|
|
margin-right: 10px;
|
|
}
|
|
}
|
|
|
|
&-labels {
|
|
padding-bottom: 15px;
|
|
min-width: 130px;
|
|
font-size: 12px;
|
|
font-weight: bold;
|
|
color: @muted-color;
|
|
}
|
|
|
|
&-label {
|
|
padding-top: 8px;
|
|
}
|
|
|
|
&-entity {
|
|
min-width: 130px;
|
|
padding: 15px 20px;
|
|
color: @text-color;
|
|
font-size: 20px;
|
|
|
|
.StatisticsWidget:not(.StatisticsWidget--mini) & {
|
|
cursor: pointer;
|
|
|
|
&:hover,
|
|
&:focus-visible {
|
|
background: mix(@control-bg, @body-bg, 50%);
|
|
text-decoration: none;
|
|
}
|
|
|
|
&.active {
|
|
border-top: 4px solid @primary-color;
|
|
padding-top: 11px;
|
|
}
|
|
}
|
|
}
|
|
|
|
&-change {
|
|
font-size: 11px;
|
|
&--up {
|
|
color: #00a502;
|
|
}
|
|
&--down {
|
|
color: #d0011b;
|
|
}
|
|
}
|
|
|
|
&-heading {
|
|
height: 30px;
|
|
padding-top: 5px;
|
|
margin: 0;
|
|
font-weight: bold;
|
|
text-transform: uppercase;
|
|
font-size: 12px;
|
|
color: @muted-color;
|
|
|
|
.active & {
|
|
color: @primary-color;
|
|
}
|
|
}
|
|
|
|
&-total,
|
|
&-period,
|
|
&-label {
|
|
height: 35px;
|
|
}
|
|
|
|
&-total {
|
|
font-weight: bold;
|
|
}
|
|
|
|
.chart-container {
|
|
.dataset-1 {
|
|
opacity: 0.2;
|
|
}
|
|
.chart-legend {
|
|
display: none;
|
|
}
|
|
}
|
|
|
|
&-viewFull {
|
|
padding: 12px 16px;
|
|
text-align: center;
|
|
}
|
|
|
|
.Placeholder {
|
|
padding-bottom: 32px;
|
|
}
|
|
|
|
&-chartExport {
|
|
position: relative;
|
|
z-index: 1;
|
|
margin: 16px;
|
|
margin-top: -32px;
|
|
}
|
|
}
|
|
|
|
/*!
|
|
* Frappe Charts 1.0.0 by @frappe - https://frappe.io/charts
|
|
* License - MIT https://github.com/frappe/charts/blob/master/LICENSE
|
|
*/
|
|
.chart-container {
|
|
position: relative; /* for absolutely positioned tooltip */
|
|
|
|
/* https://www.smashingmagazine.com/2015/11/using-system-ui-fonts-practical-guide/ */
|
|
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen",
|
|
"Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue",
|
|
sans-serif;
|
|
|
|
.axis,
|
|
.chart-label {
|
|
fill: #555b51;
|
|
|
|
line {
|
|
stroke: #dadada;
|
|
}
|
|
}
|
|
.dataset-units {
|
|
circle {
|
|
stroke: #fff;
|
|
stroke-width: 2;
|
|
}
|
|
|
|
path {
|
|
fill: none;
|
|
stroke-opacity: 1;
|
|
stroke-width: 2px;
|
|
}
|
|
}
|
|
.dataset-path {
|
|
stroke-width: 2px;
|
|
}
|
|
.path-group {
|
|
path {
|
|
fill: none;
|
|
stroke-opacity: 1;
|
|
stroke-width: 2px;
|
|
}
|
|
}
|
|
line.dashed {
|
|
stroke-dasharray: 5, 3;
|
|
}
|
|
.axis-line {
|
|
.specific-value {
|
|
text-anchor: start;
|
|
}
|
|
.y-line {
|
|
text-anchor: end;
|
|
}
|
|
.x-line {
|
|
text-anchor: middle;
|
|
}
|
|
}
|
|
.legend-dataset-text {
|
|
fill: #6c7680;
|
|
font-weight: 600;
|
|
}
|
|
}
|
|
.graph-svg-tip {
|
|
position: absolute;
|
|
z-index: 99999;
|
|
padding: 10px;
|
|
font-size: 12px;
|
|
color: #959da5;
|
|
text-align: center;
|
|
background: rgba(0, 0, 0, 0.8);
|
|
border-radius: 3px;
|
|
ul {
|
|
padding-left: 0;
|
|
display: flex;
|
|
}
|
|
ol {
|
|
padding-left: 0;
|
|
display: flex;
|
|
}
|
|
ul.data-point-list {
|
|
li {
|
|
min-width: 90px;
|
|
flex: 1;
|
|
font-weight: 600;
|
|
|
|
&:nth-child(2) {
|
|
border-top-color: #5a5a5a !important;
|
|
}
|
|
}
|
|
}
|
|
strong {
|
|
color: #dfe2e5;
|
|
font-weight: 600;
|
|
}
|
|
.svg-pointer {
|
|
position: absolute;
|
|
height: 5px;
|
|
margin: 0 0 0 -5px;
|
|
content: " ";
|
|
border: 5px solid transparent;
|
|
border-top-color: rgba(0, 0, 0, 0.8);
|
|
}
|
|
&.comparison {
|
|
padding: 0;
|
|
text-align: left;
|
|
pointer-events: none;
|
|
.title {
|
|
display: block;
|
|
padding: 10px;
|
|
margin: 0;
|
|
font-weight: 600;
|
|
line-height: 1;
|
|
pointer-events: none;
|
|
}
|
|
ul {
|
|
margin: 0;
|
|
white-space: nowrap;
|
|
list-style: none;
|
|
}
|
|
li {
|
|
display: inline-block;
|
|
padding: 5px 10px;
|
|
}
|
|
}
|
|
}
|