_Grid.scss 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  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. }
  28. .esri-column__sorter {
  29. flex-grow: 1;
  30. margin: 0 5px;
  31. overflow: auto;
  32. }
  33. .esri-column__menu-container {
  34. display: inline-block;
  35. margin: 0 5px;
  36. }
  37. }
  38. }
  39. @if $include_Grid == true {
  40. @include grid();
  41. }