dashboard style updates

This commit is contained in:
Kris 2018-05-16 15:06:23 -04:00
parent 2a9b4e4bb5
commit 4b0bf35cd7
5 changed files with 43 additions and 21 deletions

View File

@ -136,6 +136,7 @@
</div>
<div class="section-column">
<div class="top-referred-topics">
{{#dashboard-inline-table
dataSourceNames="top_referred_topics"
lastRefreshedAt=lastRefreshedAt
@ -154,7 +155,9 @@
</tr>
{{/each}}
{{/dashboard-inline-table}}
</div>
<div class="trending-search">
{{#dashboard-inline-table
limit=8
dataSourceNames="trending_search"
@ -175,8 +178,8 @@
</td>
</tr>
{{/each}}
{{{i18n "admin.dashboard.reports.trending_search.more"}}}
{{/dashboard-inline-table}}
{{{i18n "admin.dashboard.reports.trending_search.more"}}}
</div>
</div>
</div>

View File

@ -1,4 +1,6 @@
<h2>{{i18n 'admin.dashboard.version'}}</h2>
<div class="section-title">
<h2>{{i18n 'admin.dashboard.version'}}</h2>
</div>
<div class="dashboard-stats version-check {{if versionCheck.critical_updates 'critical' 'normal'}}">
<div class="version-number">

View File

@ -862,10 +862,10 @@ section.details {
display: flex;
flex-wrap: wrap;
h2 {
.section-title {
flex: 1 1 100%;
border-bottom: 1px solid $primary-low;
padding-bottom: .5em;
margin-bottom: .5em;
}
}

View File

@ -31,12 +31,12 @@
}
}
.section-column:last-child {
margin-left: .5em;
.section-column:last-child, {
margin-left: 1em;
}
.section-column:first-child {
margin-right: .5em;
margin-right: 1em;
}
@include small-width {
@ -67,11 +67,11 @@
.charts {
display: flex;
justify-content: flex-start;
justify-content: space-between;
flex-wrap: wrap;
.chart {
max-width: calc(100% * 1/3);
max-width: calc(100% * 1/3.2);
width: 100%;
flex-grow: 1;
flex-basis: 100%;
@ -87,7 +87,7 @@
.chart-canvas-container {
position: relative;
padding: 0 1em 0 0;
margin-left: -5px;
}
.chart-canvas {
@ -97,6 +97,8 @@
}
.misc {
border: 1px solid $primary-low;
padding: 20px;
.durability {
display: flex;
justify-content: space-between;
@ -125,10 +127,11 @@
.status {
display: flex;
justify-content: space-between;
margin-bottom: 1em;
margin-bottom: .5em;
padding: 0 .45em 0 0;
.title {
font-size: $font-0;
font-size: $font-up-1;
font-weight: 700;
margin: 0;
@ -137,12 +140,11 @@
.info {
cursor: pointer;
margin-left: .25em;
color: $primary-medium;
color: $primary-low-mid;
}
}
.trend {
margin-right: 1em;
align-items: center;
&.trending-down, &.high-trending-down {
@ -155,7 +157,6 @@
.trend-value {
font-size: $font-up-1;
font-weight: 700;
}
.trend-icon {
@ -217,6 +218,12 @@
}
}
.top-referred-topics, .trending-search {
th:first-of-type {
text-align: left;
}
}
.dashboard-table {
margin-bottom: 1em;
@ -243,17 +250,17 @@
justify-content: space-between;
h3 {
margin: .5em 0;
margin: 1em 0 0 0;
}
}
table {
table-layout: fixed;
border: 1px solid $primary-low;
thead {
border: 1px solid $primary-low;
tr {
background: $primary-low;
th {
text-align: center;
text-overflow: ellipsis;
@ -264,6 +271,7 @@
}
tbody {
border-top: none;
tr {
td:first-child {
text-overflow: ellipsis;
@ -272,16 +280,23 @@
}
td {
border: 1px solid $primary-low;
text-align: center;
padding: 8px 20px 8px 8px;
}
td.left {
text-align: left;
}
td.title {
text-align: left;
}
td.value {
text-align: right;
transform: translateX(-30%);
i {
display: none;
margin-right: -12px;
}
&.high-trending-up, &.trending-up {

View File

@ -50,9 +50,11 @@ $discourse-tooltip-border: $primary-medium;
}
.tooltip-content {
padding: 0 0.5em;
padding: 1em;
max-width: 250px;
font-size: $font-down-1;
color: $primary-medium;
color: $primary;
box-shadow: shadow("dropdown");
line-height: 1.4em;
}
}