menu.less 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. .ui-grid-menu-button {
  2. z-index: 2;
  3. position: absolute;
  4. right: 0;
  5. top: 0;
  6. background: @headerBackgroundColor;
  7. border: 0;
  8. border-left: @gridBorderWidth solid @borderColor;
  9. border-bottom: @gridBorderWidth solid @borderColor;
  10. cursor: pointer;
  11. height: 32px;
  12. font-weight: normal;
  13. }
  14. .ui-grid-menu-button .ui-grid-icon-container {
  15. margin-top: 5px;
  16. margin-left: 2px;
  17. }
  18. .ui-grid-menu-button .ui-grid-menu {
  19. right: 0;
  20. .ui-grid-menu-mid {
  21. overflow: scroll;
  22. }
  23. }
  24. .ui-grid-menu {
  25. overflow: hidden;
  26. max-width: 320px;
  27. z-index: 2; // So it shows up over grid canvas
  28. position: absolute;
  29. right: 100%;
  30. padding: 0 10px 20px 10px;
  31. cursor: pointer;
  32. box-sizing: border-box;
  33. }
  34. .ui-grid-menu-item {
  35. width: 100%;
  36. overflow: hidden;
  37. text-overflow: ellipsis;
  38. white-space: nowrap;
  39. }
  40. .ui-grid-menu .ui-grid-menu-inner {
  41. background: @menuBackgroundColor;
  42. border: @gridBorderWidth solid @borderColor;
  43. position: relative;
  44. white-space: nowrap;
  45. .rounded(@gridBorderRadius);
  46. }
  47. .ui-grid-menu .ui-grid-menu-inner ul {
  48. margin: 0;
  49. padding: 0;
  50. list-style-type: none;
  51. li {
  52. padding: 0px;
  53. button {
  54. color: @menuTextColor;
  55. min-width: 100%;
  56. padding: 8px;
  57. text-align: left;
  58. background: transparent;
  59. border: none;
  60. // Show a shadow when hovering over a menu item
  61. &:hover,
  62. &:focus {
  63. background-color: @menuHoverColor;
  64. }
  65. &.ui-grid-menu-item-active {
  66. background-color: @menuSelectedColor;
  67. }
  68. }
  69. }
  70. // Show a bottom border on all but the last menu item
  71. li:not(:last-child) > button {
  72. border-bottom: @gridBorderWidth solid @borderColor;
  73. }
  74. }