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.

365 lines
5.1 KiB

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