mirror of
https://github.com/misskey-dev/misskey.git
synced 2024-12-29 05:38:30 +01:00
🎨
This commit is contained in:
parent
fbd51f0079
commit
6ad90ecfa8
3 changed files with 96 additions and 103 deletions
|
@ -1,9 +1,7 @@
|
||||||
<template>
|
<template>
|
||||||
<div class="mkw-calendar"
|
<div class="mkw-calendar" :data-special="special" :data-mobile="isMobile">
|
||||||
:data-melt="props.design == 1"
|
<mk-widget-container :naked="props.design == 1" :show-header="false">
|
||||||
:data-special="special"
|
<div class="mkw-calendar--body">
|
||||||
:data-mobile="isMobile"
|
|
||||||
>
|
|
||||||
<div class="calendar" :data-is-holiday="isHoliday">
|
<div class="calendar" :data-is-holiday="isHoliday">
|
||||||
<p class="month-and-year">
|
<p class="month-and-year">
|
||||||
<span class="year">{{ year }}年</span>
|
<span class="year">{{ year }}年</span>
|
||||||
|
@ -33,6 +31,8 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
</mk-widget-container>
|
||||||
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
|
@ -111,23 +111,12 @@ export default define({
|
||||||
@import '~const.styl'
|
@import '~const.styl'
|
||||||
|
|
||||||
root(isDark)
|
root(isDark)
|
||||||
padding 16px 0
|
|
||||||
color isDark ? #c5ced6 :#777
|
|
||||||
background isDark ? #282C37 : #fff
|
|
||||||
border solid 1px rgba(#000, 0.075)
|
|
||||||
border-radius 6px
|
|
||||||
|
|
||||||
&[data-special='on-new-years-day']
|
&[data-special='on-new-years-day']
|
||||||
border-color #ef95a0
|
border-color #ef95a0
|
||||||
|
|
||||||
&[data-melt]
|
.mkw-calendar--body
|
||||||
background transparent
|
padding 16px 0
|
||||||
border none
|
color isDark ? #c5ced6 : #777
|
||||||
|
|
||||||
&[data-mobile]
|
|
||||||
border none
|
|
||||||
border-radius 8px
|
|
||||||
box-shadow 0 0 0 1px rgba(#000, 0.2)
|
|
||||||
|
|
||||||
&:after
|
&:after
|
||||||
content ""
|
content ""
|
||||||
|
|
|
@ -35,6 +35,9 @@ root(isDark)
|
||||||
background transparent !important
|
background transparent !important
|
||||||
box-shadow none !important
|
box-shadow none !important
|
||||||
|
|
||||||
|
&.hideHeader
|
||||||
|
background isDark ? #21242f : #fff
|
||||||
|
|
||||||
> header
|
> header
|
||||||
> .title
|
> .title
|
||||||
margin 0
|
margin 0
|
||||||
|
|
|
@ -143,6 +143,7 @@ main
|
||||||
margin 0 auto
|
margin 0 auto
|
||||||
padding 8px
|
padding 8px
|
||||||
max-width 500px
|
max-width 500px
|
||||||
|
width 100%
|
||||||
|
|
||||||
@media (min-width 500px)
|
@media (min-width 500px)
|
||||||
padding 16px 8px
|
padding 16px 8px
|
||||||
|
|
Loading…
Reference in a new issue