From 6ad90ecfa85f0cccb4365de8192e03026f1d5032 Mon Sep 17 00:00:00 2001 From: syuilo Date: Fri, 18 May 2018 09:40:57 +0900 Subject: [PATCH] :art: --- .../app/common/views/widgets/calendar.vue | 195 +++++++++--------- .../views/components/widget-container.vue | 3 + src/client/app/mobile/views/pages/widgets.vue | 1 + 3 files changed, 96 insertions(+), 103 deletions(-) diff --git a/src/client/app/common/views/widgets/calendar.vue b/src/client/app/common/views/widgets/calendar.vue index 41e925378..0e9714960 100644 --- a/src/client/app/common/views/widgets/calendar.vue +++ b/src/client/app/common/views/widgets/calendar.vue @@ -1,37 +1,37 @@ @@ -111,93 +111,82 @@ 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 + .mkw-calendar--body + padding 16px 0 + color isDark ? #c5ced6 : #777 - &[data-mobile] - border none - border-radius 8px - box-shadow 0 0 0 1px rgba(#000, 0.2) + &:after + content "" + display block + clear both - &:after - content "" - display block - clear both + > .calendar + float left + width 60% + text-align center - > .calendar - float left - width 60% - text-align center - - &[data-is-holiday] - > .day - color #ef95a0 - - > p - margin 0 - line-height 18px - font-size 14px - - > span - margin 0 4px - - > .day - margin 10px 0 - line-height 32px - font-size 28px - - > .info - display block - float left - width 40% - padding 0 16px 0 0 - - > div - margin-bottom 8px - - &:last-child - margin-bottom 4px + &[data-is-holiday] + > .day + color #ef95a0 > p - margin 0 0 2px 0 - font-size 12px + margin 0 line-height 18px - color isDark ? #7a8692 : #888 + font-size 14px - > b - margin-left 2px + > span + margin 0 4px - > .meter - width 100% - overflow hidden - background isDark ? #1c1f25 : #eee - border-radius 8px + > .day + margin 10px 0 + line-height 32px + font-size 28px - > .val - height 4px - background $theme-color + > .info + display block + float left + width 40% + padding 0 16px 0 0 - &:nth-child(1) - > .meter > .val - background #f7796c + > div + margin-bottom 8px - &:nth-child(2) - > .meter > .val - background #a1de41 + &:last-child + margin-bottom 4px - &:nth-child(3) - > .meter > .val - background #41ddde + > p + margin 0 0 2px 0 + font-size 12px + line-height 18px + color isDark ? #7a8692 : #888 + + > b + margin-left 2px + + > .meter + width 100% + overflow hidden + background isDark ? #1c1f25 : #eee + border-radius 8px + + > .val + height 4px + background $theme-color + + &:nth-child(1) + > .meter > .val + background #f7796c + + &:nth-child(2) + > .meter > .val + background #a1de41 + + &:nth-child(3) + > .meter > .val + background #41ddde .mkw-calendar[data-darkmode] root(true) diff --git a/src/client/app/mobile/views/components/widget-container.vue b/src/client/app/mobile/views/components/widget-container.vue index 8a97848b7..a713a1062 100644 --- a/src/client/app/mobile/views/components/widget-container.vue +++ b/src/client/app/mobile/views/components/widget-container.vue @@ -35,6 +35,9 @@ root(isDark) background transparent !important box-shadow none !important + &.hideHeader + background isDark ? #21242f : #fff + > header > .title margin 0 diff --git a/src/client/app/mobile/views/pages/widgets.vue b/src/client/app/mobile/views/pages/widgets.vue index b4022fd58..509ce16ee 100644 --- a/src/client/app/mobile/views/pages/widgets.vue +++ b/src/client/app/mobile/views/pages/widgets.vue @@ -143,6 +143,7 @@ main margin 0 auto padding 8px max-width 500px + width 100% @media (min-width 500px) padding 16px 8px