Make drafts work with Themes 3

This commit is contained in:
tusooa 2024-03-27 18:59:32 -04:00
parent 55598d1cad
commit f41f7c77d9
No known key found for this signature in database
GPG key ID: 42AEC43D48433C51
6 changed files with 14 additions and 21 deletions

View file

@ -749,9 +749,8 @@ option {
margin-top: -1em; margin-top: -1em;
} }
&.badge-neutral { &.-neutral {
background-color: $fallback--cGreen; background-color: var(--badgeNeutral);
background-color: var(--badgeNeutral, $fallback--cGreen);
color: white; color: white;
color: var(--badgeNeutralText, white); color: var(--badgeNeutralText, white);
} }

View file

@ -72,18 +72,14 @@
<script src="./draft.js"></script> <script src="./draft.js"></script>
<style lang="scss"> <style lang="scss">
@import "src/variables";
.Draft { .Draft {
margin: 1em; margin: 1em;
.status-content { .status-content {
border: 1px solid $fallback--faint; border: 1px solid;
border-color: var(--faint, $fallback--faint); border-color: var(--faint);
border-radius: $fallback--inputRadius; border-radius: var(--inputRadius);
border-radius: var(--inputRadius, $fallback--inputRadius); color: var(--text);
color: $fallback--text;
color: var(--text, $fallback--text);
padding: 0.5em; padding: 0.5em;
margin: 0.5em 0; margin: 0.5em 0;
} }

View file

@ -5,7 +5,7 @@
v-body-scroll-lock="true" v-body-scroll-lock="true"
class="confirm-modal" class="confirm-modal"
:on-cancel="cancel" :on-cancel="cancel"
> >
<template #header> <template #header>
<span> <span>
{{ $t('post_status.close_confirm_title') }} {{ $t('post_status.close_confirm_title') }}

View file

@ -34,8 +34,8 @@
<slot /> <slot />
<div <div
v-if="item.badgeGetter && getters[item.badgeGetter]" v-if="item.badgeGetter && getters[item.badgeGetter]"
class="badge -notification" class="badge"
:class="[`badge-${item.badgeStyle}`]" :class="[`-${item.badgeStyle}`]"
> >
{{ getters[item.badgeGetter] }} {{ getters[item.badgeGetter] }}
</div> </div>

View file

@ -19,8 +19,8 @@
>{{ item.iconLetter }}</span> >{{ item.iconLetter }}</span>
<div <div
v-if="item.badgeGetter && getters[item.badgeGetter]" v-if="item.badgeGetter && getters[item.badgeGetter]"
class="badge -dot -notification" class="badge -dot"
:class="[`alert-dot-${item.badgeStyle}`]" :class="[`-${item.badgeStyle}`]"
/> />
</router-link> </router-link>
</span> </span>
@ -36,13 +36,11 @@
height: 100%; height: 100%;
&.alert-dot-notification { &.alert-dot-notification {
background-color: $fallback--cRed; background-color: var(--badgeNotification);
background-color: var(--badgeNotification, $fallback--cRed);
} }
&.alert-dot-neutral { &.alert-dot-neutral {
background-color: $fallback--cGreen; background-color: var(--badgeNeutral);
background-color: var(--badgeNeutral, $fallback--cGreen);
} }
.pinned-item { .pinned-item {

View file

@ -255,7 +255,7 @@
/> {{ $t('nav.drafts') }} /> {{ $t('nav.drafts') }}
<span <span
v-if="draftCount" v-if="draftCount"
class="badge badge-neutral" class="badge -neutral"
> >
{{ draftCount }} {{ draftCount }}
</span> </span>