_BuildingPhasePicker.scss 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. /**
  2. * Adds all the styles for the phase picker used in the building explorer.
  3. */
  4. @mixin buildingPhasePicker() {
  5. $container: "esri-building-phase-picker";
  6. $phases-container: "#{$container}__phases-container";
  7. $phase: "#{$container}__phase";
  8. $phase-active: "#{$container}__phase--active";
  9. $phase-current: "#{$container}__phase--current";
  10. $divider: "#{$container}__divider";
  11. $divider-active: "#{$container}__divider--active";
  12. $arrow-left: "#{$container}__arrow-left";
  13. $arrow-right: "#{$container}__arrow-right";
  14. $phase-size: 32px;
  15. $border-width: 1px;
  16. $divider-min-width: $side-spacing;
  17. .#{$container},
  18. .#{$phases-container} {
  19. display: flex;
  20. flex-direction: row;
  21. align-items: center;
  22. }
  23. .#{$phases-container} {
  24. flex-grow: 0;
  25. flex-shrink: 1;
  26. overflow: hidden;
  27. padding: 5px;
  28. }
  29. .#{$phase} {
  30. width: $phase-size;
  31. height: $phase-size;
  32. font-weight: $font-weight;
  33. cursor: pointer;
  34. transition: all 250ms;
  35. color: $font-color;
  36. border: solid $border-width $border-color;
  37. border-radius: 100%;
  38. background: $background-color;
  39. appearance: none;
  40. flex-shrink: 0;
  41. &:hover {
  42. box-shadow: 0 0 2px 1px $border-color--active;
  43. transform: scale(1.1); // Make it slightly bigger w/o affecting layout
  44. }
  45. &.#{$phase-active} {
  46. border-color: $border-color--active;
  47. background-color: $background-color--active;
  48. }
  49. &.#{$phase-current} {
  50. color: $interactive-font-color--inverse;
  51. background-color: $border-color--active;
  52. }
  53. }
  54. .#{$divider} {
  55. height: $border-width;
  56. min-width: $divider-min-width;
  57. background: $border-color;
  58. flex-grow: 0;
  59. &.#{$divider-active} {
  60. background-color: $border-color--active;
  61. }
  62. }
  63. .#{$arrow-left},
  64. .#{$arrow-right} {
  65. @include arrowButton();
  66. }
  67. .#{$arrow-left} {
  68. @extend .esri-arrow-left;
  69. }
  70. .#{$arrow-right} {
  71. @extend .esri-arrow-right;
  72. }
  73. }