<template>
  <div class="layout">
    <iheader class="header" />
    <div class="content">
      <islide class="slide" />
      <div class="main">
        <ititle class="title" />
        <div class="content-layer">
          <router-view></router-view>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
import header from './header'
import slide from './slide'
import title from './title'

export default {
  components: {
    iheader: header,
    islide: slide,
    ititle: title
  }
}
</script>

<style>
.layout {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.header {
  height: 70px;
  flex: 0 0 auto;
}

.content {
  flex: 1;
  display: flex;
}

.slide {
  width: 235px;
}

.main {
  flex: 1;
  background-color: #e5e5e5;
  position: relative;
}

.title {
  height: 50px;
  flex: 0 0 auto
}

.content-layer {
  padding: 30px;
  flex: 1;
  top: 50px;
  bottom: 0;
  left: 0;
  right: 0;
  position: absolute;
  overflow-y: scroll;
}
</style>
