Skip to content

Commit

Permalink
Fix #630
Browse files Browse the repository at this point in the history
  • Loading branch information
artfulrobot committed Feb 29, 2024
1 parent dd0fff1 commit 7d61d37
Showing 1 changed file with 18 additions and 19 deletions.
37 changes: 18 additions & 19 deletions sass/mosaico-bootstrap/_template-item.scss
Original file line number Diff line number Diff line change
@@ -1,26 +1,31 @@
.crm-mosaico-selected.center-block {

#bootstrap-theme .crm-mosaico-selected.center-block {
float: none;

.crm-mosaico-template-item {

.crm-mosaico-template-image-wrapper {
height: 275px;
}

}
}

.crm-mosaico-template-item {
background: $crm-mosaico-template-item;
border: 2px solid $crm-white;
border-radius: 4px;
margin: auto;
opacity: 1;
width: 165px;
margin-bottom: 30px;
.mosaico-templates-list {
margin-top: 2rem;
}
#bootstrap-theme .crm-mosaico-template-item {

// Override a very general #bootstrap-theme.thumbnail rule
&.thumbnail {
padding: 0;
display: flex;
width: 100%;
background: $crm-mosaico-template-item;
border: 2px solid $crm-white;
border-radius: 4px;
margin: auto;
opacity: 1;
margin-bottom: 30px;
}

&:hover {
Expand All @@ -38,9 +43,10 @@

.crm-mosaico-template-image-wrapper {
background: $crm-mosaico-template-item-wrapper;
height: 200px;
flex: 0 0 160px;
overflow: hidden;
position: relative;
height: 275px;

img {
height: auto !important;
Expand Down Expand Up @@ -85,21 +91,14 @@
padding: 10px 5px;
position: relative;
vertical-align: middle;
text-align: center;
text-decoration: none;
flex: 1 0 160px;

small {
display: block;
font-weight: 400;
margin-top: 3px;
}

p {
left: 50%;
position: absolute;
top: 50%;
transform: translate(-50%, -50%);
width: 160px;
}
}
}

0 comments on commit 7d61d37

Please sign in to comment.