Skip to content

Commit

Permalink
refined mainImage section to account for responsiveness fixes #842 (#843
Browse files Browse the repository at this point in the history
)

* 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 <jeff@unterbahn.com>
  • Loading branch information
NARUDESIGNS and jywarren authored Mar 15, 2022
1 parent 0b98fbb commit 1eb788a
Showing 1 changed file with 62 additions and 5 deletions.
67 changes: 62 additions & 5 deletions dist/PublicLab.Editor.css
Original file line number Diff line number Diff line change
Expand Up @@ -320,6 +320,53 @@ https://github.com/sliptree/bootstrap-tokenfield/pull/287 */
background-color: #007bff !important;
}

@media (max-width: 992px) {
.ple-module-main_image .ple-module-guide {
display: flex !important;
align-items: flex-start !important;
width: 100% !important;
gap: 30px !important;
}
.ple-image_module_guide {
max-width: 100% !important;
}
.ple-module-main_image {
flex-direction: column;
}
.module-mainImage {
padding: 0;
align-items: flex-start;
flex: 50% 50%;
}
.mainImageBox {
margin-bottom: 30px;
}
.mainImageBox .ple-drag-drop {
background: url(/i/45384);
background-repeat: no-repeat !important;
border-color: rgb(204, 204, 204);
background-size: cover !important;
background-position: center !important;
height: 200px;
width: 100% !important;
}
#imageButtons .thumbnailBtn {
padding: 0.5rem 1rem;
font-size: 1.25rem;
line-height: 1.5;
border-radius: 0.3rem;
color: #6c757d;
border-color: #6c757d;
margin-bottom: 10px;
width: 100%;
}
#imageButtons .thumbnailBtn:hover {
color: #fff;
background-color: #6c757d;
border-color: #6c757d;
}
}

@media (max-width: 550px) {
.ple-module-content a.btn {
font-size: 0px !important;
Expand All @@ -330,14 +377,24 @@ https://github.com/sliptree/bootstrap-tokenfield/pull/287 */
.module-mainImage {
flex-direction: column;
}
.thumbnailBtn {
width: 120px;
}
#imageButtons {
flex-direction: row;
justify-content: space-between;
}
.mainImageBox {
width: auto;
width: 100%;
}
}
.ple-module-main_image {
flex-direction: column;
}
.ple-image_module_guide {
max-width: 100% !important;
}
.ple-module-content .help {
margin-top: 25px;
padding: 0;
}
#imageButtons {
flex-direction: column;
}
}

0 comments on commit 1eb788a

Please sign in to comment.