fileinput.css 2.1 KB

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