fileinput.css 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  1. /*!
  2. * @copyright Copyright © Kartik Visweswaran, Krajee.com, 2013
  3. * @package yii2-widgets
  4. * @version 1.6.0
  5. *
  6. * File input styling for Bootstrap 3.0
  7. * Built for Yii Framework 2.0
  8. * Author: Kartik Visweswaran
  9. * Year: 2013
  10. * For more Yii related demos visit http://demos.krajee.com
  11. */
  12. .file-loading {
  13. top: 0;
  14. right: 0;
  15. width: 25px;
  16. height: 25px;
  17. font-size: 999px;
  18. text-align: right;
  19. color: #fff;
  20. background: transparent url('../img/loading.gif') top left no-repeat;
  21. border: none;
  22. }
  23. .btn-file {
  24. position: relative;
  25. overflow: hidden;
  26. }
  27. .btn-file input[type=file] {
  28. position: absolute;
  29. top: 0;
  30. right: 0;
  31. min-width: 100%;
  32. min-height: 100%;
  33. font-size: 999px;
  34. text-align: right;
  35. filter: alpha(opacity=0);
  36. opacity: 0;
  37. background: red;
  38. cursor: inherit;
  39. display: block;
  40. }
  41. .file-caption-disabled {
  42. background-color: #EEEEEE;
  43. cursor: not-allowed;
  44. opacity: 1;
  45. }
  46. .file-input .btn[disabled], .file-input .btn .disabled {
  47. cursor: not-allowed;
  48. }
  49. .file-preview {
  50. border-radius: 5px;
  51. border: 1px solid #ddd;
  52. padding: 5px;
  53. width: 100%;
  54. margin-bottom: 5px;
  55. }
  56. .file-preview-frame {
  57. display: table;
  58. margin: 8px;
  59. height: 160px;
  60. border: 1px solid #ddd;
  61. box-shadow: 1px 1px 5px 0px #a2958a;
  62. padding: 6px;
  63. float: left;
  64. text-align: center;
  65. }
  66. .file-preview-frame:hover {
  67. background-color: #eee;
  68. box-shadow: 2px 2px 5px 0px #333;
  69. }
  70. .file-preview-image {
  71. height: 150px;
  72. vertical-align: text-center;
  73. }
  74. .file-preview-text {
  75. display: table-cell;
  76. width: 150px;
  77. height: 150px;
  78. color: #428bca;
  79. font-size: 11px;
  80. vertical-align: middle;
  81. text-align: center;
  82. }
  83. .file-preview-other {
  84. display: table-cell;
  85. width: 150px;
  86. height: 150px;
  87. font-family: Monaco, Consolas, monospace;
  88. font-size: 11px;
  89. vertical-align: middle;
  90. text-align: center;
  91. }
  92. .file-input-new .file-preview, .file-input-new .close, .file-input-new .glyphicon-file, .file-input-new .fileinput-remove-button, .file-input-new .fileinput-upload-button {
  93. display: none;
  94. }
  95. .loading {
  96. background: transparent url('../img/loading.gif') no-repeat scroll center center content-box !important;
  97. }
  98. .wrap-indicator {
  99. font-weight: bold;
  100. color: #245269;
  101. cursor: pointer;
  102. }