_FeatureTemplates.scss 990 Bytes
Newer Older
1 2 3 4 5
@mixin featureTemplates() {
  $icon_size: 48px;
  $border: 1px solid $border-color;

  .esri-feature-templates {
杨思琦's avatar
杨思琦 committed
6
    background: var(--calcite-ui-background);
7 8 9 10
  }

  .esri-feature-templates__list-item-icon {
    display: flex;
杨思琦's avatar
杨思琦 committed
11
    flex: 0;
12 13
    align-items: center;
    justify-content: center;
杨思琦's avatar
杨思琦 committed
14 15
    width: $icon_size;
    min-width: $icon_size;
16 17 18 19 20 21 22 23 24
  }

  .esri-feature-templates__list-item-icon > div {
    // TemplateItem thumbnail uses plain div as wrapper
    display: flex;
  }

  .esri-feature-templates__loader {
    margin: 0 auto;
杨思琦's avatar
杨思琦 committed
25
    background: url("../base/images/loading-throb.gif") no-repeat center;
26
    width: 32px;
杨思琦's avatar
杨思琦 committed
27
    height: $icon_size;
28
  }
杨思琦's avatar
杨思琦 committed
29 30 31 32 33 34 35 36 37 38

  .esri-ui {
    .esri-feature-templates {
      width: $panel-width;
    }

    // If FeatureTemplates is used _inside_ another widget, then .esri-feature-templates should fit inside it
    .esri-widget .esri-feature-templates {
      width: 100%;
    }
39 40 41 42 43 44
  }
}

@if $include_FeatureTemplates == true {
  @include featureTemplates();
}