toolbar.less 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. //
  2. // Misago Toolbar
  3. // --------------------------------------------------
  4. .toolbar {
  5. display: block;
  6. margin: 0 floor(@grid-gutter-width * -0.5);
  7. }
  8. .toolbar-section {
  9. justify-items: center;
  10. display: flex;
  11. flex: 1;
  12. margin-bottom: @line-height-computed;
  13. }
  14. .toolbar-item {
  15. flex: 1;
  16. padding: 0 floor(@grid-gutter-width * 0.5);
  17. h3,
  18. p {
  19. margin: 0;
  20. }
  21. }
  22. .toolbar-item-shrink {
  23. flex: 0 !important;
  24. }
  25. .toolbar-spacer {
  26. display: none;
  27. }
  28. @media screen and (min-width: @screen-sm-min) {
  29. .toolbar {
  30. display: flex;
  31. }
  32. .toolbar-section,
  33. .toolbar-item {
  34. flex: 0;
  35. align-items: center;
  36. }
  37. .toolbar-section.toolbar-section-auto,
  38. .toolbar-section.toolbar-section-auto .toolbar-item {
  39. flex: 1;
  40. }
  41. .toolbar-spacer {
  42. display: block;
  43. flex: 1;
  44. }
  45. .toolbar-item .form-search {
  46. width: 250px;
  47. }
  48. }
  49. // Center paragraph of text on portrait phones
  50. // Used for pagination messages
  51. @media screen and (max-width: @screen-xs-max) {
  52. .toolbar-item p {
  53. text-align: center;
  54. }
  55. }