// 一些长用的一些配置，可选是否使用
@use './base.scss';
//样式重置
@use './reset.scss';
// 全局变量
@use './variables.scss'as variables;
@use './mixin.scss'as *;
// ele样式覆盖
@use './element-ui.scss';
// vant样式覆盖
@use './vant-ui.scss';
// 顶部右侧显示
@use './top.scss';
// 导航标签
@use './tags.scss';
// 工具类函数
@use './mixin.scss';
// 侧面导航栏
@use './sidebar.scss';
//主题
@use './theme/index.scss';
//通用配置
@use './normalize.scss';
//图标配置
@use './iconfont.scss';
//登录样式
@use "./login.scss";
//适配
@use './media.scss';
//动画，过渡样式
@use './animation.scss';
// 地图编辑样式
@use './mapEdit.scss';
// 工具按钮样式
@use './tool.scss';
// 地图自带样式覆盖
@use './leafletMap.scss';
//滚动条样式
@include scrollBar;


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

* {
  outline: none;
}

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

.avue-layout {
  display: flex;
  height: 100%;
  overflow: hidden;

  &--horizontal {
    flex-direction: column;

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

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

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

    .avue-logo {
      width: variables.$sidebar_width
    }
  }
}

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

.avue--collapse {

  .avue-sidebar,
  .avue-logo {
    width: variables.$sidebar_collapse;
  }
}

.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: 10px;
}

.avue-view {
  width: 100%;
  box-sizing: border-box;
}

.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;
}

.ztzf-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;
  }
}

.layoutIndex {
  position: relative;
  width: 100%;
  height: 100%;
  overflow-x: auto;
  background: #020f25;
  scrollbar-width: none;

  /* Firefox 隐藏滚动条 */
  &::-webkit-scrollbar {
    display: none;
    /* Chrome、Safari 隐藏滚动条 */
  }

  &.narrowScreen {
    >div {
      left: 50%;
      top: 50%;
      transform: translate(-50%, -50%);
    }
  }

  >div {
    left: 0;
    top: 0;
    position: absolute;
    height: 1080px;
    width: 1920px;
  }

  #cesium {}

  .page-index {
    background-size: 100% 100%;
    background-repeat: no-repeat;
    pointer-events: none;

    >* {
      pointer-events: auto !important;
    }

    &.page-index-footer {
      background-image: url('../assets/images/bg-new.png');
    }

    &.page-index-no-footer {
      background-image: url('../assets/images/bg-new-no-footer.png');
    }
  }


}