You are here

file_browser.view.css in File Entity Browser 8

File

css/file_browser.view.css
View source
  1. /**
  2. * @file file_browser.view.css
  3. */
  4. /* Generic styles */
  5. .pager {
  6. padding: 20px;
  7. }
  8. /* set default standard media queries for responsive grid. */
  9. @media only screen and (min-width: 320px) {
  10. .grid-sizer,
  11. .grid-item {
  12. width: calc(50% - 5px);
  13. }
  14. .gutter-sizer {
  15. width: 5px;
  16. }
  17. .grid-item {
  18. margin-bottom: 5px;
  19. }
  20. }
  21. @media only screen and (min-width: 768px) {
  22. .grid-sizer,
  23. .grid-item {
  24. width: calc(33% - 10px);
  25. }
  26. .gutter-sizer {
  27. width: 10px;
  28. }
  29. .grid-item {
  30. margin-bottom: 10px;
  31. }
  32. }
  33. @media only screen and (min-width: 992px) {
  34. .grid-sizer,
  35. .grid-item {
  36. width: calc(25% - 10px);
  37. }
  38. .gutter-sizer {
  39. width: 10px;
  40. }
  41. .grid-item {
  42. margin-bottom: 10px;
  43. }
  44. }
  45. /* Jump back down for XL screens to better utilize the space. */
  46. @media only screen and (min-width: 1600px) {
  47. .grid-sizer,
  48. .grid-item {
  49. width: calc(15% - 10px);
  50. }
  51. .gutter-sizer {
  52. width: 10px;
  53. }
  54. .grid-item {
  55. margin-bottom: 10px;
  56. }
  57. }
  58. .grid-item {
  59. display: block;
  60. opacity: 0;
  61. text-align: center;
  62. background-color: #dedede;
  63. overflow: hidden;
  64. border-radius: 2px;
  65. box-shadow: 0 2px 2px 0 rgba(0,0,0,0.14), 0 1px 5px 0 rgba(0,0,0,0.12), 0 3px 1px -2px rgba(0,0,0,0.2);
  66. }
  67. .grid-item.item-style {
  68. opacity: 1;
  69. transition: opacity .25s ease-in-out, box-shadow .25s ease-in-out;
  70. -moz-transition: opacity .25s ease-in-out, box-shadow .25s ease-in-out;;
  71. -webkit-transition: opacity .25s ease-in-out, box-shadow .25s ease-in-out;;
  72. }
  73. .grid-item:hover {
  74. cursor: pointer;
  75. }
  76. .grid-item.checked:before {
  77. content: " ";
  78. color: transparent;
  79. position: absolute;
  80. left: 0;
  81. right: 0;
  82. top: 0;
  83. width: calc(100% - 4px);
  84. height: calc(100% - 4px);
  85. border: 2px solid #37802f;
  86. overflow: hidden;
  87. }
  88. .grid-item:hover {
  89. box-shadow: 0 2px 2px 0 rgba(0,0,0,0.14), 0 1px 7px 3px rgba(0,0,0,0.12), 0 3px 1px -2px rgba(0,0,0,0.2);
  90. }
  91. .view-content {
  92. margin: 0 auto;
  93. width: 100% !important;
  94. }
  95. .grid-item img {
  96. vertical-align: bottom;
  97. width: 100%;
  98. height: auto;
  99. }
  100. .grid-item img::selection {
  101. background: transparent;
  102. }
  103. .grid-item .views-field-entity-browser-select {
  104. display: none;
  105. }
  106. .grid-item:after {
  107. content: " ";
  108. width: 100%;
  109. height: 100%;
  110. top: 0;
  111. left: 0;
  112. position: absolute;
  113. }
  114. .grid-item-info {
  115. position: absolute;
  116. z-index: 1;
  117. width: calc(100% - 20px);
  118. bottom: 0;
  119. background-color: #2d2d2d;
  120. color: #dedede;
  121. padding: 10px;
  122. }
  123. .grid-item-info-left {
  124. float: left;
  125. text-align: left;
  126. white-space: nowrap;
  127. overflow: hidden;
  128. text-overflow: ellipsis;
  129. max-width: 50%;
  130. }
  131. .grid-item-info-right {
  132. float: right;
  133. }
  134. .file-browser-form {
  135. position: relative;
  136. }
  137. /* Remove border above tabs. */
  138. .file-browser-form .is-collapse-enabled .tabs:before,
  139. .file-browser-form .is-horizontal .tabs:before {
  140. background-color: transparent;
  141. }
  142. input[type="submit"][name="filter"] {
  143. margin-left: 10px;
  144. margin-top: 30px;
  145. }
  146. .layout-container {
  147. margin: 0;
  148. }
  149. .file-browser-actions {
  150. position: fixed;
  151. bottom: 0;
  152. display: flex;
  153. flex-direction: row-reverse;
  154. justify-content: flex-end;
  155. align-items: center;
  156. z-index: 2;
  157. padding: 10px;
  158. width: 100%;
  159. background: white;
  160. border-top: 1px solid #b8b8b8;
  161. }
  162. input.entity-browser-show-selection {
  163. display: none;
  164. }
  165. .entities-list .item-container {
  166. position: relative;
  167. border: 1px dashed gray;
  168. margin: 5px;
  169. }
  170. .entities-list .item-container > img,
  171. .entities-list .item-container > input {
  172. margin: 0;
  173. }
  174. .entities-list .item-container:hover {
  175. opacity: 1;
  176. }
  177. .entities-list .item-container:hover img,
  178. .entities-list .item-container:hover input {
  179. transition: .2s;
  180. }
  181. .entities-list .item-container:hover img {
  182. opacity: .6;
  183. }
  184. .entities-list .item-container:hover input {
  185. opacity: 1;
  186. }
  187. .entities-list .item-container input {
  188. background: url(../images/remove.svg);
  189. opacity: 0;
  190. background-size: cover;
  191. color: transparent;
  192. text-shadow: none;
  193. position: absolute;
  194. width: 20px;
  195. height: 20px;
  196. padding: 0;
  197. top: 2px;
  198. right: 2px;
  199. border-radius: 10px;
  200. margin: 0;
  201. background-color: #dedede;
  202. border: 1px solid #585858;
  203. }
  204. .entities-list .item-container input:hover {
  205. background-color: #afafaf;
  206. }
  207. .file-browser-file-counter {
  208. display: flex;
  209. align-items: center;
  210. height: 25px;
  211. padding: 0 0 0 25px;
  212. margin-bottom: 5px;
  213. background: url(../images/checkmark.svg);
  214. background-position: 0px;
  215. background-size: 20px;
  216. background-repeat: no-repeat;
  217. }
  218. .grid-item:hover .file-browser-preview-button {
  219. opacity: 1;
  220. }
  221. .file-browser-preview-button {
  222. position: absolute;
  223. top: 5px;
  224. right: 5px;
  225. background: url(../images/preview.svg);
  226. z-index: 2;
  227. background-size: 30px;
  228. background-position: 5px;
  229. background-color: #2d2d2d;
  230. border-radius: 50%;
  231. height: 40px;
  232. width: 40px;
  233. background-repeat: no-repeat;
  234. color: transparent;
  235. box-shadow: 0 2px 2px 0 rgba(0,0,0,0.14), 0 1px 5px 0 rgba(0,0,0,0.12), 0 3px 1px -2px rgba(0,0,0,0.2);
  236. opacity: 0;
  237. transition: opacity .2s;
  238. }
  239. .file-browser-preview-button + .ajax-progress {
  240. display: none;
  241. }