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