mixin.less 785 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. .flex(@justify: space-between, @align: center, @direction: row) {
  2. display: flex;
  3. align-items: @align;
  4. justify-content: @justify;
  5. flex-direction: @direction;
  6. }
  7. .border(@color: #000, @line: 1upx, @style: solid) {
  8. border: @line @style @color;
  9. }
  10. .border-bottom(@color: #000, @line: 1upx, @style: solid) {
  11. border-bottom: @line @style @color;
  12. }
  13. .img(@size: 200upx, @radius: 0) {
  14. width: @size;
  15. height: @size;
  16. object-fit: cover;
  17. border-radius: @radius;
  18. }
  19. .margin(@top, @bottom) {
  20. margin: @top 0 @bottom 0;
  21. }
  22. .pdd(@pd) {
  23. padding: @pd;
  24. box-sizing: border-box;
  25. }
  26. .h-flex(@justifyContent: space-between, @direction: row, @wrap: nowrap) {
  27. display: flex;
  28. align-items: center;
  29. justify-content: @justifyContent;
  30. flex-wrap: @wrap;
  31. flex-direction: @direction;
  32. }