Skip to content

Commit 205c6a9

Browse files
committed
New release :D with single-tile view (Set limit to 1 and tile view)
1 parent d246888 commit 205c6a9

17 files changed

+1919
-17
lines changed

package-lock.json

+725
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@
1818
"grunt-umbraco-package": "1.0.0",
1919
"grunt-contrib-clean": "^0.7.0"
2020
}
21-
}
21+
}
785 KB
Binary file not shown.
29.4 KB
Binary file not shown.
Binary file not shown.
Binary file not shown.

src/.vs/config/applicationhost.config

+1,031
Large diffs are not rendered by default.

src/Skybrud.ImagePicker/App_Plugins/Skybrud.ImagePicker/Directives/ImagePicker.js

+6
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,12 @@
9191
if (!scope.cfg.image.width) scope.cfg.image.width = 250;
9292
if (!scope.cfg.image.height) scope.cfg.image.height = scope.cfg.image.width / 16 * 10;
9393

94+
//Single image size change
95+
if (scope.cfg.limit == 1 && scope.cfg.layout.initial == 'tiles') {
96+
scope.cfg.image.width = 1000;
97+
scope.cfg.image.height = scope.cfg.image.width / 16 * 10;
98+
}
99+
94100
if (!scope.cfg.layout) scope.cfg.layout = {};
95101
if (scope.cfg.layout.initial != 'tiles') scope.cfg.layout.initial = 'list';
96102
if (!scope.cfg.layout.hideSelector) scope.cfg.layout.hideSelector = false;

src/Skybrud.ImagePicker/App_Plugins/Skybrud.ImagePicker/Styles/ImagePicker.css

+34-2
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,11 @@
8686
border: 1px solid #d9d9d9;
8787
background: #F8F8F8;
8888
}
89+
.SkybrudImagePicker .SkybrudImagePickerTiles .tile.tile-item.single-tile {
90+
width: 99% !important;
91+
max-width: 99% !important;
92+
min-height: 350px;
93+
}
8994
.SkybrudImagePicker .SkybrudImagePickerTiles .tile.tile-add {
9095
margin-bottom: 10px;
9196
width: 250px;
@@ -99,6 +104,26 @@
99104
min-height: 175px;
100105
padding: 4px;
101106
}
107+
.SkybrudImagePicker .SkybrudImagePickerTiles .tile.tile-add.single-add {
108+
margin: 0 auto;
109+
width: 99% !important;
110+
max-width: 99% !important;
111+
height: 250px;
112+
border: 4px dashed #d9d9d9;
113+
}
114+
.SkybrudImagePicker .SkybrudImagePickerTiles .tile.tile-add.single-add .help-text {
115+
font-size: 24px;
116+
font-weight: bold;
117+
color: #666;
118+
position: absolute;
119+
top: 70%;
120+
left: 0;
121+
right: 0;
122+
margin-top: -10px;
123+
}
124+
.SkybrudImagePicker .SkybrudImagePickerTiles .tile.tile-add.single-add i {
125+
font-size: 64px !important;
126+
}
102127
.SkybrudImagePicker .SkybrudImagePickerTiles .tile.tile-add i {
103128
font-size: 32px;
104129
position: absolute;
@@ -164,6 +189,13 @@
164189
.SkybrudImagePicker .image:hover .remove {
165190
display: block;
166191
}
192+
.SkybrudImagePicker .single-tile .image {
193+
overflow: hidden;
194+
height: 250px;
195+
}
196+
.SkybrudImagePicker .single-tile img {
197+
width: 100%;
198+
}
167199
.SkybrudImagePicker .ui-sortable-helper {
168200
display: none;
169201
}
@@ -203,7 +235,7 @@
203235
font-size: 14px;
204236
}
205237
.show-validation.ng-invalid .SkybrudImagePicker .umb-table-cell > .error {
206-
background-color: #9d261d!important;
238+
background-color: #9d261d !important;
207239
padding: 5px 10px;
208240
color: white;
209241
}
@@ -319,4 +351,4 @@
319351
}
320352
.ImagePickerDebugger label + label {
321353
margin-top: 10px;
322-
}
354+
}

src/Skybrud.ImagePicker/App_Plugins/Skybrud.ImagePicker/Styles/ImagePicker.less

+53-5
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,12 @@
8181
&.tile-item {
8282
border: 1px solid #d9d9d9;
8383
background: #F8F8F8;
84+
85+
&.single-tile {
86+
width: 99% !important;
87+
max-width: 99% !important;
88+
min-height: 350px;
89+
}
8490
}
8591

8692
&.tile-add {
@@ -96,6 +102,29 @@
96102
min-height: 175px;
97103
padding: 4px;
98104

105+
&.single-add {
106+
margin: 0 auto;
107+
width: 99% !important;
108+
max-width: 99% !important;
109+
height: 250px;
110+
border: 4px dashed #d9d9d9;
111+
112+
.help-text {
113+
font-size: 24px;
114+
font-weight: bold;
115+
color: #666;
116+
position: absolute;
117+
top: 70%;
118+
left: 0;
119+
right: 0;
120+
margin-top: -10px;
121+
}
122+
123+
i {
124+
font-size: 64px !important;
125+
}
126+
}
127+
99128
i {
100129
font-size: 32px;
101130
position: absolute;
@@ -152,7 +181,6 @@
152181
border: 1px solid #ccc;
153182
}
154183
}
155-
156184
}
157185

158186
.image {
@@ -180,6 +208,17 @@
180208
display: block;
181209
}
182210
}
211+
212+
.single-tile {
213+
.image {
214+
overflow: hidden;
215+
height: 250px;
216+
}
217+
218+
img {
219+
width: 100%;
220+
}
221+
}
183222
/*.sortable-helper {
184223
border: inherit;
185224
background-color: #d0e7f1 !important;
@@ -234,9 +273,10 @@
234273
}
235274

236275
.show-validation.ng-invalid & .umb-table-cell > .error {
237-
background-color: #9d261d!important;
276+
background-color: #9d261d !important;
238277
padding: 5px 10px;
239278
color: white;
279+
240280
&:before {
241281
margin-right: 5px;
242282
font-family: 'icomoon';
@@ -252,6 +292,7 @@
252292
border: 1px solid #9d261d;
253293
box-sizing: border-box;
254294
}
295+
255296
&.link .error a {
256297
color: #9d261d;
257298
}
@@ -307,6 +348,7 @@
307348
position: static;
308349
height: auto;
309350
margin: 0;
351+
310352
&:after, &:before {
311353
display: none;
312354
}
@@ -316,13 +358,16 @@
316358

317359
.option {
318360
margin-left: 20px;
361+
319362
.value {
320363
padding: 10px 5px;
321364
}
365+
322366
&.checkbox {
323367
padding: 0;
324368
min-height: initial;
325369
padding-bottom: 5px;
370+
326371
.value {
327372
padding-left: 10px;
328373
}
@@ -351,11 +396,12 @@
351396
.value input[type='number'] {
352397
width: initial;
353398
}
354-
399+
355400
.option.width,
356401
.option.height {
357402
.value {
358403
line-height: 30px;
404+
359405
input[type='number'] {
360406
width: 50px;
361407
}
@@ -376,23 +422,25 @@
376422
font-weight: bold;
377423
border-bottom: 1px solid #D9D9D9;
378424
}
425+
379426
& + .optionGroup {
380427
margin-top: 40px;
381428
}
382429
}
383-
384430
}
385431

386432
.ImagePickerDebugger {
387433
border: 2px solid red;
388434
margin-bottom: 20px;
389435
padding: 10px;
436+
390437
label {
391438
display: block;
392439
margin: 5px 0 0 0;
393440
padding: 0;
394441
}
442+
395443
label + label {
396444
margin-top: 10px;
397445
}
398-
}
446+
}

src/Skybrud.ImagePicker/App_Plugins/Skybrud.ImagePicker/Styles/ImagePicker.min.css

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)