Skip to content

Commit 1eb788a

Browse files
refined mainImage section to account for responsiveness fixes #842 (#843)
* refined mainImage section to account for responsiveness * refined main image section UI * refined image UI section and accounted for tablet views * refined image UI section and accounted for tablet views Co-authored-by: Jeffrey Warren <[email protected]>
1 parent 0b98fbb commit 1eb788a

File tree

1 file changed

+62
-5
lines changed

1 file changed

+62
-5
lines changed

dist/PublicLab.Editor.css

Lines changed: 62 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -320,6 +320,53 @@ https://github.com/sliptree/bootstrap-tokenfield/pull/287 */
320320
background-color: #007bff !important;
321321
}
322322

323+
@media (max-width: 992px) {
324+
.ple-module-main_image .ple-module-guide {
325+
display: flex !important;
326+
align-items: flex-start !important;
327+
width: 100% !important;
328+
gap: 30px !important;
329+
}
330+
.ple-image_module_guide {
331+
max-width: 100% !important;
332+
}
333+
.ple-module-main_image {
334+
flex-direction: column;
335+
}
336+
.module-mainImage {
337+
padding: 0;
338+
align-items: flex-start;
339+
flex: 50% 50%;
340+
}
341+
.mainImageBox {
342+
margin-bottom: 30px;
343+
}
344+
.mainImageBox .ple-drag-drop {
345+
background: url(/i/45384);
346+
background-repeat: no-repeat !important;
347+
border-color: rgb(204, 204, 204);
348+
background-size: cover !important;
349+
background-position: center !important;
350+
height: 200px;
351+
width: 100% !important;
352+
}
353+
#imageButtons .thumbnailBtn {
354+
padding: 0.5rem 1rem;
355+
font-size: 1.25rem;
356+
line-height: 1.5;
357+
border-radius: 0.3rem;
358+
color: #6c757d;
359+
border-color: #6c757d;
360+
margin-bottom: 10px;
361+
width: 100%;
362+
}
363+
#imageButtons .thumbnailBtn:hover {
364+
color: #fff;
365+
background-color: #6c757d;
366+
border-color: #6c757d;
367+
}
368+
}
369+
323370
@media (max-width: 550px) {
324371
.ple-module-content a.btn {
325372
font-size: 0px !important;
@@ -330,14 +377,24 @@ https://github.com/sliptree/bootstrap-tokenfield/pull/287 */
330377
.module-mainImage {
331378
flex-direction: column;
332379
}
333-
.thumbnailBtn {
334-
width: 120px;
335-
}
336380
#imageButtons {
337381
flex-direction: row;
338382
justify-content: space-between;
339383
}
340384
.mainImageBox {
341-
width: auto;
385+
width: 100%;
342386
}
343-
}
387+
.ple-module-main_image {
388+
flex-direction: column;
389+
}
390+
.ple-image_module_guide {
391+
max-width: 100% !important;
392+
}
393+
.ple-module-content .help {
394+
margin-top: 25px;
395+
padding: 0;
396+
}
397+
#imageButtons {
398+
flex-direction: column;
399+
}
400+
}

0 commit comments

Comments
 (0)