_Popup.scss 21 KB

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