.keyboard {
  @include themeColor(#666, #666);
  @include themeBg(#f1f1f1, #383838);
  @include themeBorder(2px, #f1f1f1, #424242);
  display: inline-block;
  padding: 0 5px;
  margin-bottom: 10px;
  border-radius: 4px;
  text-transform: uppercase;
  text-align: center;
  box-shadow:
    inset 0 0 20px white,
    0 3px 0 #b1b1b1,
    0 4px 0 1px #7e7e7e,
    0 7px 5px #a5a5a5;

  [class='dark'] & {
    box-shadow:
      inset 0 0 20px #000000,
      0 3px 0 #272727,
      0 4px 0 1px #121212,
      0 7px 5px #252525;
  }
}

.keyboard.small {
  padding: 0 3px;
  font-size: 10px;
  font-weight: 300;
  box-shadow:
    inset 0 0 20px white,
    0 2px 0 #b1b1b1,
    0 2px 0 1px #7e7e7e,
    0 5px 4px #a5a5a5;

  [class='dark'] & {
    box-shadow:
      inset 0 0 20px #000000,
      0 2px 0 #272727,
      0 3px 0 1px #121212,
      0 5px 4px #252525;
  }
}

// 标签快捷选择, 文档详情, 待办事项详情使用
.quick-tags-container {
  @include box(100%, auto);
  @include flex(row, flex-start, flex-start);
  align-content: flex-start;
  flex-wrap: wrap;

  .quick-tags-placeholder {
    color: var(--bl-text-color-light);
  }

  .quick-tag {
    @include font(11px, 300);
    line-height: 14px;
    height: 16px;
    padding: 1px 4px;
    margin: 3px;
    border: 1px solid var(--el-border-color);
    border-radius: 2px;
    cursor: pointer;
    transition: border 0.3s;

    &:hover {
      border: 1px solid var(--el-color-primary);
    }
  }

  .quick-tag.selected {
    @include themeShadow(2px 2px 3px 0 #bbbbbb, 1px 2px 10px 1px #0a0a0a);
    color: var(--bl-html-color);
    border: 1px solid var(--el-color-primary);
    background-color: var(--el-color-primary);
  }
}

// 区别于 tag 组件, 支持换行, 不限制高度
.bl-tag {
  @include themeShadow(2px 2px 3px 0 #bbbbbb, 1px 2px 10px 1px #0a0a0a);
  line-height: 14px;
  padding: 1px 4px;
  margin: 3px;
  font-size: 11px;
  color: var(--bl-html-color);
  background-color: var(--el-color-primary);
  border-radius: 4px;
  text-align: left;
}

.blockquote-yellow {
  margin: 0;
  padding: 3px 5px;
  border-radius: 4px;
  background-color: var(--bl-preview-blockquote-bg-yellow);
}
