_Attribution.scss 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. @mixin attribution() {
  2. .esri-attribution {
  3. font-size: $font-size--small;
  4. line-height: 16px; // TODO: refactor to let Attribution inherit line-height.
  5. background-color: rgba($background-color, 0.8);
  6. display: flex;
  7. flex-flow: row nowrap;
  8. justify-content: space-between;
  9. align-items: center;
  10. }
  11. .esri-attribution__link {
  12. color: currentColor;
  13. text-decoration: none;
  14. &:hover,
  15. &:active,
  16. &:visited,
  17. &:focus {
  18. color: currentColor;
  19. }
  20. }
  21. .esri-attribution__sources {
  22. font-weight: $font-weight--light;
  23. white-space: nowrap;
  24. overflow: hidden;
  25. text-overflow: ellipsis;
  26. padding: 0 5px;
  27. align-self: flex-start;
  28. flex: 1 0;
  29. }
  30. .esri-attribution__sources[role="button"] {
  31. font-size: 1em;
  32. }
  33. .esri-attribution__powered-by {
  34. font-weight: $font-weight;
  35. padding: 0 5px;
  36. text-align: right;
  37. white-space: nowrap;
  38. align-self: flex-end;
  39. }
  40. .esri-attribution--open {
  41. z-index: 2;
  42. }
  43. .esri-attribution__sources--open {
  44. white-space: normal;
  45. }
  46. }
  47. @if $include_Attribution == true {
  48. @include attribution();
  49. }