0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-20 22:42:53 -05:00

Cleaned up non-inlined usage of svg icons

No issue
This commit is contained in:
Sanne de Vries 2022-08-31 16:47:20 +01:00
parent 405d1acec5
commit 6290fd6deb
8 changed files with 18 additions and 47 deletions

View file

@ -1,5 +1,6 @@
<div class="gh-dashboard-zero">
<div class="gh-dashboard-zero-message">
{{svg-jar "analytics"}}
<h4>Welcome to your Dashboard</h4>
<p>You'll find member analytics here once<br />someone signs up.</p>
<p><LinkTo @route="members">Add or import members &rarr;</LinkTo></p>

View file

@ -1,8 +0,0 @@
import Service from '@ember/service';
import classic from 'ember-classic-decorator';
// dummy service to account for not having the ember-responsive dependency
// available for ember-light-table (we don't use it so no need for the dep)
// see https://github.com/offirgolan/ember-light-table/issues/576
@classic
export default class MediaService extends Service {}

View file

@ -919,20 +919,25 @@ Dashboard Zero */
}
.gh-dashboard-zero-message {
background: #fff url(icons/analytics.svg) no-repeat 50% 36px;
background-size: 48px 48px;
min-width: 400px;
padding: 96px 48px 52px;
border-radius: 8px;
padding: 48px;
background: var(--white);
text-align: center;
border-radius: 8px;
box-shadow: 0 4px 24px rgba(0,0,0,0.066);
}
.gh-dashboard-zero-message svg {
width: 48px;
height: 48px;
margin: 0 0 8px;
}
.gh-dashboard-zero-message h4 {
font-size: 1.7rem;
font-weight: 700;
line-height: 1em;
margin: 0 0 10px;
margin: 0 0 12px;
padding: 0;
color: var(--black);
white-space: nowrap;

View file

@ -61,37 +61,6 @@ table td,
background: transparent;
}
/* Ember Light Table
/* ---------------------------------------------------------- */
.ember-light-table th {
white-space: nowrap;
}
.ember-light-table .lt-column .lt-sort-icon {
display: inline-block;
float: none;
margin-left: 0.3rem;
}
.lt-sort-icon.gh-icon-ascending {
background: url(icons/arrow-down-small.svg);
}
.lt-sort-icon.gh-icon-descending {
background: url(icons/arrow-up-small.svg);
}
.lt-sort-icon.gh-icon-ascending,
.lt-sort-icon.gh-icon-descending {
fill: var(--darkgrey);
background-size: 10px, auto, contain;
background-repeat: no-repeat;
height: 9px;
width: 15px;
top: 1px;
position: relative;
}
/* Plain list tables */
.table.list,

View file

@ -137,7 +137,7 @@
<LinkTo @route="settings.integrations.unsplash" data-test-link="unsplash">
<article class="apps-card-app">
<div class="apps-card-left">
<figure class="apps-card-app-icon id-unsplash" style="background-image:url(assets/icons/unsplash.svg); background-size:30px;"></figure>
<figure class="apps-card-app-icon id-unsplash" style="background-image:url(assets/img/unsplash.svg); background-size:30px;"></figure>
<div class="apps-card-meta">
<h3 class="apps-card-app-title">Unsplash</h3>
<p class="apps-card-app-desc">Beautiful, free photos</p>
@ -160,7 +160,7 @@
<LinkTo @route="settings.integrations.firstpromoter" data-test-link="firstpromoter">
<article class="apps-card-app">
<div class="apps-card-left">
<figure class="apps-card-app-icon id-unsplash" style="background-image:url(assets/icons/firstpromoter.png); background-size:30px;"></figure>
<figure class="apps-card-app-icon id-unsplash" style="background-image:url(assets/img/firstpromoter.png); background-size:36px;"></figure>
<div class="apps-card-meta">
<h3 class="apps-card-app-title">FirstPromoter</h3>
<p class="apps-card-app-desc">Launch your member referral program</p>

View file

@ -23,7 +23,7 @@
<section class="gh-main-section bt app-grid">
<div class="gh-main-section-block app-detail-heading app-grid">
<div class="app-cell">
<img class="app-icon pa2 id-unsplash" src="assets/icons/unsplash.svg" />
<img class="app-icon pa2 id-unsplash" src="assets/img/unsplash.svg" />
</div>
<div class="app-cell">
<h3>Unsplash</h3>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 16 KiB

View file

@ -0,0 +1,4 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 122.43 122.41">
<title>unsplash</title>
<path d="M83.86 54.15v34.13H38.57V54.15H0v68.26h122.43V54.15H83.86zM38.57 0h45.3v34.13h-45.3z"/>
</svg>

After

Width:  |  Height:  |  Size: 200 B