-
-
-
+
Pinafore
Pinafore is a web client for Mastodon , designed for speed and simplicity.
@@ -24,7 +22,7 @@
align-items: center;
margin: 0 0 30px;
}
- .not-logged-in-home-svg {
+ :global(.not-logged-in-home-svg) {
width: 70px;
height: 70px;
fill: var(--banner-fill);
@@ -47,12 +45,14 @@
import FreeTextLayout from './FreeTextLayout.html'
import HiddenFromSSR from './HiddenFromSSR.html'
import ExternalLink from './ExternalLink.html'
+ import SvgIcon from './SvgIcon.html'
export default {
components: {
FreeTextLayout,
HiddenFromSSR,
- ExternalLink
+ ExternalLink,
+ SvgIcon
}
}
diff --git a/src/routes/_components/PlayVideoIcon.html b/src/routes/_components/PlayVideoIcon.html
index f2f0a077..1534e6c6 100644
--- a/src/routes/_components/PlayVideoIcon.html
+++ b/src/routes/_components/PlayVideoIcon.html
@@ -1,7 +1,5 @@
-
-
-
+
\ No newline at end of file
+
diff --git a/src/routes/_components/SvgIcon.html b/src/routes/_components/SvgIcon.html
new file mode 100644
index 00000000..f15126ed
--- /dev/null
+++ b/src/routes/_components/SvgIcon.html
@@ -0,0 +1,37 @@
+
+
+
+
diff --git a/src/routes/_components/community/PageListItem.html b/src/routes/_components/community/PageListItem.html
index df733fb9..8b406b73 100644
--- a/src/routes/_components/community/PageListItem.html
+++ b/src/routes/_components/community/PageListItem.html
@@ -1,8 +1,6 @@
-
-
-
+
{label}
@@ -40,7 +38,7 @@
.page-list-item a:active {
background: var(--settings-list-item-bg-active);
}
- .page-list-item-svg {
+ :global(.page-list-item-svg) {
width: 24px;
height: 24px;
display: inline-block;
@@ -57,7 +55,7 @@
.page-list-item a {
padding: 20px 10px;
}
- .page-list-item-svg {
+ :global(.page-list-item-svg) {
margin-right: 10px;
}
}
@@ -66,6 +64,7 @@
diff --git a/src/routes/_components/compose/ComposeMediaItem.html b/src/routes/_components/compose/ComposeMediaItem.html
index 98b18bc6..21003806 100644
--- a/src/routes/_components/compose/ComposeMediaItem.html
+++ b/src/routes/_components/compose/ComposeMediaItem.html
@@ -4,9 +4,7 @@
-
-
-
+
@@ -102,7 +100,7 @@
justify-content: center;
align-items: center;
}
- .close-dialog-button-svg {
+ :global(.close-dialog-button-svg) {
padding: 10px;
fill: var(--button-primary-text);
width: 24px;
@@ -129,7 +127,7 @@
.modal-dialog-title {
font-size: 1.3em;
}
- .close-dialog-button-svg {
+ :global(.close-dialog-button-svg) {
padding: 7px;
width: 18px;
height: 18px;
@@ -138,6 +136,7 @@
diff --git a/src/routes/_components/profile/AccountProfileMovedBanner.html b/src/routes/_components/profile/AccountProfileMovedBanner.html
index 099a9b53..708a1568 100644
--- a/src/routes/_components/profile/AccountProfileMovedBanner.html
+++ b/src/routes/_components/profile/AccountProfileMovedBanner.html
@@ -1,9 +1,7 @@
-
-
-
+
{#if $searchLoading}
@@ -39,7 +37,7 @@
border-radius: 10px;
flex: 1;
}
- .search-button-svg {
+ :global(.search-button-svg) {
fill: var(--button-primary-text);
width: 18px;
height: 18px;
@@ -60,12 +58,14 @@
import LoadingPage from '../LoadingPage.html'
import { doSearch } from '../../_actions/search'
import SearchResults from './SearchResults.html'
+ import SvgIcon from '../SvgIcon.html'
export default {
store: () => store,
components: {
LoadingPage,
- SearchResults
+ SearchResults,
+ SvgIcon
},
methods: {
async onSubmit (e) {
@@ -74,4 +74,4 @@
}
}
}
-
\ No newline at end of file
+
diff --git a/src/routes/_components/status/StatusDetails.html b/src/routes/_components/status/StatusDetails.html
index f8a857d1..cc9cf953 100644
--- a/src/routes/_components/status/StatusDetails.html
+++ b/src/routes/_components/status/StatusDetails.html
@@ -28,18 +28,14 @@
rel="prefetch"
href="/statuses/{originalStatusId}/reblogs"
aria-label={reblogsLabel}>
-
-
-
+
{numReblogs}
-
-
-
+
{numFavs}
@@ -105,7 +101,7 @@
color: var(--deemphasized-text-color);
}
- .status-favs-reblogs-svg {
+ :global(.status-favs-reblogs-svg) {
fill: var(--deemphasized-text-color);
width: 18px;
height: 18px;
@@ -137,6 +133,7 @@
import ExternalLink from '../ExternalLink.html'
import { store } from '../../_store/store'
import { absoluteDateFormatter, shortAbsoluteDateFormatter } from '../../_utils/formatters'
+ import SvgIcon from '../SvgIcon.html'
import { on } from '../../_utils/eventBus'
export default {
@@ -191,7 +188,8 @@
}
},
components: {
- ExternalLink
+ ExternalLink,
+ SvgIcon
}
}
diff --git a/src/routes/_components/status/StatusHeader.html b/src/routes/_components/status/StatusHeader.html
index 226d700d..fabea6e1 100644
--- a/src/routes/_components/status/StatusHeader.html
+++ b/src/routes/_components/status/StatusHeader.html
@@ -2,9 +2,7 @@
-
+