// 全局变量
@import './variables.scss';
@import './base.scss';
@import './tool.scss';
@import './element-ui.scss';
// video-js 直播回放 样式
@import './video-js.scss';
// 地图编辑样式
@import './mapEdit.scss';

@import './common/cockpit.scss';
@import './customFont.scss';

a {
  text-decoration: none;
  color: #333;
}

* {
  outline: none;
  box-sizing: border-box;
}

.avue-sidebar,
.avue-top,
.avue-logo,
.avue-layout .login-logo,
.avue-main {
  transition: all .3s;
}

.avue-layout {
  position: relative;
  display: flex;
  width: 100%;
  height: 100%;
  background: #EBEEF4;
  overflow: hidden;

  &--horizontal {
    flex-direction: column;

    .avue-sidebar {
      width: 100%;
      height: $top_height;
      display: flex;

      .avue-menu,
      .el-menu-item,
      .el-sub-menu__title {
        height: $top_height;
        line-height: $top_height;
      }

      .is-active:before {
        display: none;
      }
    }

    .avue-logo {
      width: $sidebar_width
    }
  }

  > .layer-page-leaf-container {
    width: 179px;
    height: 100%;
    box-sizing: border-box;

    .avue-sidebar {
      display: flex;
      flex-direction: column;

      .avue-logo {
        height: 76px;
      }

      .footer {
        height: 102px;
        display: flex;
        align-items: center;
        justify-content: center;

        .avue-breadcrumb {
          display: flex;
          align-items: center;
          justify-content: center;
          width: 36px;
          height: 36px;
          cursor: pointer;
        }
      }

      .el-menu-item,
      .el-sub-menu__title {
        height: 56px !important;
        line-height: 56px !important;
      }
    }
  }

  > .layer-page-right-container {
    padding: 0 30px;
    padding-bottom: 30px;
    display: flex;
    flex-direction: column;
    width: 0;
    flex: 1;
    height: 100%;
    box-sizing: border-box;
    background: url('@/assets/images/layoutBg.png') repeat;
    background-position: 0 -20px;

    .layer-content-bottom {
      width: 100%;
      height: 0;
      flex: 1;
    }
  }
}

.avue-contail {
  width: 100%;
  height: 100%;
  background-size: 100%;
  background-repeat: no-repeat;
}

.avue--collapse {

  .avue-layout {
    > .layer-page-leaf-container {
      width: 53px;
      height: 100%;

      .avue-sidebar {
        width: 100%;

        .el-menu--collapse {
          width: 100%;

          .el-sub-menu__title {
            padding: 0;
            display: flex;
            align-items: center;
            justify-content: center;

            i {
              margin-right: 0;
            }
          }
        }
      }
    }
  }
}

.avue-main {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  flex: 1;
  box-sizing: border-box;
  overflow: hidden;
  // background: #f0f2f5;
}

#avue-view {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  margin-bottom: 0;
}

.main-avue-view-container {
  height: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.avue-footer {
  width: 100%;
  position: absolute;
  bottom: 0;
  text-align: center;

  .copyright {
    color: #666;
    font-size: 12px;
  }
}

.mac_bg {
  background-image: url("/img/bg.jpg");
  background-color: #000;
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
}

.work-cesium {
  .cesium-viewer {
    height: 100%;
    overflow: hidden;

    .cesium-viewer-cesiumWidgetContainer {
      width: 100%;
      height: 100%;

      .cesium-widget {
        width: 100%;
        height: 100%;

        canvas {
          width: 100%;
          height: 100%;
        }
      }
    }
  }

  .cesium-viewer-bottom {
    display: none;
  }
}

// ele样式覆盖
@import './element-ui.scss';
// 顶部右侧显示
@import './top.scss';
// 导航标签
@import './tags.scss';
// 工具类函数
@import './mixin.scss';
// 侧面导航栏
@import './sidebar.scss';
//主题
@import './theme/index.scss';
//通用配置
@import './normalize.scss';
//图标配置
@import './iconfont.scss';
//登录样式
@import "./login.scss";
//适配
@import './media.scss';
//滚动条样式
@include scrollBar;


// 地图区域html标签样式调整
.div-icon {
  padding: 0px !important;
  border: none !important;
  background: transparent !important;
  border-radius: 50% !important;

  .point-icon-box {
    width: 28px;
    height: 28px;
    line-height: 28px;
    text-align: center;
    font-size: 16px;
    color: #fff;
    background: rgb(255, 186, 0);
    border-radius: 50%;
  }
}

.gd-cesium {
  position: relative;
  .cesium-viewer {
    height: 100%;
    overflow: hidden;

    .cesium-viewer-cesiumWidgetContainer {
      width: 100%;
      height: 100%;

      .cesium-widget {
        width: 100%;
        height: 100%;

        canvas {
          width: 100%;
          height: 100%;
        }
      }
    }
  }

  .cesium-viewer-bottom {
    display: none;
  }
}

