media.css 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372
  1. /* @override http://dev7/sites/all/modules/media/css/media.css?L */
  2. /**
  3. * @file
  4. * Styles for the media library.
  5. */
  6. /* @group media item list */
  7. .item-list .media-display-switch {
  8. float: right;
  9. line-height: 0;
  10. }
  11. .item-list .media-display-switch li {
  12. float: left;
  13. list-style: none;
  14. margin-left: -1px;
  15. }
  16. .item-list .media-display-switch li a {
  17. background: #f2f1f1;
  18. border: 1px solid;
  19. border-color: #e4e4e4 #d2d2d2 #b4b4b4 #d3d3d3;
  20. display: block;
  21. padding: 7px 9px;
  22. }
  23. .item-list .media-display-switch li.first a {
  24. -moz-border-radius-topleft: 4px;
  25. -moz-border-radius-bottomleft: 4px;
  26. -webkit-border-top-left-radius: 4px;
  27. -webkit-border-bottom-left-radius: 4px;
  28. }
  29. .item-list .media-display-switch li.last a {
  30. -moz-border-radius-topright: 4px;
  31. -moz-border-radius-bottomright: 4px;
  32. -webkit-border-top-right-radius: 4px;
  33. -webkit-border-bottom-right-radius: 4px;
  34. }
  35. .item-list .media-display-switch li a.active {
  36. position: relative;
  37. background: #666;
  38. border: 1px solid #555;
  39. color: #fff;
  40. }
  41. /* Set the height to auto */
  42. #media_content_browser .media-thumbnail {
  43. height: auto;
  44. width: 120px;
  45. }
  46. /* Push content under the tabs */
  47. #media_content_browser_tabs {
  48. margin-bottom: 30px;
  49. }
  50. /* This is some stuff to just get some basic mockup done on the
  51. content navigator. Should be removed/revised soon */
  52. .result_limit {
  53. float: right;
  54. }
  55. .result_limit li {
  56. display: inline;
  57. list-style: none;
  58. }
  59. .item-list .media_content_navigator li {
  60. display: inline;
  61. list-style: none;
  62. }
  63. /** This is a massive hack. There must be a better way. See media.fields.inc **/
  64. .media-widget .fid {
  65. display:none;
  66. }
  67. .media-widget a.button + a.button {
  68. margin-left: 15px;
  69. display: none;
  70. }
  71. /* @end */
  72. /* @group media item */
  73. .media-item {
  74. background: #FFF;
  75. border: 1px solid #CCCCCC;
  76. margin: 10px;
  77. padding: 6px 6px 2px;
  78. width: 100px;
  79. }
  80. .media-item.selected {
  81. background: #F4ECC7;
  82. }
  83. .media-item a {
  84. display: block;
  85. }
  86. .media-item img {
  87. border: 2px solid transparent;
  88. display: inline-block;
  89. margin-left: -2px;
  90. height: auto;
  91. width: 100%;
  92. }
  93. .media-item img:hover {
  94. border-color: #058AC5;
  95. }
  96. .media-item-icons img{
  97. height:25px;
  98. width:25px;
  99. float:left;
  100. }
  101. .media-item .label-wrapper {
  102. overflow: hidden;
  103. margin-left: 14px;
  104. }
  105. .media-item .label-wrapper:hover {
  106. border-bottom: 2px solid #CCC;
  107. border-right: 2px solid #CCC;
  108. display: inline-block;
  109. line-height: 16px;
  110. margin-bottom: -1px;
  111. overflow: visible;
  112. position: relative;
  113. z-index: 10;
  114. }
  115. .preview .media-item .label-wrapper {
  116. margin-left: 0;
  117. }
  118. .preview {
  119. display: inline-block;
  120. vertical-align: middle;
  121. }
  122. .media-item .media-filename {
  123. background: #FFF;
  124. color: #058AC5;
  125. font-size: 10px;
  126. padding: 0 3px;
  127. white-space: nowrap;
  128. }
  129. .media-item .label-wrapper:hover .media-filename {
  130. border: 1px solid #888;
  131. display: inline-block;
  132. margin: 0 0 -2px -1px;
  133. }
  134. .media-item.selected .media-filename {
  135. background: #F4ECC7;
  136. }
  137. .media-item .media-filename:hover {
  138. text-decoration: underline;
  139. }
  140. .media-modal-frame {
  141. overflow: hidden;
  142. }
  143. .media-display-thumbnails .media-list-thumbnails {
  144. margin: 0 -10px;
  145. }
  146. .media-list-thumbnails > li {
  147. float: left;
  148. list-style: none;
  149. }
  150. .media-list-thumbnails .form-type-checkbox {
  151. margin: -35px 0 0 16px;
  152. position: absolute;
  153. }
  154. .media-item .media-type-icon {
  155. border: none;
  156. margin: 0 0 -5px;
  157. width: auto;
  158. }
  159. .ui-dialog.media-wrapper .ui-dialog-buttonpane {
  160. display: none;
  161. }
  162. .ui-widget.ui-widget-content.media-wrapper {
  163. background: none;
  164. border: none;
  165. }
  166. /* @end */
  167. /* @group media browser */
  168. body.page-media-browser {
  169. background: none;
  170. overflow: hidden;
  171. }
  172. div#media-browser-tabs {
  173. -moz-border-radius: 0;
  174. -webkit-border-radius: 0;
  175. border-radius: 0;
  176. border: 0;
  177. }
  178. /* show the throbber on the page */
  179. div#media-browser .throbber {
  180. height:100%;
  181. width:100%;
  182. position:absolute;
  183. background: transparent url('images/loading.gif') no-repeat center center;
  184. }
  185. #media-browser .ui-tabs-panel {
  186. /**
  187. * This sucks, I don't want to hardcode this, but don't know how else
  188. * to keep the scrollbar INSIDE the iframe.
  189. */
  190. height: 410px;
  191. overflow-y: auto;
  192. }
  193. #media-tab-media_internet .media-provider img {
  194. vertical-align: middle;
  195. margin-right: 1em;
  196. }
  197. #media-browser-library-list .label-wrapper {
  198. margin-left: 0;
  199. }
  200. #mediaBrowser body {
  201. background: none;
  202. }
  203. #media-browser-tabset {
  204. background: #FFF;
  205. }
  206. #media-browser-tabset .media-browser-tab {
  207. border: 1px solid #aaa;
  208. }
  209. #media-browser-tabset .ui-tabs-nav {
  210. border-left: 1px solid #aaa;
  211. border-right: 1px solid #aaa;
  212. border-top: 1px solid #aaa;
  213. }
  214. .fake-ok {
  215. margin-right: 5px;
  216. }
  217. a.button {
  218. display: inline-block;
  219. line-height: 21px;
  220. }
  221. /* @end media browser */
  222. /* @group media edit page */
  223. .no-overflow {
  224. overflow: hidden;
  225. }
  226. .media-image-left .field-name-file {
  227. float: left;
  228. margin-bottom: 2em;
  229. margin-right: 2em;
  230. padding-top: 12px;
  231. }
  232. .media-image-left .field-name-file .field-item {
  233. width: 180px;
  234. word-break: break-word;
  235. }
  236. .media-image-left .styles-field-file {
  237. background-color: #FFFFFF;
  238. border: 1px solid #CCCCCC;
  239. padding: 2%;
  240. width: 96%;
  241. }
  242. .media-image-left .field-name-file img {
  243. height: auto;
  244. width: 100%;
  245. }
  246. .media-image-left .form-actions {
  247. clear: both;
  248. }
  249. /* @end media edit page */
  250. /* @group media format form */
  251. #media-format-form {
  252. margin:30px;
  253. }
  254. #media-admin #edit-options {
  255. clear: both;
  256. margin: 0;
  257. }
  258. .media-clear {
  259. clear: both;
  260. }
  261. .media-thumbnails-select {
  262. float: left;
  263. }
  264. #edit-options .form-item-format label {
  265. display: inline;
  266. }
  267. #media-format-form .media-item {
  268. float: left;
  269. margin-left: 0;
  270. margin-top: 0;
  271. }
  272. #media-format-form .label-wrapper {
  273. margin-left: 0;
  274. }
  275. .media-multiedit-form .media-edit-form {
  276. border-bottom: 1px solid #aaa;
  277. margin-bottom:1em;
  278. margin-top:1.5em;
  279. }
  280. body.page-media-format-form {
  281. background: none;
  282. }
  283. #media-browser-page {
  284. background: #FFF;
  285. padding: 1px 0;
  286. -moz-border-radius: 4px;
  287. -webkit-border-radius: 4px;
  288. border-radius: 4px;
  289. }
  290. #media-browser-page .plupload_start {
  291. display:none;
  292. }
  293. a.button {
  294. display: inline-block;
  295. margin: 10px 5px 0 0;
  296. }
  297. /* @end media format form */