@import './theme';

@toolbar-prefix: ~'@{prefix}-toolbar';

.ant-layout-sider-children {
  .@{toolbar-prefix}-container {
    width: 55px;
    height: 100%;
    flex-direction: column;
    padding-top: 20px;
    padding-bottom: 20px;
    padding-right: 0;
    padding-left: 0;
    border-radius: 0px 0px 0px 0px;
    overflow: auto;
  }

  .@{toolbar-prefix}-icon {
    width: 100%;
    cursor: pointer;
    margin: 7px 0px;
    height: 50px;
    flex-shrink: 0;
  }

  .@{toolbar-prefix}-mobile-icon {
    height: 40px;
    width: 45px;
    box-shadow: 0px 2px 10px 0px rgba(0, 0, 0, 0.16);
    border-radius: 0 12px 12px 0;
    position: relative;

    &:hover {
      background-color: white;
    }

    svg {
      margin-left: 5px;
    }
  }

  .@{toolbar-prefix}-mobile-container {
    box-shadow: none;
    overflow: visible;
    width: 40px;
    height: auto;
    background: rgba(0, 0, 0, 0);
  }
}

.@{toolbar-prefix}-container {
  display: flex;
  height: 55px;
  background: rgba(255, 255, 255, 1);
  box-shadow: -3px 0px 13px 0px rgba(0, 0, 0, 0.08);
  border-radius: 3px 3px 0px 0px;
  padding-left: 20px;
  padding-right: 150px;
  position: relative;
  z-index: 1;
}

.@{toolbar-prefix}-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 100%;
  cursor: pointer;
  margin: 0 7px;

  svg {
    width: 20px;
    height: 20px;
    margin-bottom: 2px;
    fill: #1890ff;
  }

  &:hover {
    background: rgba(238, 238, 238, 1);
  }
}

.@{toolbar-prefix}-iconLabel {
  cursor: pointer;
  font-size: 12px;
  font-weight: 400;
  line-height: 17px;
  user-select: none;
}

.@{toolbar-prefix}-activeIcon {
  background: rgba(238, 238, 238, 1);
}