You are here

colorbox_default_style.css in Colorbox 7

Same filename and directory in other branches
  1. 6 styles/default/colorbox_default_style.css
/**
 * 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;
}
#cboxTitle {
  margin: 0;
}
#cboxLoadingOverlay, #cboxLoadingGraphic {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
#cboxPrevious, #cboxNext, #cboxClose, #cboxSlideshow {
  cursor: pointer;
}
.cboxPhoto {
  float: left;
  margin: auto;
  border: 0;
  display: block;
}
.cboxIframe {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
}
#colorbox, #cboxContent, #cboxLoadedContent {
  -moz-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 {}
  #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;
      font: 12px "Lucida Grande", Verdana, Arial, sans-serif;
    }
      #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;
      }
      #cboxCurrent {
        position: absolute;
        bottom: 4px;
        left: 60px;
        color: #949494;
      }
      .cboxSlideshow_on #cboxSlideshow {
        position: absolute;
        bottom: 0px;
        right: 30px;
        background: url(images/controls.png) -75px -50px no-repeat;
        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) -49px -50px no-repeat;
        width: 25px;
        height: 25px;
        text-indent: -9999px;
      }
      .cboxSlideshow_off #cboxSlideshow:hover {
        background-position: -25px -50px;
      }
      #cboxPrevious {
        position: absolute;
        bottom: 0;
        left: 0;
        background: url(images/controls.png) -75px 0px no-repeat;
        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) -50px 0px no-repeat;
        width: 25px;
        height: 25px;
        text-indent: -9999px;
      }
      #cboxNext:hover {
        background-position: -50px -25px;
      }
      #cboxLoadingOverlay {
        background: #fff;
      }
      #cboxLoadingGraphic {
        background: url(images/loading_animation.gif) center center no-repeat;
      }
      #cboxClose {
        position: absolute;
        bottom: 0;
        right: 0;
        background: url(images/controls.png) -25px 0px no-repeat;
        width: 25px;
        height: 25px;
        text-indent: -9999px;
      }
      #cboxClose:hover {
        background-position: -25px -25px;
      }

/* The following are fixes for IE. */
.cboxIE6 #cboxTitle {
  background: #fff;
}

File

styles/default/colorbox_default_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, #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. }
  26. #cboxTitle {
  27. margin: 0;
  28. }
  29. #cboxLoadingOverlay, #cboxLoadingGraphic {
  30. position: absolute;
  31. top: 0;
  32. left: 0;
  33. width: 100%;
  34. height: 100%;
  35. }
  36. #cboxPrevious, #cboxNext, #cboxClose, #cboxSlideshow {
  37. cursor: pointer;
  38. }
  39. .cboxPhoto {
  40. float: left;
  41. margin: auto;
  42. border: 0;
  43. display: block;
  44. }
  45. .cboxIframe {
  46. width: 100%;
  47. height: 100%;
  48. display: block;
  49. border: 0;
  50. }
  51. #colorbox, #cboxContent, #cboxLoadedContent {
  52. -moz-box-sizing: content-box;
  53. box-sizing: content-box;
  54. }
  55. /**
  56. * Colorbox module default style:
  57. * The styles are ordered & tabbed in a way that represents
  58. * the nesting of the generated HTML.
  59. */
  60. #cboxOverlay {
  61. background: #000;
  62. }
  63. #colorBox {}
  64. #cboxWrapper {
  65. background: #fff;
  66. -moz-border-radius: 5px;
  67. -webkit-border-radius: 5px;
  68. border-radius: 5px;
  69. }
  70. #cboxTopLeft {
  71. width: 15px;
  72. height: 15px;
  73. }
  74. #cboxTopCenter {
  75. height: 15px;
  76. }
  77. #cboxTopRight {
  78. width: 15px;
  79. height: 15px;
  80. }
  81. #cboxBottomLeft {
  82. width: 15px;
  83. height: 10px;
  84. }
  85. #cboxBottomCenter {
  86. height: 10px;
  87. }
  88. #cboxBottomRight {
  89. width: 15px;
  90. height: 10px;
  91. }
  92. #cboxMiddleLeft {
  93. width: 15px;
  94. }
  95. #cboxMiddleRight {
  96. width: 15px;
  97. }
  98. #cboxContent {
  99. background: #fff;
  100. overflow: hidden;
  101. font: 12px "Lucida Grande", Verdana, Arial, sans-serif;
  102. }
  103. #cboxError {
  104. padding: 50px;
  105. border: 1px solid #ccc;
  106. }
  107. #cboxLoadedContent {
  108. margin-bottom: 28px;
  109. }
  110. #cboxTitle {
  111. position: absolute;
  112. background: rgba(255, 255, 255, 0.7);
  113. bottom: 28px;
  114. left: 0;
  115. color: #535353;
  116. width: 100%;
  117. padding: 4px;
  118. }
  119. #cboxCurrent {
  120. position: absolute;
  121. bottom: 4px;
  122. left: 60px;
  123. color: #949494;
  124. }
  125. .cboxSlideshow_on #cboxSlideshow {
  126. position: absolute;
  127. bottom: 0px;
  128. right: 30px;
  129. background: url(images/controls.png) -75px -50px no-repeat;
  130. width: 25px;
  131. height: 25px;
  132. text-indent: -9999px;
  133. }
  134. .cboxSlideshow_on #cboxSlideshow:hover {
  135. background-position: -101px -50px;
  136. }
  137. .cboxSlideshow_off #cboxSlideshow {
  138. position: absolute;
  139. bottom: 0px;
  140. right: 30px;
  141. background: url(images/controls.png) -49px -50px no-repeat;
  142. width: 25px;
  143. height: 25px;
  144. text-indent: -9999px;
  145. }
  146. .cboxSlideshow_off #cboxSlideshow:hover {
  147. background-position: -25px -50px;
  148. }
  149. #cboxPrevious {
  150. position: absolute;
  151. bottom: 0;
  152. left: 0;
  153. background: url(images/controls.png) -75px 0px no-repeat;
  154. width: 25px;
  155. height: 25px;
  156. text-indent: -9999px;
  157. }
  158. #cboxPrevious:hover {
  159. background-position: -75px -25px;
  160. }
  161. #cboxNext {
  162. position: absolute;
  163. bottom: 0;
  164. left: 27px;
  165. background: url(images/controls.png) -50px 0px no-repeat;
  166. width: 25px;
  167. height: 25px;
  168. text-indent: -9999px;
  169. }
  170. #cboxNext:hover {
  171. background-position: -50px -25px;
  172. }
  173. #cboxLoadingOverlay {
  174. background: #fff;
  175. }
  176. #cboxLoadingGraphic {
  177. background: url(images/loading_animation.gif) center center no-repeat;
  178. }
  179. #cboxClose {
  180. position: absolute;
  181. bottom: 0;
  182. right: 0;
  183. background: url(images/controls.png) -25px 0px no-repeat;
  184. width: 25px;
  185. height: 25px;
  186. text-indent: -9999px;
  187. }
  188. #cboxClose:hover {
  189. background-position: -25px -25px;
  190. }
  191. /* The following are fixes for IE. */
  192. .cboxIE6 #cboxTitle {
  193. background: #fff;
  194. }