_FeatureMedia.scss 2.36 KB
Newer Older
1 2 3 4 5
@mixin featureMedia() {
  .esri-feature-media__container {
    display: flex;
    flex-flow: row wrap;
    align-items: center;
杨思琦's avatar
杨思琦 committed
6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
    margin-top: $cap-spacing--half;
    width: 100%;
    min-height: 150px;

    .esri-feature-media__pagination-button {
      display: flex;
      align-items: center;
      justify-content: center;
      border: none;
      background: transparent;
      cursor: pointer;
      padding-block: $cap-spacing--half;
      padding-inline: $side-spacing--half;
      color: $interactive-font-color;

      &:hover,
      &:focus {
        background-color: $background-color--hover;
        color: $interactive-font-color--hover;
        fill: $interactive-font-color--hover;
      }
    }
28
  }
杨思琦's avatar
杨思琦 committed
29

30
  .esri-feature-media__item-title {
杨思琦's avatar
杨思琦 committed
31
    margin: 0;
32 33
    font-size: $font-size__h2;
  }
杨思琦's avatar
杨思琦 committed
34

35
  .esri-feature-media__item-caption {
杨思琦's avatar
杨思琦 committed
36
    padding-block-start: $cap-spacing--quarter;
37 38
    font-size: $font-size__body;
  }
杨思琦's avatar
杨思琦 committed
39 40 41 42

  .esri-feature-media__item {
    display: flex;
    align-items: flex-start;
43
    justify-content: center;
杨思琦's avatar
杨思琦 committed
44
    margin-block: $cap-spacing--half;
45
    width: 100%;
杨思琦's avatar
杨思琦 committed
46
    height: auto;
47
  }
杨思琦's avatar
杨思琦 committed
48 49

  .esri-feature-media__item-navigation {
50
    display: flex;
杨思琦's avatar
杨思琦 committed
51 52 53 54
    flex: 0 1 100%;
    align-items: flex-start;
    justify-content: space-between;
    margin-block-end: $cap-spacing--half;
55
  }
杨思琦's avatar
杨思琦 committed
56 57 58

  .esri-feature-media__item-text {
    margin-inline-end: $side-spacing--half;
59
  }
杨思琦's avatar
杨思琦 committed
60 61

  .esri-feature-media__pagination {
62
    display: flex;
杨思琦's avatar
杨思琦 committed
63 64 65 66 67 68 69 70 71 72 73 74 75
    flex: 0 0 auto;
    align-items: center;
    overflow: hidden;

    &:only-child {
      margin-inline-start: auto;
    }
  }

  .esri-feature-media__pagination-text {
    padding-inline: $side-spacing--quarter;
    color: $interactive-font-color;
    font-size: $font-size--small;
76
  }
杨思琦's avatar
杨思琦 committed
77

78 79 80
  .esri-feature-media__item-container {
    flex: 0 1 auto;
    width: 100%;
杨思琦's avatar
杨思琦 committed
81

82 83 84
    img {
      max-width: 100%;
    }
杨思琦's avatar
杨思琦 committed
85 86 87 88 89

    img[src$=".SVG"],
    img[src$=".svg"] {
      width: 100%;
    }
90
  }
杨思琦's avatar
杨思琦 committed
91

92 93
  .esri-feature-media__chart {
    background-color: $background-color;
杨思琦's avatar
杨思琦 committed
94

95 96 97
    //  Dimensions on containing div are required
    //  for Chart library to know how big to make the chart.
    width: 100%;
杨思琦's avatar
杨思琦 committed
98
    height: 155px;
99 100 101
  }

  //  RTL
102
  [dir="rtl"] {
103 104 105
    .esri-feature-media__image-summary {
      margin: 0 0.5em 0 0;
    }
杨思琦's avatar
杨思琦 committed
106 107 108

    .esri-feature-media__pagination-icon {
      transform: rotate(180deg);
109 110 111 112 113 114 115
    }
  }
}

@if $include_FeatureMedia == true {
  @include featureMedia();
}