_FeatureContent.scss 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  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 h1,
  16. .esri-feature-content h2,
  17. .esri-feature-content h3,
  18. .esri-feature-content h4,
  19. .esri-feature-content h5,
  20. .esri-feature-content h6 {
  21. margin: 0.5em 0 0.5em 0;
  22. letter-spacing: 0;
  23. font-weight: $font-weight__heading;
  24. line-height: normal;
  25. }
  26. .esri-feature-content h1 {
  27. font-size: $font-size__h1;
  28. }
  29. .esri-feature-content h2 {
  30. font-size: $font-size__h2;
  31. }
  32. .esri-feature-content h3,
  33. .esri-feature-content h4,
  34. .esri-feature-content h5,
  35. .esri-feature-content h6 {
  36. font-size: $font-size__lt-h2;
  37. }
  38. .esri-feature-element-info__title {
  39. color: $font-color;
  40. font-size: $font-size__h1;
  41. font-weight: $font-weight--regular;
  42. margin-bottom: 0.2em;
  43. margin-top: 0;
  44. }
  45. .esri-feature-element-info__description {
  46. font-size: $font-size__body;
  47. font-weight: $font-weight--regular;
  48. margin-bottom: $cap-spacing--three-quarters;
  49. }
  50. .esri-feature-content p {
  51. font-size: $font-size;
  52. line-height: normal;
  53. margin: 0 0 1.2em;
  54. }
  55. .esri-feature-content img {
  56. max-width: 100%;
  57. max-height: 100%;
  58. image-orientation: from-image;
  59. }
  60. .esri-feature-content figcaption {
  61. font-size: $font-size--small;
  62. font-style: italic;
  63. padding: 0;
  64. margin: 0.2em 0 0;
  65. display: block;
  66. }
  67. .esri-feature-content ul {
  68. margin-bottom: 1rem;
  69. }
  70. .esri-feature-content a {
  71. color: $interactive-font-color;
  72. &:hover,
  73. &:focus {
  74. color: $interactive-font-color--hover;
  75. }
  76. }
  77. }
  78. @if $include_FeatureContent == true {
  79. @include featureContent();
  80. }