_Weather.scss 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. @mixin weather() {
  2. .esri-weather {
  3. position: relative;
  4. padding: var(--esri-widget-padding);
  5. width: fit-content;
  6. &__content {
  7. display: flex;
  8. flex-direction: column;
  9. gap: $cap-spacing;
  10. width: min-content;
  11. // When there is an error we take up horizontal space, but not any vertical
  12. // space. This way the widget maintains a constant width without us having
  13. // to specify a fixed value.
  14. &--has-error {
  15. pointer-events: none;
  16. visibility: hidden;
  17. overflow: hidden;
  18. height: 0;
  19. }
  20. }
  21. &__selector {
  22. display: flex;
  23. align-items: center;
  24. flex-direction: row;
  25. gap: $side-spacing--half;
  26. }
  27. &__options {
  28. display: flex;
  29. flex-direction: column;
  30. gap: $cap-spacing;
  31. }
  32. &__warning {
  33. display: flex;
  34. flex-direction: row;
  35. align-items: center;
  36. gap: $side-spacing--half;
  37. font-size: $font-size--small;
  38. calcite-icon {
  39. color: var(--calcite-ui-warning);
  40. }
  41. }
  42. // Align calcite slider to the buttons, header, etc
  43. &__labeled-slider calcite-slider {
  44. margin: 0 -7px;
  45. margin-bottom: -14px;
  46. }
  47. }
  48. }
  49. @if $include_Weather==true {
  50. @include weather();
  51. }