2018-06-14 00:52:37 -05:00
|
|
|
<template>
|
2018-06-14 02:48:49 -05:00
|
|
|
<div class="ui-card">
|
2018-06-14 00:52:37 -05:00
|
|
|
<header>
|
|
|
|
<slot name="title"></slot>
|
|
|
|
</header>
|
|
|
|
|
|
|
|
<slot></slot>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script lang="ts">
|
|
|
|
import Vue from 'vue';
|
2018-06-14 04:53:02 -05:00
|
|
|
export default Vue.extend({
|
|
|
|
provide() {
|
|
|
|
return {
|
|
|
|
isCardChild: true
|
|
|
|
};
|
|
|
|
}
|
|
|
|
});
|
2018-06-14 00:52:37 -05:00
|
|
|
</script>
|
|
|
|
|
|
|
|
<style lang="stylus" scoped>
|
2018-09-26 06:19:35 -05:00
|
|
|
|
2018-06-14 00:52:37 -05:00
|
|
|
|
2018-06-14 07:38:39 -05:00
|
|
|
root(isDark)
|
2018-06-14 04:53:02 -05:00
|
|
|
margin 16px
|
2018-06-14 17:56:56 -05:00
|
|
|
color isDark ? #fff : #000
|
2018-06-14 07:38:39 -05:00
|
|
|
background isDark ? #282C37 : #fff
|
2018-06-14 04:53:02 -05: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 02:48:49 -05:00
|
|
|
|
2018-06-14 00:52:37 -05:00
|
|
|
> header
|
2018-09-04 23:47:26 -05:00
|
|
|
padding 16px
|
|
|
|
font-weight bold
|
|
|
|
font-size 20px
|
2018-06-14 07:38:39 -05:00
|
|
|
color isDark ? #fff : #444
|
|
|
|
|
2018-09-04 23:47:26 -05:00
|
|
|
@media (min-width 500px)
|
|
|
|
padding 24px 32px
|
|
|
|
|
|
|
|
> section
|
|
|
|
padding 20px 16px
|
|
|
|
border-top solid 1px isDark ? rgba(#000, 0.3) : rgba(#000, 0.1)
|
|
|
|
|
|
|
|
@media (min-width 500px)
|
|
|
|
padding 32px
|
|
|
|
|
|
|
|
&.fit-top
|
|
|
|
padding-top 0
|
|
|
|
|
|
|
|
> header
|
|
|
|
margin-bottom 16px
|
|
|
|
font-weight bold
|
|
|
|
color isDark ? #fff : #444
|
|
|
|
|
2018-06-14 07:38:39 -05:00
|
|
|
.ui-card[data-darkmode]
|
|
|
|
root(true)
|
|
|
|
|
|
|
|
.ui-card:not([data-darkmode])
|
|
|
|
root(false)
|
2018-06-14 00:52:37 -05:00
|
|
|
|
|
|
|
</style>
|