_Sketch.scss 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151
  1. @mixin sketch() {
  2. $border: 1px solid $border-color;
  3. .esri-sketch {
  4. display: flex;
  5. flex-flow: column wrap;
  6. .esri-snapping-controls__panel {
  7. display: flex;
  8. width: auto;
  9. }
  10. }
  11. .esri-sketch__menu-header {
  12. margin: $cap-spacing--half;
  13. border-bottom: $border;
  14. display: flex;
  15. align-items: center;
  16. }
  17. .esri-sketch__menu-title {
  18. flex: 1 1 auto;
  19. overflow: hidden;
  20. }
  21. .esri-sketch__panel {
  22. align-items: center;
  23. display: flex;
  24. flex-flow: row nowrap;
  25. padding: 0;
  26. }
  27. .esri-sketch__info-panel {
  28. background-color: $background-color--offset;
  29. opacity: 1;
  30. transition: opacity 250ms ease-in-out;
  31. &:empty {
  32. opacity: 0;
  33. padding: 0;
  34. visibility: hidden;
  35. }
  36. }
  37. .esri-sketch__menu-container {
  38. background-color: $background-color;
  39. display: flex;
  40. flex-flow: column;
  41. flex: 1 1 auto;
  42. flex-direction: column;
  43. margin: $cap-spacing--half;
  44. }
  45. .esri-sketch__section {
  46. align-items: center;
  47. display: flex;
  48. flex-flow: row nowrap;
  49. padding: 0 $side-spacing--half;
  50. margin: $cap-spacing--half 0;
  51. }
  52. .esri-sketch__tool-section {
  53. border-right: $border;
  54. &:last-child {
  55. border-right: none;
  56. }
  57. }
  58. .esri-sketch__action-toggle--on .esri-sketch__item-action-icon {
  59. // Toggle on
  60. background-color: $button-color;
  61. box-shadow: 0 0 0 1px $button-color;
  62. &:before {
  63. background-color: $interactive-font-color--inverse;
  64. left: $toggle-handle-size;
  65. }
  66. }
  67. .esri-sketch__feature-count-badge {
  68. align-items: center;
  69. background: $background-color;
  70. border-bottom: $border;
  71. border-radius: $border-radius;
  72. display: flex;
  73. font-size: $font-size--small;
  74. justify-content: center;
  75. margin: 0;
  76. padding: 0.25em 0.75em;
  77. }
  78. [dir="rtl"] {
  79. .esri-sketch__tool-section {
  80. border-left: $border;
  81. border-right: none;
  82. &:last-child {
  83. border: none;
  84. }
  85. }
  86. .esri-expand__content {
  87. .esri-sketch--vertical {
  88. .esri-sketch__tool-section {
  89. border-left: none;
  90. border-right: none;
  91. }
  92. }
  93. }
  94. }
  95. .esri-sketch--vertical {
  96. flex-direction: row-reverse;
  97. .esri-sketch__panel {
  98. flex-flow: column;
  99. }
  100. .esri-sketch__section {
  101. flex-flow: column;
  102. padding-left: 0;
  103. padding-right: 0;
  104. margin-left: $side-spacing--half;
  105. margin-right: $side-spacing--half;
  106. }
  107. .esri-sketch__tool-section {
  108. border-right: none;
  109. border-bottom: $border;
  110. &:last-child {
  111. border-bottom: none;
  112. }
  113. }
  114. .esri-sketch__info-panel {
  115. &:empty {
  116. padding: 0;
  117. }
  118. }
  119. .esri-sketch__info-section {
  120. margin-top: $cap-spacing--quarter;
  121. width: $button-width;
  122. }
  123. .esri-sketch__menu-container {
  124. min-width: 30vh;
  125. }
  126. .esri-selection-toolbar__container {
  127. flex-direction: column;
  128. }
  129. }
  130. }
  131. @if $include_Sketch == true {
  132. @include sketch();
  133. }