<template>
  <div class="rpm-main">
    <Header />
    <Sidebar />
    <div class="rpm-main__body">
      <router-view />
    </div>
  </div>
</template>

<script>
import Header from "./components/Header";
import Sidebar from './components/Sidebar/index';

export default {
  name: "layout",
  components: {
    Header,
    Sidebar
  }
};
</script>

<style lang="scss" scoped>
  @import "~@/styles/mixin.scss";
  @import "~@/styles/variables.scss";
  //@charset "UTF-8";
  
  .rpm-main {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    overflow: hidden;
    min-width: 1200px;
  }
  .rpm-main__body {
    position: absolute;
    top: 60px;
    right: 0px;
    bottom: 0px;
    left: 180px;
    padding: 20px;
    background-color: white;
    overflow-x: hidden;
    overflow-y: auto;
  }
  .rpm-main__body::-webkit-scrollbar {
    width: 10px;
    background-color: white;
  }
  .rpm-main__body::-webkit-scrollbar-track {
    background-color: white;
  }
  .rpm-main__body::-webkit-scrollbar-thumb {
    background-color: #f6f7fb;
  }

</style>
