_actions-toolbar.less 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. // /**
  2. // * Copyright © Magento, Inc. All rights reserved.
  3. // * See COPYING.txt for license details.
  4. // */
  5. //
  6. // Common
  7. // _____________________________________________
  8. & when (@media-common = true) {
  9. .actions-toolbar {
  10. > .primary,
  11. > .secondary {
  12. margin-bottom: @indent__s;
  13. text-align: center;
  14. .action {
  15. &:extend(.abs-button-responsive all);
  16. margin-bottom: @indent__s;
  17. &:last-child {
  18. margin-bottom: 0;
  19. }
  20. }
  21. &:last-child {
  22. margin-bottom: 0;
  23. }
  24. }
  25. > .secondary {
  26. .action.back {
  27. display: none;
  28. }
  29. }
  30. }
  31. }
  32. //
  33. // Desktop
  34. // _____________________________________________
  35. .media-width(@extremum, @break) when (@extremum = 'min') and (@break = @screen__m) {
  36. .actions-toolbar {
  37. .lib-actions-toolbar();
  38. > .primary,
  39. > .secondary {
  40. margin-bottom: 0;
  41. .action {
  42. margin-bottom: 0;
  43. width: auto;
  44. }
  45. }
  46. }
  47. form {
  48. .actions-toolbar {
  49. .column:not(.sidebar-main) &,
  50. .column:not(.sidebar-additional) & {
  51. }
  52. }
  53. }
  54. }