better virtual components and stuff
This commit is contained in:
parent
ff2db7a247
commit
53a4b1f9a6
17 changed files with 354 additions and 137 deletions
|
|
@ -1,4 +1,15 @@
|
|||
export default {
|
||||
name: 'Icon',
|
||||
selector: '.icon'
|
||||
virtual: true,
|
||||
selector: '.svg-inline--fa',
|
||||
defaultRules: [
|
||||
{
|
||||
component: 'Icon',
|
||||
directives: {
|
||||
textColor: '--text',
|
||||
textOpacity: 0.5,
|
||||
textOpacityMode: 'mixrgb'
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
|
|||
25
src/components/link.style.js
Normal file
25
src/components/link.style.js
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
export default {
|
||||
name: 'Link',
|
||||
selector: 'a',
|
||||
virtual: true,
|
||||
states: {
|
||||
faint: '.faint'
|
||||
},
|
||||
defaultRules: [
|
||||
{
|
||||
component: 'Link',
|
||||
directives: {
|
||||
textColor: '--link'
|
||||
}
|
||||
},
|
||||
{
|
||||
component: 'Link',
|
||||
state: ['faint'],
|
||||
directives: {
|
||||
textColor: '--link',
|
||||
textOpacity: 0.5,
|
||||
textOpacityMode: 'fake'
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
@ -155,7 +155,7 @@
|
|||
<router-link
|
||||
v-if="notification.status"
|
||||
:to="{ name: 'conversation', params: { id: notification.status.id } }"
|
||||
class="timeago-link faint-link"
|
||||
class="timeago-link faint"
|
||||
>
|
||||
<Timeago
|
||||
:time="notification.created_at"
|
||||
|
|
|
|||
|
|
@ -7,8 +7,7 @@
|
|||
}
|
||||
|
||||
.loadmore-error {
|
||||
color: $fallback--text;
|
||||
color: var(--text, $fallback--text);
|
||||
color: var(--text);
|
||||
}
|
||||
|
||||
.notification {
|
||||
|
|
@ -25,7 +24,7 @@
|
|||
|
||||
&.unseen {
|
||||
.notification-overlay {
|
||||
background-image: linear-gradient(135deg, var(--badgeNotification, $fallback--cRed) 4px, transparent 10px);
|
||||
background-image: linear-gradient(135deg, var(--badgeNotification) 4px, transparent 10px);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -60,24 +59,17 @@
|
|||
width: 32px;
|
||||
height: 32px;
|
||||
}
|
||||
|
||||
.faint {
|
||||
--link: var(--faintLink);
|
||||
--text: var(--faint);
|
||||
}
|
||||
}
|
||||
|
||||
.follow-request-accept {
|
||||
&:hover {
|
||||
color: $fallback--text;
|
||||
color: var(--text, $fallback--text);
|
||||
color: var(--text);
|
||||
}
|
||||
}
|
||||
|
||||
.follow-request-reject {
|
||||
&:hover {
|
||||
color: $fallback--cRed;
|
||||
color: var(--cRed, $fallback--cRed);
|
||||
color: var(--cRed);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -3,6 +3,7 @@ export default {
|
|||
selector: '.panel',
|
||||
validInnerComponents: [
|
||||
'Text',
|
||||
'Link',
|
||||
'Icon',
|
||||
'Button',
|
||||
'PanelHeader'
|
||||
|
|
|
|||
|
|
@ -3,6 +3,7 @@ export default {
|
|||
selector: '.panel-heading',
|
||||
validInnerComponents: [
|
||||
'Text',
|
||||
'Link',
|
||||
'Icon',
|
||||
'Button'
|
||||
]
|
||||
|
|
|
|||
|
|
@ -180,7 +180,7 @@
|
|||
|
||||
<span class="heading-right">
|
||||
<router-link
|
||||
class="timeago faint-link"
|
||||
class="timeago faint"
|
||||
:to="{ name: 'conversation', params: { id: status.id } }"
|
||||
>
|
||||
<Timeago
|
||||
|
|
|
|||
|
|
@ -113,12 +113,11 @@
|
|||
}
|
||||
|
||||
.greentext {
|
||||
color: $fallback--cGreen;
|
||||
color: var(--postGreentext, $fallback--cGreen);
|
||||
color: var(--textGreentext);
|
||||
}
|
||||
|
||||
.cyantext {
|
||||
color: var(--postCyantext, $fallback--cBlue);
|
||||
color: var(--textCyantext);
|
||||
}
|
||||
|
||||
&.-compact {
|
||||
|
|
|
|||
|
|
@ -1,7 +1,43 @@
|
|||
export default {
|
||||
name: 'Text',
|
||||
selector: '/*text*/',
|
||||
virtual: true,
|
||||
variants: {
|
||||
greentext: '.greentext'
|
||||
},
|
||||
states: {
|
||||
faint: '.faint'
|
||||
}
|
||||
},
|
||||
defaultRules: [
|
||||
{
|
||||
component: 'Text',
|
||||
directives: {
|
||||
textColor: '--text'
|
||||
}
|
||||
},
|
||||
{
|
||||
component: 'Text',
|
||||
state: ['faint'],
|
||||
directives: {
|
||||
textColor: '--text',
|
||||
textOpacity: 0.5
|
||||
}
|
||||
},
|
||||
{
|
||||
component: 'Text',
|
||||
variant: 'greentext',
|
||||
directives: {
|
||||
textColor: '--cGreen'
|
||||
}
|
||||
},
|
||||
{
|
||||
component: 'Text',
|
||||
variant: 'greentext',
|
||||
state: ['faint'],
|
||||
directives: {
|
||||
textColor: '--cGreen',
|
||||
textOpacity: 0.5
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,6 +1,7 @@
|
|||
export default {
|
||||
name: 'Underlay',
|
||||
selector: '#app',
|
||||
selector: '#content',
|
||||
outOfTreeSelector: '.underlay',
|
||||
validInnerComponents: [
|
||||
'Panel'
|
||||
]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue