fileinput.css 2.7 KB

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