mirror of
https://github.com/discourse/discourse.git
synced 2024-12-04 06:03:43 +08:00
03deda2147
* Add missing icons to set
* Revert FA5 revert
This reverts commit 42572ff
* use new SVG syntax in locales
* Noscript page changes (remove login button, center "powered by" footer text)
* Cast wider net for SVG icons in settings
- include any _icon setting for SVG registry (offers better support for plugin settings)
- let themes store multiple pipe-delimited icons in a setting
- also replaces broken onebox image icon with SVG reference in cooked post processor
* interpolate icons in locales
* Fix composer whisper icon alignment
* Add support for stacked icons
* SECURITY: enforce hostname to match discourse hostname
This ensures that the hostname rails uses for various helpers always matches
the Discourse hostname
* load SVG sprite with pre-initializers
* FIX: enable caching on SVG sprites
* PERF: use JSONP for SVG sprites so they are served from CDN
This avoids needing to deal with CORS for loading of the SVG
Note, added the svg- prefix to the filename so we can quickly tell in
dev tools what the file is
* Add missing SVG sprite JSONP script to CSP
* Upgrade to FA 5.5.0
* Add support for all FA4.7 icons
- adds complete frontend and backend for renamed FA4.7 icons
- improves performance of SvgSprite.bundle and SvgSprite.all_icons
* Fix group avatar flair preview
- adds an endpoint at /svg-sprites/search/:keyword
- adds frontend ajax call that pulls icon in avatar flair preview even when it is not in subset
* Remove FA 4.7 font files
271 lines
4.7 KiB
SCSS
271 lines
4.7 KiB
SCSS
// Styles for admin/dashboard-old
|
|
|
|
.dashboard-left {
|
|
float: left;
|
|
width: 60%;
|
|
}
|
|
|
|
.dashboard-right {
|
|
float: right;
|
|
width: 40%;
|
|
.dashboard-stats {
|
|
width: 100%;
|
|
margin-left: 0;
|
|
}
|
|
}
|
|
|
|
.version-checks {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
.section-title {
|
|
flex: 1 1 100%;
|
|
border-bottom: 1px solid $primary-low;
|
|
margin-bottom: 0.5em;
|
|
}
|
|
}
|
|
|
|
.version-check {
|
|
display: flex;
|
|
flex: 1 1 50%;
|
|
flex-wrap: wrap;
|
|
align-items: flex-start;
|
|
align-self: flex-start;
|
|
justify-content: space-between;
|
|
padding: 10px 0 10px 0;
|
|
.upgrade-header {
|
|
flex: 1 1 100%;
|
|
@media screen and (max-width: 650px) {
|
|
margin: 0;
|
|
}
|
|
tr {
|
|
border: none;
|
|
}
|
|
th {
|
|
background: transparent;
|
|
text-align: left;
|
|
padding: 0;
|
|
}
|
|
}
|
|
h2 {
|
|
flex: 1 1 100%;
|
|
}
|
|
.version-number {
|
|
font-size: $font-up-2;
|
|
line-height: $line-height-medium;
|
|
box-sizing: border-box;
|
|
font-weight: bold;
|
|
margin: 0 0 1em 0;
|
|
padding-right: 20px;
|
|
flex: 1 1 27%;
|
|
h3 {
|
|
flex: 1 0 auto;
|
|
white-space: nowrap;
|
|
}
|
|
h4 {
|
|
font-size: $font-down-2;
|
|
margin-bottom: 0;
|
|
}
|
|
}
|
|
.version-status {
|
|
display: flex;
|
|
align-items: center;
|
|
margin: 0 0 1em 0;
|
|
flex: 1 1 24%;
|
|
box-sizing: border-box;
|
|
padding-right: 20px;
|
|
min-width: 250px;
|
|
@include breakpoint(medium) {
|
|
max-width: unset;
|
|
}
|
|
.face {
|
|
margin: 0 0.75em 0 0;
|
|
font-size: $font-up-3;
|
|
}
|
|
}
|
|
&.critical .version-notes .normal-note {
|
|
display: none;
|
|
}
|
|
&.normal .version-notes .critical-note {
|
|
display: none;
|
|
}
|
|
.fa {
|
|
font-size: $font-up-4;
|
|
}
|
|
.up-to-date {
|
|
color: $success;
|
|
}
|
|
.updates-available {
|
|
color: $danger;
|
|
}
|
|
.critical-updates-available {
|
|
color: $danger;
|
|
}
|
|
}
|
|
|
|
.update-nag {
|
|
.d-icon {
|
|
font-size: $font-up-3;
|
|
}
|
|
}
|
|
|
|
.dashboard-stats {
|
|
box-sizing: border-box;
|
|
margin-bottom: 30px;
|
|
flex: 1 1 50%;
|
|
box-sizing: border-box;
|
|
&.version-check {
|
|
margin: 0;
|
|
}
|
|
&.detected-problems {
|
|
border-left: 1px solid $primary-low;
|
|
margin: 10px 0 0 0;
|
|
padding-left: 20px;
|
|
}
|
|
h4 {
|
|
font-weight: normal;
|
|
margin-bottom: 8px;
|
|
}
|
|
@media screen and (max-width: 650px) {
|
|
flex: 1 1 100%;
|
|
}
|
|
table {
|
|
width: 100%;
|
|
.title {
|
|
.d-icon {
|
|
color: $primary;
|
|
}
|
|
.d-icon-heart {
|
|
color: $love;
|
|
}
|
|
}
|
|
th {
|
|
font-weight: normal;
|
|
text-align: center;
|
|
background: $primary-low;
|
|
}
|
|
th.title {
|
|
text-align: left;
|
|
}
|
|
thead {
|
|
tr:hover > td {
|
|
background-color: $secondary;
|
|
}
|
|
}
|
|
td.value {
|
|
font-weight: bold;
|
|
text-align: center;
|
|
.d-icon {
|
|
display: none;
|
|
}
|
|
&.high-trending-up,
|
|
&.trending-up {
|
|
.up {
|
|
color: $success;
|
|
display: inline;
|
|
}
|
|
}
|
|
&.high-trending-down,
|
|
&.trending-down {
|
|
.down {
|
|
color: $danger;
|
|
display: inline;
|
|
}
|
|
}
|
|
&.no-change {
|
|
.down {
|
|
display: inline;
|
|
visibility: hidden;
|
|
}
|
|
}
|
|
}
|
|
tr.reverse-colors {
|
|
td.value.high-trending-down .down,
|
|
td.value.trending-down .down {
|
|
color: $success;
|
|
}
|
|
td.value.high-trending-up .up,
|
|
td.value.trending-up .up {
|
|
color: $danger;
|
|
}
|
|
}
|
|
}
|
|
&.detected-problems {
|
|
display: flex;
|
|
margin-bottom: 30px;
|
|
.look-here {
|
|
margin: 10px 20px;
|
|
.fa {
|
|
font-size: $font-up-5;
|
|
color: $danger;
|
|
}
|
|
}
|
|
@media screen and (max-width: 650px) {
|
|
border-left: none;
|
|
border-top: 1px solid $primary-low;
|
|
padding: 20px 0 0 0;
|
|
.look-here {
|
|
margin-left: 0;
|
|
}
|
|
}
|
|
h3 {
|
|
display: flex;
|
|
}
|
|
.problem-messages {
|
|
display: flex;
|
|
a {
|
|
text-decoration: underline;
|
|
}
|
|
.btn {
|
|
background: $primary-low;
|
|
}
|
|
ul {
|
|
margin-left: 0;
|
|
padding-left: 90px;
|
|
@media screen and (max-width: 650px) {
|
|
padding-left: 20px;
|
|
}
|
|
li {
|
|
margin-bottom: 10px;
|
|
}
|
|
}
|
|
p.actions {
|
|
padding-left: 75px;
|
|
@media screen and (max-width: 650px) {
|
|
padding-left: 0;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
&.totals {
|
|
table {
|
|
width: auto;
|
|
}
|
|
margin-top: 12px;
|
|
padding-left: 5px;
|
|
.value {
|
|
text-align: left;
|
|
font-weight: bold;
|
|
padding-left: 8px;
|
|
padding-right: 30px;
|
|
}
|
|
}
|
|
&.trust-levels {
|
|
margin-bottom: 0;
|
|
table {
|
|
margin-bottom: 0;
|
|
}
|
|
td.value {
|
|
width: 45px;
|
|
}
|
|
}
|
|
.referred-topic-title {
|
|
width: 355px;
|
|
@media all and (min-width: 1000px) and (max-width: 1139px) {
|
|
width: 305px;
|
|
}
|
|
@include breakpoint(medium) {
|
|
width: 265px;
|
|
}
|
|
}
|
|
}
|