theme.scss 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168
  1. /*!
  2. * bootstrap-fileinput v4.4.5
  3. * http://plugins.krajee.com/file-input
  4. *
  5. * Krajee Explorer Font Awesome theme style for bootstrap-fileinput.
  6. * Load this theme file after loading `fileinput.css`. Ensure that
  7. * font awesome assets and CSS are loaded on the page as well.
  8. *
  9. * Author: Kartik Visweswaran
  10. * Copyright: 2014 - 2017, Kartik Visweswaran, Krajee.com
  11. *
  12. * Licensed under the BSD 3-Clause
  13. * https://github.com/kartik-v/bootstrap-fileinput/blob/master/LICENSE.md
  14. */
  15. .theme-explorer-fa {
  16. .file-preview .table {
  17. margin: 0;
  18. }
  19. .explorer-frame td {
  20. vertical-align: middle;
  21. text-align: left;
  22. }
  23. }
  24. .explorer-frame {
  25. .file-preview-text {
  26. display: inline-block;
  27. color: #428bca;
  28. border: 1px solid #ddd;
  29. font-family: Menlo, Monaco, Consolas, "Courier New", monospace;
  30. outline: none;
  31. padding: 8px;
  32. resize: none;
  33. }
  34. .file-preview-html {
  35. display: inline-block;
  36. border: 1px solid #ddd;
  37. padding: 8px;
  38. overflow: auto;
  39. }
  40. .file-preview-other {
  41. text-align: center;
  42. }
  43. .file-other-icon {
  44. font-size: 2.6em;
  45. }
  46. }
  47. /* noinspection CssOverwrittenProperties */
  48. .file-zoom-dialog .explorer-frame .file-other-icon {
  49. font-size: 22em;
  50. font-size: 50vmin;
  51. }
  52. .theme-explorer-fa {
  53. .explorer-frame .kv-file-content {
  54. width: 80px;
  55. height: 80px;
  56. padding: 5px;
  57. text-align: center;
  58. }
  59. .file-actions-cell {
  60. width: 120px;
  61. padding: 0;
  62. }
  63. .file-thumb-progress {
  64. .progress {
  65. display: block;
  66. margin-top: 5px;
  67. height: 13px;
  68. font-size: 11px;
  69. line-height: 13px;
  70. }
  71. .progress-bar {
  72. height: 13px;
  73. font-size: 11px;
  74. line-height: 13px;
  75. }
  76. }
  77. .file-actions-cell {
  78. position: relative;
  79. }
  80. .file-upload-indicator, .file-drag-handle {
  81. position: absolute;
  82. display: inline-block;
  83. text-align: center;
  84. top: 0;
  85. right: 3px;
  86. width: 16px;
  87. height: 16px;
  88. font-size: 16px;
  89. }
  90. .explorer-caption {
  91. display: block;
  92. color: #777;
  93. }
  94. .file-actions {
  95. text-align: center;
  96. }
  97. .kvsortable-ghost {
  98. opacity: 0.6;
  99. background: #e1edf7;
  100. border: 2px solid #a1abff;
  101. }
  102. .file-error-message ul {
  103. padding: 5px 0 0 20px;
  104. }
  105. }
  106. /*
  107. * mobile responsive styling
  108. */
  109. @media only screen and (max-width: 767px) {
  110. .theme-explorer-fa {
  111. .table {
  112. display: block;
  113. width: 100% !important;
  114. tbody, tr, td {
  115. display: block;
  116. width: 100% !important;
  117. }
  118. border: none;
  119. tr {
  120. margin-top: 5px;
  121. &:first-child {
  122. margin-top: 0;
  123. }
  124. }
  125. td {
  126. text-align: center;
  127. }
  128. .kv-file-content {
  129. border-bottom: none;
  130. padding: 4px;
  131. margin: 0;
  132. .file-preview-image {
  133. max-width: 100%;
  134. font-size: 20px;
  135. }
  136. }
  137. }
  138. .file-details-cell {
  139. border-top: none;
  140. border-bottom: none;
  141. padding-top: 0;
  142. margin: 0;
  143. }
  144. .file-actions-cell {
  145. border-top: none;
  146. padding-bottom: 4px;
  147. }
  148. .explorer-frame .explorer-caption {
  149. white-space: nowrap;
  150. text-overflow: ellipsis;
  151. overflow: hidden;
  152. left: 0;
  153. right: 0;
  154. margin: auto;
  155. }
  156. .file-upload-indicator, .file-drag-handle {
  157. right: 3px;
  158. bottom: 10px;
  159. top: auto;
  160. }
  161. }
  162. }