@import "./_variables.less";

@import "./mixins/_index.less";

@import "./utilities/_index.less";

@import "./components/_docs.less";

@d-prefix: ldesign;

/* 用于重构稿演示相关的样式 公共部分 */

.ldesign-demo-wrap__name {
  font-size: 36px;
  margin-bottom: 40px;
  line-height: 60px;
  border-bottom: 1px solid #ddd;
  background-color: #f9f9f9;
  padding: 0 40px 10px;
}

.ldesign-demo-wrap__info {
  font-size: 14px;
  color: #999;
  line-height: initial;
}

.ldesign-demo-item {
  margin: 0 40px;

  > p {
    color: #333;
    font-size: 14px;
    line-height: 2;
  }
}

.ldesign-demo-item + .ldesign-demo-item {
  margin-top: 30px;
  border-top: 1px solid #ddd;
  padding-top: 30px;
}

.ldesign-demo-item__title {
  font-size: 22px;
  height: 30px;
  margin-bottom: 10px;
  font-weight: bold;
}

.ldesign-demo-item__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex-wrap: wrap;
  min-height: 204px;
  padding: 40px;
  border-top-left-radius: 5px;
  border-top-right-radius: 5px;
  overflow: auto;
}

.ldesign-demo-item__body + .ldesign-demo-item__body {
  margin-top: 20px;
}

.ldesign-demo-block {
  margin-bottom: 10px;

  &__title {
    font-size: 16px;
    margin-bottom: 20px;
  }
}

.ldesign-demo-block-line {
  display: inline-block;
  vertical-align: top;
}

.ldesign-demo-divide {
  height: 0;
  margin: 5px 0;
}

.ldesign-demo-block-line + .ldesign-demo-block-line {
  margin-left: 16px;
}

// 竖排展示 demo 行间距 16px
.ldesign-demo-block-column {
  display: flex;
  flex-direction: column;
  row-gap: 16px;
  column-gap: 16px;
}

// 竖排展示 demo 行间距 32px
.ldesign-demo-block-column-large {
  display: flex;
  flex-direction: column;
  row-gap: 32px;
  column-gap: 32px;
}

// 横排排展示 demo 列间距 16px
.ldesign-demo-block-row {
  display: flex;
  column-gap: 16px;
  row-gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}
