@import (reference) '~antd/lib/style/themes/default';

@prefix: sula-card;

.@{prefix} {
  & .ant-card-head {
    position: relative;

    &::before {
      position: absolute;
      display: block;
      content: '';
    }
  }

  &-subtitle {
    margin-left: 8px;
    color: @text-color-secondary;
    font-size: @font-size-sm;
  }

  &-default {
    & .ant-card-head {
      &::before {
        .bar(4px, @font-size-lg);
      }
    }
  }

  &-small {
    & .ant-card-head {
      &::before {
        .bar(2px, @font-size-sm);
      }
    }
  }
}

.bar(@width, @height) {
  top: 50%;
  left: 0;
  width: @width;
  height: @height;
  margin-top: -(@height / 2);
  background: @primary-color;
}
