<template>
  <div id="app">
    <keep-alive>
      <router-view v-wechat-title="$route.meta.title" v-if="$route.meta.keepAlive"></router-view>
    </keep-alive>
    <router-view v-wechat-title="$route.meta.title" v-if="!$route.meta.keepAlive"></router-view>
  </div>
</template>

<script>
  export default {
    name: 'App',
    created() {
    }
  }
</script>

<style lang="less">
  #app {
    font-family: 'Avenir', Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    color: #2c3e50;
    height: 100%;
    width: 100%;
  }

  .el-tabs--border-card {
    /*height: 100%;*/
  }

  .foot-page {
    margin-top: 20px;
    display: flex;
    justify-content: center;
  }

  body,html{
    height: 100%;
    width: 100%;
    overflow: hidden;
    background-color: #f2f2f2;
    padding: 0;
    margin: 0;
  }

  h4,h3{
    margin: 0;
    padding: 0;
  }

  .el-cascader--small {
    width: 100% !important;
  }

  .el-button--mini {
    padding: 5px 7px!important;
    font-size: 12px!important;
  }

  .el-button+.el-button {
    margin-left: 2px!important;
  }

  .el-form--inline .el-form-item{
    margin-bottom: 10px!important;
  }

  .el-select {
    width: 100%
  }

  .el-table--border th{
    background-color: #f2f2f2!important;
    color: #666666!important;
  }

  .page-current{
    text-align: center;
    padding: 15px 5px;
    padding-bottom: 0px;
  }

  .el-form-item__content{
    text-align: left!important;
  }

  a{text-decoration:none}

  img {
    cursor: pointer;
  }

  .el-radio-button__orig-radio:disabled:checked+.el-radio-button__inner {
    color: #FFF!important;
    background-color: #409EFF!important;
    border-color: #409EFF!important;
  }

  .viewer-new-title {
    color: #ffffff;
    display: inline-block;
    font-size: 16px;
    line-height: 2;
    margin: 0 5% 5px;
    max-width: 90%;
    opacity: 0.8;
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-transition: opacity 0.15s;
    transition: opacity 0.15s;
    white-space: nowrap;
  }

  .el-tabs__header .el-tabs__item.is-active {
    color: #fff!important;
    background-color: #409eff!important;
  }

  .el-tabs--top .el-tabs__item.is-top:nth-child(2) {
     padding-left: 20px
  }

  .el-tabs--top .el-tabs__item.is-top:last-child {
     padding-right: 20px;
  }

  .el-dialog__header {
    background-color: #1890ff;
    padding: 12px 20px 10px!important;
    .el-dialog__title {
      color: #ffffff!important;
    }
    .el-dialog__headerbtn {
      top: 15px!important;
      .el-dialog__close{
        color: #ffffff!important;
      }
    }
  }

  //表格//解决element-ui的table表格控件表头与内容列不对齐问题

  .el-table th.gutter {

    display: table-cell!important;

  }

  *{
    outline: none;
  }

  .fade-leave-active {
    opacity: 0;
    transition: all 500ms;
  }

  .fade-enter-active {
    opacity: 1;
    transform: translateX(0);
    transition: all 500ms;
  }

  .fade-enter {
    opacity: 0;
    transform: translateX(100%);
  }

  .fade-leave {
    opacity: 1;
    transform: translateX(0);
  }



  .el-drawer__body{
    padding: 0px 20px 20px 20px;
    overflow-y: auto;
  }

  .el-menu--collapse {
    width: 64px!important;
  }

  .cz-tip{
    .el-collapse-item__header{
      background-color: rgba(79, 192, 232, 0.11);
      padding: 0 10px;
      font-size: 14px;
      .el-collapse-item__arrow{
        margin: 0px 0 0 10px;
      }
    }
    .el-collapse-item__wrap{
      background-color: rgba(79, 192, 232, 0.11);
      font-size: 12px;
      padding: 0 10px;
      ul{
        margin: 0;
        line-height: 20px;
        color: #748A8F;
        padding-left: 20px;
      }
      .el-collapse-item__content{
        padding-bottom: 10px;
      }
    }
  }

  .el-card__header{
    background-color: #409eff;
    color: #ffffff;
  }


  .el-message-box{
    border: none!important;
    .el-message-box__header {
      background-color: #1890ff;
      padding: 12px 15px 10px!important;
      .el-message-box__title {
        color: #ffffff!important;
        font-size: 17px!important;
      }
      .el-message-box__headerbtn {
        top: 12px!important;
        .el-message-box__close {
          color: #ffffff!important
        }
      }
    }
  }
  .el-form{
     .span-tip {
      color: #999999;
      line-height: 14px;
      font-size: 12px;
      margin-top: 5px;
    }
  }

  .el-input--small .el-input__inner {
    text-align: left;
  }

  .el-input.is-disabled .el-input__inner {
    background-color: #ffffff;
    color: #333333;
  }

</style>
