You are here

media.css in D7 Media 7.4

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

Styles for the media library.

The display and layout of the Media browser assumes Drupal's Seven theme as the theme active when this is displayed.

File

css/media.css
View source
  1. /**
  2. * @file
  3. * Styles for the media library.
  4. *
  5. * The display and layout of the Media browser assumes Drupal's Seven theme as
  6. * the theme active when this is displayed.
  7. */
  8. /* jQuery UI Resets */
  9. .ui-tabs {
  10. padding: 0;
  11. }
  12. .ui-dialog.media-wrapper .ui-dialog-content {
  13. padding: 0;
  14. }
  15. .ui-dialog.media-wrapper .ui-dialog-buttonpane {
  16. display: none;
  17. }
  18. /* Workaround for Modal dialog underneith the Ctools modal dialog with jQuery 1.10.
  19. @TODO Remove this if ever ctools issue #1397370 ever gets fixed. */
  20. .ui-front.media-wrapper {
  21. z-index: 10001 !important;
  22. }
  23. #media-browser-tabset .ui-widget-header {
  24. background: none;
  25. }
  26. /* Remove the default border */
  27. .ui-widget-content {
  28. border: none;
  29. }
  30. /* *********************************************************** */
  31. /* Browser layout themeing */
  32. /* Size the branding header appropriately */
  33. #media-browser-tabset #branding {
  34. padding: 10px 10px 0px 10px;
  35. }
  36. #media-browser-tabset #branding h1 {
  37. float: left;
  38. height: 16px;
  39. margin-top: 0px;
  40. }
  41. /* Float the tabs right to keep the UI consistent across themes */
  42. #media-tabs-wrapper {
  43. float: right;
  44. }
  45. #media-browser-tabset ul.tabs {
  46. padding: 0;
  47. border: none;
  48. }
  49. /* Reset the height to match the browser */
  50. #media-browser-tabset ul.tabs.primary li a:link {
  51. font-weight: bold;
  52. margin-right: 0;
  53. }
  54. /* *********************************************************** */
  55. /* Media item display */
  56. .media-item {
  57. background: #eee;
  58. border: 1px solid #cccccc;
  59. box-shadow: inset 0 0 15px rgba(0,0,0,.1), inset 0 0 0 1px rgba(0,0,0,.05);
  60. display: inline-block;
  61. padding: 5px;
  62. position: relative;
  63. }
  64. .media-item img {
  65. display: block;
  66. }
  67. .media-item .label-wrapper {
  68. background: rgba(255,255,255,.8);
  69. bottom: 0;
  70. box-shadow: inset 0 0 0 1px rgba(0,0,0,.15);
  71. left: 0;
  72. max-height: 100%;
  73. overflow: hidden;
  74. position: absolute;
  75. right: 0;
  76. text-align: center;
  77. word-wrap: break-word;
  78. }
  79. .media-item .label-wrapper label {
  80. font-size: 10px;
  81. padding: 5px 10px;
  82. }
  83. /* Media item lists */
  84. #media-browser-library-list {
  85. margin: 0;
  86. padding: 0;
  87. }
  88. .media-list-thumbnails li {
  89. float: left;
  90. list-style: none;
  91. margin: 0 10px 10px 0;
  92. }
  93. .media-list-thumbnails li a {
  94. text-decoration: none;
  95. }
  96. .media-list-thumbnails .media-item.selected {
  97. background: #f4ecc7;
  98. border-color: #058ac5;
  99. }
  100. .media-list-thumbnails .media-item:hover {
  101. border-color: #058ac5;
  102. cursor: pointer;
  103. }
  104. .media-list-thumbnails .media-item .label-wrapper label {
  105. color: #058ac5;
  106. }
  107. .media-list-thumbnails .media-item .label-wrapper label:hover {
  108. cursor: pointer;
  109. }
  110. .media-list-thumbnails .form-type-checkbox {
  111. bottom: 117px;
  112. left: 6px;
  113. margin: 0;
  114. padding: 0;
  115. position: relative;
  116. }
  117. /* File field */
  118. .media-widget .preview {
  119. display: inline-block;
  120. margin-right: 10px;
  121. vertical-align: middle;
  122. }
  123. /* Exposed filter field */
  124. /* Use similar look and feel of a disabled field */
  125. .media-ajaxing-disabled {
  126. background-color: #ebebe4;
  127. }