_FeatureTemplates.scss 992 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. @mixin featureTemplates() {
  2. $icon_size: 48px;
  3. $border: 1px solid $border-color;
  4. .esri-feature-templates {
  5. background: var(--calcite-ui-background);
  6. }
  7. .esri-feature-templates__list-item-icon {
  8. flex: 0;
  9. width: $icon_size;
  10. min-width: $icon_size;
  11. display: flex;
  12. align-items: center;
  13. justify-content: center;
  14. }
  15. .esri-feature-templates__list-item-icon > div {
  16. // TemplateItem thumbnail uses plain div as wrapper
  17. display: flex;
  18. }
  19. .esri-feature-templates__loader {
  20. margin: 0 auto;
  21. height: $icon_size;
  22. width: 32px;
  23. background: url(../base/images/loading-throb.gif) no-repeat center;
  24. }
  25. .esri-ui {
  26. & .esri-feature-templates {
  27. width: $panel-width;
  28. }
  29. // If FeatureTemplates is used _inside_ another widget, then .esri-feature-templates should fit inside it
  30. & .esri-widget .esri-feature-templates {
  31. width: 100%;
  32. }
  33. }
  34. }
  35. @if $include_FeatureTemplates == true {
  36. @include featureTemplates();
  37. }