You are here

asset-browser.css in Media: Acquia DAM 8

.filter-sort-container {
  background-color: #efefef;
  padding: 10px;
}

.filter-sort-container > div {
  display: inline-block;
  padding-right: 10px;
}

.filter-sort-container .button {
  margin-left: 2px;
  margin-right: 2px;
  padding-left: 10px;
  padding-right: 10px;
}

/* Folders and assets take same basic sizing, width, etc. */
.acquiadam-asset-browser .form-item.form-type-checkbox,
.acquiadam-asset-browser .form-item.js-form-type-checkbox,
.acquiadam-browser-folder-link {
  width: 170px;
  display: inline-block;
  margin: 5px;
  min-height: 180px;
  padding: 5px;
  vertical-align: top;
}

.acquiadam-asset-browser .form-item.form-type-checkbox,
.acquiadam-asset-browser .form-item.js-form-type-checkbox {
  border: 1px solid #f0f0f0;
  border-radius: 5px;
  vertical-align: top;
}

.acquiadam-asset-browser .js-form-type-checkbox .form-checkbox {
  float: initial;
  margin-left: initial;
  transform: initial;
}

.acquiadam-asset-checkbox {
  display: flex;
  flex-direction: column;
  margin-top: -15px;
}

.acquiadam-asset-thumb {
  height: 140px;
  overflow: hidden;
}

.acquiadam-asset-thumb img {
  width: 100%;
}

.acquiadam-asset-details {
  width: 100%;
}

p.acquiadam-asset-filename {
  width: 80%;
  overflow: hidden;
  margin-top: 5px;
  margin-left: 5px;
  font-size: .85em;
  line-height: 1.1em;
}

img.acquiadam-asset-browser-icon {
  height: 20px;
  float: right;
  margin: 5px;
}

.acquiadam-browser-folder-link {
  background-position: top center;
  background-size: 90% auto;
  background-repeat: no-repeat;
}

/* Unset values here to set below. */
.acquiadam-browser-folder-link .button,
.acquiadam-browser-folder-link .button:hover,
.acquiadam-browser-folder-link .button:active,
.acquiadam-browser-folder-link .button:focus {
  background: none;
  border: 0;
  box-shadow: none;
}

.acquiadam-browser-folder-link .acquiadam-folder-link-button,
.acquiadam-browser-folder-link .acquiadam-folder-link-button:hover,
.acquiadam-browser-folder-link .acquiadam-folder-link-button:active,
.acquiadam-browser-folder-link .acquiadam-folder-link-button:focus {
  width: 150px;
  height: 80px;
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
  border: none;
  border-radius: 0;
  padding: 0;
  margin: 50px 0 15px 15px !important;
}

.acquiadam-browser-folder-link .acquiadam-folder-link-button:active,
.acquiadam-browser-folder-link .acquiadam-folder-link-button:focus {
  background-color: transparent;
}

.acquiadam-browser-folder-link input,
.acquiadam-browser-folder-link input:hover,
.acquiadam-browser-folder-link input:active,
.acquiadam-browser-folder-link input:focus {
  color: transparent;
  text-shadow: none;
}

.acquiadam-folder-link-thumb {
  position: relative;
  display: inline-block;
  z-index: 10;
  top: 85px;
  left: 65px;
  height: 0;
}

.acquiadam-folder-link-thumb img {
  max-height: 40px;
  max-width: 40px;
}

.acquiadam-browser-folder-link p {
  position: relative;
  bottom: 0;
  font-size: .9em;
  padding: 0 0 0 10px;
}

input[type="checkbox"] {
  position: relative;
  top: 10px;
  left: 5px;
  box-shadow: 0 0 4px 1px #82b4ff;
}

.acquiadam-browser-empty {
  height: 80px;
  width: 100%;
  background-color: #efefef;
  font-size: 1.4em;
  text-align: center;
  padding-top: 60px;
}

/* Start breadcrumb styles */
.acquiadam-browser-breadcrumb-container {
  margin: 5px;
}

.acquiadam-browser-breadcrumb-container li {
  display: inline;
  margin: 0;
  padding: 0;
  list-style-type: none;
}

.acquiadam-browser-breadcrumb-container li:not(:first-child):before {
  content: " \BB ";
}

input.acquiadam-browser-breadcrumb {
  background: transparent;
  border: none;
  margin: 5px 0;
  padding-left: 5px;
  padding-right: 5px;
  font-weight: normal;
  text-decoration: none;
  color: #0074bd;
}

input.acquiadam-browser-breadcrumb:hover,
input.acquiadam-browser-breadcrumb:focus {
  background: none;
  box-shadow: none;
  border: none;
  font-weight: normal;
  text-decoration: underline;
  color: #0074bd;
}

/* Override default */
.breadcrumb.acquiadam-browser-breadcrumb-container {
  padding-top: 0;
  padding-bottom: 0;
}

/* end breadcrumb styles */

.acquiadam-asset-browser-pager {
  text-align: center;
  position: relative;
  height: 30px;
  display: inline-block;
  float: right;
  padding-right: 10px;
}

/* Unset default style to control below. */
.acquiadam-asset-browser-pager .button,
.acquiadam-asset-browser-pager .button:hover,
.acquiadam-asset-browser-pager .button:active,
.acquiadam-asset-browser-pager .button:focus {
  background: none;
  border: none;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
}

.acquiadam-asset-browser-pager .button,
.acquiadam-asset-browser-pager .button:hover,
.acquiadam-asset-browser-pager .button:active,
.acquiadam-asset-browser-pager .button:focus {
  color: blue;
  text-decoration: underline;
  border-left: 2px solid #999;
  margin-left: 5px;
  margin-right: 0;
  padding-left: 10px;
  padding-right: 0;
}

.acquiadam-asset-browser-pager .button:first-child,
.acquiadam-asset-browser-pager .button:last-child {
  margin-left: 0;
  margin-right: 0;
  padding-left: 10px;
  padding-right: 0;
}

.acquiadam-asset-browser-pager .button:first-child {
  border-left: none;
}

.acquiadam-asset-browser-pager .page-current {
  color: black;
  text-decoration: none;
}

/* Height is important to make sticky footer appear. Assuming window height is > 600px. */
.entity-browser-media-browser-form {
  overflow: hidden;
}

#edit-asset-container {
  overflow-y: scroll;
}

#edit-actions {
  width: 100%;
  border-top: 1px solid #efefef;
  padding: 15px 5px;
  margin: 0;
  justify-content: space-between;
  align-items: center;
}

.asset-browser-message {
  background-color: #efefef;
  border: solid 1px #333;
  padding: 25px;
  color: #222;
  font-size: 15px;
  text-align: center;
  margin-top: 15px;
}

/**
 * This is gross, but it works.
 */
.ui-dialog {
  width: 97% !important;
  left: 15px !important;
}

File

css/asset-browser.css
View source
  1. .filter-sort-container {
  2. background-color: #efefef;
  3. padding: 10px;
  4. }
  5. .filter-sort-container > div {
  6. display: inline-block;
  7. padding-right: 10px;
  8. }
  9. .filter-sort-container .button {
  10. margin-left: 2px;
  11. margin-right: 2px;
  12. padding-left: 10px;
  13. padding-right: 10px;
  14. }
  15. /* Folders and assets take same basic sizing, width, etc. */
  16. .acquiadam-asset-browser .form-item.form-type-checkbox,
  17. .acquiadam-asset-browser .form-item.js-form-type-checkbox,
  18. .acquiadam-browser-folder-link {
  19. width: 170px;
  20. display: inline-block;
  21. margin: 5px;
  22. min-height: 180px;
  23. padding: 5px;
  24. vertical-align: top;
  25. }
  26. .acquiadam-asset-browser .form-item.form-type-checkbox,
  27. .acquiadam-asset-browser .form-item.js-form-type-checkbox {
  28. border: 1px solid #f0f0f0;
  29. border-radius: 5px;
  30. vertical-align: top;
  31. }
  32. .acquiadam-asset-browser .js-form-type-checkbox .form-checkbox {
  33. float: initial;
  34. margin-left: initial;
  35. transform: initial;
  36. }
  37. .acquiadam-asset-checkbox {
  38. display: flex;
  39. flex-direction: column;
  40. margin-top: -15px;
  41. }
  42. .acquiadam-asset-thumb {
  43. height: 140px;
  44. overflow: hidden;
  45. }
  46. .acquiadam-asset-thumb img {
  47. width: 100%;
  48. }
  49. .acquiadam-asset-details {
  50. width: 100%;
  51. }
  52. p.acquiadam-asset-filename {
  53. width: 80%;
  54. overflow: hidden;
  55. margin-top: 5px;
  56. margin-left: 5px;
  57. font-size: .85em;
  58. line-height: 1.1em;
  59. }
  60. img.acquiadam-asset-browser-icon {
  61. height: 20px;
  62. float: right;
  63. margin: 5px;
  64. }
  65. .acquiadam-browser-folder-link {
  66. background-position: top center;
  67. background-size: 90% auto;
  68. background-repeat: no-repeat;
  69. }
  70. /* Unset values here to set below. */
  71. .acquiadam-browser-folder-link .button,
  72. .acquiadam-browser-folder-link .button:hover,
  73. .acquiadam-browser-folder-link .button:active,
  74. .acquiadam-browser-folder-link .button:focus {
  75. background: none;
  76. border: 0;
  77. box-shadow: none;
  78. }
  79. .acquiadam-browser-folder-link .acquiadam-folder-link-button,
  80. .acquiadam-browser-folder-link .acquiadam-folder-link-button:hover,
  81. .acquiadam-browser-folder-link .acquiadam-folder-link-button:active,
  82. .acquiadam-browser-folder-link .acquiadam-folder-link-button:focus {
  83. width: 150px;
  84. height: 80px;
  85. background-position: center;
  86. background-size: contain;
  87. background-repeat: no-repeat;
  88. border: none;
  89. border-radius: 0;
  90. padding: 0;
  91. margin: 50px 0 15px 15px !important;
  92. }
  93. .acquiadam-browser-folder-link .acquiadam-folder-link-button:active,
  94. .acquiadam-browser-folder-link .acquiadam-folder-link-button:focus {
  95. background-color: transparent;
  96. }
  97. .acquiadam-browser-folder-link input,
  98. .acquiadam-browser-folder-link input:hover,
  99. .acquiadam-browser-folder-link input:active,
  100. .acquiadam-browser-folder-link input:focus {
  101. color: transparent;
  102. text-shadow: none;
  103. }
  104. .acquiadam-folder-link-thumb {
  105. position: relative;
  106. display: inline-block;
  107. z-index: 10;
  108. top: 85px;
  109. left: 65px;
  110. height: 0;
  111. }
  112. .acquiadam-folder-link-thumb img {
  113. max-height: 40px;
  114. max-width: 40px;
  115. }
  116. .acquiadam-browser-folder-link p {
  117. position: relative;
  118. bottom: 0;
  119. font-size: .9em;
  120. padding: 0 0 0 10px;
  121. }
  122. input[type="checkbox"] {
  123. position: relative;
  124. top: 10px;
  125. left: 5px;
  126. box-shadow: 0 0 4px 1px #82b4ff;
  127. }
  128. .acquiadam-browser-empty {
  129. height: 80px;
  130. width: 100%;
  131. background-color: #efefef;
  132. font-size: 1.4em;
  133. text-align: center;
  134. padding-top: 60px;
  135. }
  136. /* Start breadcrumb styles */
  137. .acquiadam-browser-breadcrumb-container {
  138. margin: 5px;
  139. }
  140. .acquiadam-browser-breadcrumb-container li {
  141. display: inline;
  142. margin: 0;
  143. padding: 0;
  144. list-style-type: none;
  145. }
  146. .acquiadam-browser-breadcrumb-container li:not(:first-child):before {
  147. content: " \BB ";
  148. }
  149. input.acquiadam-browser-breadcrumb {
  150. background: transparent;
  151. border: none;
  152. margin: 5px 0;
  153. padding-left: 5px;
  154. padding-right: 5px;
  155. font-weight: normal;
  156. text-decoration: none;
  157. color: #0074bd;
  158. }
  159. input.acquiadam-browser-breadcrumb:hover,
  160. input.acquiadam-browser-breadcrumb:focus {
  161. background: none;
  162. box-shadow: none;
  163. border: none;
  164. font-weight: normal;
  165. text-decoration: underline;
  166. color: #0074bd;
  167. }
  168. /* Override default */
  169. .breadcrumb.acquiadam-browser-breadcrumb-container {
  170. padding-top: 0;
  171. padding-bottom: 0;
  172. }
  173. /* end breadcrumb styles */
  174. .acquiadam-asset-browser-pager {
  175. text-align: center;
  176. position: relative;
  177. height: 30px;
  178. display: inline-block;
  179. float: right;
  180. padding-right: 10px;
  181. }
  182. /* Unset default style to control below. */
  183. .acquiadam-asset-browser-pager .button,
  184. .acquiadam-asset-browser-pager .button:hover,
  185. .acquiadam-asset-browser-pager .button:active,
  186. .acquiadam-asset-browser-pager .button:focus {
  187. background: none;
  188. border: none;
  189. border-radius: 0;
  190. box-shadow: none;
  191. padding: 0;
  192. }
  193. .acquiadam-asset-browser-pager .button,
  194. .acquiadam-asset-browser-pager .button:hover,
  195. .acquiadam-asset-browser-pager .button:active,
  196. .acquiadam-asset-browser-pager .button:focus {
  197. color: blue;
  198. text-decoration: underline;
  199. border-left: 2px solid #999;
  200. margin-left: 5px;
  201. margin-right: 0;
  202. padding-left: 10px;
  203. padding-right: 0;
  204. }
  205. .acquiadam-asset-browser-pager .button:first-child,
  206. .acquiadam-asset-browser-pager .button:last-child {
  207. margin-left: 0;
  208. margin-right: 0;
  209. padding-left: 10px;
  210. padding-right: 0;
  211. }
  212. .acquiadam-asset-browser-pager .button:first-child {
  213. border-left: none;
  214. }
  215. .acquiadam-asset-browser-pager .page-current {
  216. color: black;
  217. text-decoration: none;
  218. }
  219. /* Height is important to make sticky footer appear. Assuming window height is > 600px. */
  220. .entity-browser-media-browser-form {
  221. overflow: hidden;
  222. }
  223. #edit-asset-container {
  224. overflow-y: scroll;
  225. }
  226. #edit-actions {
  227. width: 100%;
  228. border-top: 1px solid #efefef;
  229. padding: 15px 5px;
  230. margin: 0;
  231. justify-content: space-between;
  232. align-items: center;
  233. }
  234. .asset-browser-message {
  235. background-color: #efefef;
  236. border: solid 1px #333;
  237. padding: 25px;
  238. color: #222;
  239. font-size: 15px;
  240. text-align: center;
  241. margin-top: 15px;
  242. }
  243. /**
  244. * This is gross, but it works.
  245. */
  246. .ui-dialog {
  247. width: 97% !important;
  248. left: 15px !important;
  249. }