root / drupal7 / sites / all / modules / colorbox / styles / plain / colorbox_style.css @ 91f42c9e
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 |
/**
|
78 |
* Colorbox module plain style:
|
79 |
* The styles are ordered & tabbed in a way that represents
|
80 |
* the nesting of the generated HTML.
|
81 |
*/
|
82 |
#cboxOverlay {
|
83 |
background: #000; |
84 |
} |
85 |
#colorbox {
|
86 |
outline: 0; |
87 |
} |
88 |
#cboxWrapper {}
|
89 |
#cboxContent {
|
90 |
overflow: hidden; |
91 |
} |
92 |
#cboxContent, .cboxPhoto { |
93 |
-webkit-border-radius: 5px; |
94 |
-moz-border-radius: 5px; |
95 |
border-radius: 5px; |
96 |
} |
97 |
#cboxError {
|
98 |
padding: 50px; |
99 |
border: 1px solid #ccc; |
100 |
} |
101 |
#cboxTitle {
|
102 |
position: absolute; |
103 |
background: rgba(255, 255, 255, 0.7); |
104 |
bottom: 0; |
105 |
left: 0; |
106 |
color: #535353; |
107 |
width: 100%; |
108 |
padding: 4px 6px; |
109 |
-moz-box-sizing: border-box; |
110 |
-webkit-box-sizing: border-box; |
111 |
box-sizing: border-box; |
112 |
-webkit-border-bottom-right-radius: 5px; |
113 |
-webkit-border-bottom-left-radius: 5px; |
114 |
-moz-border-radius-bottomright: 5px; |
115 |
-moz-border-radius-bottomleft: 5px; |
116 |
border-bottom-right-radius: 5px; |
117 |
border-bottom-left-radius: 5px; |
118 |
} |
119 |
|
120 |
#cboxLoadingOverlay {
|
121 |
background: #fff; |
122 |
} |
123 |
#cboxLoadingGraphic {
|
124 |
background: url(images/loading_animation.gif) no-repeat center center; |
125 |
} |
126 |
#cboxClose.cbox-close-plain { |
127 |
position: absolute; |
128 |
font-size: 20px; |
129 |
line-height: 18px; |
130 |
text-align: center; |
131 |
color: rgba(255, 255, 255, 0.7); |
132 |
background: rgba(0, 0, 0, 0.5); |
133 |
top: 4px; |
134 |
right: 4px; |
135 |
width: 20px; |
136 |
height: 20px; |
137 |
-webkit-border-radius: 10px; |
138 |
-moz-border-radius: 10px; |
139 |
border-radius: 10px; |
140 |
} |
141 |
.cbox-close-plain:hover { |
142 |
color: rgba(255, 255, 255, 0.9); |
143 |
background: rgba(0, 0, 0, 0.8); |
144 |
} |