fileinput.css 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141
  1. /*!
  2. * @copyright Copyright © Kartik Visweswaran, Krajee.com, 2014
  3. * @package bootstrap-fileinput
  4. * @version 2.0.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-input {
  13. overflow-x: auto;
  14. }
  15. .file-loading {
  16. top: 0;
  17. right: 0;
  18. width: 25px;
  19. height: 25px;
  20. font-size: 999px;
  21. text-align: right;
  22. color: #fff;
  23. background: transparent url('../img/loading.gif') top left no-repeat;
  24. border: none;
  25. }
  26. .btn-file {
  27. position: relative;
  28. overflow: hidden;
  29. }
  30. .btn-file input[type=file] {
  31. position: absolute;
  32. top: 0;
  33. right: 0;
  34. min-width: 100%;
  35. min-height: 100%;
  36. font-size: 30px;
  37. text-align: right;
  38. opacity: 0;
  39. filter: alpha(opacity=0);
  40. opacity: 0;
  41. background: none repeat scroll 0 0 transparent;
  42. cursor: inherit;
  43. display: block;
  44. }
  45. .file-caption .glyphicon {
  46. display: inline-block;
  47. min-width: 18px;
  48. float: left;
  49. margin-top: 2px;
  50. }
  51. .file-caption-name {
  52. display: inline-block;
  53. float: left;
  54. overflow: hidden;
  55. white-space: nowrap;
  56. text-overflow: ellipsis;
  57. width: 85%;
  58. }
  59. .file-error-message {
  60. background-color: #f2dede;
  61. color: #a94442;
  62. text-align: center;
  63. border-radius: 5px;
  64. padding: 5px;
  65. }
  66. .file-caption-disabled {
  67. background-color: #EEEEEE;
  68. cursor: not-allowed;
  69. opacity: 1;
  70. }
  71. .file-input .btn[disabled], .file-input .btn .disabled {
  72. cursor: not-allowed;
  73. }
  74. .file-preview {
  75. border-radius: 5px;
  76. border: 1px solid #ddd;
  77. padding: 5px;
  78. width: 100%;
  79. margin-bottom: 5px;
  80. }
  81. .file-preview-frame {
  82. display: table;
  83. margin: 8px;
  84. height: 160px;
  85. border: 1px solid #ddd;
  86. box-shadow: 1px 1px 5px 0px #a2958a;
  87. padding: 6px;
  88. float: left;
  89. text-align: center;
  90. }
  91. .file-preview-frame:hover {
  92. background-color: #eee;
  93. box-shadow: 2px 2px 5px 0px #333;
  94. }
  95. .file-preview-image {
  96. height: 150px;
  97. vertical-align: text-center;
  98. }
  99. .file-preview-text {
  100. display: table-cell;
  101. width: 150px;
  102. height: 150px;
  103. color: #428bca;
  104. font-size: 11px;
  105. vertical-align: middle;
  106. text-align: center;
  107. }
  108. .file-preview-other {
  109. display: table-cell;
  110. width: 150px;
  111. height: 150px;
  112. font-family: Monaco, Consolas, monospace;
  113. font-size: 11px;
  114. vertical-align: middle;
  115. text-align: center;
  116. }
  117. .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 {
  118. display: none;
  119. }
  120. .loading {
  121. background: transparent url('../img/loading.gif') no-repeat scroll center center content-box !important;
  122. }
  123. .wrap-indicator {
  124. font-weight: bold;
  125. color: #245269;
  126. cursor: pointer;
  127. }