_IdentityModal.scss 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. @mixin identityModal() {
  2. .esri-identity-modal {
  3. box-sizing: border-box;
  4. color: $font-color;
  5. display: none;
  6. font-size: $font-size;
  7. font-family: $font-family;
  8. line-height: $line-height;
  9. background-color: $background-color;
  10. }
  11. .esri-identity-modal--open {
  12. position: fixed;
  13. top: 0px;
  14. left: 0px;
  15. right: 0px;
  16. bottom: 0px;
  17. background: $background-color--overlay;
  18. display: flex;
  19. justify-content: center;
  20. align-items: center;
  21. text-align: center;
  22. z-index: 1001;
  23. transition: opacity 300ms cubic-bezier(0.4, 0, 0.2, 1) 0s;
  24. opacity: 1;
  25. .esri-identity-modal__dialog {
  26. position: relative;
  27. top: auto;
  28. left: auto;
  29. right: auto;
  30. bottom: auto;
  31. border: none;
  32. background: $background-color;
  33. overflow: auto;
  34. border-radius: 0px;
  35. outline: none;
  36. padding: $cap-spacing--plus-half $side-spacing--plus-half;
  37. max-width: 40vw;
  38. max-height: 80vh;
  39. box-sizing: border-box;
  40. z-index: 102;
  41. text-align: left;
  42. display: inline-block;
  43. vertical-align: middle;
  44. transition: margin-top 300ms cubic-bezier(0.4, 0, 0.2, 1) 0s;
  45. margin-top: 0px;
  46. }
  47. }
  48. .esri-identity-modal__title {
  49. font-size: $font-size__h1;
  50. margin: 0 0 $cap-spacing 0;
  51. padding: 0;
  52. }
  53. .esri-identity-modal__close-button {
  54. color: $interactive-font-color;
  55. position: absolute;
  56. top: $cap-spacing;
  57. right: $side-spacing--half;
  58. z-index: 1;
  59. background: none;
  60. border: none;
  61. display: flex;
  62. align-items: center;
  63. justify-content: center;
  64. width: $button-width;
  65. height: $button-height;
  66. cursor: pointer;
  67. }
  68. .esri-identity-modal__content {
  69. margin-top: $cap-spacing--plus-half;
  70. }
  71. .esri-identity-form__group {
  72. margin-bottom: $cap-spacing;
  73. }
  74. .esri-identity-form__label {
  75. display: flex;
  76. flex-flow: column;
  77. }
  78. .esri-identity-form__footer {
  79. display: flex;
  80. justify-content: space-between;
  81. margin-top: $cap-spacing;
  82. }
  83. @media only screen and (max-width: 680px) {
  84. .esri-identity-modal--open .esri-identity-modal__dialog {
  85. max-width: unset;
  86. width: 75vw;
  87. }
  88. }
  89. [dir="rtl"] {
  90. .esri-identity-modal--open .esri-identity-modal__dialog {
  91. text-align: right;
  92. }
  93. .esri-identity-modal__close-button {
  94. right: unset;
  95. left: $side-spacing--half;
  96. }
  97. }
  98. }
  99. @if $include_IdentityModal == true {
  100. @include identityModal();
  101. }