_Popup.scss 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742
  1. @mixin popup() {
  2. // z-indexes
  3. $action-menu__viewport-z: 1;
  4. $container-z: 1;
  5. $main-z: 1;
  6. $page-menu-z: 1;
  7. $page-menu__viewport-z: 1;
  8. // main container
  9. // Heights slightly less than half of the correlated view height.
  10. $main-container__height--xlarge: 460px !default;
  11. $main-container__height--large: 400px !default;
  12. $main-container__height--medium: 340px !default;
  13. $main-container__height--less-than-medium: 300px !default;
  14. $main-container__width--xlarge: 460px !default;
  15. $main-container__width--large: 400px !default;
  16. $main-container__width--medium: 340px !default;
  17. $main-container__width--less-than-medium: 280px !default;
  18. // pointer
  19. $popup-pointer__width: 12 !default;
  20. $popup-pointer__height: 12 !default;
  21. $popup-pointer__scale-x: 0.75 !default;
  22. $popup-pointer__scale-y: 2 !default;
  23. $popup-pointer__scale-x--corner: 1 !default;
  24. $popup-pointer__scale-y--corner: 3.5 !default;
  25. // actions menu
  26. $action-menu__width--max: 50% !default;
  27. $action-size: $button-width--half !default;
  28. $action-size--image: $button-width--half !default;
  29. $footer-button__border-radius: 2px !default;
  30. .esri-ui {
  31. .esri-popup {
  32. pointer-events: none;
  33. position: absolute;
  34. z-index: $container-z;
  35. display: flex;
  36. flex-flow: column nowrap;
  37. }
  38. }
  39. .esri-popup--shadow {
  40. @include boxShadow("0 1px 4px rgba(0, 0, 0, .8)");
  41. }
  42. .esri-popup__button {
  43. border-radius: $border-radius;
  44. padding: $cap-spacing--half $side-spacing--half;
  45. margin: $cap-spacing--half 0;
  46. line-height: $line-height;
  47. cursor: pointer;
  48. user-select: none;
  49. color: $interactive-font-color;
  50. white-space: nowrap;
  51. overflow: hidden;
  52. text-overflow: ellipsis;
  53. display: flex;
  54. transition: background-color 125ms ease-in-out;
  55. }
  56. .esri-popup__button--disabled {
  57. cursor: default;
  58. opacity: $opacity--disabled;
  59. color: $interactive-font-color--disabled;
  60. }
  61. .esri-popup__button:hover {
  62. color: $interactive-font-color--hover;
  63. background-color: $background-color--hover;
  64. }
  65. .esri-popup--aligned-top-center {
  66. transform-origin: 50% 100%;
  67. }
  68. .esri-popup--aligned-bottom-center {
  69. transform-origin: 50% -5%;
  70. }
  71. .esri-popup--aligned-top-left,
  72. .esri-popup--aligned-bottom-left {
  73. transform-origin: 100% 50%;
  74. }
  75. .esri-popup--aligned-top-right,
  76. .esri-popup--aligned-bottom-right {
  77. transform-origin: -5% 50%;
  78. }
  79. .esri-popup--aligned-top-center,
  80. .esri-popup--aligned-top-left,
  81. .esri-popup--aligned-top-right {
  82. animation: popup-intro-animation-down 200ms ease-in-out;
  83. }
  84. .esri-popup--aligned-bottom-center,
  85. .esri-popup--aligned-bottom-left,
  86. .esri-popup--aligned-bottom-right {
  87. animation: popup-intro-animation-up 200ms ease-in-out;
  88. }
  89. .esri-popup__main-container {
  90. pointer-events: auto;
  91. position: relative;
  92. z-index: $main-z;
  93. width: 340px;
  94. max-height: $main-container__height--medium;
  95. background-color: $background-color;
  96. display: flex;
  97. flex-flow: column nowrap;
  98. }
  99. .esri-popup__header {
  100. position: relative;
  101. font-size: $font-size__body;
  102. align-items: flex-start;
  103. justify-content: space-between;
  104. display: flex;
  105. flex: 0 0 auto;
  106. }
  107. .esri-popup__header-buttons {
  108. padding: 0 $side-spacing--half;
  109. margin: 0 0 0 auto; // `auto` here helps place each node at either end of the container node
  110. display: flex;
  111. }
  112. .esri-popup__header-container {
  113. flex: 1;
  114. }
  115. .esri-popup__header-container--button {
  116. border: none;
  117. background: transparent;
  118. display: flex;
  119. justify-content: flex-start;
  120. padding: 0;
  121. font-size: 100%;
  122. font-family: inherit;
  123. color: inherit;
  124. text-align: initial;
  125. }
  126. .esri-popup__header-container--button:hover {
  127. background-color: $background-color--hover;
  128. }
  129. .esri-popup__header-title {
  130. border-radius: $border-radius;
  131. font-size: $font-size;
  132. padding: $cap-spacing--half $side-spacing--half;
  133. margin: $cap-spacing--half auto $cap-spacing--half $side-spacing--half;
  134. display: block;
  135. transition: background-color 125ms ease-in-out;
  136. @include wordbreak();
  137. }
  138. .esri-popup__content {
  139. display: flex;
  140. flex-flow: column nowrap;
  141. flex: 1 1 auto;
  142. font-size: $font-size__body;
  143. font-weight: $font-weight;
  144. margin: 0 $side-spacing $cap-spacing;
  145. overflow: auto;
  146. line-height: normal;
  147. }
  148. .esri-popup__content img {
  149. image-orientation: from-image;
  150. }
  151. .esri-popup__feature-menu-button {
  152. transition: box-shadow 125ms ease-in-out, background-color 125ms ease-in-out;
  153. &:hover,
  154. &:focus {
  155. background-color: $background-color--hover;
  156. }
  157. }
  158. .esri-popup--feature-menu-open .esri-popup__feature-menu-button {
  159. background-color: $background-color--hover;
  160. color: $interactive-font-color--hover;
  161. }
  162. .esri-popup--feature-menu-open .esri-popup__header,
  163. .esri-popup--feature-menu-open .esri-popup__content {
  164. flex: 0 1 0px;
  165. overflow: hidden;
  166. opacity: 0;
  167. }
  168. .esri-popup--feature-updated {
  169. opacity: 0;
  170. transition: opacity 375ms ease-out;
  171. }
  172. .esri-popup--feature-updated-active {
  173. opacity: 1;
  174. }
  175. .esri-popup__pagination-page-text {
  176. white-space: nowrap;
  177. }
  178. .esri-popup__footer {
  179. align-items: center;
  180. display: flex;
  181. flex: 0 0 auto;
  182. justify-content: space-between;
  183. padding: $cap-spacing--half 0;
  184. }
  185. .esri-popup__footer .esri-popup__button {
  186. font-weight: $font-weight;
  187. font-size: $font-size--small;
  188. position: relative;
  189. display: flex;
  190. justify-content: flex-start;
  191. flex: 0 0 auto;
  192. }
  193. /* ACTIONS MENU */
  194. .esri-popup__actions {
  195. animation: esri-fade-in-scale 125ms ease-in-out;
  196. background: $background-color;
  197. @include defaultBoxShadow();
  198. color: $interactive-font-color;
  199. display: flex;
  200. flex-flow: column;
  201. margin: $cap-spacing--half $side-spacing--half;
  202. max-width: $action-menu__width--max;
  203. padding: 0;
  204. position: absolute;
  205. right: 0;
  206. z-index: $action-menu__viewport-z;
  207. .esri-popup__button[class*="esri-popup__action"] {
  208. align-items: center;
  209. border-bottom: 1px solid $border_color;
  210. color: $interactive-font-color;
  211. display: flex;
  212. justify-content: flex-start;
  213. padding: $cap-spacing $side-spacing--half;
  214. margin-top: 0;
  215. margin-bottom: 0;
  216. font-size: $font-size--small;
  217. &:hover {
  218. background-color: $background-color--hover;
  219. }
  220. &:last-child {
  221. border-bottom: none;
  222. }
  223. .esri-popup__icon {
  224. flex: 0 0 $action-size--image;
  225. }
  226. }
  227. }
  228. .esri-popup__footer .esri-popup__actions-menu-button {
  229. padding-inline: $side-spacing--half;
  230. margin-inline-start: $side-spacing--half;
  231. transition: box-shadow 125ms ease-in-out;
  232. &:hover {
  233. background-color: $background-color--hover;
  234. }
  235. }
  236. .esri-popup--actions-menu-open .esri-popup__footer .esri-popup__actions-menu-button {
  237. background-color: $background-color--offset;
  238. color: $interactive-font-color--hover;
  239. }
  240. [class*="esri-popup--is-docked-bottom-"].esri-popup--is-docked .esri-popup__actions,
  241. [class*="esri-popup--aligned-top-"] .esri-popup__actions {
  242. bottom: $button_height;
  243. top: auto;
  244. transform-origin: bottom center;
  245. }
  246. [class*="esri-popup--is-docked-top-"].esri-popup--is-docked .esri-popup__actions,
  247. [class*="esri-popup--aligned-bottom-"] .esri-popup__actions {
  248. bottom: auto;
  249. top: $button_height;
  250. transform-origin: top center;
  251. }
  252. .esri-popup__icon {
  253. width: $action-size;
  254. height: $action-size;
  255. display: inline-block;
  256. flex: 0 0 $action-size--image;
  257. }
  258. [class*="esri-popup--is-docked-top-"] .esri-popup__footer,
  259. [class*="esri-popup--aligned-bottom-"] .esri-popup__footer {
  260. border-bottom: solid 1px $border_color;
  261. }
  262. [class*="esri-popup--is-docked-bottom-"] .esri-popup__content ~ .esri-popup__footer,
  263. [class*="esri-popup--aligned-top-"] .esri-popup__content ~ .esri-popup__footer {
  264. // esri-popup__footer is on the bottom of the popup
  265. margin-top: -$cap-spacing;
  266. }
  267. .esri-popup__navigation {
  268. background-color: $background-color--offset;
  269. position: relative;
  270. display: flex;
  271. align-items: center;
  272. margin: 0 $side-spacing 0 auto;
  273. padding: 0;
  274. justify-content: center;
  275. .esri-popup__button {
  276. margin: 0;
  277. padding-left: $side-spacing--quarter;
  278. padding-right: $side-spacing--quarter;
  279. }
  280. }
  281. .esri-popup__inline-actions-container {
  282. display: flex;
  283. justify-content: flex-start;
  284. align-items: center;
  285. width: 100%;
  286. padding: 0 $side-spacing--half;
  287. position: relative;
  288. &:only-child {
  289. width: 100%;
  290. max-width: unset;
  291. justify-content: flex-start;
  292. .esri-popup__actions-menu-button {
  293. margin-inline-start: auto;
  294. }
  295. }
  296. > .esri-popup__action,
  297. > .esri-popup__action-toggle {
  298. flex: 0 1 auto;
  299. }
  300. .esri-popup__icon {
  301. margin: 0 $side-spacing--quarter;
  302. }
  303. @include icomoonIconSelector() {
  304. margin: 0 $side-spacing--quarter;
  305. }
  306. }
  307. .esri-popup__footer--has-pagination .esri-popup__inline-actions-container {
  308. width: 70%;
  309. }
  310. .esri-popup__action-toggle.esri-popup__action-toggle--on {
  311. background-color: $background-color--active;
  312. color: $interactive-font-color--hover;
  313. &:hover {
  314. background-color: $background-color--active;
  315. color: $interactive-font-color--hover;
  316. }
  317. } ///////////////
  318. // FEATURE MENU
  319. .esri-popup__feature-menu {
  320. left: 0;
  321. font-size: $font-size__body;
  322. font-weight: $font-weight;
  323. position: absolute;
  324. width: 100%;
  325. background-color: $background-color;
  326. color: $font-color;
  327. z-index: $page-menu-z;
  328. margin: $cap-spacing--half 0;
  329. max-height: 0;
  330. opacity: 0;
  331. height: 0;
  332. overflow: hidden;
  333. @include defaultBoxShadow();
  334. }
  335. [class*="esri-popup--is-docked-bottom-"].esri-popup--is-docked .esri-popup__feature-menu,
  336. [class*="esri-popup--aligned-top-"] .esri-popup__feature-menu {
  337. bottom: $button_height;
  338. top: auto;
  339. transform-origin: bottom center;
  340. }
  341. [class*="esri-popup--is-docked-top-"].esri-popup--is-docked .esri-popup__feature-menu,
  342. [class*="esri-popup--aligned-bottom-"] .esri-popup__feature-menu {
  343. bottom: auto;
  344. top: $button_height;
  345. transform-origin: top center;
  346. }
  347. .esri-popup__feature-menu-list {
  348. padding: 0;
  349. margin: 0;
  350. counter-reset: section;
  351. }
  352. .esri-popup__feature-menu-item {
  353. list-style-type: none;
  354. border: solid 1px $border-color;
  355. display: flex;
  356. flex-flow: row nowrap;
  357. align-items: center;
  358. transition: background-color 125ms ease-in-out;
  359. margin-top: -1px;
  360. position: relative;
  361. }
  362. .esri-popup__feature-menu-item:hover,
  363. .esri-popup__feature-menu-item:focus {
  364. cursor: pointer;
  365. background-color: $background-color--hover;
  366. }
  367. .esri-popup__feature-menu-item::before {
  368. counter-increment: section;
  369. content: counter(section);
  370. display: flex;
  371. justify-content: center;
  372. flex: 0 0 8%;
  373. text-align: center;
  374. }
  375. .esri-popup__feature-menu-item--selected,
  376. .esri-popup__feature-menu-item--selected:hover,
  377. .esri-popup__feature-menu-item--selected:focus {
  378. background-color: $background-color--active;
  379. }
  380. .esri-popup__feature-menu-item .esri-icon-check-mark {
  381. padding: 0 0.5rem;
  382. }
  383. .esri-popup__feature-menu-title {
  384. display: flex;
  385. flex: 1 0 82%;
  386. min-height: 1em;
  387. margin: 0;
  388. padding: 0.8em 4%;
  389. border-left: solid 1px rgba(0, 0, 0, 0.25);
  390. }
  391. .esri-popup__feature-menu-viewport {
  392. max-height: 0px;
  393. opacity: 0;
  394. overflow: auto;
  395. position: relative;
  396. z-index: $page-menu__viewport-z;
  397. }
  398. .esri-popup__feature-menu-header {
  399. background-color: transparent;
  400. border-bottom: solid 1px $border-color;
  401. padding: 0;
  402. margin: 0;
  403. font-weight: $font-weight;
  404. font-size: $font-size;
  405. line-height: 1.2em;
  406. overflow: hidden;
  407. position: relative;
  408. opacity: 0;
  409. }
  410. .esri-popup--feature-menu-open .esri-popup__feature-menu {
  411. height: auto;
  412. opacity: 1;
  413. animation: esri-fade-in-scale 125ms ease-out;
  414. max-height: none;
  415. overflow: visible;
  416. }
  417. .esri-popup--feature-menu-open .esri-popup__feature-menu-header {
  418. padding: $cap-spacing $side-spacing;
  419. max-height: none;
  420. display: block;
  421. opacity: 1;
  422. margin: 0;
  423. }
  424. .esri-popup--feature-menu-open .esri-popup__feature-menu-viewport {
  425. max-height: 175px;
  426. opacity: 1;
  427. padding-top: 1px;
  428. }
  429. .esri-popup__feature-menu-loader {
  430. position: sticky;
  431. z-index: 2;
  432. padding: 6px;
  433. bottom: 10px;
  434. text-align: center;
  435. pointer-events: none;
  436. }
  437. .esri-popup__feature-menu-observer {
  438. position: relative;
  439. z-index: 2;
  440. bottom: 20px;
  441. text-align: center;
  442. }
  443. .esri-popup__loading-container {
  444. margin: 0 $side-spacing--half;
  445. text-align: center;
  446. user-select: none;
  447. }
  448. .esri-popup__action-image {
  449. width: $action-size--image;
  450. height: $action-size--image;
  451. background-size: contain;
  452. background-repeat: no-repeat;
  453. background-position: 50% 50%;
  454. flex: 0 0 $action-size--image;
  455. }
  456. .esri-popup__action-text {
  457. overflow: hidden;
  458. text-overflow: ellipsis;
  459. }
  460. .esri-popup__collapse-button {
  461. align-items: center;
  462. background-color: $background-color--offset;
  463. cursor: pointer;
  464. display: flex;
  465. flex: 1 0;
  466. justify-content: center;
  467. padding: $cap-spacing--half 0;
  468. } ///////////////
  469. // POINTER
  470. $half_pointer_width: ($popup-pointer__width * 0.5) + px;
  471. $half_pointer_height: ($popup-pointer__height * 0.5) + px;
  472. $neg_half_pointer_width: (-($popup-pointer__width * 0.5)) + px;
  473. $neg_half_pointer_height: (-($popup-pointer__height * 0.5)) + px;
  474. .esri-popup__pointer {
  475. position: absolute;
  476. width: 0;
  477. height: 0;
  478. }
  479. .esri-popup__pointer-direction {
  480. background-color: $background-color;
  481. @include pointerStyle($popup-pointer__width, $popup-pointer__height);
  482. }
  483. .esri-popup--aligned-top-center .esri-popup__pointer {
  484. top: 100%;
  485. left: 50%;
  486. margin: 0 0 0 $neg_half_pointer_width;
  487. }
  488. .esri-popup--aligned-bottom-center .esri-popup__pointer {
  489. bottom: 100%;
  490. left: 50%;
  491. margin: 0 0 0 $neg_half_pointer_width;
  492. }
  493. .esri-popup--aligned-top-left .esri-popup__pointer {
  494. bottom: $half_pointer_height;
  495. right: $half_pointer_width;
  496. transform: rotate(-45deg);
  497. }
  498. .esri-popup--aligned-bottom-left .esri-popup__pointer {
  499. top: $half_pointer_height;
  500. right: $half_pointer_width;
  501. transform: rotate(45deg);
  502. }
  503. .esri-popup--aligned-top-right .esri-popup__pointer {
  504. bottom: $half_pointer_height;
  505. left: $half_pointer_width;
  506. transform: rotate(45deg);
  507. }
  508. .esri-popup--aligned-bottom-right .esri-popup__pointer {
  509. top: $half_pointer_height;
  510. left: $half_pointer_width;
  511. transform: rotate(-45deg);
  512. }
  513. .esri-popup--aligned-top-center .esri-popup__pointer-direction,
  514. .esri-popup--aligned-bottom-center .esri-popup__pointer-direction {
  515. transform: scale($popup-pointer__scale-x, $popup-pointer__scale-y) rotate(45deg);
  516. }
  517. .esri-popup--aligned-top-left .esri-popup__pointer-direction,
  518. .esri-popup--aligned-bottom-left .esri-popup__pointer-direction,
  519. .esri-popup--aligned-top-right .esri-popup__pointer-direction,
  520. .esri-popup--aligned-bottom-right .esri-popup__pointer-direction {
  521. top: $neg_half_pointer_height;
  522. left: $neg_half_pointer_width;
  523. transform: scale($popup-pointer__scale-x--corner, $popup-pointer__scale-y--corner) rotate(45deg);
  524. }
  525. .esri-popup--aligned-top-center .esri-popup__pointer-direction {
  526. top: $neg_half_pointer_height;
  527. left: 0;
  528. }
  529. .esri-popup--aligned-bottom-center .esri-popup__pointer-direction {
  530. bottom: $neg_half_pointer_height;
  531. left: 0;
  532. } ///////////////////
  533. // SCREEN SIZES
  534. // WIDTHS
  535. .esri-view-width-xlarge {
  536. .esri-popup__main-container {
  537. width: $main-container__width--xlarge;
  538. }
  539. }
  540. .esri-view-width-large {
  541. .esri-popup__main-container {
  542. width: $main-container__width--large;
  543. }
  544. }
  545. .esri-view-width-medium {
  546. .esri-popup__main-container {
  547. width: $main-container__width--medium;
  548. }
  549. }
  550. .esri-view-width-less-than-medium {
  551. .esri-popup__main-container {
  552. width: $main-container__width--less-than-medium;
  553. }
  554. .esri-popup__action-text {
  555. display: none;
  556. }
  557. }
  558. .esri-view-width-xsmall .esri-popup__button[class*="esri-popup__navigation-"],
  559. .esri-view-width-xsmall .esri-popup__pagination-page-text {
  560. display: none;
  561. }
  562. .esri-view-width-xsmall .esri-popup--is-docked-bottom-center {
  563. margin-bottom: $docked-margin + 1;
  564. }
  565. .esri-view-width-xsmall .esri-popup--is-docked-top-center,
  566. .esri-view-width-xsmall .esri-popup--is-docked-bottom-center {
  567. width: auto;
  568. margin: 0;
  569. }
  570. .esri-view-width-xsmall .esri-popup--is-docked-top-center,
  571. .esri-view-width-xsmall .esri-popup--is-docked-bottom-center {
  572. .esri-popup__main-container {
  573. width: 100%;
  574. max-height: 75%;
  575. padding: $cap-spacing--third 0;
  576. position: absolute;
  577. left: 0;
  578. right: 0;
  579. bottom: 0;
  580. &.esri-popup--is-collapsible:before {
  581. background-color: $border-color;
  582. border-radius: $border-radius;
  583. content: "";
  584. height: $border-radius;
  585. left: calc(50% - #{$button-width--half});
  586. position: absolute;
  587. top: $cap-spacing--half;
  588. width: $button-width;
  589. }
  590. }
  591. &.esri-popup--feature-menu-open {
  592. .esri-popup__main-container:before {
  593. visibility: hidden;
  594. }
  595. }
  596. }
  597. .esri-view-width-xsmall .esri-popup--is-docked-bottom-center {
  598. .esri-popup__feature-menu,
  599. .esri-popup__actions {
  600. bottom: $button-height + $cap-spacing--third;
  601. }
  602. } // HEIGHTS
  603. .esri-view-height-xlarge {
  604. @include popupHeight_BasedOnViewSize($main-container__height--xlarge);
  605. }
  606. .esri-view-height-large {
  607. @include popupHeight_BasedOnViewSize($main-container__height--large);
  608. }
  609. .esri-view-height-less-than-medium {
  610. @include popupHeight_BasedOnViewSize($main-container__height--less-than-medium);
  611. } // SCREEN SIZES
  612. ///////////////////
  613. ///////////////////
  614. // DOCKED
  615. .esri-popup--is-docked {
  616. left: 0;
  617. bottom: 0;
  618. right: 0;
  619. top: 0;
  620. margin: $docked-margin $docked-margin $docked-margin--double $docked-margin;
  621. animation: esri-docking-animation 250ms ease-out;
  622. }
  623. .esri-ui .esri-popup--is-docked {
  624. flex-flow: row nowrap;
  625. }
  626. .esri-popup--is-docked .esri-popup__header {
  627. padding-top: 2px;
  628. }
  629. .esri-popup--is-docked-top-left,
  630. .esri-popup--is-docked-top-center,
  631. .esri-popup--is-docked-top-right {
  632. align-items: flex-start;
  633. }
  634. .esri-popup--is-docked-bottom-left,
  635. .esri-popup--is-docked-bottom-center,
  636. .esri-popup--is-docked-bottom-right {
  637. align-items: flex-end;
  638. }
  639. .esri-popup--is-docked-top-left,
  640. .esri-popup--is-docked-bottom-left {
  641. justify-content: flex-start;
  642. }
  643. .esri-popup--is-docked-top-center,
  644. .esri-popup--is-docked-bottom-center {
  645. justify-content: center;
  646. }
  647. .esri-popup--is-docked-top-right,
  648. .esri-popup--is-docked-bottom-right {
  649. justify-content: flex-end;
  650. }
  651. .esri-popup--is-docked-top-left .esri-popup__main-container,
  652. .esri-popup--is-docked-top-right .esri-popup__main-container,
  653. .esri-popup--is-docked-bottom-left .esri-popup__main-container,
  654. .esri-popup--is-docked-bottom-right .esri-popup__main-container {
  655. max-height: 80%;
  656. }
  657. .esri-popup--is-docked-top-center .esri-popup__main-container,
  658. .esri-popup--is-docked-bottom-center .esri-popup__main-container {
  659. max-height: 40%;
  660. }
  661. // DOCKED
  662. ////////////////////
  663. ////////////////////
  664. // RTL
  665. [dir="rtl"] {
  666. .esri-widget .esri-popup__header-title,
  667. .esri-popup__header-title {
  668. margin: $cap-spacing--half $side-spacing--half $cap-spacing--half auto;
  669. }
  670. .esri-popup__header-buttons {
  671. margin: 0 auto 0 0;
  672. }
  673. .esri-popup__feature-menu-title {
  674. border-left: none;
  675. border-right: solid 1px rgba(0, 0, 0, 0.25);
  676. }
  677. .esri-popup__navigation {
  678. margin: 0 auto 0 $side-spacing;
  679. }
  680. .esri-popup__actions {
  681. right: auto;
  682. left: 0;
  683. }
  684. .esri-popup--is-docked .esri-popup__loading-container {
  685. order: 0;
  686. }
  687. .esri-popup--is-docked-top-left,
  688. .esri-popup--is-docked-bottom-left {
  689. justify-content: flex-end;
  690. }
  691. .esri-popup--is-docked-top-right,
  692. .esri-popup--is-docked-bottom-right {
  693. justify-content: flex-start;
  694. }
  695. } // RTL
  696. ////////////////////
  697. }
  698. @keyframes esri-docking-animation {
  699. 0% {
  700. opacity: 0;
  701. }
  702. 25% {
  703. opacity: 0;
  704. }
  705. 100% {
  706. opacity: 1;
  707. }
  708. }
  709. @keyframes popup-intro-animation-down {
  710. 0% {
  711. transform: translate(0, -5px);
  712. opacity: 0;
  713. }
  714. 100% {
  715. transform: translate(0, 0);
  716. opacity: 1;
  717. }
  718. }
  719. @keyframes popup-intro-animation-up {
  720. 0% {
  721. transform: translate(0, 5px);
  722. opacity: 0;
  723. }
  724. 100% {
  725. transform: translate(0, 0);
  726. opacity: 1;
  727. }
  728. }
  729. @if $include_Popup==true {
  730. @include popup();
  731. }