_FeatureContent.scss 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. $content-height--loading: 150px !default;
  2. @mixin featureContent() {
  3. .esri-feature-content__loader-container {
  4. height: $content-height--loading;
  5. padding: 0;
  6. display: flex;
  7. align-items: center;
  8. justify-content: center;
  9. }
  10. .esri-feature-content__loader {
  11. height: 64px;
  12. width: 100%;
  13. background: url(../base/images/loading-throb.gif) no-repeat center center;
  14. }
  15. .esri-feature-content {
  16. font-size: $font-size;
  17. }
  18. .esri-feature-content h1,
  19. .esri-feature-content h2,
  20. .esri-feature-content h3,
  21. .esri-feature-content h4,
  22. .esri-feature-content h5,
  23. .esri-feature-content h6 {
  24. color: $font-color;
  25. margin: 0.5em 0 0.5em 0;
  26. letter-spacing: 0;
  27. font-weight: $font-weight__heading;
  28. line-height: normal;
  29. }
  30. .esri-feature-content h1 {
  31. font-size: 1.75em;
  32. }
  33. .esri-feature-content h2 {
  34. font-size: 1.5em;
  35. }
  36. .esri-feature-content h3 {
  37. font-size: 1.25em;
  38. }
  39. .esri-feature-content h4,
  40. .esri-feature-content h5,
  41. .esri-feature-content h6 {
  42. font-size: 1em;
  43. }
  44. .esri-widget__heading.esri-feature-element-info__title {
  45. color: $font-color;
  46. font-size: $font-size__h1;
  47. font-weight: $font-weight--regular;
  48. margin-bottom: 0.2em;
  49. margin-top: 0;
  50. }
  51. .esri-feature-element-info__description {
  52. font-size: $font-size__body;
  53. font-weight: $font-weight--regular;
  54. margin-bottom: $cap-spacing--three-quarters;
  55. }
  56. .esri-feature-content p {
  57. font-size: $font-size;
  58. line-height: normal;
  59. margin: 0 0 1.2em;
  60. }
  61. .esri-feature-content img {
  62. max-width: 100%;
  63. max-height: 100%;
  64. image-orientation: from-image;
  65. }
  66. .esri-feature-content figure {
  67. padding: 0;
  68. margin: 0;
  69. }
  70. .esri-feature-content figcaption {
  71. font-size: $font-size--small;
  72. font-style: italic;
  73. padding: 0;
  74. margin: 0.2em 0 0;
  75. display: block;
  76. }
  77. .esri-feature-content ul {
  78. margin-bottom: 1rem;
  79. }
  80. .esri-feature-content a {
  81. color: $interactive-font-color;
  82. &:hover,
  83. &:focus {
  84. color: $interactive-font-color--hover;
  85. }
  86. }
  87. }
  88. @if $include_FeatureContent == true {
  89. @include featureContent();
  90. }