colorbox_style.css 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144
  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 plain 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. #cboxContent {
  89. overflow: hidden;
  90. }
  91. #cboxContent, .cboxPhoto {
  92. -webkit-border-radius: 5px;
  93. -moz-border-radius: 5px;
  94. border-radius: 5px;
  95. }
  96. #cboxError {
  97. padding: 50px;
  98. border: 1px solid #ccc;
  99. }
  100. #cboxTitle {
  101. position: absolute;
  102. background: rgba(255, 255, 255, 0.7);
  103. bottom: 0;
  104. left: 0;
  105. color: #535353;
  106. width: 100%;
  107. padding: 4px 6px;
  108. -moz-box-sizing: border-box;
  109. -webkit-box-sizing: border-box;
  110. box-sizing: border-box;
  111. -webkit-border-bottom-right-radius: 5px;
  112. -webkit-border-bottom-left-radius: 5px;
  113. -moz-border-radius-bottomright: 5px;
  114. -moz-border-radius-bottomleft: 5px;
  115. border-bottom-right-radius: 5px;
  116. border-bottom-left-radius: 5px;
  117. }
  118. #cboxLoadingOverlay {
  119. background: #fff;
  120. }
  121. #cboxLoadingGraphic {
  122. background: url(images/loading_animation.gif) no-repeat center center;
  123. }
  124. #cboxClose.cbox-close-plain {
  125. position: absolute;
  126. font-size: 20px;
  127. line-height: 18px;
  128. text-align: center;
  129. color: rgba(255, 255, 255, 0.7);
  130. background: rgba(0, 0, 0, 0.5);
  131. top: 4px;
  132. right: 4px;
  133. width: 20px;
  134. height: 20px;
  135. -webkit-border-radius: 10px;
  136. -moz-border-radius: 10px;
  137. border-radius: 10px;
  138. }
  139. .cbox-close-plain:hover {
  140. color: rgba(255, 255, 255, 0.9);
  141. background: rgba(0, 0, 0, 0.8);
  142. }