more transparent panels fixes
This commit is contained in:
parent
ce5552ae3c
commit
6d77bc2bd5
|
@ -68,14 +68,14 @@ export default {
|
||||||
{
|
{
|
||||||
state: ['toggled'],
|
state: ['toggled'],
|
||||||
directives: {
|
directives: {
|
||||||
background: '--inheritedBackground,-24.2',
|
background: '--inheritedBackground,-14.2',
|
||||||
shadow: ['--defaultButtonShadow', '--pressedButtonBevel']
|
shadow: ['--defaultButtonShadow', '--pressedButtonBevel']
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
state: ['toggled', 'hover'],
|
state: ['toggled', 'hover'],
|
||||||
directives: {
|
directives: {
|
||||||
background: '--inheritedBackground,-24.2',
|
background: '--inheritedBackground,-14.2',
|
||||||
shadow: ['--defaultButtonHoverGlow', '--pressedButtonBevel']
|
shadow: ['--defaultButtonHoverGlow', '--pressedButtonBevel']
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
|
@ -77,13 +77,13 @@ const Timeline = {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
classes () {
|
classes () {
|
||||||
let rootClasses = !this.embedded ? ['panel', 'panel-default'] : ['-nonpanel']
|
let rootClasses = !this.embedded ? ['panel', 'panel-default'] : ['-embedded']
|
||||||
if (this.blockingClicks) rootClasses = rootClasses.concat(['-blocked', '_misclick-prevention'])
|
if (this.blockingClicks) rootClasses = rootClasses.concat(['-blocked', '_misclick-prevention'])
|
||||||
return {
|
return {
|
||||||
root: rootClasses,
|
root: rootClasses,
|
||||||
header: ['timeline-heading'].concat(!this.embedded ? ['panel-heading', '-sticky'] : []),
|
header: ['timeline-heading'].concat(!this.embedded ? ['panel-heading', '-sticky'] : ['panel-body']),
|
||||||
body: ['timeline-body'].concat(!this.embedded ? ['panel-body'] : []),
|
body: ['timeline-body'].concat(!this.embedded ? ['panel-body'] : ['panel-body']),
|
||||||
footer: ['timeline-footer'].concat(!this.embedded ? ['panel-footer'] : [])
|
footer: ['timeline-footer'].concat(!this.embedded ? ['panel-footer'] : ['panel-body'])
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
// id map of statuses which need to be hidden in the main list due to pinning logic
|
// id map of statuses which need to be hidden in the main list due to pinning logic
|
||||||
|
|
|
@ -29,12 +29,17 @@
|
||||||
z-index: 2;
|
z-index: 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
&.-nonpanel {
|
&.-embedded {
|
||||||
.timeline-heading {
|
.timeline-heading {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
line-height: 2.75em;
|
line-height: 2.75em;
|
||||||
padding: 0 0.5em;
|
padding: 0 0.5em;
|
||||||
|
|
||||||
|
// Override the shrug empty filler
|
||||||
|
&:empty::before {
|
||||||
|
content: initial;
|
||||||
|
}
|
||||||
|
|
||||||
.button-default,
|
.button-default,
|
||||||
.alert {
|
.alert {
|
||||||
line-height: 2em;
|
line-height: 2em;
|
||||||
|
|
|
@ -74,6 +74,7 @@
|
||||||
<div
|
<div
|
||||||
v-if="followsTabVisible"
|
v-if="followsTabVisible"
|
||||||
key="followees"
|
key="followees"
|
||||||
|
class="panel-body"
|
||||||
:label="$t('user_card.followees')"
|
:label="$t('user_card.followees')"
|
||||||
:disabled="!user.friends_count"
|
:disabled="!user.friends_count"
|
||||||
>
|
>
|
||||||
|
@ -88,6 +89,7 @@
|
||||||
</div>
|
</div>
|
||||||
<div
|
<div
|
||||||
v-if="followersTabVisible"
|
v-if="followersTabVisible"
|
||||||
|
class="panel-body"
|
||||||
key="followers"
|
key="followers"
|
||||||
:label="$t('user_card.followers')"
|
:label="$t('user_card.followers')"
|
||||||
:disabled="!user.followers_count"
|
:disabled="!user.followers_count"
|
||||||
|
|
|
@ -37,7 +37,7 @@
|
||||||
&:empty::before {
|
&:empty::before {
|
||||||
content: "¯\\_(ツ)_/¯"; // Could use words but it'd require translations
|
content: "¯\\_(ツ)_/¯"; // Could use words but it'd require translations
|
||||||
display: block;
|
display: block;
|
||||||
margin: 1em;
|
padding: 1em;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue