/adei/ui

To get this branch, use:
bzr branch http://darksoft.org/webbzr/adei/ui

« back to all changes in this revision

Viewing changes to includes/cropper/cropper.css

  • Committer: Suren A. Chilingaryan
  • Date: 2008-04-02 10:23:22 UTC
  • Revision ID: csa@dside.dyndns.org-20080402102322-okib92sicg2dx3o3
Initial import

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
.imgCrop_wrap {
 
2
        /* width: 500px;   @done_in_js */
 
3
        /* height: 375px;  @done_in_js */
 
4
        position: relative;
 
5
        cursor: crosshair;
 
6
}
 
7
 
 
8
/* an extra classname is applied for Opera < 9.0 to fix it's lack of opacity support */
 
9
.imgCrop_wrap.opera8 .imgCrop_overlay,
 
10
.imgCrop_wrap.opera8 .imgCrop_clickArea { 
 
11
        background-color: transparent;
 
12
}
 
13
 
 
14
/* fix for IE displaying all boxes at line-height by default, although they are still 1 pixel high until we combine them with the pointless span */
 
15
.imgCrop_wrap,
 
16
.imgCrop_wrap * {
 
17
        font-size: 0;
 
18
}
 
19
 
 
20
.imgCrop_apply {
 
21
        position: absolute;
 
22
        background: url(applyArrow.png);
 
23
        border: green solid 1px;
 
24
        width: 19px;
 
25
        height: 20px;
 
26
        margin: 5px;
 
27
        cursor: pointer;
 
28
        z-index: 5;
 
29
}
 
30
 
 
31
.imgCrop_save {
 
32
        position: absolute;
 
33
        background: url(save.png);
 
34
        border: green solid 1px;
 
35
        width: 19px;
 
36
        height: 20px;
 
37
        margin: 5px;
 
38
        cursor: pointer;
 
39
        z-index: 5;
 
40
}
 
41
 
 
42
 
 
43
.imgCrop_overlay {
 
44
/*
 
45
        DS: Replacing selected part
 
46
        background-color: #000;
 
47
        opacity: 0.5;
 
48
        filter:alpha(opacity=50);
 
49
*/
 
50
        position: absolute;
 
51
        width: 100%;
 
52
        height: 100%;
 
53
}
 
54
 
 
55
.imgCrop_handleArea {
 
56
    position: absolute;
 
57
    cursor: move;
 
58
    z-index: 3;
 
59
}
 
60
 
 
61
.imgCrop_selArea {
 
62
/*
 
63
        DS: Selecting
 
64
*/
 
65
        background-color: #FFB;
 
66
        opacity: 0.5;
 
67
        filter:alpha(opacity=50);
 
68
        
 
69
        position: absolute;
 
70
        
 
71
        /* @done_in_js 
 
72
        top: 20px;
 
73
        left: 20px;
 
74
        width: 200px;
 
75
        height: 200px;
 
76
        background: transparent url(castle.jpg) no-repeat  -210px -110px;
 
77
        */
 
78
        cursor: move;
 
79
        z-index: 2;
 
80
}
 
81
 
 
82
/* clickArea is all a fix for IE 5.5 & 6 to allow the user to click on the given area */
 
83
.imgCrop_clickArea {
 
84
        width: 100%;
 
85
        height: 100%;
 
86
        background-color: #FFF;
 
87
        opacity: 0.01;
 
88
        filter:alpha(opacity=01);
 
89
}
 
90
 
 
91
.imgCrop_marqueeHoriz {
 
92
        position: absolute;
 
93
        width: 100%;
 
94
        height: 1px;
 
95
        background: transparent url(marqueeHoriz.gif) repeat-x 0 0;
 
96
        z-index: 4;
 
97
 
 
98
        filter:alpha(opacity=100);
 
99
}
 
100
 
 
101
.imgCrop_marqueeVert {
 
102
        position: absolute;
 
103
        height: 100%;
 
104
        width: 1px;
 
105
        background: transparent url(marqueeVert.gif) repeat-y 0 0;
 
106
        z-index: 4;
 
107
 
 
108
        filter:alpha(opacity=100);
 
109
}
 
110
 
 
111
/* 
 
112
 *  FIX MARCHING ANTS IN IE
 
113
 *      As IE <6 tries to load background images we can uncomment the follwoing hack 
 
114
 *  to remove that issue, not as pretty - but is anything in IE?
 
115
 *  And yes I do know that 'filter' is evil, but it will make it look semi decent in IE
 
116
 *
 
117
* html .imgCrop_marqueeHoriz,
 
118
* html .imgCrop_marqueeVert {
 
119
        background: transparent;
 
120
        filter: Invert; 
 
121
}
 
122
* html .imgCrop_marqueeNorth { border-top: 1px dashed #000; }
 
123
* html .imgCrop_marqueeEast  { border-right: 1px dashed #000; }
 
124
* html .imgCrop_marqueeSouth { border-bottom: 1px dashed #000; }
 
125
* html .imgCrop_marqueeWest  { border-left: 1px dashed #000; }
 
126
*/
 
127
 
 
128
.imgCrop_marqueeNorth { top: 0; left: 0; }
 
129
.imgCrop_marqueeEast  { top: 0; right: 0; }
 
130
.imgCrop_marqueeSouth { bottom: 0px; left: 0; }
 
131
.imgCrop_marqueeWest  { top: 0; left: 0; }
 
132
 
 
133
 
 
134
.imgCrop_handle {
 
135
        position: absolute;
 
136
        border: 1px solid #333;
 
137
        width: 6px;
 
138
        height: 6px;
 
139
        background: #FFF;
 
140
        opacity: 0.5;
 
141
        filter:alpha(opacity=50);
 
142
        z-index: 5;
 
143
}
 
144
 
 
145
/* fix IE 5 box model */
 
146
* html .imgCrop_handle {
 
147
        width: 8px;
 
148
        height: 8px;
 
149
        wid\th: 6px;
 
150
        hei\ght: 6px;
 
151
}
 
152
 
 
153
.imgCrop_handleN {
 
154
        top: -3px;
 
155
        left: 0;
 
156
        /* margin-left: 49%;    @done_in_js */
 
157
        cursor: n-resize;
 
158
}
 
159
 
 
160
.imgCrop_handleNE { 
 
161
        top: -3px;
 
162
        right: -3px;
 
163
        cursor: ne-resize;
 
164
}
 
165
 
 
166
.imgCrop_handleE {
 
167
        top: 0;
 
168
        right: -3px;
 
169
        /* margin-top: 49%;    @done_in_js */
 
170
        cursor: e-resize;
 
171
}
 
172
 
 
173
.imgCrop_handleSE {
 
174
        right: -3px;
 
175
        bottom: -3px;
 
176
        cursor: se-resize;
 
177
}
 
178
 
 
179
.imgCrop_handleS {
 
180
        right: 0;
 
181
        bottom: -3px;
 
182
        /* margin-right: 49%; @done_in_js */
 
183
        cursor: s-resize;
 
184
}
 
185
 
 
186
.imgCrop_handleSW {
 
187
        left: -3px;
 
188
        bottom: -3px;
 
189
        cursor: sw-resize;
 
190
}
 
191
 
 
192
.imgCrop_handleW {
 
193
        top: 0;
 
194
        left: -3px;
 
195
        /* margin-top: 49%;  @done_in_js */
 
196
        cursor: w-resize;
 
197
}
 
198
 
 
199
.imgCrop_handleNW {
 
200
        top: -3px;
 
201
        left: -3px;
 
202
        cursor: nw-resize;
 
203
}
 
204
 
 
205
/**
 
206
 * Create an area to click & drag around on as the default browser behaviour is to let you drag the image 
 
207
 */
 
208
.imgCrop_dragArea {
 
209
        width: 100%;
 
210
        height: 100%;
 
211
        z-index: 7;
 
212
        position: absolute;
 
213
        top: 0;
 
214
        left: 0;
 
215
}
 
216
 
 
217
.imgCrop_previewWrap {
 
218
        /* width: 200px;  @done_in_js */
 
219
        /* height: 200px; @done_in_js */
 
220
        overflow: hidden;
 
221
        position: relative;
 
222
}
 
223
 
 
224
.imgCrop_previewWrap img {
 
225
        position: absolute;
 
226
}
 
 
b'\\ No newline at end of file'