🎨
This commit is contained in:
parent
82d94b5963
commit
251629ab61
13 changed files with 67 additions and 77 deletions
|
@ -1,9 +1,12 @@
|
||||||
<template>
|
<template>
|
||||||
<div class="anltbovirfeutcigvwgmgxipejaeozxi"
|
<div class="anltbovirfeutcigvwgmgxipejaeozxi">
|
||||||
|
<mk-widget-container :show-header="false" :naked="props.design == 1">
|
||||||
|
<div class="anltbovirfeutcigvwgmgxipejaeozxi-body"
|
||||||
:data-found="announcements && announcements.length != 0"
|
:data-found="announcements && announcements.length != 0"
|
||||||
:data-melt="props.design == 1"
|
:data-melt="props.design == 1"
|
||||||
:data-mobile="platform == 'mobile'"
|
:data-mobile="platform == 'mobile'"
|
||||||
>
|
:data-darkmode="$store.state.device.darkmode"
|
||||||
|
>
|
||||||
<div class="icon">
|
<div class="icon">
|
||||||
<svg height="32" version="1.1" viewBox="0 0 32 32" width="32">
|
<svg height="32" version="1.1" viewBox="0 0 32 32" width="32">
|
||||||
<path class="tower" d="M16.04,11.24c1.79,0,3.239-1.45,3.239-3.24S17.83,4.76,16.04,4.76c-1.79,0-3.24,1.45-3.24,3.24 C12.78,9.78,14.24,11.24,16.04,11.24z M16.04,13.84c-0.82,0-1.66-0.2-2.4-0.6L7.34,29.98h2.98l1.72-2h8l1.681,2H24.7L18.42,13.24 C17.66,13.64,16.859,13.84,16.04,13.84z M16.02,14.8l2.02,7.2h-4L16.02,14.8z M12.04,25.98l2-2h4l2,2H12.04z"></path>
|
<path class="tower" d="M16.04,11.24c1.79,0,3.239-1.45,3.239-3.24S17.83,4.76,16.04,4.76c-1.79,0-3.24,1.45-3.24,3.24 C12.78,9.78,14.24,11.24,16.04,11.24z M16.04,13.84c-0.82,0-1.66-0.2-2.4-0.6L7.34,29.98h2.98l1.72-2h8l1.681,2H24.7L18.42,13.24 C17.66,13.64,16.859,13.84,16.04,13.84z M16.02,14.8l2.02,7.2h-4L16.02,14.8z M12.04,25.98l2-2h4l2,2H12.04z"></path>
|
||||||
|
@ -20,6 +23,8 @@
|
||||||
<template v-if="announcements.length == 0">%i18n:@have-a-nice-day%</template>
|
<template v-if="announcements.length == 0">%i18n:@have-a-nice-day%</template>
|
||||||
</p>
|
</p>
|
||||||
<a v-if="announcements.length > 1" @click="next">%i18n:@next% >></a>
|
<a v-if="announcements.length > 1" @click="next">%i18n:@next% >></a>
|
||||||
|
</div>
|
||||||
|
</mk-widget-container>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
@ -68,11 +73,10 @@ export default define({
|
||||||
<style lang="stylus" scoped>
|
<style lang="stylus" scoped>
|
||||||
root(isDark)
|
root(isDark)
|
||||||
padding 10px
|
padding 10px
|
||||||
border solid 1px #4078c0
|
background isDark ? #253a50 : #f3f9ff
|
||||||
border-radius 6px
|
|
||||||
|
|
||||||
&[data-melt]
|
&[data-melt]
|
||||||
border none
|
background transparent
|
||||||
|
|
||||||
&[data-found]
|
&[data-found]
|
||||||
padding-left 50px
|
padding-left 50px
|
||||||
|
@ -133,7 +137,7 @@ root(isDark)
|
||||||
z-index 1
|
z-index 1
|
||||||
margin 0
|
margin 0
|
||||||
font-size 0.7em
|
font-size 0.7em
|
||||||
color isDark ? #fff : #555
|
color isDark ? #fff : #57616f
|
||||||
|
|
||||||
&.fetching
|
&.fetching
|
||||||
text-align center
|
text-align center
|
||||||
|
@ -146,10 +150,10 @@ root(isDark)
|
||||||
> p
|
> p
|
||||||
color #fff
|
color #fff
|
||||||
|
|
||||||
.anltbovirfeutcigvwgmgxipejaeozxi[data-darkmode]
|
.anltbovirfeutcigvwgmgxipejaeozxi-body[data-darkmode]
|
||||||
root(true)
|
root(true)
|
||||||
|
|
||||||
.anltbovirfeutcigvwgmgxipejaeozxi:not([data-darkmode])
|
.anltbovirfeutcigvwgmgxipejaeozxi-body:not([data-darkmode])
|
||||||
root(false)
|
root(false)
|
||||||
|
|
||||||
</style>
|
</style>
|
||||||
|
|
|
@ -133,8 +133,7 @@ export default Vue.extend({
|
||||||
root(isDark)
|
root(isDark)
|
||||||
color isDark ? #c5ced6 : #777
|
color isDark ? #c5ced6 : #777
|
||||||
background isDark ? #282C37 : #fff
|
background isDark ? #282C37 : #fff
|
||||||
border solid 1px rgba(#000, 0.075)
|
box-shadow 0 3px 8px rgba(0, 0, 0, 0.2)
|
||||||
border-radius 6px
|
|
||||||
overflow hidden
|
overflow hidden
|
||||||
|
|
||||||
&[data-melt]
|
&[data-melt]
|
||||||
|
|
|
@ -231,8 +231,7 @@ root(isDark)
|
||||||
overflow hidden
|
overflow hidden
|
||||||
text-align left
|
text-align left
|
||||||
background isDark ? #282C37 : #fff
|
background isDark ? #282C37 : #fff
|
||||||
border solid 1px rgba(#000, 0.1)
|
box-shadow 0 3px 8px rgba(0, 0, 0, 0.2)
|
||||||
border-radius 8px
|
|
||||||
|
|
||||||
> .read-more
|
> .read-more
|
||||||
display block
|
display block
|
||||||
|
|
|
@ -179,14 +179,12 @@ export default Vue.extend({
|
||||||
|
|
||||||
root(isDark)
|
root(isDark)
|
||||||
background isDark ? #282C37 : #fff
|
background isDark ? #282C37 : #fff
|
||||||
border solid 1px rgba(#000, 0.075)
|
box-shadow 0 3px 8px rgba(0, 0, 0, 0.2)
|
||||||
border-radius 6px
|
|
||||||
|
|
||||||
> header
|
> header
|
||||||
padding 0 8px
|
padding 0 8px
|
||||||
z-index 10
|
z-index 10
|
||||||
background isDark ? #313543 : #fff
|
background isDark ? #313543 : #fff
|
||||||
border-radius 6px 6px 0 0
|
|
||||||
box-shadow 0 1px isDark ? rgba(#000, 0.15) : rgba(#000, 0.08)
|
box-shadow 0 1px isDark ? rgba(#000, 0.15) : rgba(#000, 0.08)
|
||||||
|
|
||||||
> .buttons
|
> .buttons
|
||||||
|
|
|
@ -125,7 +125,7 @@ root(isDark)
|
||||||
top 0
|
top 0
|
||||||
z-index 1000
|
z-index 1000
|
||||||
width 100%
|
width 100%
|
||||||
box-shadow 0 1px 1px rgba(#000, 0.075)
|
box-shadow 0 0px 8px rgba(#000, 0.2)
|
||||||
|
|
||||||
> .warn
|
> .warn
|
||||||
display block
|
display block
|
||||||
|
|
|
@ -36,13 +36,12 @@ export default Vue.extend({
|
||||||
<style lang="stylus" scoped>
|
<style lang="stylus" scoped>
|
||||||
root(isDark)
|
root(isDark)
|
||||||
background isDark ? #282C37 : #fff
|
background isDark ? #282C37 : #fff
|
||||||
border solid 1px rgba(#000, isDark ? 0.2 : 0.075)
|
box-shadow 0 3px 8px rgba(0, 0, 0, 0.2)
|
||||||
border-radius 6px
|
|
||||||
overflow hidden
|
overflow hidden
|
||||||
|
|
||||||
&.naked
|
&.naked
|
||||||
background transparent !important
|
background transparent !important
|
||||||
border none !important
|
box-shadow none !important
|
||||||
|
|
||||||
> header
|
> header
|
||||||
background isDark ? #313543 : #fff
|
background isDark ? #313543 : #fff
|
||||||
|
|
|
@ -38,8 +38,7 @@ export default Vue.extend({
|
||||||
<style lang="stylus" scoped>
|
<style lang="stylus" scoped>
|
||||||
root(isDark)
|
root(isDark)
|
||||||
background isDark ? #282C37 : #fff
|
background isDark ? #282C37 : #fff
|
||||||
border solid 1px rgba(#000, 0.075)
|
box-shadow 0 3px 8px rgba(0, 0, 0, 0.2)
|
||||||
border-radius 6px
|
|
||||||
|
|
||||||
> .title
|
> .title
|
||||||
z-index 1
|
z-index 1
|
||||||
|
|
|
@ -42,8 +42,7 @@ export default Vue.extend({
|
||||||
<style lang="stylus" scoped>
|
<style lang="stylus" scoped>
|
||||||
root(isDark)
|
root(isDark)
|
||||||
background isDark ? #282C37 : #fff
|
background isDark ? #282C37 : #fff
|
||||||
border solid 1px rgba(#000, 0.075)
|
box-shadow 0 3px 8px rgba(0, 0, 0, 0.2)
|
||||||
border-radius 6px
|
|
||||||
overflow hidden
|
overflow hidden
|
||||||
|
|
||||||
> .title
|
> .title
|
||||||
|
|
|
@ -104,8 +104,7 @@ export default Vue.extend({
|
||||||
|
|
||||||
root(isDark)
|
root(isDark)
|
||||||
background isDark ? #282C37 : #fff
|
background isDark ? #282C37 : #fff
|
||||||
border 1px solid rgba(#000, 0.075)
|
box-shadow 0 3px 8px rgba(0, 0, 0, 0.2)
|
||||||
border-radius 6px
|
|
||||||
overflow hidden
|
overflow hidden
|
||||||
|
|
||||||
&[data-is-dark-background]
|
&[data-is-dark-background]
|
||||||
|
|
|
@ -41,8 +41,7 @@ export default Vue.extend({
|
||||||
<style lang="stylus" scoped>
|
<style lang="stylus" scoped>
|
||||||
root(isDark)
|
root(isDark)
|
||||||
background isDark ? #282C37 : #fff
|
background isDark ? #282C37 : #fff
|
||||||
border solid 1px rgba(#000, 0.075)
|
box-shadow 0 3px 8px rgba(0, 0, 0, 0.2)
|
||||||
border-radius 6px
|
|
||||||
overflow hidden
|
overflow hidden
|
||||||
|
|
||||||
> .title
|
> .title
|
||||||
|
|
|
@ -87,8 +87,7 @@ export default Vue.extend({
|
||||||
<style lang="stylus" scoped>
|
<style lang="stylus" scoped>
|
||||||
root(isDark)
|
root(isDark)
|
||||||
background isDark ? #282C37 : #fff
|
background isDark ? #282C37 : #fff
|
||||||
border solid 1px rgba(#000, 0.075)
|
box-shadow 0 3px 8px rgba(0, 0, 0, 0.2)
|
||||||
border-radius 6px
|
|
||||||
|
|
||||||
> *:first-child
|
> *:first-child
|
||||||
border-top none !important
|
border-top none !important
|
||||||
|
|
|
@ -118,8 +118,7 @@ root(isDark)
|
||||||
margin-right 16px
|
margin-right 16px
|
||||||
|
|
||||||
> .timeline
|
> .timeline
|
||||||
border 1px solid rgba(#000, 0.075)
|
box-shadow 0 3px 8px rgba(0, 0, 0, 0.2)
|
||||||
border-radius 6px
|
|
||||||
|
|
||||||
> .side
|
> .side
|
||||||
width 275px
|
width 275px
|
||||||
|
@ -138,8 +137,7 @@ root(isDark)
|
||||||
font-size 12px
|
font-size 12px
|
||||||
color #aaa
|
color #aaa
|
||||||
background isDark ? #21242f : #fff
|
background isDark ? #21242f : #fff
|
||||||
border solid 1px rgba(#000, 0.075)
|
box-shadow 0 3px 8px rgba(0, 0, 0, 0.2)
|
||||||
border-radius 6px
|
|
||||||
|
|
||||||
a
|
a
|
||||||
color #999
|
color #999
|
||||||
|
|
|
@ -1,8 +1,11 @@
|
||||||
<template>
|
<template>
|
||||||
<div class="mkw-profile"
|
<div class="egwyvoaaryotefqhqtmiyawwefemjfsd">
|
||||||
|
<mk-widget-container :show-header="false" :naked="props.design == 2">
|
||||||
|
<div class="egwyvoaaryotefqhqtmiyawwefemjfsd-body"
|
||||||
:data-compact="props.design == 1 || props.design == 2"
|
:data-compact="props.design == 1 || props.design == 2"
|
||||||
:data-melt="props.design == 2"
|
:data-melt="props.design == 2"
|
||||||
>
|
:data-darkmode="$store.state.device.darkmode"
|
||||||
|
>
|
||||||
<div class="banner"
|
<div class="banner"
|
||||||
:style="$store.state.i.bannerUrl ? `background-image: url(${$store.state.i.bannerUrl})` : ''"
|
:style="$store.state.i.bannerUrl ? `background-image: url(${$store.state.i.bannerUrl})` : ''"
|
||||||
title="%i18n:@update-banner%"
|
title="%i18n:@update-banner%"
|
||||||
|
@ -15,6 +18,8 @@
|
||||||
/>
|
/>
|
||||||
<router-link class="name" :to="$store.state.i | userPage">{{ $store.state.i | userName }}</router-link>
|
<router-link class="name" :to="$store.state.i | userPage">{{ $store.state.i | userName }}</router-link>
|
||||||
<p class="username">@{{ $store.state.i | acct }}</p>
|
<p class="username">@{{ $store.state.i | acct }}</p>
|
||||||
|
</div>
|
||||||
|
</mk-widget-container>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
@ -42,10 +47,6 @@ export default define({
|
||||||
|
|
||||||
<style lang="stylus" scoped>
|
<style lang="stylus" scoped>
|
||||||
root(isDark)
|
root(isDark)
|
||||||
overflow hidden
|
|
||||||
background isDark ? #282c37 : #fff
|
|
||||||
border solid 1px rgba(#000, 0.075)
|
|
||||||
border-radius 6px
|
|
||||||
|
|
||||||
&[data-compact]
|
&[data-compact]
|
||||||
> .banner:before
|
> .banner:before
|
||||||
|
@ -75,9 +76,6 @@ root(isDark)
|
||||||
display none
|
display none
|
||||||
|
|
||||||
&[data-melt]
|
&[data-melt]
|
||||||
background transparent !important
|
|
||||||
border none !important
|
|
||||||
|
|
||||||
> .banner
|
> .banner
|
||||||
visibility hidden
|
visibility hidden
|
||||||
|
|
||||||
|
@ -120,10 +118,10 @@ root(isDark)
|
||||||
font-size 0.9em
|
font-size 0.9em
|
||||||
color isDark ? #606984 : #999
|
color isDark ? #606984 : #999
|
||||||
|
|
||||||
.mkw-profile[data-darkmode]
|
.egwyvoaaryotefqhqtmiyawwefemjfsd-body[data-darkmode]
|
||||||
root(true)
|
root(true)
|
||||||
|
|
||||||
.mkw-profile:not([data-darkmode])
|
.egwyvoaaryotefqhqtmiyawwefemjfsd-body:not([data-darkmode])
|
||||||
root(false)
|
root(false)
|
||||||
|
|
||||||
</style>
|
</style>
|
||||||
|
|
Loading…
Reference in a new issue