You are here

media.css in D7 Media 7

Same filename and directory in other branches
  1. 7.4 css/media.css
  2. 7.2 css/media.css
  3. 7.3 css/media.css

Styles for the media library.

File

css/media.css
View source
  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-browser-library-list .label-wrapper {
  194. margin-left: 0;
  195. }
  196. #mediaBrowser body {
  197. background: none;
  198. }
  199. #media-browser-tabset {
  200. background: #FFF;
  201. }
  202. #media-browser-tabset .media-browser-tab {
  203. border: 1px solid #aaa;
  204. }
  205. #media-browser-tabset .ui-tabs-nav {
  206. border-left: 1px solid #aaa;
  207. border-right: 1px solid #aaa;
  208. border-top: 1px solid #aaa;
  209. }
  210. .fake-ok {
  211. margin-right: 5px;
  212. }
  213. #media-browser a.button {
  214. display: inline-block;
  215. line-height: 21px;
  216. }
  217. /* @end media browser */
  218. /* @group media edit page */
  219. .no-overflow {
  220. overflow: hidden;
  221. }
  222. .media-image-left .field-name-file {
  223. float: left;
  224. margin-bottom: 2em;
  225. margin-right: 2em;
  226. padding-top: 12px;
  227. }
  228. .media-image-left .field-name-file .field-item {
  229. width: 180px;
  230. word-break: break-word;
  231. }
  232. .media-image-left .styles-field-file {
  233. background-color: #FFFFFF;
  234. border: 1px solid #CCCCCC;
  235. padding: 2%;
  236. width: 96%;
  237. }
  238. .media-image-left .field-name-file img {
  239. height: auto;
  240. width: 100%;
  241. }
  242. .media-image-left .form-actions {
  243. clear: both;
  244. }
  245. /* @end media edit page */
  246. /* @group media format form */
  247. #media-format-form {
  248. margin:30px;
  249. }
  250. #media-admin #edit-options {
  251. clear: both;
  252. margin: 0;
  253. }
  254. .media-clear {
  255. clear: both;
  256. }
  257. .media-thumbnails-select {
  258. float: left;
  259. }
  260. #edit-options .form-item-format label {
  261. display: inline;
  262. }
  263. #media-format-form .media-item {
  264. float: left;
  265. margin-left: 0;
  266. margin-top: 0;
  267. }
  268. #media-format-form .label-wrapper {
  269. margin-left: 0;
  270. }
  271. .media-multiedit-form .media-edit-form {
  272. border-bottom: 1px solid #aaa;
  273. margin-bottom:1em;
  274. margin-top:1.5em;
  275. }
  276. body.page-media-format-form {
  277. background: none;
  278. }
  279. #media-browser-page {
  280. background: #FFF;
  281. padding: 1px 0;
  282. -moz-border-radius: 4px;
  283. -webkit-border-radius: 4px;
  284. border-radius: 4px;
  285. }
  286. #media-browser-page .plupload_start {
  287. display:none;
  288. }
  289. #media-browser-page a.button {
  290. display: inline-block;
  291. margin: 10px 5px 0 0;
  292. }
  293. /* @end media format form */