colorbox_style.css 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216
  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 default 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. outline: 0;
  86. }
  87. #cboxWrapper {
  88. background: #fff;
  89. -moz-border-radius: 5px;
  90. -webkit-border-radius: 5px;
  91. border-radius: 5px;
  92. }
  93. #cboxTopLeft {
  94. width: 15px;
  95. height: 15px;
  96. }
  97. #cboxTopCenter {
  98. height: 15px;
  99. }
  100. #cboxTopRight {
  101. width: 15px;
  102. height: 15px;
  103. }
  104. #cboxBottomLeft {
  105. width: 15px;
  106. height: 10px;
  107. }
  108. #cboxBottomCenter {
  109. height: 10px;
  110. }
  111. #cboxBottomRight {
  112. width: 15px;
  113. height: 10px;
  114. }
  115. #cboxMiddleLeft {
  116. width: 15px;
  117. }
  118. #cboxMiddleRight {
  119. width: 15px;
  120. }
  121. #cboxContent {
  122. background: #fff;
  123. overflow: hidden;
  124. }
  125. #cboxError {
  126. padding: 50px;
  127. border: 1px solid #ccc;
  128. }
  129. #cboxLoadedContent {
  130. margin-bottom: 28px;
  131. }
  132. #cboxTitle {
  133. position: absolute;
  134. background: rgba(255, 255, 255, 0.7);
  135. bottom: 28px;
  136. left: 0;
  137. color: #535353;
  138. width: 100%;
  139. padding: 4px 6px;
  140. -moz-box-sizing: border-box;
  141. -webkit-box-sizing: border-box;
  142. box-sizing: border-box;
  143. }
  144. #cboxCurrent {
  145. position: absolute;
  146. bottom: 4px;
  147. left: 60px;
  148. color: #949494;
  149. }
  150. .cboxSlideshow_on #cboxSlideshow {
  151. position: absolute;
  152. bottom: 0px;
  153. right: 30px;
  154. background: url(images/controls.png) no-repeat -75px -50px;
  155. width: 25px;
  156. height: 25px;
  157. text-indent: -9999px;
  158. }
  159. .cboxSlideshow_on #cboxSlideshow:hover {
  160. background-position: -101px -50px;
  161. }
  162. .cboxSlideshow_off #cboxSlideshow {
  163. position: absolute;
  164. bottom: 0px;
  165. right: 30px;
  166. background: url(images/controls.png) no-repeat -25px -50px;
  167. width: 25px;
  168. height: 25px;
  169. text-indent: -9999px;
  170. }
  171. .cboxSlideshow_off #cboxSlideshow:hover {
  172. background-position: -49px -50px;
  173. }
  174. #cboxPrevious {
  175. position: absolute;
  176. bottom: 0;
  177. left: 0;
  178. background: url(images/controls.png) no-repeat -75px 0px;
  179. width: 25px;
  180. height: 25px;
  181. text-indent: -9999px;
  182. }
  183. #cboxPrevious:hover {
  184. background-position: -75px -25px;
  185. }
  186. #cboxNext {
  187. position: absolute;
  188. bottom: 0;
  189. left: 27px;
  190. background: url(images/controls.png) no-repeat -50px 0px;
  191. width: 25px;
  192. height: 25px;
  193. text-indent: -9999px;
  194. }
  195. #cboxNext:hover {
  196. background-position: -50px -25px;
  197. }
  198. #cboxLoadingOverlay {
  199. background: #fff;
  200. }
  201. #cboxLoadingGraphic {
  202. background: url(images/loading_animation.gif) no-repeat center center;
  203. }
  204. #cboxClose {
  205. position: absolute;
  206. bottom: 0;
  207. right: 0;
  208. background: url(images/controls.png) no-repeat -25px 0px;
  209. width: 25px;
  210. height: 25px;
  211. text-indent: -9999px;
  212. }
  213. #cboxClose:hover {
  214. background-position: -25px -25px;
  215. }