dropzone.scss 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713
  1. /*
  2. * The MIT License
  3. * Copyright (c) 2012 Matias Meno <m@tias.me>
  4. */
  5. @-webkit-keyframes passing-through {
  6. 0% {
  7. opacity: 0;
  8. -webkit-transform: translateY(40px);
  9. -moz-transform: translateY(40px);
  10. -ms-transform: translateY(40px);
  11. -o-transform: translateY(40px);
  12. transform: translateY(40px);
  13. }
  14. 30%,
  15. 70% {
  16. opacity: 1;
  17. -webkit-transform: translateY(0px);
  18. -moz-transform: translateY(0px);
  19. -ms-transform: translateY(0px);
  20. -o-transform: translateY(0px);
  21. transform: translateY(0px);
  22. }
  23. 100% {
  24. opacity: 0;
  25. -webkit-transform: translateY(-40px);
  26. -moz-transform: translateY(-40px);
  27. -ms-transform: translateY(-40px);
  28. -o-transform: translateY(-40px);
  29. transform: translateY(-40px);
  30. }
  31. }
  32. @-moz-keyframes passing-through {
  33. 0% {
  34. opacity: 0;
  35. -webkit-transform: translateY(40px);
  36. -moz-transform: translateY(40px);
  37. -ms-transform: translateY(40px);
  38. -o-transform: translateY(40px);
  39. transform: translateY(40px);
  40. }
  41. 30%,
  42. 70% {
  43. opacity: 1;
  44. -webkit-transform: translateY(0px);
  45. -moz-transform: translateY(0px);
  46. -ms-transform: translateY(0px);
  47. -o-transform: translateY(0px);
  48. transform: translateY(0px);
  49. }
  50. 100% {
  51. opacity: 0;
  52. -webkit-transform: translateY(-40px);
  53. -moz-transform: translateY(-40px);
  54. -ms-transform: translateY(-40px);
  55. -o-transform: translateY(-40px);
  56. transform: translateY(-40px);
  57. }
  58. }
  59. @keyframes passing-through {
  60. 0% {
  61. opacity: 0;
  62. -webkit-transform: translateY(40px);
  63. -moz-transform: translateY(40px);
  64. -ms-transform: translateY(40px);
  65. -o-transform: translateY(40px);
  66. transform: translateY(40px);
  67. }
  68. 30%,
  69. 70% {
  70. opacity: 1;
  71. -webkit-transform: translateY(0px);
  72. -moz-transform: translateY(0px);
  73. -ms-transform: translateY(0px);
  74. -o-transform: translateY(0px);
  75. transform: translateY(0px);
  76. }
  77. 100% {
  78. opacity: 0;
  79. -webkit-transform: translateY(-40px);
  80. -moz-transform: translateY(-40px);
  81. -ms-transform: translateY(-40px);
  82. -o-transform: translateY(-40px);
  83. transform: translateY(-40px);
  84. }
  85. }
  86. @-webkit-keyframes slide-in {
  87. 0% {
  88. opacity: 0;
  89. -webkit-transform: translateY(40px);
  90. -moz-transform: translateY(40px);
  91. -ms-transform: translateY(40px);
  92. -o-transform: translateY(40px);
  93. transform: translateY(40px);
  94. }
  95. 30% {
  96. opacity: 1;
  97. -webkit-transform: translateY(0px);
  98. -moz-transform: translateY(0px);
  99. -ms-transform: translateY(0px);
  100. -o-transform: translateY(0px);
  101. transform: translateY(0px);
  102. }
  103. }
  104. @-moz-keyframes slide-in {
  105. 0% {
  106. opacity: 0;
  107. -webkit-transform: translateY(40px);
  108. -moz-transform: translateY(40px);
  109. -ms-transform: translateY(40px);
  110. -o-transform: translateY(40px);
  111. transform: translateY(40px);
  112. }
  113. 30% {
  114. opacity: 1;
  115. -webkit-transform: translateY(0px);
  116. -moz-transform: translateY(0px);
  117. -ms-transform: translateY(0px);
  118. -o-transform: translateY(0px);
  119. transform: translateY(0px);
  120. }
  121. }
  122. @keyframes slide-in {
  123. 0% {
  124. opacity: 0;
  125. -webkit-transform: translateY(40px);
  126. -moz-transform: translateY(40px);
  127. -ms-transform: translateY(40px);
  128. -o-transform: translateY(40px);
  129. transform: translateY(40px);
  130. }
  131. 30% {
  132. opacity: 1;
  133. -webkit-transform: translateY(0px);
  134. -moz-transform: translateY(0px);
  135. -ms-transform: translateY(0px);
  136. -o-transform: translateY(0px);
  137. transform: translateY(0px);
  138. }
  139. }
  140. @-webkit-keyframes pulse {
  141. 0% {
  142. -webkit-transform: scale(1);
  143. -moz-transform: scale(1);
  144. -ms-transform: scale(1);
  145. -o-transform: scale(1);
  146. transform: scale(1);
  147. }
  148. 10% {
  149. -webkit-transform: scale(1.1);
  150. -moz-transform: scale(1.1);
  151. -ms-transform: scale(1.1);
  152. -o-transform: scale(1.1);
  153. transform: scale(1.1);
  154. }
  155. 20% {
  156. -webkit-transform: scale(1);
  157. -moz-transform: scale(1);
  158. -ms-transform: scale(1);
  159. -o-transform: scale(1);
  160. transform: scale(1);
  161. }
  162. }
  163. @-moz-keyframes pulse {
  164. 0% {
  165. -webkit-transform: scale(1);
  166. -moz-transform: scale(1);
  167. -ms-transform: scale(1);
  168. -o-transform: scale(1);
  169. transform: scale(1);
  170. }
  171. 10% {
  172. -webkit-transform: scale(1.1);
  173. -moz-transform: scale(1.1);
  174. -ms-transform: scale(1.1);
  175. -o-transform: scale(1.1);
  176. transform: scale(1.1);
  177. }
  178. 20% {
  179. -webkit-transform: scale(1);
  180. -moz-transform: scale(1);
  181. -ms-transform: scale(1);
  182. -o-transform: scale(1);
  183. transform: scale(1);
  184. }
  185. }
  186. @keyframes pulse {
  187. 0% {
  188. -webkit-transform: scale(1);
  189. -moz-transform: scale(1);
  190. -ms-transform: scale(1);
  191. -o-transform: scale(1);
  192. transform: scale(1);
  193. }
  194. 10% {
  195. -webkit-transform: scale(1.1);
  196. -moz-transform: scale(1.1);
  197. -ms-transform: scale(1.1);
  198. -o-transform: scale(1.1);
  199. transform: scale(1.1);
  200. }
  201. 20% {
  202. -webkit-transform: scale(1);
  203. -moz-transform: scale(1);
  204. -ms-transform: scale(1);
  205. -o-transform: scale(1);
  206. transform: scale(1);
  207. }
  208. }
  209. .dropzone,
  210. .dropzone * {
  211. box-sizing: border-box;
  212. }
  213. .dropzone {
  214. min-height: 75px;
  215. border: 2px solid #2c3340;
  216. background: rgba(0, 0, 0, 0.15);
  217. border-radius: .3em;
  218. // border: 2px solid rgba(0, 0, 0, 0.3);
  219. // background: white;
  220. // padding: 20px 20px;
  221. }
  222. .dropzone.dz-clickable {
  223. cursor: pointer;
  224. }
  225. .dropzone.dz-clickable * {
  226. cursor: default;
  227. }
  228. .dropzone.dz-clickable .dz-message,
  229. .dropzone.dz-clickable .dz-message * {
  230. cursor: pointer;
  231. }
  232. .dropzone.dz-started .dz-message {
  233. display: none;
  234. }
  235. .dropzone.dz-drag-hover {
  236. border-style: solid;
  237. }
  238. .dropzone.dz-drag-hover .dz-message {
  239. opacity: 0.5;
  240. }
  241. .dropzone .dz-message {
  242. text-align: center;
  243. margin: 2em 0;
  244. font-size: .875em;
  245. font-weight: 400;
  246. line-height: 1.5;
  247. }
  248. .dropzone .dz-preview {
  249. position: relative;
  250. display: inline-block;
  251. vertical-align: top;
  252. min-height: 40px;
  253. margin: 1em;
  254. margin-bottom: 0.5em;
  255. width: calc(100% - 2em);
  256. background: #808080;
  257. border-radius: .3em;
  258. }
  259. .dropzone .dz-preview:not(:nth-child(2)) {
  260. margin-top: 0px;
  261. }
  262. .dropzone .dz-preview:last-child {
  263. margin-bottom: 1em;
  264. }
  265. .dropzone .dz-preview:hover {
  266. z-index: 1000;
  267. }
  268. .dropzone .dz-preview:hover .dz-details {
  269. opacity: 1;
  270. }
  271. .dropzone .dz-preview.dz-file-preview .dz-image {
  272. border-radius: 20px;
  273. background: #999;
  274. background: linear-gradient(to bottom, #eee, #ddd);
  275. }
  276. .dropzone .dz-preview.dz-file-preview .dz-details {
  277. opacity: 1;
  278. }
  279. .dropzone .dz-preview.dz-image-preview {
  280. background: white;
  281. }
  282. .dropzone .dz-preview.dz-image-preview .dz-details {
  283. -webkit-transition: opacity 0.2s linear;
  284. -moz-transition: opacity 0.2s linear;
  285. -ms-transition: opacity 0.2s linear;
  286. -o-transition: opacity 0.2s linear;
  287. transition: opacity 0.2s linear;
  288. }
  289. .dropzone .dz-preview .dz-remove {
  290. font-size: 14px;
  291. text-align: center;
  292. display: block;
  293. cursor: pointer;
  294. border: none;
  295. }
  296. .dropzone .dz-preview .dz-remove:hover {
  297. text-decoration: underline;
  298. }
  299. .dropzone .dz-preview:hover .dz-details {
  300. opacity: 1;
  301. }
  302. .dropzone .dz-preview .dz-details {
  303. z-index: 20;
  304. position: absolute;
  305. top: 0;
  306. left: 0;
  307. opacity: 0;
  308. font-size: 13px;
  309. min-width: 100%;
  310. max-width: 100%;
  311. // padding: 2em 1em;
  312. text-align: center;
  313. color: rgba(0, 0, 0, 0.9);
  314. line-height: 150%;
  315. }
  316. .dropzone .dz-preview .dz-details .dz-size {
  317. // margin-bottom: 1em;
  318. font-size: 12px !important;
  319. transform: translateY(-5px);
  320. }
  321. .dropzone .dz-preview .dz-details .dz-filename {
  322. white-space: nowrap;
  323. font-size: .75em;
  324. line-height: 1.5;
  325. width: 225px;
  326. margin-top: 3px;
  327. }
  328. .dropzone .dz-preview .dz-details .dz-filename:hover span {
  329. border: 1px solid rgba(200, 200, 200, 0.8);
  330. background-color: rgba(255, 255, 255, 0.8);
  331. }
  332. .dropzone .dz-preview .dz-details .dz-filename:not(:hover) {
  333. overflow: hidden;
  334. text-overflow: ellipsis;
  335. }
  336. .dropzone .dz-preview .dz-details .dz-filename:not(:hover) span {
  337. border: 1px solid transparent;
  338. }
  339. .dropzone .dz-preview .dz-details .dz-filename span,
  340. .dropzone .dz-preview .dz-details .dz-size span {
  341. /*
  342. background-color: rgba(255, 255, 255, 0.4);
  343. padding: 0 0.4em;
  344. border-radius: 3px;
  345. */
  346. }
  347. .dropzone .dz-preview:hover .dz-image img {
  348. -webkit-transform: scale(1.05, 1.05);
  349. -moz-transform: scale(1.05, 1.05);
  350. -ms-transform: scale(1.05, 1.05);
  351. -o-transform: scale(1.05, 1.05);
  352. transform: scale(1.05, 1.05);
  353. -webkit-filter: blur(8px);
  354. filter: blur(8px);
  355. }
  356. .dropzone .dz-preview .dz-image {
  357. border-radius: 20px;
  358. overflow: hidden;
  359. width: 120px;
  360. height: 120px;
  361. position: relative;
  362. display: block;
  363. z-index: 10;
  364. }
  365. .dropzone .dz-preview .dz-image img {
  366. display: block;
  367. }
  368. .dropzone .dz-preview.dz-success .dz-success-mark {
  369. -webkit-animation: passing-through 3s cubic-bezier(0.77, 0, 0.175, 1);
  370. -moz-animation: passing-through 3s cubic-bezier(0.77, 0, 0.175, 1);
  371. -ms-animation: passing-through 3s cubic-bezier(0.77, 0, 0.175, 1);
  372. -o-animation: passing-through 3s cubic-bezier(0.77, 0, 0.175, 1);
  373. animation: passing-through 3s cubic-bezier(0.77, 0, 0.175, 1);
  374. }
  375. .dropzone .dz-preview.dz-error .dz-error-mark {
  376. opacity: 1;
  377. -webkit-animation: slide-in 3s cubic-bezier(0.77, 0, 0.175, 1);
  378. -moz-animation: slide-in 3s cubic-bezier(0.77, 0, 0.175, 1);
  379. -ms-animation: slide-in 3s cubic-bezier(0.77, 0, 0.175, 1);
  380. -o-animation: slide-in 3s cubic-bezier(0.77, 0, 0.175, 1);
  381. animation: slide-in 3s cubic-bezier(0.77, 0, 0.175, 1);
  382. }
  383. .dropzone .dz-preview .dz-success-mark,
  384. .dropzone .dz-preview .dz-error-mark {
  385. pointer-events: none;
  386. opacity: 0;
  387. z-index: 500;
  388. position: absolute;
  389. display: block;
  390. top: 50%;
  391. left: 50%;
  392. margin-left: -27px;
  393. margin-top: -27px;
  394. }
  395. .dropzone .dz-preview .dz-success-mark svg,
  396. .dropzone .dz-preview .dz-error-mark svg {
  397. display: block;
  398. width: 54px;
  399. height: 54px;
  400. }
  401. .dropzone .dz-preview.dz-processing .dz-progress {
  402. opacity: 1;
  403. -webkit-transition: all 0.2s linear;
  404. -moz-transition: all 0.2s linear;
  405. -ms-transition: all 0.2s linear;
  406. -o-transition: all 0.2s linear;
  407. transition: all 0.2s linear;
  408. }
  409. .dropzone .dz-preview.dz-complete .dz-progress {
  410. opacity: 0;
  411. -webkit-transition: opacity 0.4s ease-in;
  412. -moz-transition: opacity 0.4s ease-in;
  413. -ms-transition: opacity 0.4s ease-in;
  414. -o-transition: opacity 0.4s ease-in;
  415. transition: opacity 0.4s ease-in;
  416. }
  417. .dropzone .dz-preview:not(.dz-processing) .dz-progress {
  418. -webkit-animation: pulse 6s ease infinite;
  419. -moz-animation: pulse 6s ease infinite;
  420. -ms-animation: pulse 6s ease infinite;
  421. -o-animation: pulse 6s ease infinite;
  422. animation: pulse 6s ease infinite;
  423. }
  424. .dropzone .dz-preview .dz-progress {
  425. opacity: 1;
  426. z-index: 1000;
  427. pointer-events: none;
  428. position: absolute;
  429. margin-top: -8px;
  430. width: 80px;
  431. margin-left: -40px;
  432. background: rgba(255, 255, 255, 0.9);
  433. -webkit-transform: scale(1);
  434. transform: scale(1);
  435. border-radius: 8px;
  436. overflow: hidden;
  437. right: 10px;
  438. left: initial;
  439. margin: 0px;
  440. height: 5px;
  441. top: 17px;
  442. }
  443. .dropzone .dz-preview .dz-progress .dz-upload {
  444. // background: #333;
  445. // background: linear-gradient(to bottom, #666, #444);
  446. background: #0b6312;
  447. position: absolute;
  448. top: 0;
  449. left: 0;
  450. bottom: 0;
  451. width: 0;
  452. -webkit-transition: width 300ms ease-in-out;
  453. -moz-transition: width 300ms ease-in-out;
  454. -ms-transition: width 300ms ease-in-out;
  455. -o-transition: width 300ms ease-in-out;
  456. transition: width 300ms ease-in-out;
  457. }
  458. .dropzone .dz-preview.dz-error .dz-error-message {
  459. display: block;
  460. }
  461. .dropzone .dz-preview.dz-error:hover .dz-error-message {
  462. opacity: 1;
  463. pointer-events: auto;
  464. }
  465. .dropzone .dz-preview .dz-error-message {
  466. pointer-events: none;
  467. z-index: 1000;
  468. position: absolute;
  469. display: block;
  470. display: none;
  471. opacity: 0;
  472. -webkit-transition: opacity 0.3s ease;
  473. -moz-transition: opacity 0.3s ease;
  474. -ms-transition: opacity 0.3s ease;
  475. -o-transition: opacity 0.3s ease;
  476. transition: opacity 0.3s ease;
  477. border-radius: 8px;
  478. font-size: 13px;
  479. top: 130px;
  480. left: -10px;
  481. width: 140px;
  482. background: #be2626;
  483. background: linear-gradient(to bottom, #be2626, #a92222);
  484. padding: 0.5em 1.2em;
  485. color: white;
  486. }
  487. .dropzone .dz-preview .dz-error-message:after {
  488. content: '';
  489. position: absolute;
  490. top: -6px;
  491. left: 64px;
  492. width: 0;
  493. height: 0;
  494. border-left: 6px solid transparent;
  495. border-right: 6px solid transparent;
  496. border-bottom: 6px solid #be2626;
  497. }
  498. /*
  499. .vue-dropzone {
  500. border: 2px solid #E5E5E5;
  501. font-family: 'Arial', sans-serif;
  502. letter-spacing: 0.2px;
  503. color: #777;
  504. transition: background-color 0.2s linear;
  505. }
  506. .vue-dropzone:hover {
  507. background-color: #F6F6F6;
  508. }
  509. */
  510. .vue-dropzone i {
  511. color: #CCC;
  512. }
  513. .vue-dropzone .dz-preview .dz-image {
  514. border-radius: 0;
  515. width: 100%;
  516. height: 100%;
  517. }
  518. .vue-dropzone .dz-preview .dz-image img:not([src]) {
  519. width: 200px;
  520. height: 200px;
  521. }
  522. .vue-dropzone .dz-preview .dz-image:hover img {
  523. transform: none;
  524. -webkit-filter: none;
  525. }
  526. .vue-dropzone .dz-preview .dz-details {
  527. bottom: 0;
  528. top: 0;
  529. color: white;
  530. background-color: transparent;
  531. // background-color: rgba(33, 150, 243, 0.8);
  532. // transition: opacity .2s linear;
  533. transition: background-color .2s linear;
  534. text-align: left;
  535. border-radius: .3em;
  536. height: 40px;
  537. padding-left: 15px;
  538. }
  539. .vue-dropzone .dz-preview.dz-success .dz-details {
  540. background-color: #22a061;
  541. }
  542. .vue-dropzone .dz-preview.dz-error .dz-details {
  543. background-color: #c44e47;
  544. }
  545. .vue-dropzone .dz-preview .dz-details .dz-filename {
  546. overflow: hidden;
  547. }
  548. .vue-dropzone .dz-preview .dz-details .dz-filename span {
  549. font-size: 1.25em;
  550. }
  551. .vue-dropzone .dz-preview .dz-details .dz-filename span,
  552. .vue-dropzone .dz-preview .dz-details .dz-size span {
  553. background-color: transparent;
  554. // font-size: .625em;
  555. // opacity: .5;
  556. opacity: 1;
  557. transition: opacity .25s ease-in-out;
  558. font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  559. }
  560. .vue-dropzone .dz-preview .dz-details .dz-size span,
  561. .vue-dropzone .dz-preview .dz-details .dz-size span strong {
  562. opacity: .75;
  563. color: white;
  564. font-size: .625em;
  565. }
  566. .vue-dropzone .dz-preview .dz-details .dz-filename:not(:hover) span {
  567. border: none;
  568. }
  569. .vue-dropzone .dz-preview .dz-details .dz-filename:hover span {
  570. background-color: transparent;
  571. border: none;
  572. }
  573. .vue-dropzone .dz-preview .dz-progress .dz-upload {
  574. // background: #cccccc;
  575. background: #8bc34a;
  576. }
  577. .vue-dropzone .dz-preview .dz-remove {
  578. position: absolute;
  579. z-index: 30;
  580. color: white;
  581. margin-left: 15px;
  582. padding: 10px;
  583. top: inherit;
  584. bottom: 15px;
  585. border: 2px white solid;
  586. text-decoration: none;
  587. text-transform: uppercase;
  588. font-size: 0.8rem;
  589. font-weight: 800;
  590. letter-spacing: 1.1px;
  591. opacity: 0;
  592. }
  593. .vue-dropzone .dz-preview:hover .dz-remove {
  594. opacity: 1;
  595. }
  596. .vue-dropzone .dz-preview .dz-success-mark,
  597. .vue-dropzone .dz-preview .dz-error-mark {
  598. margin-left: auto;
  599. margin-top: auto;
  600. width: 100%;
  601. top: 35%;
  602. left: 0;
  603. }
  604. .vue-dropzone .dz-preview .dz-success-mark svg,
  605. .vue-dropzone .dz-preview .dz-error-mark svg {
  606. margin-left: auto;
  607. margin-right: auto;
  608. }
  609. .vue-dropzone .dz-preview .dz-error-message {
  610. top: calc(15%);
  611. margin-left: auto;
  612. margin-right: auto;
  613. left: 0;
  614. width: 100%;
  615. }
  616. .vue-dropzone .dz-preview .dz-error-message:after {
  617. bottom: -6px;
  618. top: initial;
  619. border-top: 6px solid #a92222;
  620. border-bottom: none;
  621. }
  622. .dz-size span, .dz-size span strong {
  623. font-size: 0.9em !important;
  624. }
  625. .vue-dropzone .dz-preview .result,
  626. .vue-dropzone .dz-preview .error {
  627. display: none;
  628. }
  629. .vue-dropzone .dz-preview.dz-success .result,
  630. .vue-dropzone .dz-preview.dz-error .error {
  631. display: inline-block;
  632. position: absolute;
  633. z-index: 50;
  634. right: 5px;
  635. top: 6px;
  636. -webkit-transition: display 0.2s linear;
  637. -moz-transition: display 0.2s linear;
  638. -ms-transition: display 0.2s linear;
  639. -o-transition: display 0.2s linear;
  640. transition: display 0.2s linear;
  641. cursor: pointer;
  642. > div {
  643. margin-right: 5px;
  644. display: inline-block;
  645. cursor: pointer;
  646. span {
  647. width: 2em;
  648. height: 2em;
  649. color: #fff;
  650. outline: none;
  651. border-radius: 50%;
  652. background-color: rgba(0,0,0,.5);
  653. display: block;
  654. cursor: pointer;
  655. a { cursor: pointer; }
  656. i {
  657. color: white;
  658. position: absolute;
  659. top: 4px;
  660. left: 4px;
  661. cursor: pointer;
  662. }
  663. }
  664. }
  665. }
  666. .vue-dropzone .dz-preview.dz-error .error {
  667. span.error-message {
  668. display: none;
  669. width: 250px;
  670. background-color: black;
  671. color: #fff;
  672. text-align: center;
  673. padding: 5px 0;
  674. border-radius: 6px;
  675. top: -8px;
  676. height: auto;
  677. left: 60px;
  678. position: absolute;
  679. -webkit-transition: display 0.2s linear;
  680. -moz-transition: display 0.2s linear;
  681. -ms-transition: display 0.2s linear;
  682. -o-transition: display 0.2s linear;
  683. transition: display 0.2s linear;
  684. }
  685. > div > span {
  686. position: relative;
  687. &:hover {
  688. span.error-message {
  689. display: inline-table;
  690. }
  691. }
  692. }
  693. i {
  694. top: 3px !important;
  695. left: 5px !important;
  696. }
  697. }