_Attribution.scss 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  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. &:hover,
  14. &:active,
  15. &:visited,
  16. &:focus {
  17. color: currentColor;
  18. }
  19. }
  20. .esri-attribution__sources {
  21. font-weight: $font-weight--light;
  22. white-space: nowrap;
  23. overflow: hidden;
  24. text-overflow: ellipsis;
  25. padding: 0 5px;
  26. align-self: flex-start;
  27. flex: 1 0;
  28. }
  29. .esri-attribution__sources[role="button"] {
  30. font-size: 1em;
  31. }
  32. .esri-attribution__powered-by {
  33. font-weight: $font-weight;
  34. padding: 0 5px;
  35. text-align: right;
  36. white-space: nowrap;
  37. align-self: flex-end;
  38. }
  39. .esri-attribution--open {
  40. z-index: 2;
  41. }
  42. .esri-attribution__sources--open {
  43. white-space: normal;
  44. }
  45. html[dir="rtl"] {
  46. .esri-attribution__powered-by {
  47. text-align: left;
  48. }
  49. }
  50. }
  51. @if $include_Attribution == true {
  52. @include attribution();
  53. }