_actions-toolbar.less 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  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. text-align: center;
  13. .action {
  14. &:extend(.abs-button-responsive all);
  15. margin-bottom: @indent__s;
  16. &:last-child {
  17. margin-bottom: 0;
  18. }
  19. }
  20. margin-bottom: @indent__s;
  21. &:last-child {
  22. margin-bottom: 0;
  23. }
  24. }
  25. }
  26. }
  27. //
  28. // Desktop
  29. // _____________________________________________
  30. .media-width(@extremum, @break) when (@extremum = 'min') and (@break = @screen__m) {
  31. .actions-toolbar {
  32. .lib-actions-toolbar();
  33. > .primary,
  34. > .secondary {
  35. margin-bottom: 0;
  36. .action {
  37. margin-bottom: 0;
  38. width: auto;
  39. }
  40. }
  41. }
  42. form {
  43. .actions-toolbar {
  44. .column:not(.sidebar-main) &,
  45. .column:not(.sidebar-additional) & {
  46. &:extend(.abs-margin-for-forms-desktop all);
  47. }
  48. }
  49. }
  50. }