You are here

colorbox_style.css in Colorbox 8

/**
 * Colorbox Core Style:
 * The following CSS is consistent between example themes and should not be altered.
 */
#colorbox,
#cboxOverlay,
#cboxWrapper {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 9999;
  overflow: hidden;
}
#cboxOverlay {
  position: fixed;
  width: 100%;
  height: 100%;
}
#cboxMiddleLeft,
#cboxBottomLeft {
  clear: left;
}
#cboxContent {
  position: relative;
}
#cboxLoadedContent {
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}
#cboxTitle {
  margin: 0;
}
#cboxLoadingOverlay,
#cboxLoadingGraphic {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
/**
 * These elements are buttons, and may need to have additional
 * styles reset to avoid unwanted base styles.
 */
#cboxPrevious,
#cboxNext,
#cboxClose,
#cboxSlideshow {
  border: 0;
  padding: 0;
  margin: 0;
  overflow: visible;
  width: auto;
  background: none;
  cursor: pointer;
}
/**
 * Avoid outlines on :active (mouseclick),
 * but preserve outlines on :focus (tabbed navigating)
 */
#cboxPrevious:active,
#cboxNext:active,
#cboxClose:active,
#cboxSlideshow:active {
  outline: 0;
}
.cboxPhoto {
  float: left;
  margin: auto;
  border: 0;
  display: block;
  max-width: none;
}
.cboxIframe {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
}
/* Reset box sizing to content-box if theme is using border-box. */
#colorbox,
#cboxContent,
#cboxLoadedContent {
  -moz-box-sizing: content-box;
  -webkit-box-sizing: content-box;
  box-sizing: content-box;
}

/**
 * Colorbox module default style:
 * The styles are ordered & tabbed in a way that represents
 * the nesting of the generated HTML.
 */
#cboxOverlay {
  background: #000;
}
#colorbox {
  outline: 0;
}
#cboxWrapper {
  background: #fff;
  -moz-border-radius: 5px;
  -webkit-border-radius: 5px;
  border-radius: 5px;
}
#cboxTopLeft {
  width: 15px;
  height: 15px;
}
#cboxTopCenter {
  height: 15px;
}
#cboxTopRight {
  width: 15px;
  height: 15px;
}
#cboxBottomLeft {
  width: 15px;
  height: 10px;
}
#cboxBottomCenter {
  height: 10px;
}
#cboxBottomRight {
  width: 15px;
  height: 10px;
}
#cboxMiddleLeft {
  width: 15px;
}
#cboxMiddleRight {
  width: 15px;
}
#cboxContent {
  background: #fff;
  overflow: hidden;
}
#cboxError {
  padding: 50px;
  border: 1px solid #ccc;
}
#cboxLoadedContent {
  margin-bottom: 28px;
}
#cboxTitle {
  position: absolute;
  background: rgba(255, 255, 255, 0.7);
  bottom: 28px;
  left: 0;
  color: #535353;
  width: 100%;
  padding: 4px 6px;
  -moz-box-sizing: border-box;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}
#cboxCurrent {
  position: absolute;
  bottom: 4px;
  left: 60px;
  color: #949494;
}
.cboxSlideshow_on #cboxSlideshow {
  position: absolute;
  bottom: 0px;
  right: 30px;
  background: url(images/controls.png) no-repeat -75px -50px;
  width: 25px;
  height: 25px;
  text-indent: -9999px;
}
.cboxSlideshow_on #cboxSlideshow:hover {
  background-position: -101px -50px;
}
.cboxSlideshow_off #cboxSlideshow {
  position: absolute;
  bottom: 0px;
  right: 30px;
  background: url(images/controls.png) no-repeat -25px -50px;
  width: 25px;
  height: 25px;
  text-indent: -9999px;
}
.cboxSlideshow_off #cboxSlideshow:hover {
  background-position: -49px -50px;
}
#cboxPrevious {
  position: absolute;
  bottom: 0;
  left: 0;
  background: url(images/controls.png) no-repeat -75px 0px;
  width: 25px;
  height: 25px;
  text-indent: -9999px;
}
#cboxPrevious:hover {
  background-position: -75px -25px;
}
#cboxNext {
  position: absolute;
  bottom: 0;
  left: 27px;
  background: url(images/controls.png) no-repeat -50px 0px;
  width: 25px;
  height: 25px;
  text-indent: -9999px;
}
#cboxNext:hover {
  background-position: -50px -25px;
}
#cboxLoadingOverlay {
  background: #fff;
}
#cboxLoadingGraphic {
  background: url(images/loading_animation.gif) no-repeat center center;
}
#cboxClose {
  position: absolute;
  bottom: 0;
  right: 0;
  background: url(images/controls.png) no-repeat -25px 0px;
  width: 25px;
  height: 25px;
  text-indent: -9999px;
}
#cboxClose:hover {
  background-position: -25px -25px;
}

File

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