@import './variable/config.scss';
@import './variable/default.scss';
@import 'core';
@import 'icon';
@import 'progress';

html {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  padding: 0;
  margin: 0;
  overflow-y: hidden;
  font-family: $font-family;
  font-size: $font-size;
  // color: $base-color-1;
  color: $base-color;
  background: white;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 100;
  margin-top: 1.3rem;
  margin-bottom: 1rem;
}

h1 {
  font-size: 2rem;
}

h2 {
  font-size: 1.5rem;
}

h3 {
  font-size: 1.3rem;
}

a {
  color: #42a5f5;
  text-decoration: none;

  &:hover {
    text-decoration: underline;
  }
}

.wrapper {
  animation: wrapper-fade 0.25s cubic-bezier(0.455, 0.03, 0.515, 0.955);
}

@keyframes wrapper-fade {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

*,
*::before,
*::after {
  padding: 0;
  margin: 0;
  box-sizing: inherit;
}

#app {
  width: 100%;
  height: 100%;
  .ant-layout-has-sider {
    .ant-layout {
      width: calc(100% - 180px);
    }
  }
}

.slider-right {
  position: absolute;
  top: calc(50% - 50px);
  left: -20px;
  width: 1.8rem;
  height: 8rem;
  line-height: 8rem;
  color: white;
  cursor: pointer;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 12px 0 0 12px;
  box-shadow: -2px 0 5px rgba(43, 22, 54, 0.2);

  &:hover {
    background: #562984;
  }
}

.iotview-config-table {
  .amos-grid-table {
    overflow: auto;
  }
}
