mirror of
https://github.com/discourse/discourse.git
synced 2024-11-28 16:45:51 +08:00
2b2a506a7b
This commit is an attempt to limit cases where the dashboard will generate a full exception page and also make it easier to track the error.
236 lines
3.8 KiB
SCSS
236 lines
3.8 KiB
SCSS
.admin-report {
|
|
.report-error,
|
|
.no-data {
|
|
width: 100%;
|
|
width: 100%;
|
|
align-self: flex-start;
|
|
text-align: center;
|
|
padding: 3em;
|
|
}
|
|
|
|
.report-error {
|
|
color: $danger;
|
|
border: 1px solid $danger;
|
|
}
|
|
|
|
.no-data {
|
|
background: $secondary;
|
|
border: 1px solid $primary-low;
|
|
color: $primary-low-mid;
|
|
|
|
.d-icon-pie-chart {
|
|
color: currentColor;
|
|
margin-bottom: 0.25em;
|
|
font-size: $font-up-5;
|
|
display: block;
|
|
}
|
|
}
|
|
|
|
.conditional-loading-section {
|
|
width: 100%;
|
|
}
|
|
|
|
.report-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
margin-bottom: 1em;
|
|
|
|
.report-title {
|
|
align-items: center;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
|
|
.title {
|
|
margin: 0;
|
|
padding: 0;
|
|
border: 0;
|
|
font-size: $font-up-1;
|
|
.separator {
|
|
font-weight: normal;
|
|
}
|
|
|
|
.report-link {
|
|
color: $primary;
|
|
}
|
|
|
|
.separator + .report-link {
|
|
font-weight: normal;
|
|
}
|
|
}
|
|
|
|
.info {
|
|
cursor: pointer;
|
|
margin-left: 0.25em;
|
|
color: $primary-low-mid;
|
|
|
|
&:hover {
|
|
color: $primary-medium;
|
|
}
|
|
}
|
|
}
|
|
|
|
.trend {
|
|
align-items: center;
|
|
|
|
&.trending-down,
|
|
&.high-trending-down {
|
|
color: $danger;
|
|
}
|
|
|
|
&.trending-up,
|
|
&.high-trending-up {
|
|
color: $success;
|
|
}
|
|
|
|
&.no-change {
|
|
color: $primary-medium;
|
|
}
|
|
|
|
.trend-value {
|
|
font-size: $font-up-1;
|
|
}
|
|
|
|
.trend-icon {
|
|
font-size: $font-up-1;
|
|
font-weight: 700;
|
|
}
|
|
}
|
|
|
|
.mode-switch {
|
|
list-style: none;
|
|
display: flex;
|
|
margin: 0;
|
|
|
|
.mode {
|
|
display: inline;
|
|
|
|
.mode-button.current {
|
|
color: $tertiary;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
.report-body {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
|
|
.admin-report-table,
|
|
.admin-report-chart {
|
|
width: 100%;
|
|
}
|
|
|
|
.report-filters {
|
|
margin-left: 1em;
|
|
min-width: 250px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
|
|
.filtering-control {
|
|
display: flex;
|
|
flex-direction: column;
|
|
margin-bottom: 1em;
|
|
}
|
|
.filtering-label {
|
|
}
|
|
.filtering-input {
|
|
width: 100%;
|
|
|
|
.date-picker-wrapper,
|
|
.combo-box,
|
|
.export-csv-btn,
|
|
.refresh-report-btn {
|
|
width: 100%;
|
|
}
|
|
|
|
.date-picker-wrapper {
|
|
.date-picker {
|
|
width: 100%;
|
|
box-sizing: border-box;
|
|
margin: 0;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
.report-filters:only-child {
|
|
margin-left: auto;
|
|
}
|
|
}
|
|
}
|
|
|
|
.admin-report.activity-metrics {
|
|
table {
|
|
table-layout: auto;
|
|
}
|
|
}
|
|
|
|
.admin-report.users-by-type {
|
|
margin-top: 1em;
|
|
}
|
|
|
|
.admin-report.users-by-type,
|
|
.admin-report.users-by-trust-level {
|
|
margin-bottom: 1em;
|
|
flex: 1;
|
|
.report-header {
|
|
border-bottom: 1px solid $primary-medium;
|
|
padding-bottom: 0.5em;
|
|
border-bottom: 1px solid #e9e9e9;
|
|
}
|
|
}
|
|
|
|
.admin-report.moderators-activity {
|
|
tbody tr td.username,
|
|
thead tr th.username {
|
|
text-align: left;
|
|
}
|
|
}
|
|
|
|
.admin-report.trending-search {
|
|
tbody tr td.term,
|
|
thead tr th.term {
|
|
text-align: left;
|
|
}
|
|
}
|
|
|
|
.admin-report.top-traffic-sources {
|
|
tbody tr td.domain,
|
|
thead tr th.domain {
|
|
text-align: left;
|
|
}
|
|
}
|
|
|
|
.admin-report.post-edits {
|
|
.report-table {
|
|
table-layout: auto;
|
|
|
|
tbody tr td,
|
|
thead tr th {
|
|
text-align: left;
|
|
}
|
|
|
|
thead tr th.edit_reason,
|
|
tbody tr td.edit_reason {
|
|
width: 100%;
|
|
}
|
|
}
|
|
}
|
|
|
|
.admin-report.flags-status {
|
|
.admin-report-table {
|
|
table-layout: auto;
|
|
|
|
tbody tr td,
|
|
thead tr th {
|
|
text-align: left;
|
|
}
|
|
|
|
tbody tr td.response_time,
|
|
thead tr th.response_time {
|
|
text-align: center;
|
|
}
|
|
}
|
|
}
|