BlockTemplate.vue 965 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<template>
  <div class="block">
    <div class="heading">
      <h2>{{ heading }}</h2>
    </div>
    <div class="content">
      <slot/>
    </div>
  </div>
</template>

<script>
export default {
  props: [ 'heading' ]
}
</script>

<style lang="scss">
  $padding: 20px;

  .block {
    width: 100%;
    height: 100%;
24
    min-width: 150px;
25
    text-align: left;
26
27
    display: flex;
    flex-direction: column;
28
29
30
31
32
33
34
35
36
37
38
39
40
  }

  .heading {
    color: $lightest-theme-color;
    background-color: $theme-color;

    h2 {
      padding: 10px $padding;
      margin: 0;
    }
  }

  .content {
41
    padding: 0;
42
    overflow-y: auto;
43
44
45
46
47
  }

  ul {
    list-style-type: none;
    padding: 0;
48
49
50
51
52
53
    margin: 0 !important;
  }

  li {
    padding: 0 $padding;
    padding-top: $padding / 2;
54
55
56
  }

  hr {
57
58
59
60
    border: none;
    background-color: $theme-color;
    color: $theme-color;
    height: 1px;
61
62
    margin-left: -$padding;
    margin-right: -$padding;
63
    margin-bottom: 0;
64
65
  }
</style>