You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

356 lines
5.0 KiB

  1. .modal {
  2. align-items: flex-start;
  3. display: none;
  4. &.is-active {
  5. display: block;
  6. }
  7. &.is-superimposed {
  8. .modal-background {
  9. z-index: 20;
  10. }
  11. .modal-container {
  12. z-index: 21;
  13. }
  14. }
  15. }
  16. .modal-background {
  17. top: 0;
  18. left: 0;
  19. width: 100vw;
  20. height: 100vh;
  21. position: fixed;
  22. background-color: rgba(0,0,0,0.85);
  23. animation: .4s ease fadeIn;
  24. z-index: 10;
  25. }
  26. .modal-container {
  27. position: fixed;
  28. top: 0;
  29. left: 0;
  30. right: 0;
  31. bottom: 0;
  32. z-index: 11;
  33. display: flex;
  34. justify-content: center;
  35. align-items: center;
  36. }
  37. .modal-content {
  38. animation: .3s ease zoomIn;
  39. width: 600px;
  40. background-color: #FFF;
  41. &.is-expanded {
  42. align-self: stretch;
  43. width: 100%;
  44. margin: 20px;
  45. display: flex;
  46. flex-direction: column;
  47. > section {
  48. flex-grow: 1;
  49. }
  50. }
  51. header {
  52. background-color: mc('teal', '600');
  53. color: #FFF;
  54. display: flex;
  55. flex-shrink: 0;
  56. height: 40px;
  57. align-items: center;
  58. font-weight: 400;
  59. font-size: 16px;
  60. padding: 0 20px;
  61. position: relative;
  62. @each $color, $colorvalue in $material-colors {
  63. &.is-#{$color} {
  64. background-color: mc($color, '600');
  65. }
  66. }
  67. .modal-notify {
  68. position: absolute;
  69. display: none;
  70. align-items: center;
  71. height: 40px;
  72. right: 20px;
  73. top: 0;
  74. &.is-active {
  75. display: flex;
  76. }
  77. span {
  78. font-size: 12px;
  79. letter-spacing: 1px;
  80. text-transform: uppercase;
  81. }
  82. i {
  83. margin-left: 15px;
  84. display: inline-block;
  85. @include spinner(#FFF, .5s, 20px);
  86. }
  87. }
  88. }
  89. section {
  90. padding: 20px;
  91. border-top: 1px dotted mc('grey', '300');
  92. &:first-of-type {
  93. border-top: none;
  94. padding-top: 20px;
  95. }
  96. &:last-of-type {
  97. padding-bottom: 20px;
  98. }
  99. &.is-gapless {
  100. padding: 10px;
  101. display: flex;
  102. }
  103. &.modal-loading {
  104. display: flex;
  105. flex-direction: column;
  106. align-items: center;
  107. > i {
  108. display: block;
  109. @include spinner(mc('blue','500'), .4s, 32px);
  110. margin-bottom: 10px;
  111. }
  112. > span {
  113. color: mc('grey', '600');
  114. }
  115. > em {
  116. font-size: 12px;
  117. color: mc('grey', '500');
  118. font-style: normal;
  119. }
  120. }
  121. &.modal-instructions {
  122. display: flex;
  123. flex-direction: column;
  124. align-items: center;
  125. color: mc('grey', '800');
  126. img {
  127. height: 100px;
  128. & + * {
  129. margin-top: 10px;
  130. }
  131. }
  132. i.is-huge {
  133. font-size: 72px;
  134. margin-bottom: 10px;
  135. }
  136. > span {
  137. color: mc('grey', '800');
  138. }
  139. > em {
  140. font-size: 12px;
  141. color: mc('grey', '600');
  142. font-style: normal;
  143. margin-top: 10px;
  144. display: block;
  145. }
  146. }
  147. .bullets {
  148. list-style-type: square;
  149. padding: 5px 0 0 30px;
  150. font-size: 14px;
  151. color: mc('grey', '800');
  152. }
  153. .note {
  154. display: block;
  155. margin-top: 10px;
  156. font-size: 14px;
  157. color: mc('grey', '800');
  158. &:first-child {
  159. margin-top: 0;
  160. }
  161. ul {
  162. color: mc('grey', '800');
  163. padding-left: 10px;
  164. li {
  165. margin-top: 5px;
  166. display: flex;
  167. align-items: center;
  168. > i {
  169. margin-right: 8px;
  170. font-size: 18px;
  171. }
  172. }
  173. }
  174. }
  175. }
  176. footer {
  177. padding: 20px;
  178. text-align: right;
  179. .button {
  180. margin-left: 10px;
  181. }
  182. }
  183. }
  184. .modal-toolbar {
  185. background-color: mc('teal', '700');
  186. padding: 7px 20px;
  187. display: flex;
  188. flex-shrink: 0;
  189. justify-content: center;
  190. @each $color, $colorvalue in $material-colors {
  191. &.is-#{$color} {
  192. background-color: mc($color, '700');
  193. .button {
  194. border-color: mc($color, '900');
  195. background-color: mc($color, '900');
  196. &:hover {
  197. border-color: mc($color, '900');
  198. background-color: mc($color, '800');
  199. }
  200. }
  201. }
  202. }
  203. // BUTTONS
  204. .button {
  205. border: 1px solid mc('teal', '900');
  206. background-color: mc('teal', '900');
  207. transition: all .4s ease;
  208. color: #FFF;
  209. border-radius: 0;
  210. &:first-child {
  211. border-top-left-radius: 4px;
  212. border-bottom-left-radius: 4px;
  213. }
  214. &:last-child {
  215. border-top-right-radius: 4px;
  216. border-bottom-right-radius: 4px;
  217. }
  218. &:hover {
  219. border-color: mc('teal', '900');
  220. background-color: mc('teal', '800');
  221. color: #FFF;
  222. }
  223. }
  224. .button + .button {
  225. margin-left: 1px;
  226. }
  227. }
  228. .modal-sidebar {
  229. background-color: mc('teal', '50');
  230. padding: 0;
  231. //padding: 7px 20px;
  232. @each $color, $colorvalue in $material-colors {
  233. &.is-#{$color} {
  234. background-color: mc($color, '50');
  235. .model-sidebar-header {
  236. background-color: mc($color, '100');
  237. color: mc($color, '800');
  238. }
  239. .model-sidebar-list > li a {
  240. &:hover {
  241. background-color: mc($color, '200');
  242. }
  243. &.is-active {
  244. background-color: mc($color, '500');
  245. }
  246. }
  247. }
  248. }
  249. .model-sidebar-header {
  250. padding: 7px 20px;
  251. }
  252. .model-sidebar-content {
  253. padding: 7px 20px;
  254. }
  255. .model-sidebar-list {
  256. > li {
  257. padding: 0;
  258. a {
  259. display: flex;
  260. align-items: center;
  261. height: 34px;
  262. padding: 0 20px;
  263. cursor: pointer;
  264. color: mc('grey', '800');
  265. &:hover {
  266. background-color: mc('teal', '200');
  267. }
  268. &.is-active {
  269. color: #FFF;
  270. }
  271. i {
  272. margin-right: 7px;
  273. }
  274. }
  275. }
  276. }
  277. }
  278. .modal-content .card-footer-item.featured {
  279. animation: flash 4s ease 0 infinite;
  280. }