fileinput.css 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. .btn-file {
  2. position: relative;
  3. overflow: hidden;
  4. vertical-align: middle;
  5. }
  6. .btn-file > input {
  7. position: absolute;
  8. top: 0;
  9. right: 0;
  10. width: 100%;
  11. height: 100%;
  12. margin: 0;
  13. font-size: 23px;
  14. cursor: pointer;
  15. filter: alpha(opacity=0);
  16. opacity: 0;
  17. direction: ltr;
  18. }
  19. .fileinput {
  20. display: inline-block;
  21. margin-bottom: 9px;
  22. }
  23. .fileinput .form-control {
  24. display: inline-block;
  25. padding-top: 7px;
  26. padding-bottom: 5px;
  27. margin-bottom: 0;
  28. vertical-align: middle;
  29. cursor: text;
  30. }
  31. .fileinput .thumbnail {
  32. display: inline-block;
  33. margin-bottom: 5px;
  34. overflow: hidden;
  35. text-align: center;
  36. vertical-align: middle;
  37. }
  38. .fileinput .thumbnail > img {
  39. max-height: 100%;
  40. }
  41. .fileinput .btn {
  42. vertical-align: middle;
  43. }
  44. .fileinput-exists .fileinput-new,
  45. .fileinput-new .fileinput-exists {
  46. display: none;
  47. }
  48. .fileinput-inline .fileinput-controls {
  49. display: inline;
  50. }
  51. .fileinput-filename {
  52. display: inline-block;
  53. overflow: hidden;
  54. vertical-align: middle;
  55. }
  56. .form-control .fileinput-filename {
  57. vertical-align: bottom;
  58. }
  59. .fileinput.input-group {
  60. display: table;
  61. }
  62. .fileinput.input-group > * {
  63. position: relative;
  64. z-index: 2;
  65. }
  66. .fileinput.input-group > .btn-file {
  67. z-index: 1;
  68. }
  69. .fileinput-new.input-group .btn-file,
  70. .fileinput-new .input-group .btn-file {
  71. border-radius: 0 4px 4px 0;
  72. }
  73. .fileinput-new.input-group .btn-file.btn-xs,
  74. .fileinput-new .input-group .btn-file.btn-xs,
  75. .fileinput-new.input-group .btn-file.btn-sm,
  76. .fileinput-new .input-group .btn-file.btn-sm {
  77. border-radius: 0 3px 3px 0;
  78. }
  79. .fileinput-new.input-group .btn-file.btn-lg,
  80. .fileinput-new .input-group .btn-file.btn-lg {
  81. border-radius: 0 6px 6px 0;
  82. }
  83. .form-group.has-warning .fileinput .fileinput-preview {
  84. color: #8a6d3b;
  85. }
  86. .form-group.has-warning .fileinput .thumbnail {
  87. border-color: #faebcc;
  88. }
  89. .form-group.has-error .fileinput .fileinput-preview {
  90. color: #a94442;
  91. }
  92. .form-group.has-error .fileinput .thumbnail {
  93. border-color: #ebccd1;
  94. }
  95. .form-group.has-success .fileinput .fileinput-preview {
  96. color: #3c763d;
  97. }
  98. .form-group.has-success .fileinput .thumbnail {
  99. border-color: #d6e9c6;
  100. }