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 Stockholm syndrome style:
 * The styles are ordered & tabbed in a way that represents
 * the nesting of the generated HTML.
 */
#cboxOverlay {
  background: #000;
}

#colorbox {
  background: #fff url(images/bg_tab.png) center bottom repeat-x;
  -moz-box-shadow: 3px 3px 16px #333;
  -webkit-box-shadow: 3px 3px 16px #333;
  box-shadow: 3px 3px 16px #333;
  -moz-border-radius-bottomleft: 9px;
  -moz-border-radius-bottomright: 9px;
  -webkit-border-bottom-left-radius: 9px;
  -webkit-border-bottom-right-radius: 9px;
  border-bottom-left-radius: 9px;
  border-bottom-right-radius: 9px;
  outline: 0;
}
#colorbox,
#colorbox div {
  overflow: visible; /* Required by the close button. */
}
#cboxWrapper {
  -moz-border-radius-bottomleft: 9px;
  -moz-border-radius-bottomright: 9px;
  -webkit-border-bottom-left-radius: 9px;
  -webkit-border-bottom-right-radius: 9px;
  border-bottom-left-radius: 9px;
  border-bottom-right-radius: 9px;
}
#cboxTopLeft {
  width: 0;
  height: 0;
}
#cboxTopCenter {
  height: 0;
}
#cboxTopRight {
  width: 0;
  height: 0;
}
#cboxBottomLeft {
  width: 15px;
  height: 10px;
}
#cboxBottomCenter {
  height: 10px;
}
#cboxBottomRight {
  width: 15px;
  height: 10px;
}
#cboxMiddleLeft {
  width: 0;
}
#cboxMiddleRight {
  width: 0;
}
#cboxContent {
  background: #fff;
  overflow: hidden;
  margin-bottom: 28px;
}
#cboxError {
  padding: 50px;
  border: 1px solid #ccc;
}
/* @codingStandardsIgnoreLine */
#cboxLoadedContent {
}
#cboxTitle {
  left: 0;
  height: 38px;
  color: #313131;
  padding: 0 140px 0 15px;
  display: table-cell !important;
  vertical-align: middle;
  float: none !important;
}
#cboxCurrent {
  position: absolute;
  bottom: -26px;
  right: 80px;
  color: #313131;
  border-left: 1px solid #313131;
  padding: 0 0 0 15px;
}
/* Slideshow not implemented. */
.cboxSlideshow_on #cboxSlideshow {
  display: none;
}
/* @codingStandardsIgnoreLine */
.cboxSlideshow_on #cboxSlideshow:hover {
}
.cboxSlideshow_off #cboxSlideshow {
  display: none;
}
/* @codingStandardsIgnoreLine */
.cboxSlideshow_off #cboxSlideshow:hover {
}
#cboxPrevious {
  position: absolute;
  bottom: -26px;
  right: 45px;
  background: url(images/controls.png) no-repeat 0 -48px;
  width: 21px;
  height: 15px;
  text-indent: -9999px;
}
#cboxPrevious:hover {
  background-position: 0 -111px;
}
#cboxNext {
  position: absolute;
  bottom: -26px;
  right: 15px;
  background: url(images/controls.png) no-repeat 0 -29px;
  width: 21px;
  height: 15px;
  text-indent: -9999px;
}
#cboxNext:hover {
  background-position: 0 -92px;
}
#cboxLoadingOverlay {
  background: #e6e6e6;
}
#cboxLoadingGraphic {
  background: url(images/loading_animation.gif) no-repeat center center;
}
#cboxClose {
  position: absolute;
  top: -10px;
  right: -10px;
  background: url(images/controls.png) no-repeat 0px 0px;
  width: 25px;
  height: 25px;
  text-indent: -9999px;
  opacity: 0;
}
#cboxClose:hover {
  background-position: 0 -63px;
}

File

styles/stockholmsyndrome/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 Stockholm syndrome 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. background: #fff url(images/bg_tab.png) center bottom repeat-x;
  98. -moz-box-shadow: 3px 3px 16px #333;
  99. -webkit-box-shadow: 3px 3px 16px #333;
  100. box-shadow: 3px 3px 16px #333;
  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. outline: 0;
  108. }
  109. #colorbox,
  110. #colorbox div {
  111. overflow: visible; /* Required by the close button. */
  112. }
  113. #cboxWrapper {
  114. -moz-border-radius-bottomleft: 9px;
  115. -moz-border-radius-bottomright: 9px;
  116. -webkit-border-bottom-left-radius: 9px;
  117. -webkit-border-bottom-right-radius: 9px;
  118. border-bottom-left-radius: 9px;
  119. border-bottom-right-radius: 9px;
  120. }
  121. #cboxTopLeft {
  122. width: 0;
  123. height: 0;
  124. }
  125. #cboxTopCenter {
  126. height: 0;
  127. }
  128. #cboxTopRight {
  129. width: 0;
  130. height: 0;
  131. }
  132. #cboxBottomLeft {
  133. width: 15px;
  134. height: 10px;
  135. }
  136. #cboxBottomCenter {
  137. height: 10px;
  138. }
  139. #cboxBottomRight {
  140. width: 15px;
  141. height: 10px;
  142. }
  143. #cboxMiddleLeft {
  144. width: 0;
  145. }
  146. #cboxMiddleRight {
  147. width: 0;
  148. }
  149. #cboxContent {
  150. background: #fff;
  151. overflow: hidden;
  152. margin-bottom: 28px;
  153. }
  154. #cboxError {
  155. padding: 50px;
  156. border: 1px solid #ccc;
  157. }
  158. /* @codingStandardsIgnoreLine */
  159. #cboxLoadedContent {
  160. }
  161. #cboxTitle {
  162. left: 0;
  163. height: 38px;
  164. color: #313131;
  165. padding: 0 140px 0 15px;
  166. display: table-cell !important;
  167. vertical-align: middle;
  168. float: none !important;
  169. }
  170. #cboxCurrent {
  171. position: absolute;
  172. bottom: -26px;
  173. right: 80px;
  174. color: #313131;
  175. border-left: 1px solid #313131;
  176. padding: 0 0 0 15px;
  177. }
  178. /* Slideshow not implemented. */
  179. .cboxSlideshow_on #cboxSlideshow {
  180. display: none;
  181. }
  182. /* @codingStandardsIgnoreLine */
  183. .cboxSlideshow_on #cboxSlideshow:hover {
  184. }
  185. .cboxSlideshow_off #cboxSlideshow {
  186. display: none;
  187. }
  188. /* @codingStandardsIgnoreLine */
  189. .cboxSlideshow_off #cboxSlideshow:hover {
  190. }
  191. #cboxPrevious {
  192. position: absolute;
  193. bottom: -26px;
  194. right: 45px;
  195. background: url(images/controls.png) no-repeat 0 -48px;
  196. width: 21px;
  197. height: 15px;
  198. text-indent: -9999px;
  199. }
  200. #cboxPrevious:hover {
  201. background-position: 0 -111px;
  202. }
  203. #cboxNext {
  204. position: absolute;
  205. bottom: -26px;
  206. right: 15px;
  207. background: url(images/controls.png) no-repeat 0 -29px;
  208. width: 21px;
  209. height: 15px;
  210. text-indent: -9999px;
  211. }
  212. #cboxNext:hover {
  213. background-position: 0 -92px;
  214. }
  215. #cboxLoadingOverlay {
  216. background: #e6e6e6;
  217. }
  218. #cboxLoadingGraphic {
  219. background: url(images/loading_animation.gif) no-repeat center center;
  220. }
  221. #cboxClose {
  222. position: absolute;
  223. top: -10px;
  224. right: -10px;
  225. background: url(images/controls.png) no-repeat 0px 0px;
  226. width: 25px;
  227. height: 25px;
  228. text-indent: -9999px;
  229. opacity: 0;
  230. }
  231. #cboxClose:hover {
  232. background-position: 0 -63px;
  233. }