fileinput.css 2.6 KB

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