_Editor.scss 6.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338
  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__header {
  58. background-color: $background-color;
  59. padding: 0 $side-spacing--three-quarters;
  60. font-size: $font-size__header-text;
  61. border-bottom: $border;
  62. display: flex;
  63. align-items: center;
  64. height: $headerOrFooterHeight;
  65. }
  66. .esri-editor__title {
  67. text-align: center;
  68. flex: 1 1 auto;
  69. overflow: hidden;
  70. }
  71. .esri-editor__content {
  72. justify-content: center;
  73. align-items: flex-start;
  74. flex: 1 1 auto;
  75. min-height: 20vh;
  76. display: flex;
  77. flex-direction: row;
  78. animation: esri-fade-in 250ms ease-in-out;
  79. transition: min-height 250ms ease-in-out;
  80. &:empty {
  81. min-height: 0;
  82. }
  83. }
  84. .esri-editor__content-group {
  85. display: flex;
  86. flex-direction: column;
  87. flex: 1 0 100%;
  88. }
  89. .esri-editor__message {
  90. display: flex;
  91. align-items: center;
  92. align-self: stretch;
  93. font-size: $font-size__h2;
  94. margin-left: $side-spacing;
  95. margin-right: $side-spacing;
  96. }
  97. .esri-editor__scroller {
  98. overflow-y: auto;
  99. padding-top: $cap-spacing--half;
  100. padding-bottom: $cap-spacing;
  101. }
  102. .esri-editor .esri-feature-form {
  103. width: 100%;
  104. padding: 0;
  105. }
  106. .esri-editor {
  107. .esri-item-list {
  108. background-color: transparent;
  109. }
  110. .esri-item-list__group {
  111. margin-left: 0;
  112. margin-right: 0;
  113. }
  114. }
  115. .esri-editor__temp-wrapper {
  116. display: flex;
  117. flex-direction: column;
  118. flex: 1 1 auto;
  119. }
  120. .esri-editor__back-button {
  121. display: flex;
  122. width: $button-width;
  123. height: $button-height;
  124. justify-content: center;
  125. align-items: center;
  126. border-radius: 3px;
  127. background-color: $background-color--offset-subtle;
  128. transition: background-color 125ms ease-in-out;
  129. &:hover {
  130. background-color: $background-color--hover;
  131. color: $interactive-font-color--hover;
  132. }
  133. }
  134. .esri-editor__controls {
  135. background-color: $background-color;
  136. border-top: $border;
  137. padding: $cap-spacing $side-spacing;
  138. display: flex;
  139. flex-direction: column;
  140. }
  141. .esri-editor__control-button {
  142. margin-bottom: 6px;
  143. min-height: $button-height;
  144. }
  145. .esri-editor__feature-list-item {
  146. @include cardBoxShadow();
  147. padding: $cap-spacing $side-spacing--quarter;
  148. background-color: $background-color;
  149. cursor: pointer;
  150. margin: $cap-spacing--quarter 0;
  151. border: $border;
  152. border-color: transparent;
  153. border-radius: $border-radius;
  154. display: flex;
  155. justify-content: space-between;
  156. transition: border-color 125ms ease-in-out;
  157. }
  158. .esri-editor__feature-list-item:hover,
  159. .esri-editor__feature-list-item:focus {
  160. border-color: $border-color--hover;
  161. }
  162. .esri-editor__feature-list-item:active {
  163. background-color: $background-color--active;
  164. color: $interactive-font-color;
  165. }
  166. .esri-editor__feature-list-item {
  167. @include icomoonIconSelector("&") {
  168. padding-right: $font-size * 0.2;
  169. }
  170. }
  171. .esri-editor__feature-list-item--disabled {
  172. pointer-events: none;
  173. opacity: $opacity--disabled;
  174. }
  175. .esri-editor__feature-list-icon {
  176. flex: 0 0 auto;
  177. padding: 0 $side-spacing--half;
  178. }
  179. .esri-editor__feature-list-index {
  180. text-align: right;
  181. flex-basis: 2ch;
  182. }
  183. .esri-editor__feature-list-name {
  184. flex: 1 1 auto;
  185. margin: 0 $side-spacing--half;
  186. }
  187. .esri-editor__feature-list {
  188. width: 100%;
  189. margin: 0;
  190. padding: $cap-spacing--quarter $side-spacing--quarter;
  191. list-style: none;
  192. }
  193. .esri-editor__prompt--info {
  194. @include esri-editor__prompt(var(--calcite-ui-info));
  195. }
  196. .esri-editor__prompt--warning {
  197. @include esri-editor__prompt(var(--calcite-ui-warning));
  198. }
  199. .esri-editor__prompt--danger {
  200. @include esri-editor__prompt(var(--calcite-ui-danger));
  201. }
  202. .esri-editor__prompt-option {
  203. margin: $cap-spacing--half 0;
  204. cursor: pointer;
  205. flex: 0 0 auto;
  206. }
  207. // .esri-editor__prompt-option--positive {
  208. // color: $button-color;
  209. // }
  210. // .esri-editor__prompt-option--negative {
  211. // color: $font-color--error;
  212. // }
  213. .esri-editor__overlay {
  214. position: absolute;
  215. overflow: hidden;
  216. left: 0;
  217. right: 0;
  218. bottom: 0;
  219. top: 0;
  220. background-color: $background-color--overlay;
  221. }
  222. .esri-editor__progress-bar {
  223. position: absolute;
  224. width: 100%;
  225. }
  226. .esri-editor__mode-selection {
  227. display: flex;
  228. flex: 1 1 auto;
  229. flex-direction: column;
  230. }
  231. .esri-ui {
  232. .esri-editor .esri-item-list__scroller {
  233. max-height: ($panel-max-height--medium * 0.5) - 80px;
  234. }
  235. }
  236. .esri-editor__panel-toolbar {
  237. --divider-border: 1px solid var(--calcite-ui-border-2);
  238. background-color: var(--calcite-ui-foreground-1);
  239. display: flex;
  240. flex-direction: row;
  241. border-bottom: var(--divider-border);
  242. &__snapping-button {
  243. flex-grow: 1;
  244. }
  245. }
  246. .esri-editor__panel-content {
  247. position: relative;
  248. padding: 0 12px 12px 12px;
  249. height: 100%;
  250. display: flex;
  251. flex-direction: column;
  252. &--section {
  253. margin-top: 15px;
  254. }
  255. }
  256. .esri-editor__scrim-overlay {
  257. position: relative;
  258. z-index: $base-scrim-z-index + 1;
  259. }
  260. .esri-editor__update-features-action-buttons {
  261. display: flex;
  262. flex-direction: row;
  263. align-items: flex-start;
  264. padding: 0;
  265. }
  266. .esri-editor__update-features-action-buttons--button {
  267. flex-grow: 1;
  268. }
  269. .esri-editor__feature-templates-container {
  270. .esri-feature-templates {
  271. width: 100%;
  272. }
  273. }
  274. .esri-editor__snapping-controls-popover {
  275. width: $panel-width * 0.9;
  276. display: flex;
  277. flex-direction: column;
  278. }
  279. @include loopingProgressBar(".esri-editor__progress-bar");
  280. }
  281. @if $include_Editor == true {
  282. @include editor();
  283. }