overlay-child.css

Basic styling for the Overlay child pages.

File

modules/overlay/overlay-child.css

View source
  1. /**
  2. * @file
  3. * Basic styling for the Overlay child pages.
  4. */
  5. html.js {
  6. background: transparent !important;
  7. overflow-y: scroll;
  8. }
  9. html.js body {
  10. background: transparent !important;
  11. margin-left: 0;
  12. margin-right: 0;
  13. padding: 20px 0;
  14. }
  15. #overlay {
  16. display: table;
  17. margin: 0 auto;
  18. min-height: 100px;
  19. min-width: 700px;
  20. position: relative;
  21. padding: .2em;
  22. padding-bottom: 2em;
  23. padding-right: 26px; /* LTR */
  24. width: 88%;
  25. }
  26. #overlay-titlebar {
  27. padding: 0 20px;
  28. position: relative;
  29. white-space: nowrap;
  30. z-index: 100;
  31. }
  32. #overlay-content {
  33. background: #fff;
  34. clear: both;
  35. color: #000;
  36. padding: .5em 1em;
  37. position: relative;
  38. }
  39. #overlay-title-wrapper {
  40. overflow: hidden;
  41. }
  42. #overlay-title {
  43. color: #fff;
  44. float: left; /* LTR */
  45. font-size: 20px;
  46. margin: 0;
  47. padding: 0.3em 0;
  48. }
  49. #overlay-title:active,
  50. #overlay-title:focus {
  51. outline: 0;
  52. }
  53. .overlay #skip-link {
  54. margin-top: -20px;
  55. }
  56. .overlay #skip-link a {
  57. color: #fff; /* This is white to contrast with the dark background behind it. */
  58. }
  59. #overlay-close-wrapper {
  60. position: absolute;
  61. right: 0; /* LTR */
  62. }
  63. #overlay-close,
  64. #overlay-close:hover {
  65. background: transparent url(images/close.png) no-repeat; /* LTR */
  66. -moz-border-radius-topleft: 0; /* LTR */
  67. -webkit-border-top-left-radius: 0; /* LTR */
  68. border-top-left-radius: 0; /* LTR */
  69. display: block;
  70. height: 26px;
  71. margin: 0;
  72. padding: 0;
  73. /* Replace with position:fixed to get a scrolling close button. */
  74. position: absolute;
  75. width: 26px;
  76. }
  77. /**
  78. * Tabs on the overlay.
  79. */
  80. #overlay-tabs {
  81. line-height: 27px;
  82. margin: -28px 0 0 0;
  83. position: absolute;
  84. right: 20px; /* LTR */
  85. text-transform: uppercase;
  86. }
  87. #overlay-tabs li {
  88. display: inline;
  89. list-style: none;
  90. margin: 0 0 0 -3px; /* LTR */
  91. padding: 0;
  92. }
  93. #overlay-tabs li a,
  94. #overlay-tabs li a:active,
  95. #overlay-tabs li a:visited,
  96. #overlay-tabs li a:hover {
  97. background-color: #a6a7a2;
  98. -moz-border-radius: 8px 8px 0 0;
  99. -webkit-border-top-left-radius: 8px;
  100. -webkit-border-top-right-radius: 8px;
  101. border-radius: 8px 8px 0 0;
  102. color: #000;
  103. display: inline-block;
  104. font-size: 11px;
  105. font-weight: bold;
  106. margin: 0 0 2px 0;
  107. outline: 0;
  108. padding: 0 14px;
  109. text-decoration: none;
  110. }
  111. #overlay-tabs li.active a,
  112. #overlay-tabs li.active a.active,
  113. #overlay-tabs li.active a:active,
  114. #overlay-tabs li.active a:visited {
  115. background-color: #fff;
  116. margin: 0;
  117. padding-bottom: 2px;
  118. }
  119. #overlay-tabs li a:focus,
  120. #overlay-tabs li a:hover {
  121. color: #fff;
  122. }
  123. #overlay-tabs li.active a:focus,
  124. #overlay-tabs li.active a:hover {
  125. color: #000;
  126. }
  127. /**
  128. * Add to shortcuts link
  129. */
  130. #overlay-titlebar .add-or-remove-shortcuts {
  131. padding-top: 0.9em;
  132. }
  133. /**
  134. * IE6 shows elements with position:fixed as position:static so replace
  135. * it with position:absolute;
  136. */
  137. * html #overlay-close,
  138. * html #overlay-close:hover {
  139. position: absolute;
  140. }
  141. /**
  142. * Disable message.
  143. */
  144. #overlay-disable-message {
  145. background-color: #fff;
  146. margin: -20px auto 20px;
  147. width: 80%;
  148. -moz-border-radius: 0 0 8px 8px;
  149. -webkit-border-bottom-left-radius: 8px;
  150. -webkit-border-bottom-right-radius: 8px;
  151. border-radius: 0 0 8px 8px;
  152. }
  153. .overlay-disable-message-focused {
  154. padding: 0.5em;
  155. }
  156. .overlay-disable-message-focused a {
  157. display: block;
  158. float: left;
  159. }
  160. .overlay-disable-message-focused #overlay-dismiss-message {
  161. float: right;
  162. }

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.