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

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

<style lang="less" scoped>

.text{
  position: relative;
  display: flex;
  align-items: center;
}

.msg-card {
  width: 100%;
  height: 100%;
}
.msg-card-title {
  // background-color: #165b9b;
  background:linear-gradient(90deg, rgba(17, 88, 158, 0.45), rgba(17, 88, 158, 0));
  border-left: 4px solid #1860a3;
  height: 20px;
  line-height: 20px;
  padding-left: 6px;
  font-size: 16px;
  width: 100%;
  text-align: left;
}
.long{
  background-image: url('../../assets/images/holo/bottomCartHead.png');
}
.content {
  overflow-y: hidden;
  padding: 6px;
  // background-image: url('../../assets/images/holo/border.png');
  // background-size: 100% 100%;
  margin: 4px 0 4px 0;
}
.msg-card-content {
  height: calc(100% - 28px);
}
.msg-card-content-noHeader {
  height: 100%;
}
</style>
