1
1
mirror of https://github.com/kokonect-link/cherrypick synced 2024-12-18 16:48:30 +09:00
cherrypick/src/client/app/common/views/components/ui/card.vue

37 lines
535 B
Vue
Raw Normal View History

2018-06-14 14:52:37 +09:00
<template>
2018-06-14 16:48:49 +09:00
<div class="ui-card">
2018-06-14 14:52:37 +09:00
<header>
<slot name="title"></slot>
</header>
<slot></slot>
</div>
</template>
<script lang="ts">
import Vue from 'vue';
2018-06-14 18:53:02 +09:00
export default Vue.extend({
provide() {
return {
isCardChild: true
};
}
});
2018-06-14 14:52:37 +09:00
</script>
<style lang="stylus" scoped>
@import '~const.styl'
2018-06-14 16:48:49 +09:00
.ui-card
2018-06-14 18:53:02 +09:00
margin 16px
padding 16px
2018-06-14 16:48:49 +09:00
background #fff
2018-06-14 18:53:02 +09:00
box-shadow 0 3px 1px -2px rgba(#000, 0.2), 0 2px 2px 0 rgba(#000, 0.14), 0 1px 5px 0 rgba(#000, 0.12)
2018-06-14 16:48:49 +09:00
2018-06-14 14:52:37 +09:00
> header
font-weight bold
2018-06-14 16:48:49 +09:00
font-size 28px
color #444
2018-06-14 14:52:37 +09:00
</style>