Projet

Général

Profil

Paste
Télécharger (4,66 ko) Statistiques
| Branche: | Révision:

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