mixins-important.less 794 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. .submixin(@a) {
  2. border-width: @a;
  3. }
  4. .mixin (9) {
  5. border: 9 !important;
  6. }
  7. .mixin (@a: 0) {
  8. border: @a;
  9. boxer: @a;
  10. .inner {
  11. test: @a;
  12. }
  13. // comment
  14. .submixin(@a);
  15. }
  16. .class {
  17. .mixin(1);
  18. .mixin(2) !important;
  19. .mixin(3);
  20. .mixin(4) !important;
  21. .mixin(5);
  22. .mixin !important;
  23. .mixin(9);
  24. }
  25. .size(@aaa: auto) {
  26. .set-width(@aaa) {
  27. width: @aaa;
  28. }
  29. .set-width(@aaa);
  30. }
  31. .when-calling-nested-issue-2394 {
  32. .size() !important;
  33. }
  34. .when-calling-nested-with-param-issue-2394 {
  35. .size(10px) !important;
  36. }
  37. .testMixin-2421 () {
  38. .topCheck-2421 () {
  39. .nestedCheck-2421() {
  40. margin: 5px;
  41. }
  42. .nestedCheck-2421();
  43. }
  44. .topCheck-2421();
  45. }
  46. .class1-2421 {
  47. .testMixin-2421() !important;
  48. }
  49. .class2-2421 {
  50. .testMixin-2421();
  51. }