Browse code

Created repository.

DoubleBastionAdmin authored on 26/01/2022 20:32:42
Showing 1 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,266 @@
1
+/**
2
+ *  Copyright (C) 2021  Double Bastion LLC
3
+ *
4
+ *  This file is part of Roundpin, which is licensed under the
5
+ *  GNU Affero General Public License Version 3.0. The license terms
6
+ *  are detailed in the "LICENSE.txt" file located in the root directory.
7
+ *
8
+ *  The file content from below is identical with that of the
9
+ *  original file "croppie.css" released under the MIT License:
10
+ *  https://github.com/Foliotek/Croppie/blob/master/LICENSE .
11
+ *  The copyright notice for the original content follows:
12
+ *
13
+ *  Copyright (c) 2015 Foliotek Inc
14
+ */
15
+
16
+.croppie-container {
17
+    width: 100%;
18
+    height: 100%;
19
+}
20
+
21
+.croppie-container .cr-image {
22
+    z-index: -1;
23
+    position: absolute;
24
+    top: 0;
25
+    left: 0;
26
+    transform-origin: 0 0;
27
+    max-height: none;
28
+    max-width: none;
29
+}
30
+
31
+.croppie-container .cr-boundary {
32
+    position: relative;
33
+    overflow: hidden;
34
+    margin: 0 auto;
35
+    z-index: 1;
36
+    width: 100%;
37
+    height: 100%;
38
+}
39
+
40
+.croppie-container .cr-viewport,
41
+.croppie-container .cr-resizer {
42
+    position: absolute;
43
+    border: 2px solid #fff;
44
+    margin: auto;
45
+    top: 0;
46
+    bottom: 0;
47
+    right: 0;
48
+    left: 0;
49
+    box-shadow: 0 0 2000px 2000px rgba(0, 0, 0, 0.5);
50
+    z-index: 0;
51
+}
52
+
53
+.croppie-container .cr-resizer {
54
+  z-index: 2;
55
+  box-shadow: none;
56
+  pointer-events: none;
57
+}
58
+
59
+.croppie-container .cr-resizer-vertical,
60
+.croppie-container .cr-resizer-horisontal {
61
+  position: absolute;
62
+  pointer-events: all;
63
+}
64
+
65
+.croppie-container .cr-resizer-vertical::after,
66
+.croppie-container .cr-resizer-horisontal::after {
67
+    display: block;
68
+    position: absolute;
69
+    box-sizing: border-box;
70
+    border: 1px solid black;
71
+    background: #fff;
72
+    width: 10px;
73
+    height: 10px;
74
+    content: '';
75
+}
76
+
77
+.croppie-container .cr-resizer-vertical {
78
+  bottom: -5px;
79
+  cursor: row-resize;
80
+  width: 100%;
81
+  height: 10px;
82
+}
83
+
84
+.croppie-container .cr-resizer-vertical::after {
85
+    left: 50%;
86
+    margin-left: -5px;
87
+}
88
+
89
+.croppie-container .cr-resizer-horisontal {
90
+  right: -5px;
91
+  cursor: col-resize;
92
+  width: 10px;
93
+  height: 100%;
94
+}
95
+
96
+.croppie-container .cr-resizer-horisontal::after {
97
+    top: 50%;
98
+    margin-top: -5px;
99
+}
100
+
101
+.croppie-container .cr-original-image {
102
+    display: none;
103
+}
104
+
105
+.croppie-container .cr-vp-circle {
106
+    border-radius: 50%;
107
+}
108
+
109
+.croppie-container .cr-overlay {
110
+    z-index: 1;
111
+    position: absolute;
112
+    cursor: move;
113
+    touch-action: none;
114
+}
115
+
116
+.croppie-container .cr-slider-wrap {
117
+    width: 75%;
118
+    margin: 15px auto;
119
+    text-align: center;
120
+}
121
+
122
+.croppie-result {
123
+    position: relative;
124
+    overflow: hidden;
125
+}
126
+
127
+.croppie-result img {
128
+    position: absolute;
129
+}
130
+
131
+.croppie-container .cr-image,
132
+.croppie-container .cr-overlay,
133
+.croppie-container .cr-viewport {
134
+    -webkit-transform: translateZ(0);
135
+    -moz-transform: translateZ(0);
136
+    -ms-transform: translateZ(0);
137
+    transform: translateZ(0);
138
+}
139
+
140
+/*************************************/
141
+/***** STYLING RANGE INPUT ***********/
142
+/*************************************/
143
+/*http://brennaobrien.com/blog/2014/05/style-input-type-range-in-every-browser.html */
144
+/*************************************/
145
+
146
+.cr-slider {
147
+    -webkit-appearance: none;
148
+/*removes default webkit styles*/
149
+	/*border: 1px solid white; *//*fix for FF unable to apply focus style bug */
150
+    width: 300px;
151
+/*required for proper track sizing in FF*/
152
+    max-width: 100%;
153
+    padding-top: 8px;
154
+    padding-bottom: 8px;
155
+    background-color: transparent;
156
+}
157
+
158
+.cr-slider::-webkit-slider-runnable-track {
159
+    width: 100%;
160
+    height: 3px;
161
+    background: rgba(0, 0, 0, 0.5);
162
+    border: 0;
163
+    border-radius: 3px;
164
+}
165
+
166
+.cr-slider::-webkit-slider-thumb {
167
+    -webkit-appearance: none;
168
+    border: none;
169
+    height: 16px;
170
+    width: 16px;
171
+    border-radius: 50%;
172
+    background: #ddd;
173
+    margin-top: -6px;
174
+}
175
+
176
+.cr-slider:focus {
177
+    outline: none;
178
+}
179
+/*
180
+.cr-slider:focus::-webkit-slider-runnable-track {
181
+background: #ccc;
182
+}
183
+*/
184
+
185
+.cr-slider::-moz-range-track {
186
+    width: 100%;
187
+    height: 3px;
188
+    background: rgba(0, 0, 0, 0.5);
189
+    border: 0;
190
+    border-radius: 3px;
191
+}
192
+
193
+.cr-slider::-moz-range-thumb {
194
+    border: none;
195
+    height: 16px;
196
+    width: 16px;
197
+    border-radius: 50%;
198
+    background: #ddd;
199
+    margin-top: -6px;
200
+}
201
+
202
+/*hide the outline behind the border*/
203
+.cr-slider:-moz-focusring {
204
+    outline: 1px solid white;
205
+    outline-offset: -1px;
206
+}
207
+
208
+.cr-slider::-ms-track {
209
+    width: 100%;
210
+    height: 5px;
211
+    background: transparent;
212
+/*remove bg colour from the track, we'll use ms-fill-lower and ms-fill-upper instead */
213
+	border-color: transparent;/*leave room for the larger thumb to overflow with a transparent border */
214
+	border-width: 6px 0;
215
+	color: transparent;/*remove default tick marks*/
216
+}
217
+.cr-slider::-ms-fill-lower {
218
+	background: rgba(0, 0, 0, 0.5);
219
+	border-radius: 10px;
220
+}
221
+.cr-slider::-ms-fill-upper {
222
+	background: rgba(0, 0, 0, 0.5);
223
+	border-radius: 10px;
224
+}
225
+.cr-slider::-ms-thumb {
226
+	border: none;
227
+	height: 16px;
228
+	width: 16px;
229
+	border-radius: 50%;
230
+	background: #ddd;
231
+	margin-top:1px;
232
+}
233
+.cr-slider:focus::-ms-fill-lower {
234
+	background: rgba(0, 0, 0, 0.5);
235
+}
236
+.cr-slider:focus::-ms-fill-upper {
237
+	background: rgba(0, 0, 0, 0.5);
238
+}
239
+/*******************************************/
240
+
241
+/***********************************/
242
+/* Rotation Tools */
243
+/***********************************/
244
+.cr-rotate-controls {
245
+	position: absolute;
246
+	bottom: 5px;
247
+	left: 5px;
248
+	z-index: 1;
249
+}
250
+.cr-rotate-controls button {
251
+	border: 0;
252
+	background: none;
253
+}
254
+.cr-rotate-controls i:before {
255
+	display: inline-block;
256
+	font-style: normal;
257
+	font-weight: 900;
258
+	font-size: 22px;
259
+}
260
+.cr-rotate-l i:before {
261
+	content: '↺';
262
+}
263
+.cr-rotate-r i:before {
264
+	content: '↻';
265
+}
266
+