@import './colors.less';

@font-face {
  font-family: SourceCodePro;
  src: url('./fonts/SourceCodePro-Regular.woff');
}
@font-face {
  font-family: IconFont;
  src: url('./fonts/iconfont.woff');
}

html,
body {
  margin: 0px;
  padding: 0;
  font-family: Arial, "Microsoft YaHei", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Helvetica Neue", Helvetica, "Helvetica Neue For Number", sans-serif, IconFont;
}

#root {
  height: 100%
}

.code-editor{
  font-family: SourceCodePro, Arial, "Microsoft YaHei", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Helvetica Neue", Helvetica, "Helvetica Neue For Number", sans-serif;
}

.layout {
  height: 100%
}

.app-slider {
  background: @panel-background-deep-dark;
}

.sider-menu {
  background: transparent;
  flex: auto;
  width: 50px;
  i {
    font-size: 22px;
    vertical-align: text-bottom;
  }
  li[role="menuitem"] {
    height: 50px;
    line-height: 50px;
    padding: 0px 13px;
  }
}

.ant-layout-sider-trigger{
  display: none;
}

.main-panel {
  background: @panel-background;
}

.scrollbar-container {
  position: relative;
  height: 100%;
  >div {
    z-index: 20;
  }
}

.main-sider {
  border-right: @border-color-dark 1px solid;
  box-shadow: 1px 2px 5px 0px @border-color-dark;
  z-index: 20;
  background: @panel-background;
  .ant-layout-sider-children {
    height: 100%;
  }
}

.icon-btn {
    border: 0px;
    font-size: 18px;
    position: absolute;
    top: 4px;
    right: 8px;
    background: @panel-background;
    color: @primary-color;
    &:hover {
        color: @primary-color-light;
        background: @panel-background;
    }
    &:focus {
        color: @primary-color;
        background: @panel-background;
    }
}

.small-toolbar {
    height: 35px;
    border-bottom: 1px solid @border-color-dark;
    background: @panel-background;
    line-height: 35px;
    padding-left: 4px;
    font-weight: bold;
    overflow: hidden;
    >span {
        margin-left: 8px;
    }
}

.item-own{
    width: 30px;
    height: 30px;
    position: absolute;
    transform: rotate(45deg) translate(-21px, 0px);
    background: @primary-color;
}

.taken-sentence{
    font-size: 24px;
    top: 30%;
    position: absolute;
    line-height: 50px;
    width: 100%;
    text-align: center;
}