Same filename in this branch
  1. 2.0.x styles/default/colorbox_style.css
  2. 2.0.x styles/stockholmsyndrome/colorbox_style.css
Same filename and directory in other branches
  1. 7.x-2.x styles/plain/colorbox_style.css 1 comment
  2. 7.x-2.x styles/default/colorbox_style.css 1 comment
  3. 7.x-2.x styles/stockholmsyndrome/colorbox_style.css 1 comment
  4. 8.x-1.x styles/plain/colorbox_style.css 1 comment
  5. 8.x-1.x styles/default/colorbox_style.css 1 comment
  6. 8.x-1.x styles/stockholmsyndrome/colorbox_style.css 1 comment
/**
 * 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 plain style:
 * The styles are ordered & tabbed in a way that represents
 * the nesting of the generated HTML.
 */
#cboxOverlay {
  background: #000;
}
#colorbox {
  outline: 0;
}
/* @codingStandardsIgnoreLine */
#cboxWrapper {
}
#cboxContent {
  overflow: hidden;
}
#cboxContent,
.cboxPhoto {
  -webkit-border-radius: 5px;
  -moz-border-radius: 5px;
  border-radius: 5px;
}
#cboxError {
  padding: 50px;
  border: 1px solid #ccc;
}
#cboxTitle {
  position: absolute;
  background: rgba(255, 255, 255, 0.7);
  bottom: 0;
  left: 0;
  color: #535353;
  width: 100%;
  padding: 4px 6px;
  -moz-box-sizing: border-box;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  -webkit-border-bottom-right-radius: 5px;
  -webkit-border-bottom-left-radius: 5px;
  -moz-border-radius-bottomright: 5px;
  -moz-border-radius-bottomleft: 5px;
  border-bottom-right-radius: 5px;
  border-bottom-left-radius: 5px;
}

#cboxLoadingOverlay {
  background: #fff;
}
#cboxLoadingGraphic {
  background: url(images/loading_animation.gif) no-repeat center center;
}
#cboxClose.cbox-close-plain {
  position: absolute;
  font-size: 20px;
  line-height: 18px;
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
  background: rgba(0, 0, 0, 0.5);
  top: 4px;
  right: 4px;
  width: 20px;
  height: 20px;
  -webkit-border-radius: 10px;
  -moz-border-radius: 10px;
  border-radius: 10px;
}
.cbox-close-plain:hover {
  color: rgba(255, 255, 255, 0.9);
  background: rgba(0, 0, 0, 0.8);
}

File

styles/plain/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 plain 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. /* @codingStandardsIgnoreLine */
  100. #cboxWrapper {
  101. }
  102. #cboxContent {
  103. overflow: hidden;
  104. }
  105. #cboxContent,
  106. .cboxPhoto {
  107. -webkit-border-radius: 5px;
  108. -moz-border-radius: 5px;
  109. border-radius: 5px;
  110. }
  111. #cboxError {
  112. padding: 50px;
  113. border: 1px solid #ccc;
  114. }
  115. #cboxTitle {
  116. position: absolute;
  117. background: rgba(255, 255, 255, 0.7);
  118. bottom: 0;
  119. left: 0;
  120. color: #535353;
  121. width: 100%;
  122. padding: 4px 6px;
  123. -moz-box-sizing: border-box;
  124. -webkit-box-sizing: border-box;
  125. box-sizing: border-box;
  126. -webkit-border-bottom-right-radius: 5px;
  127. -webkit-border-bottom-left-radius: 5px;
  128. -moz-border-radius-bottomright: 5px;
  129. -moz-border-radius-bottomleft: 5px;
  130. border-bottom-right-radius: 5px;
  131. border-bottom-left-radius: 5px;
  132. }
  133. #cboxLoadingOverlay {
  134. background: #fff;
  135. }
  136. #cboxLoadingGraphic {
  137. background: url(images/loading_animation.gif) no-repeat center center;
  138. }
  139. #cboxClose.cbox-close-plain {
  140. position: absolute;
  141. font-size: 20px;
  142. line-height: 18px;
  143. text-align: center;
  144. color: rgba(255, 255, 255, 0.7);
  145. background: rgba(0, 0, 0, 0.5);
  146. top: 4px;
  147. right: 4px;
  148. width: 20px;
  149. height: 20px;
  150. -webkit-border-radius: 10px;
  151. -moz-border-radius: 10px;
  152. border-radius: 10px;
  153. }
  154. .cbox-close-plain:hover {
  155. color: rgba(255, 255, 255, 0.9);
  156. background: rgba(0, 0, 0, 0.8);
  157. }