_Editor.scss 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241
  1. $base-scrim-z-index: 50;
  2. @mixin esri-editor__prompt($contextColor) {
  3. background-color: var(--calcite-ui-background);
  4. border-top: solid 3px $contextColor;
  5. color: $font-color;
  6. @include defaultBoxShadow();
  7. padding: $cap-spacing $side-spacing;
  8. position: absolute;
  9. left: 0;
  10. right: 0;
  11. bottom: 0;
  12. max-height: 85%;
  13. display: flex;
  14. flex-flow: column nowrap;
  15. animation: esri-fade-in-up 250ms ease-in-out;
  16. .esri-editor__prompt__header {
  17. color: $contextColor;
  18. display: flex;
  19. margin-bottom: $cap-spacing;
  20. flex: 0 0 auto;
  21. &__heading {
  22. color: $heading-color;
  23. margin: 0 $side-spacing--quarter;
  24. }
  25. }
  26. .esri-editor__prompt__message {
  27. color: inherit;
  28. font-weight: $font-weight;
  29. word-break: break-word;
  30. flex: 1 1 auto;
  31. overflow: auto;
  32. overflow-x: hidden;
  33. padding: 0 0 $cap-spacing 0;
  34. }
  35. .esri-editor__prompt__divider {
  36. color: inherit;
  37. margin: 0 0 $cap-spacing 0;
  38. border-bottom: $border;
  39. border-color: $border-color--subtle;
  40. flex: 0 0 auto;
  41. }
  42. .esri-editor__prompt__actions {
  43. display: flex;
  44. flex-direction: row;
  45. }
  46. }
  47. @mixin editor() {
  48. $headerOrFooterHeight: 56px;
  49. $border: 1px solid $border-color;
  50. $panel-background-color: var(--calcite-ui-background);
  51. .esri-editor {
  52. background-color: $panel-background-color;
  53. display: flex;
  54. flex-direction: column;
  55. position: relative;
  56. }
  57. .esri-editor__content {
  58. justify-content: center;
  59. align-items: flex-start;
  60. flex: 1 1 auto;
  61. min-height: 20vh;
  62. display: flex;
  63. flex-direction: row;
  64. animation: esri-fade-in 250ms ease-in-out;
  65. transition: min-height 250ms ease-in-out;
  66. &:empty {
  67. min-height: 0;
  68. }
  69. }
  70. .esri-editor__content-group {
  71. display: flex;
  72. flex-direction: column;
  73. flex: 1 0 100%;
  74. }
  75. .esri-editor__message {
  76. display: flex;
  77. align-items: center;
  78. align-self: stretch;
  79. font-size: $font-size__h2;
  80. margin-left: $side-spacing;
  81. margin-right: $side-spacing;
  82. }
  83. .esri-editor__scroller {
  84. overflow-y: auto;
  85. padding-top: $cap-spacing--half;
  86. padding-bottom: $cap-spacing;
  87. }
  88. .esri-editor .esri-feature-form {
  89. width: 100%;
  90. padding: 0;
  91. }
  92. .esri-editor {
  93. .esri-item-list {
  94. background-color: transparent;
  95. }
  96. .esri-item-list__group {
  97. margin-left: 0;
  98. margin-right: 0;
  99. }
  100. }
  101. .esri-editor__temp-wrapper {
  102. display: flex;
  103. flex-direction: column;
  104. flex: 1 1 auto;
  105. }
  106. .esri-editor__controls {
  107. background-color: $background-color;
  108. border-top: $border;
  109. padding: $cap-spacing $side-spacing;
  110. display: flex;
  111. flex-direction: column;
  112. }
  113. .esri-editor__control-button {
  114. margin-bottom: 6px;
  115. min-height: $button-height;
  116. }
  117. .esri-editor__prompt--info {
  118. @include esri-editor__prompt(var(--calcite-ui-info));
  119. }
  120. .esri-editor__prompt--warning {
  121. @include esri-editor__prompt(var(--calcite-ui-warning));
  122. }
  123. .esri-editor__prompt--danger {
  124. @include esri-editor__prompt(var(--calcite-ui-danger));
  125. }
  126. .esri-editor__overlay {
  127. position: absolute;
  128. overflow: hidden;
  129. left: 0;
  130. right: 0;
  131. bottom: 0;
  132. top: 0;
  133. background-color: $background-color--overlay;
  134. }
  135. .esri-editor__progress-bar {
  136. position: absolute;
  137. width: 100%;
  138. }
  139. .esri-editor__panel-toolbar {
  140. --divider-border: 1px solid var(--calcite-ui-border-2);
  141. background-color: var(--calcite-ui-foreground-1);
  142. display: flex;
  143. flex-direction: row;
  144. border-bottom: var(--divider-border);
  145. &__snapping-button {
  146. flex-grow: 1;
  147. }
  148. }
  149. .esri-editor__panel-content {
  150. position: relative;
  151. height: 100%;
  152. min-height: 20vh;
  153. display: flex;
  154. flex-direction: column;
  155. padding-top: 0;
  156. padding-bottom: 0;
  157. &__section {
  158. padding: 15px 12px 12px 12px;
  159. position: relative;
  160. &__group {
  161. display: flex;
  162. flex-direction: column;
  163. flex: 1 0 100%;
  164. }
  165. }
  166. &__message {
  167. display: flex;
  168. flex-basis: 100%;
  169. justify-content: center;
  170. align-items: center;
  171. font-size: var(--calcite-font-size-0);
  172. padding: 0 15px;
  173. text-align: center;
  174. }
  175. }
  176. .esri-editor__snapping-settings {
  177. width: 100%;
  178. border: 0;
  179. }
  180. .esri-editor__update-features-action-buttons {
  181. display: flex;
  182. flex-direction: row;
  183. align-items: flex-start;
  184. padding: 0;
  185. }
  186. .esri-editor__update-features-action-buttons--button {
  187. flex-grow: 1;
  188. }
  189. .esri-editor__feature-templates-container {
  190. .esri-feature-templates {
  191. width: 100%;
  192. }
  193. }
  194. .esri-editor__snapping-controls-popover {
  195. width: $panel-width * 0.9;
  196. display: flex;
  197. flex-direction: column;
  198. }
  199. @include loopingProgressBar(".esri-editor__progress-bar");
  200. }
  201. @if $include_Editor == true {
  202. @include editor();
  203. }