Modal.scss 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207
  1. @import 'src/utils/scss/variables';
  2. .modal {
  3. display: block;
  4. text-align: center;
  5. position: fixed;
  6. z-index: 1;
  7. padding-top: 200px;
  8. left: 0;
  9. top: 0;
  10. width: 100%;
  11. height: 100%;
  12. overflow: auto;
  13. background-color: $black;
  14. background-color: rgba(0, 0, 0, 0.4);
  15. .modal-content {
  16. box-shadow: 0 2px 11px 0 rgba(0, 0, 0, 0.5);
  17. background: #222e44;
  18. border: 1px solid #111824;
  19. margin: auto;
  20. width: 25%;
  21. height: auto;
  22. color: white;
  23. margin-top: 100px;
  24. .modal-body {
  25. display: flex;
  26. flex-direction: column;
  27. justify-content: center;
  28. align-items: center;
  29. overflow-wrap: anywhere;
  30. font-size: 17px;
  31. margin-bottom: 40px;
  32. small {
  33. margin-top: 5px;
  34. font-size: 13px;
  35. &.error {
  36. color: red;
  37. }
  38. }
  39. input {
  40. background: #333;
  41. border: 1px solid #111;
  42. color: white;
  43. margin-top: 10px;
  44. width: 85%;
  45. }
  46. }
  47. .modal-header {
  48. border-bottom: none;
  49. padding-bottom: 0;
  50. word-break: break-word;
  51. h3 {
  52. font-size: 20px;
  53. color: $secondaryLight;
  54. }
  55. .replace {
  56. position: absolute;
  57. top: 10px;
  58. right: 10px;
  59. }
  60. .quot {
  61. color: $secondaryActive;
  62. }
  63. }
  64. .modal-footer {
  65. border-top: 1px solid #555;
  66. button {
  67. color: white;
  68. border-color: none;
  69. background: none;
  70. text-transform: uppercase;
  71. font-size: 11px;
  72. &:focus {
  73. outline: none;
  74. box-shadow: none;
  75. }
  76. }
  77. button.btn-danger {
  78. border-color: transparent;
  79. &:focus {
  80. outline: none;
  81. border: none;
  82. }
  83. }
  84. button.btn-danger:hover {
  85. background: $danger;
  86. border-color: $danger;
  87. }
  88. button + button {
  89. padding: 6px 30px;
  90. background: $secondary;
  91. border-color: $secondary;
  92. &:hover {
  93. background: $primaryLight;
  94. border-color: $primaryLight;
  95. color: $hoverButtonText;
  96. }
  97. &:hover {
  98. background: $primaryActive;
  99. border-color: $primaryActive;
  100. color: $activeButtonText;
  101. }
  102. }
  103. }
  104. .header .quot {
  105. color: $secondaryActive;
  106. }
  107. .close {
  108. top: 0;
  109. right: 0;
  110. color: $black;
  111. }
  112. }
  113. .nothing-selected {
  114. h3 {
  115. padding: 15px;
  116. }
  117. .modal-footer {
  118. margin-top: 20px;
  119. button {
  120. background: #d9534f;
  121. border-color: #d9534f;
  122. color: white;
  123. }
  124. }
  125. }
  126. .delete .modal-header {
  127. border-bottom: none;
  128. padding-bottom: 30px;
  129. .close {
  130. position: absolute;
  131. top: 15px;
  132. right: 15px;
  133. }
  134. }
  135. .permissions {
  136. height: auto;
  137. width: 30%;
  138. margin-top: 0;
  139. .error,
  140. &:focus {
  141. border: 1px solid red;
  142. }
  143. input[type='text'] {
  144. size: 40px;
  145. width: 60px;
  146. margin: auto auto 10px auto;
  147. display: inline-block;
  148. }
  149. .header h3 {
  150. margin-bottom: 40px;
  151. font-size: 30px;
  152. }
  153. form {
  154. margin-top: 20px;
  155. div {
  156. display: flex;
  157. flex-direction: column;
  158. justify-content: space-between;
  159. margin-bottom: 30px;
  160. margin-left: 40px;
  161. label {
  162. display: inherit;
  163. cursor: pointer;
  164. font-size: 18px;
  165. input {
  166. margin-top: 6px;
  167. margin-right: 5px;
  168. }
  169. }
  170. }
  171. }
  172. }
  173. }