_Popup.scss 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753
  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-left: $side-spacing--half;
  230. padding-right: $side-spacing--half;
  231. margin: 0 $side-spacing--half;
  232. transition: box-shadow 125ms ease-in-out;
  233. &:hover {
  234. background-color: $background-color--hover;
  235. }
  236. }
  237. .esri-popup--actions-menu-open .esri-popup__footer .esri-popup__actions-menu-button {
  238. background-color: $background-color--offset;
  239. color: $interactive-font-color--hover;
  240. }
  241. [class*="esri-popup--is-docked-bottom-"].esri-popup--is-docked .esri-popup__actions,
  242. [class*="esri-popup--aligned-top-"] .esri-popup__actions {
  243. bottom: $button_height;
  244. top: auto;
  245. transform-origin: bottom center;
  246. }
  247. [class*="esri-popup--is-docked-top-"].esri-popup--is-docked .esri-popup__actions,
  248. [class*="esri-popup--aligned-bottom-"] .esri-popup__actions {
  249. bottom: auto;
  250. top: $button_height;
  251. transform-origin: top center;
  252. }
  253. .esri-popup__icon {
  254. width: $action-size;
  255. height: $action-size;
  256. display: inline-block;
  257. flex: 0 0 $action-size--image;
  258. }
  259. [class*="esri-popup--is-docked-top-"] .esri-popup__footer,
  260. [class*="esri-popup--aligned-bottom-"] .esri-popup__footer {
  261. border-bottom: solid 1px $border_color;
  262. }
  263. [class*="esri-popup--is-docked-bottom-"] .esri-popup__content ~ .esri-popup__footer,
  264. [class*="esri-popup--aligned-top-"] .esri-popup__content ~ .esri-popup__footer {
  265. // esri-popup__footer is on the bottom of the popup
  266. margin-top: -$cap-spacing;
  267. }
  268. .esri-popup__navigation {
  269. background-color: $background-color--offset;
  270. position: relative;
  271. display: flex;
  272. align-items: center;
  273. margin: 0 $side-spacing 0 auto;
  274. padding: 0;
  275. justify-content: center;
  276. .esri-popup__button {
  277. margin: 0;
  278. padding-left: $side-spacing--quarter;
  279. padding-right: $side-spacing--quarter;
  280. }
  281. }
  282. .esri-popup__inline-actions-container {
  283. display: flex;
  284. justify-content: flex-start;
  285. align-items: center;
  286. width: 100%;
  287. margin: 0 $side-spacing--half;
  288. position: relative;
  289. &:only-child {
  290. width: 100%;
  291. max-width: unset;
  292. justify-content: flex-start;
  293. .esri-popup__actions-menu-button {
  294. margin-left: auto;
  295. }
  296. }
  297. > .esri-popup__action,
  298. > .esri-popup__action-toggle {
  299. flex: 0 1 auto;
  300. }
  301. .esri-popup__icon,
  302. [class*="esri-icon"] {
  303. margin: 0 $side-spacing--quarter;
  304. }
  305. }
  306. .esri-popup__footer--has-pagination .esri-popup__inline-actions-container {
  307. width: 70%;
  308. }
  309. .esri-popup__action-toggle.esri-popup__action-toggle--on {
  310. background-color: $background-color--active;
  311. color: $interactive-font-color--hover;
  312. &:hover {
  313. background-color: $background-color--active;
  314. color: $interactive-font-color--hover;
  315. }
  316. } ///////////////
  317. // FEATURE MENU
  318. .esri-popup__feature-menu {
  319. left: 0;
  320. font-size: $font-size__body;
  321. font-weight: $font-weight;
  322. position: absolute;
  323. width: 100%;
  324. background-color: $background-color;
  325. color: $font-color;
  326. z-index: $page-menu-z;
  327. margin: $cap-spacing--half 0;
  328. max-height: 0;
  329. opacity: 0;
  330. height: 0;
  331. overflow: hidden;
  332. @include defaultBoxShadow();
  333. }
  334. [class*="esri-popup--is-docked-bottom-"].esri-popup--is-docked .esri-popup__feature-menu,
  335. [class*="esri-popup--aligned-top-"] .esri-popup__feature-menu {
  336. bottom: $button_height;
  337. top: auto;
  338. transform-origin: bottom center;
  339. }
  340. [class*="esri-popup--is-docked-top-"].esri-popup--is-docked .esri-popup__feature-menu,
  341. [class*="esri-popup--aligned-bottom-"] .esri-popup__feature-menu {
  342. bottom: auto;
  343. top: $button_height;
  344. transform-origin: top center;
  345. }
  346. .esri-popup__feature-menu-list {
  347. padding: 0;
  348. margin: 0;
  349. counter-reset: section;
  350. }
  351. .esri-popup__feature-menu-item {
  352. list-style-type: none;
  353. border: solid 1px $border-color;
  354. display: flex;
  355. flex-flow: row nowrap;
  356. align-items: center;
  357. transition: background-color 125ms ease-in-out;
  358. margin-top: -1px;
  359. position: relative;
  360. }
  361. .esri-popup__feature-menu-item:hover,
  362. .esri-popup__feature-menu-item:focus {
  363. cursor: pointer;
  364. background-color: $background-color--hover;
  365. }
  366. .esri-popup__feature-menu-item::before {
  367. counter-increment: section;
  368. content: counter(section);
  369. display: flex;
  370. justify-content: center;
  371. flex: 0 0 8%;
  372. text-align: center;
  373. }
  374. .esri-popup__feature-menu-item--selected,
  375. .esri-popup__feature-menu-item--selected:hover,
  376. .esri-popup__feature-menu-item--selected:focus {
  377. background-color: $background-color--active;
  378. }
  379. .esri-popup__feature-menu-item .esri-icon-check-mark {
  380. padding: 0 0.5rem;
  381. }
  382. .esri-popup__feature-menu-title {
  383. display: flex;
  384. flex: 1 0 82%;
  385. min-height: 1em;
  386. margin: 0;
  387. padding: 0.8em 4%;
  388. border-left: solid 1px rgba(0, 0, 0, 0.25);
  389. }
  390. .esri-popup__feature-menu-viewport {
  391. max-height: 0px;
  392. opacity: 0;
  393. overflow: auto;
  394. position: relative;
  395. z-index: $page-menu__viewport-z;
  396. }
  397. .esri-popup__feature-menu-header {
  398. background-color: transparent;
  399. border-bottom: solid 1px $border-color;
  400. padding: 0;
  401. margin: 0;
  402. font-weight: $font-weight;
  403. font-size: $font-size;
  404. line-height: 1.2em;
  405. overflow: hidden;
  406. position: relative;
  407. opacity: 0;
  408. }
  409. .esri-popup--feature-menu-open .esri-popup__feature-menu {
  410. height: auto;
  411. opacity: 1;
  412. animation: esri-fade-in-scale 125ms ease-out;
  413. max-height: none;
  414. overflow: visible;
  415. }
  416. .esri-popup--feature-menu-open .esri-popup__feature-menu-header {
  417. padding: $cap-spacing $side-spacing;
  418. max-height: none;
  419. display: block;
  420. opacity: 1;
  421. margin: 0;
  422. }
  423. .esri-popup--feature-menu-open .esri-popup__feature-menu-viewport {
  424. max-height: 175px;
  425. opacity: 1;
  426. padding-top: 1px;
  427. }
  428. .esri-popup__feature-menu-loader {
  429. position: sticky;
  430. z-index: 2;
  431. padding: 6px;
  432. bottom: 10px;
  433. text-align: center;
  434. pointer-events: none;
  435. }
  436. .esri-popup__feature-menu-observer {
  437. position: relative;
  438. z-index: 2;
  439. bottom: 20px;
  440. text-align: center;
  441. }
  442. .esri-popup__loading-container {
  443. margin: 0 $side-spacing--half;
  444. text-align: center;
  445. user-select: none;
  446. }
  447. .esri-popup__action-image {
  448. width: $action-size--image;
  449. height: $action-size--image;
  450. background-size: contain;
  451. background-repeat: no-repeat;
  452. background-position: 50% 50%;
  453. flex: 0 0 $action-size--image;
  454. }
  455. .esri-popup__action-text {
  456. overflow: hidden;
  457. text-overflow: ellipsis;
  458. }
  459. .esri-popup__collapse-button {
  460. align-items: center;
  461. background-color: $background-color--offset;
  462. cursor: pointer;
  463. display: flex;
  464. flex: 1 0;
  465. justify-content: center;
  466. padding: $cap-spacing--half 0;
  467. } ///////////////
  468. // POINTER
  469. $half_pointer_width: ($popup-pointer__width / 2) + px;
  470. $half_pointer_height: ($popup-pointer__height / 2) + px;
  471. $neg_half_pointer_width: (-($popup-pointer__width / 2)) + px;
  472. $neg_half_pointer_height: (-($popup-pointer__height / 2)) + px;
  473. .esri-popup__pointer {
  474. position: absolute;
  475. width: 0;
  476. height: 0;
  477. }
  478. .esri-popup__pointer-direction {
  479. background-color: $background-color;
  480. @include pointerStyle($popup-pointer__width, $popup-pointer__height);
  481. }
  482. .esri-popup--aligned-top-center .esri-popup__pointer {
  483. top: 100%;
  484. left: 50%;
  485. margin: 0 0 0 $neg_half_pointer_width;
  486. }
  487. .esri-popup--aligned-bottom-center .esri-popup__pointer {
  488. bottom: 100%;
  489. left: 50%;
  490. margin: 0 0 0 $neg_half_pointer_width;
  491. }
  492. .esri-popup--aligned-top-left .esri-popup__pointer {
  493. bottom: $half_pointer_height;
  494. right: $half_pointer_width;
  495. transform: rotate(-45deg);
  496. }
  497. .esri-popup--aligned-bottom-left .esri-popup__pointer {
  498. top: $half_pointer_height;
  499. right: $half_pointer_width;
  500. transform: rotate(45deg);
  501. }
  502. .esri-popup--aligned-top-right .esri-popup__pointer {
  503. bottom: $half_pointer_height;
  504. left: $half_pointer_width;
  505. transform: rotate(45deg);
  506. }
  507. .esri-popup--aligned-bottom-right .esri-popup__pointer {
  508. top: $half_pointer_height;
  509. left: $half_pointer_width;
  510. transform: rotate(-45deg);
  511. }
  512. .esri-popup--aligned-top-center .esri-popup__pointer-direction,
  513. .esri-popup--aligned-bottom-center .esri-popup__pointer-direction {
  514. transform: scale($popup-pointer__scale-x, $popup-pointer__scale-y) rotate(45deg);
  515. }
  516. .esri-popup--aligned-top-left .esri-popup__pointer-direction,
  517. .esri-popup--aligned-bottom-left .esri-popup__pointer-direction,
  518. .esri-popup--aligned-top-right .esri-popup__pointer-direction,
  519. .esri-popup--aligned-bottom-right .esri-popup__pointer-direction {
  520. top: $neg_half_pointer_height;
  521. left: $neg_half_pointer_width;
  522. transform: scale($popup-pointer__scale-x--corner, $popup-pointer__scale-y--corner) rotate(45deg);
  523. }
  524. .esri-popup--aligned-top-center .esri-popup__pointer-direction {
  525. top: $neg_half_pointer_height;
  526. left: 0;
  527. }
  528. .esri-popup--aligned-bottom-center .esri-popup__pointer-direction {
  529. bottom: $neg_half_pointer_height;
  530. left: 0;
  531. } ///////////////////
  532. // SCREEN SIZES
  533. // WIDTHS
  534. .esri-view-width-xlarge {
  535. .esri-popup__main-container {
  536. width: $main-container__width--xlarge;
  537. }
  538. }
  539. .esri-view-width-large {
  540. .esri-popup__main-container {
  541. width: $main-container__width--large;
  542. }
  543. }
  544. .esri-view-width-medium {
  545. .esri-popup__main-container {
  546. width: $main-container__width--medium;
  547. }
  548. }
  549. .esri-view-width-less-than-medium {
  550. .esri-popup__main-container {
  551. width: $main-container__width--less-than-medium;
  552. }
  553. .esri-popup__action-text {
  554. display: none;
  555. }
  556. }
  557. .esri-view-width-xsmall .esri-popup__button[class*="esri-popup__navigation-"],
  558. .esri-view-width-xsmall .esri-popup__pagination-page-text {
  559. display: none;
  560. }
  561. .esri-view-width-xsmall .esri-popup--is-docked-bottom-center {
  562. margin-bottom: $docked-margin + 1;
  563. }
  564. .esri-view-width-xsmall .esri-popup--is-docked-top-center,
  565. .esri-view-width-xsmall .esri-popup--is-docked-bottom-center {
  566. width: auto;
  567. margin: 0;
  568. }
  569. .esri-view-width-xsmall .esri-popup--is-docked-top-center,
  570. .esri-view-width-xsmall .esri-popup--is-docked-bottom-center {
  571. .esri-popup__main-container {
  572. width: 100%;
  573. max-height: 75%;
  574. padding: $cap-spacing--third 0;
  575. position: absolute;
  576. left: 0;
  577. right: 0;
  578. bottom: 0;
  579. &.esri-popup--is-collapsible:before {
  580. background-color: $border-color;
  581. border-radius: $border-radius;
  582. content: "";
  583. height: $border-radius;
  584. left: calc(50% - #{$button-width--half});
  585. position: absolute;
  586. top: $cap-spacing--half;
  587. width: $button-width;
  588. }
  589. }
  590. &.esri-popup--feature-menu-open {
  591. .esri-popup__main-container:before {
  592. visibility: hidden;
  593. }
  594. }
  595. }
  596. .esri-view-width-xsmall .esri-popup--is-docked-bottom-center {
  597. .esri-popup__feature-menu,
  598. .esri-popup__actions {
  599. bottom: $button-height + $cap-spacing--third;
  600. }
  601. } // HEIGHTS
  602. .esri-view-height-xlarge {
  603. @include popupHeight_BasedOnViewSize($main-container__height--xlarge);
  604. }
  605. .esri-view-height-large {
  606. @include popupHeight_BasedOnViewSize($main-container__height--large);
  607. }
  608. .esri-view-height-less-than-medium {
  609. @include popupHeight_BasedOnViewSize($main-container__height--less-than-medium);
  610. } // SCREEN SIZES
  611. ///////////////////
  612. ///////////////////
  613. // DOCKED
  614. .esri-popup--is-docked {
  615. left: 0;
  616. bottom: 0;
  617. right: 0;
  618. top: 0;
  619. margin: $docked-margin $docked-margin $docked-margin--double $docked-margin;
  620. animation: esri-docking-animation 250ms ease-out;
  621. }
  622. .esri-ui .esri-popup--is-docked {
  623. flex-flow: row nowrap;
  624. }
  625. .esri-popup--is-docked .esri-popup__header {
  626. padding-top: 2px;
  627. }
  628. .esri-popup--is-docked-top-left,
  629. .esri-popup--is-docked-top-center,
  630. .esri-popup--is-docked-top-right {
  631. align-items: flex-start;
  632. }
  633. .esri-popup--is-docked-bottom-left,
  634. .esri-popup--is-docked-bottom-center,
  635. .esri-popup--is-docked-bottom-right {
  636. align-items: flex-end;
  637. }
  638. .esri-popup--is-docked-top-left,
  639. .esri-popup--is-docked-bottom-left {
  640. justify-content: flex-start;
  641. }
  642. .esri-popup--is-docked-top-center,
  643. .esri-popup--is-docked-bottom-center {
  644. justify-content: center;
  645. }
  646. .esri-popup--is-docked-top-right,
  647. .esri-popup--is-docked-bottom-right {
  648. justify-content: flex-end;
  649. }
  650. .esri-popup--is-docked-top-left .esri-popup__main-container,
  651. .esri-popup--is-docked-top-right .esri-popup__main-container,
  652. .esri-popup--is-docked-bottom-left .esri-popup__main-container,
  653. .esri-popup--is-docked-bottom-right .esri-popup__main-container {
  654. max-height: 80%;
  655. }
  656. .esri-popup--is-docked-top-center .esri-popup__main-container,
  657. .esri-popup--is-docked-bottom-center .esri-popup__main-container {
  658. max-height: 40%;
  659. }
  660. // DOCKED
  661. ////////////////////
  662. ////////////////////
  663. // RTL
  664. html[dir="rtl"] {
  665. .esri-widget .esri-popup__header-title,
  666. .esri-popup__header-title {
  667. margin: $cap-spacing--half $side-spacing--half $cap-spacing--half auto;
  668. }
  669. .esri-popup__header-buttons {
  670. margin: 0 auto 0 0;
  671. }
  672. .esri-popup__feature-menu-title {
  673. border-left: none;
  674. border-right: solid 1px rgba(0, 0, 0, 0.25);
  675. }
  676. .esri-popup__navigation {
  677. margin: 0 auto 0 $side-spacing;
  678. }
  679. .esri-popup__actions {
  680. right: auto;
  681. left: 0;
  682. }
  683. .esri-popup__inline-actions-container {
  684. &:only-child {
  685. .esri-popup__actions-menu-button {
  686. margin-left: $side-spacing--half;
  687. margin-right: auto;
  688. }
  689. }
  690. .esri-popup__action {
  691. margin-right: $side-spacing--half;
  692. margin-left: $side-spacing;
  693. }
  694. }
  695. .esri-popup--is-docked .esri-popup__loading-container {
  696. order: 0;
  697. }
  698. .esri-popup--is-docked-top-left,
  699. .esri-popup--is-docked-bottom-left {
  700. justify-content: flex-end;
  701. }
  702. .esri-popup--is-docked-top-right,
  703. .esri-popup--is-docked-bottom-right {
  704. justify-content: flex-start;
  705. }
  706. } // RTL
  707. ////////////////////
  708. }
  709. @keyframes esri-docking-animation {
  710. 0% {
  711. opacity: 0;
  712. }
  713. 25% {
  714. opacity: 0;
  715. }
  716. 100% {
  717. opacity: 1;
  718. }
  719. }
  720. @keyframes popup-intro-animation-down {
  721. 0% {
  722. transform: translate(0, -5px);
  723. opacity: 0;
  724. }
  725. 100% {
  726. transform: translate(0, 0);
  727. opacity: 1;
  728. }
  729. }
  730. @keyframes popup-intro-animation-up {
  731. 0% {
  732. transform: translate(0, 5px);
  733. opacity: 0;
  734. }
  735. 100% {
  736. transform: translate(0, 0);
  737. opacity: 1;
  738. }
  739. }
  740. @if $include_Popup==true {
  741. @include popup();
  742. }