hairline.less 451 B

1234567891011121314151617181920212223242526272829303132333435
  1. @import './mixins/hairline';
  2. [class*='van-hairline'] {
  3. position: relative;
  4. &::after {
  5. .hairline();
  6. }
  7. }
  8. .van-hairline {
  9. &--top::after {
  10. border-top-width: 1px;
  11. }
  12. &--left::after {
  13. border-left-width: 1px;
  14. }
  15. &--right::after {
  16. border-right-width: 1px;
  17. }
  18. &--bottom::after {
  19. border-bottom-width: 1px;
  20. }
  21. &--top-bottom::after {
  22. border-width: 1px 0;
  23. }
  24. &--surround::after {
  25. border-width: 1px;
  26. }
  27. }