colorbox_style.css 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219
  1. /**
  2. * Colorbox Core Style:
  3. * The following CSS is consistent between example themes and should not be altered.
  4. */
  5. #colorbox, #cboxOverlay, #cboxWrapper {
  6. position: absolute;
  7. top: 0;
  8. left: 0;
  9. z-index: 9999;
  10. overflow: hidden;
  11. }
  12. #cboxOverlay {
  13. position: fixed;
  14. width: 100%;
  15. height: 100%;
  16. }
  17. #cboxMiddleLeft, #cboxBottomLeft {
  18. clear: left;
  19. }
  20. #cboxContent {
  21. position: relative;
  22. }
  23. #cboxLoadedContent {
  24. overflow: auto;
  25. -webkit-overflow-scrolling: touch;
  26. }
  27. #cboxTitle {
  28. margin: 0;
  29. }
  30. #cboxLoadingOverlay, #cboxLoadingGraphic {
  31. position: absolute;
  32. top: 0;
  33. left: 0;
  34. width: 100%;
  35. height: 100%;
  36. }
  37. /**
  38. * These elements are buttons, and may need to have additional
  39. * styles reset to avoid unwanted base styles.
  40. */
  41. #cboxPrevious, #cboxNext, #cboxClose, #cboxSlideshow {
  42. border: 0;
  43. padding: 0;
  44. margin: 0;
  45. overflow: visible;
  46. width: auto;
  47. background: none;
  48. cursor: pointer;
  49. }
  50. /**
  51. * Avoid outlines on :active (mouseclick),
  52. * but preserve outlines on :focus (tabbed navigating)
  53. */
  54. #cboxPrevious:active, #cboxNext:active, #cboxClose:active, #cboxSlideshow:active {
  55. outline: 0;
  56. }
  57. .cboxPhoto {
  58. float: left;
  59. margin: auto;
  60. border: 0;
  61. display: block;
  62. max-width: none;
  63. }
  64. .cboxIframe {
  65. width: 100%;
  66. height: 100%;
  67. display: block;
  68. border: 0;
  69. }
  70. /* Reset box sizing to content-box if theme is using border-box. */
  71. #colorbox, #cboxContent, #cboxLoadedContent {
  72. -moz-box-sizing: content-box;
  73. -webkit-box-sizing: content-box;
  74. box-sizing: content-box;
  75. }
  76. /**
  77. * Colorbox module Stockholm syndrome style:
  78. * The styles are ordered & tabbed in a way that represents
  79. * the nesting of the generated HTML.
  80. */
  81. #cboxOverlay {
  82. background: #000;
  83. }
  84. #colorbox {
  85. background: #fff url(images/bg_tab.png) center bottom repeat-x;
  86. -moz-box-shadow: 3px 3px 16px #333;
  87. -webkit-box-shadow: 3px 3px 16px #333;
  88. box-shadow: 3px 3px 16px #333;
  89. -moz-border-radius-bottomleft: 9px;
  90. -moz-border-radius-bottomright: 9px;
  91. -webkit-border-bottom-left-radius: 9px;
  92. -webkit-border-bottom-right-radius: 9px;
  93. border-bottom-left-radius: 9px;
  94. border-bottom-right-radius: 9px;
  95. outline: 0;
  96. }
  97. #colorbox, #colorbox div {
  98. overflow: visible; /* Required by the close button. */
  99. }
  100. #cboxWrapper {
  101. -moz-border-radius-bottomleft: 9px;
  102. -moz-border-radius-bottomright: 9px;
  103. -webkit-border-bottom-left-radius: 9px;
  104. -webkit-border-bottom-right-radius: 9px;
  105. border-bottom-left-radius: 9px;
  106. border-bottom-right-radius: 9px;
  107. }
  108. #cboxTopLeft {
  109. width: 0;
  110. height: 0;
  111. }
  112. #cboxTopCenter {
  113. height: 0;
  114. }
  115. #cboxTopRight {
  116. width: 0;
  117. height: 0;
  118. }
  119. #cboxBottomLeft {
  120. width: 15px;
  121. height: 10px;
  122. }
  123. #cboxBottomCenter {
  124. height: 10px;
  125. }
  126. #cboxBottomRight {
  127. width: 15px;
  128. height: 10px;
  129. }
  130. #cboxMiddleLeft {
  131. width: 0;
  132. }
  133. #cboxMiddleRight {
  134. width: 0;
  135. }
  136. #cboxContent {
  137. background: #fff;
  138. overflow: hidden;
  139. margin-bottom: 28px;
  140. }
  141. #cboxError {
  142. padding: 50px;
  143. border: 1px solid #ccc;
  144. }
  145. #cboxLoadedContent {
  146. }
  147. #cboxTitle {
  148. left: 0;
  149. height: 38px;
  150. color: #313131;
  151. padding: 0 140px 0 15px;
  152. display: table-cell !important;
  153. vertical-align: middle;
  154. float: none !important;
  155. }
  156. #cboxCurrent {
  157. position: absolute;
  158. bottom: -26px;
  159. right: 80px;
  160. color: #313131;
  161. border-left: 1px solid #313131;
  162. padding: 0 0 0 15px;
  163. }
  164. /* Slideshow not implemented. */
  165. .cboxSlideshow_on #cboxSlideshow {
  166. display: none;
  167. }
  168. .cboxSlideshow_on #cboxSlideshow:hover {
  169. }
  170. .cboxSlideshow_off #cboxSlideshow {
  171. display: none;
  172. }
  173. .cboxSlideshow_off #cboxSlideshow:hover {
  174. }
  175. #cboxPrevious {
  176. position: absolute;
  177. bottom: -26px;
  178. right: 45px;
  179. background: url(images/controls.png) no-repeat 0 -48px;
  180. width: 21px;
  181. height: 15px;
  182. text-indent: -9999px;
  183. }
  184. #cboxPrevious:hover {
  185. background-position: 0 -111px;
  186. }
  187. #cboxNext {
  188. position: absolute;
  189. bottom: -26px;
  190. right: 15px;
  191. background: url(images/controls.png) no-repeat 0 -29px;
  192. width: 21px;
  193. height: 15px;
  194. text-indent: -9999px;
  195. }
  196. #cboxNext:hover {
  197. background-position: 0 -92px;
  198. }
  199. #cboxLoadingOverlay {
  200. background: #e6e6e6;
  201. }
  202. #cboxLoadingGraphic {
  203. background: url(images/loading_animation.gif) no-repeat center center;
  204. }
  205. #cboxClose {
  206. position: absolute;
  207. top: -10px;
  208. right: -10px;
  209. background: url(images/controls.png) no-repeat 0px 0px;
  210. width: 25px;
  211. height: 25px;
  212. text-indent: -9999px;
  213. opacity: 0;
  214. }
  215. #cboxClose:hover {
  216. background-position: 0 -63px;
  217. }