Merge branch 'misc-style-fixes-or-changes' into shigusegubu-themes3
This commit is contained in:
commit
6ff87af516
8 changed files with 35 additions and 33 deletions
|
|
@ -21,7 +21,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
html {
|
html {
|
||||||
font-size: var(--textSize, 14px);
|
font-size: var(--textSize, 1rem);
|
||||||
|
|
||||||
--navbar-height: var(--navbarSize, 3.5rem);
|
--navbar-height: var(--navbarSize, 3.5rem);
|
||||||
--emoji-size: var(--emojiSize, 32px);
|
--emoji-size: var(--emojiSize, 32px);
|
||||||
|
|
@ -382,6 +382,10 @@ nav {
|
||||||
font-family: sans-serif;
|
font-family: sans-serif;
|
||||||
font-family: var(--font);
|
font-family: var(--font);
|
||||||
|
|
||||||
|
&.-transparent {
|
||||||
|
backdrop-filter: blur(0.125em) contrast(60%);
|
||||||
|
}
|
||||||
|
|
||||||
&::-moz-focus-inner {
|
&::-moz-focus-inner {
|
||||||
border: none;
|
border: none;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -64,6 +64,26 @@ export default {
|
||||||
opacity: 0.5
|
opacity: 0.5
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
component: 'Text',
|
||||||
|
parent: {
|
||||||
|
component: 'Button',
|
||||||
|
variant: 'transparent'
|
||||||
|
},
|
||||||
|
directives: {
|
||||||
|
textColor: '--text'
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
component: 'Icon',
|
||||||
|
parent: {
|
||||||
|
component: 'Button',
|
||||||
|
variant: 'transparent'
|
||||||
|
},
|
||||||
|
directives: {
|
||||||
|
textColor: '--text'
|
||||||
|
}
|
||||||
|
},
|
||||||
{
|
{
|
||||||
state: ['hover'],
|
state: ['hover'],
|
||||||
directives: {
|
directives: {
|
||||||
|
|
|
||||||
|
|
@ -140,7 +140,7 @@ const EmojiPicker = {
|
||||||
},
|
},
|
||||||
updateEmojiSize () {
|
updateEmojiSize () {
|
||||||
const css = window.getComputedStyle(this.$refs.popover.$el)
|
const css = window.getComputedStyle(this.$refs.popover.$el)
|
||||||
const fontSize = css.getPropertyValue('font-size') || '14px'
|
const fontSize = css.getPropertyValue('font-size') || '1rem'
|
||||||
const emojiSize = css.getPropertyValue('--emojiSize') || '2.2rem'
|
const emojiSize = css.getPropertyValue('--emojiSize') || '2.2rem'
|
||||||
|
|
||||||
const fontSizeUnit = fontSize.replace(/[0-9,.]+/, '').trim()
|
const fontSizeUnit = fontSize.replace(/[0-9,.]+/, '').trim()
|
||||||
|
|
|
||||||
|
|
@ -12,13 +12,13 @@
|
||||||
<article
|
<article
|
||||||
class="NotificationParent"
|
class="NotificationParent"
|
||||||
:class="{ '-expandable': expandable }"
|
:class="{ '-expandable': expandable }"
|
||||||
:aria-controls="'notif-' +notification.id"
|
|
||||||
v-else
|
v-else
|
||||||
>
|
>
|
||||||
<div
|
<div
|
||||||
v-if="needMute && !unmuted"
|
v-if="needMute && !unmuted"
|
||||||
:id="'notif-' +notification.id"
|
:id="'notif-' +notification.id"
|
||||||
:aria-expanded="statusExpanded"
|
:aria-expanded="statusExpanded"
|
||||||
|
:aria-controls="'notif-' +notification.id"
|
||||||
class="Notification container -muted"
|
class="Notification container -muted"
|
||||||
>
|
>
|
||||||
<small>
|
<small>
|
||||||
|
|
|
||||||
|
|
@ -245,8 +245,8 @@
|
||||||
margin-right: 0;
|
margin-right: 0;
|
||||||
|
|
||||||
.emoji {
|
.emoji {
|
||||||
width: 14px;
|
width: 1em;
|
||||||
height: 14px;
|
height: 1em;
|
||||||
vertical-align: middle;
|
vertical-align: middle;
|
||||||
object-fit: contain;
|
object-fit: contain;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -59,32 +59,6 @@
|
||||||
@click.prevent="toggleShowMore"
|
@click.prevent="toggleShowMore"
|
||||||
>
|
>
|
||||||
{{ toggleText }}
|
{{ toggleText }}
|
||||||
<template v-if="!showingMore">
|
|
||||||
<FAIcon
|
|
||||||
v-if="attachmentTypes.includes('image')"
|
|
||||||
icon="image"
|
|
||||||
/>
|
|
||||||
<FAIcon
|
|
||||||
v-if="attachmentTypes.includes('video')"
|
|
||||||
icon="video"
|
|
||||||
/>
|
|
||||||
<FAIcon
|
|
||||||
v-if="attachmentTypes.includes('audio')"
|
|
||||||
icon="music"
|
|
||||||
/>
|
|
||||||
<FAIcon
|
|
||||||
v-if="attachmentTypes.includes('unknown')"
|
|
||||||
icon="file"
|
|
||||||
/>
|
|
||||||
<FAIcon
|
|
||||||
v-if="status.poll && status.poll.options"
|
|
||||||
icon="poll-h"
|
|
||||||
/>
|
|
||||||
<FAIcon
|
|
||||||
v-if="status.card"
|
|
||||||
icon="link"
|
|
||||||
/>
|
|
||||||
</template>
|
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -24,7 +24,7 @@
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div v-else-if="status.poll && status.poll.options && compact">
|
<div class="poll-icon" v-else-if="status.poll && status.poll.options && compact">
|
||||||
<FAIcon
|
<FAIcon
|
||||||
icon="poll-h"
|
icon="poll-h"
|
||||||
size="2x"
|
size="2x"
|
||||||
|
|
@ -63,5 +63,9 @@
|
||||||
.StatusContent {
|
.StatusContent {
|
||||||
flex: 1;
|
flex: 1;
|
||||||
min-width: 0;
|
min-width: 0;
|
||||||
|
|
||||||
|
.poll-icon {
|
||||||
|
margin: 0.5em;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
|
||||||
|
|
@ -108,7 +108,7 @@ const defaultState = {
|
||||||
palette: null,
|
palette: null,
|
||||||
style: null,
|
style: null,
|
||||||
emojiReactionsScale: 0.5,
|
emojiReactionsScale: 0.5,
|
||||||
textSize: '14px',
|
textSize: '1rem',
|
||||||
emojiSize: '2.2rem',
|
emojiSize: '2.2rem',
|
||||||
navbarSize: '3.5rem',
|
navbarSize: '3.5rem',
|
||||||
panelHeaderSize: '3.2rem',
|
panelHeaderSize: '3.2rem',
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue