<template>
  <div class="msg-card">
    <div class="msg-card-title" :class="[{ long: long }, {}]" v-if="!noHeader">
        {{ title }}
    </div>
    <div :class="[noHeader ? 'msg-card-content-noHeader' : 'msg-card-content']">
      <slot></slot>
    </div>
  </div>
</template>

<script>
export default {
  name: "msg-card",
  props: {
    long: Boolean,
    title: String,
    subhead: String,
    noHeader: Boolean,
  },
  computed: {},
};
</script>

<style lang="less" scoped>
.right-text {
  margin-left: 25px;
}
.msg-card {
  width: 100%;
  height: 100%;
  .msg-card-title {
    height: 45px;
    font-weight: bold;
    line-height: 45px;
    padding-left: 25px;
    width: 100%;
    font-size: 21px;
    color: white;
    text-align: left;
    background-image: url("../../assets/images/holo/msgCardHead.png");
    background-size: 100% 100%;
  }
  .long {
    background-image: url("../../assets/images/holo/msgCardHeadLong.png");
  }
  .msg-card-content {
    overflow: hidden;
    padding: 5px;
    background-size: 100% 100%;
    //background-image: url("../../assets/images/holo/border.png");
    height: calc(100% - 45px);
  }
  .msg-card-content-noHeader {
    height: 100%;
    overflow-y: hidden;
    padding: 10px 10px 0 10px;
    background-size: 100% 100%;
  }
}


</style>
