uni-events-helper-wx
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

25 lines
663 B

3 years ago
  1. // 添加分割线 参数:位置,间隔
  2. @mixin hr($direction: top, $margin: 0){
  3. position: absolute;
  4. z-index: 3;
  5. @if ($direction == top) { // 右三角
  6. top: 0;
  7. left: $margin;
  8. right: $margin;
  9. } @else if ($direction == bottom){
  10. bottom: 0;
  11. left: $margin;
  12. right: $margin;
  13. } @else if ($direction == left){
  14. top: $margin;
  15. bottom: $margin;
  16. left: 0;
  17. } @else if ($direction == right){
  18. top: $margin;
  19. bottom: $margin;
  20. right: 0;
  21. }
  22. height: 1upx;
  23. content: '';
  24. transform: scaleY(.5);
  25. background-color: #c8c7cc;
  26. }