_Grid.scss 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. @mixin grid() {
  2. .esri-grid {
  3. width: 100%;
  4. height: 100%;
  5. // Sets 'primary' color that other properties inherit from
  6. --lumo-base-color: #{$background-color};
  7. --lumo-primary-color: #{$button-color};
  8. --lumo-primary-text-color: var(--lumo-primary-color);
  9. // Uses shade of primary theme color for highlight
  10. $row-selected-color: rgba($button-color, 0.2);
  11. --lumo-primary-color-10pct: #{$row-selected-color};
  12. // grid and checkbox background color(s) default and hover
  13. --lumo-contrast-20pct: #{$interactive-font-color};
  14. --lumo-contrast-30pct: #{$interactive-font-color--hover};
  15. // grid border color(s)
  16. --lumo-contrast-10pct: #{$background-color--hover};
  17. // row hover
  18. --lumo-row-background-hover: #{$background-color--hover};
  19. .esri-grid__content {
  20. width: 100%;
  21. height: 100%;
  22. background-color: inherit;
  23. }
  24. .esri-grid__grid {
  25. height: 100%;
  26. width: 100%;
  27. a {
  28. color: $interactive-font-color;
  29. &:hover,
  30. &:focus {
  31. color: $interactive-font-color--hover;
  32. }
  33. }
  34. }
  35. .esri-column__sorter,
  36. .esri-column__header-label {
  37. align-items: center;
  38. display: flex;
  39. flex-grow: 1;
  40. margin: 0 5px;
  41. min-height: 28px;
  42. overflow: auto;
  43. }
  44. .esri-column__menu-container {
  45. display: inline-block;
  46. margin: 0 5px;
  47. }
  48. .esri-column__header-content {
  49. align-items: center;
  50. display: flex;
  51. flex-grow: 1;
  52. overflow: visible;
  53. }
  54. }
  55. }
  56. @if $include_Grid == true {
  57. @include grid();
  58. }