custominputfile.css 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  1. /*
  2. jQuery Custom Input File Plugin - version 1.0
  3. Copyright 2014, Ángel Espro, www.aesolucionesweb.com.ar,
  4. Licence : GNU General Public License
  5. Site: www.aesolucionesweb.com.ar/plugins/custom-input-file
  6. You must not remove these lines. Read gpl.txt for further legal information.
  7. */
  8. /*File Picker*/
  9. .cif-file-picker{
  10. position:relative;
  11. width: 100%;
  12. height:180px;
  13. padding:0;
  14. border:4px dashed rgba(0,0,0,.2);
  15. /*display:table-cell;*/
  16. display:flex;
  17. flex-direction: column;
  18. justify-content: center;
  19. align-items: center;
  20. cursor: pointer;
  21. vertical-align:middle;
  22. text-align:center;
  23. opacity:.5;
  24. box-sizing:border-box; -moz-box-sizing:border-box;
  25. }
  26. .cif-icon-picker{/*background:url(./images/cif-icons-20xy.png) 0 0 no-repeat; width:80px; height:60px; display:inline-block*/}
  27. .cif-file-picker h3{margin:0; font-size:20px; text-align:center}
  28. .cif-file-picker p{margin:0 0 10px 0; font-size:16px; text-align:center}
  29. .cif-file-picker:hover{opacity:1}
  30. .cif-file-picker.dragover:not(.inactive){border-color: #46be5e; opacity:1; box-shadow:0 0 50px rgba(0,0,0,.5)}
  31. .cif-file-picker.inactive{opacity:.2}
  32. .cif-file-picker.inactive.dragover{cursor:pointer}
  33. /*Container item File*/
  34. .cif-file-container{}
  35. .cif-parent{position:relative; margin-bottom:10px}
  36. .foto-file-row .field-wr-int{position:relative}
  37. .cif-close{opacity:.5; text-indent:-100000px; width:14px; height:14px; cursor:default;color:#001d68;background: url(./images/cif-icons-20xy.png) 0px -60px no-repeat;}
  38. .cif-file-container.cif-type-image .cif-close{top: 0px; left:0px; position:absolute; }
  39. .cif-close:hover{opacity:1}
  40. /*Container All type*/
  41. .cif-file-container.cif-container-all-type .cif-file-row{margin: 10px 0}
  42. .cif-file-container.cif-container-all-type .cif-parent{max-width:100%; box-sizing:border-box; -moz-box-sizing:border-box; padding:10px 10px 10px 30px; border:0; background:#f0f0f0; color:#001d68;}
  43. .cif-file-container.cif-container-all-type .cif-all-type{font-size:13px; line-height:16px;}
  44. .cif-file-container.cif-container-all-type .cif-close{top: 50%; margin-top:-7px;left: 5px; position:absolute;}
  45. .cif-file-container.cif-container-all-type .cif-file-size{opacity:.8}
  46. /*Container Image*/
  47. .cif-file-container.cif-container-image-type .cif-file-row{border-bottom:1px solid #f2f2f2; padding: 20px 0}
  48. .cif-file-container.cif-container-image-type .cif-parent{padding-top:30px;}
  49. .cif-file-container.cif-container-image-type .cif-close{top: 5px}
  50. .cif-img{max-height:300px; max-width:380px;}
  51. /*message*/
  52. #cif-msg-wr{font-size:13px; position:fixed; z-index:10000; top: 100px ; left:20px; max-width:50%;padding:15px; background: #f9f8d6; border:1px solid #dfdfdf; box-shadow:3px 3px 6px rgba(0,0,0,.5)}
  53. #cif-msg-wr .cif-msg-close{opacity: .5;position:absolute; right:0;top:0; width:16px; height:16px; text-indent:-100000px;background: url(./images/cif-icons-20xy.png) 0 -75px no-repeat;}
  54. #cif-msg-wr .cif-msg-close:hover{opacity:1}
  55. .cif-msg-icon{padding:0 10px; font-size:8px;}
  56. .cif-msg-icon-error{background: url(./images/cif-icons-20xy.png) 0 -120px no-repeat;}
  57. .cif-msg-icon-ok{background: url(./images/cif-icons-20xy.png) 0 -100px no-repeat;}
  58. /*Progressbar*/
  59. .cf-progressbar-wr{position:fixed; top:0; left:0; background:rgba(0,0,0,.7); width:100%; height:100%; z-index:50000}
  60. .cf-progressbar{
  61. height: 12px;
  62. position: absolute;
  63. top:50%; margin-top:-6px;
  64. left: 50%; margin-left:-125px;
  65. width:250px;
  66. background: #dadada;
  67. padding: 2px;
  68. box-sizing:border-box;
  69. border:1px solid #000;
  70. }
  71. .cf-progressbar>span {
  72. display: block;
  73. height: 100%;
  74. background: rgb(43,194,83);
  75. background-image: url(./images/bg-progress-bar.png);
  76. position: relative;
  77. transition: width 200ms;
  78. overflow: hidden;
  79. }
  80. /*Jcrop for Custom Inpur File plugin*/
  81. .jcrop-holder .preview-pane {
  82. display: block;
  83. position: absolute;
  84. z-index: 2000;
  85. top: 00px;
  86. left: 102%;
  87. padding: 6px;
  88. border: 1px rgba(0,0,0,.4) solid;
  89. background-color: white;
  90. -webkit-border-radius: 6px;
  91. -moz-border-radius: 6px;
  92. border-radius: 6px;
  93. -webkit-box-shadow: 1px 1px 5px 2px rgba(0, 0, 0, 0.2);
  94. -moz-box-shadow: 1px 1px 5px 2px rgba(0, 0, 0, 0.2);
  95. box-shadow: 1px 1px 5px 2px rgba(0, 0, 0, 0.2);
  96. }
  97. .preview-pane .preview-container { overflow: hidden;}