Skip to content

Commit

Permalink
Merge pull request #631 from artfulrobot/fix-css-layout
Browse files Browse the repository at this point in the history
Css, html fixes for selecting a template #630
  • Loading branch information
mattwire authored Jan 19, 2024
2 parents dca4b41 + f82133d commit 1fbff24
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 16 deletions.
4 changes: 2 additions & 2 deletions ang/crmMosaico/BlockDesign.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
<div class="form-inline">
<input class="form-control crm-mosaico-template-category" ng-model="mosaicoCtrl.selectedCategory" ng-change="mosaicoCtrl.categoryFilter = mosaicoCtrl.categoryFilters[mosaicoCtrl.selectedCategory].filter" crm-ui-select="{data: mosaicoCtrl.categoryFilters, placeholder: ts('All Categories')}">
</div>
<div ng-repeat="template in mosaicoCtrl.templates | filter:mosaicoCtrl.categoryFilter">
<div class="col-xs-4 col-md-3"
<div ng-repeat="template in mosaicoCtrl.templates | filter:mosaicoCtrl.categoryFilter" class="mosaico-templates-list">
<div class="col-xs-6 col-md-4"
crm-mosaico-template-item="{state:'select', title: (template.base ? template.title : template.type), subtitle: template.category, img: template.thumbnail}"
on-item-click="mosaicoCtrl.select(mailing, template)">
</div>
Expand Down
3 changes: 1 addition & 2 deletions css/mosaico-bootstrap.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 4 additions & 12 deletions sass/mosaico-crmstar/_template-item.scss
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
.crm-mosaico-template-item {
border-radius: 4px;
opacity: 1;
width: 165px;
display: flex;

&.thumbnail {
background: transparent;
Expand All @@ -41,6 +41,7 @@
}

.crm-mosaico-template-image-wrapper {
flex: 0 0 165px;
background: $crm-mosaico-template-item-wrapper;
height: 200px;
overflow: hidden;
Expand Down Expand Up @@ -87,27 +88,18 @@
//border: 1px solid $crm-mosaico-template-border;
color: $gray-darker;
font-weight: 600;
height: 60px;
line-height: 16px;
overflow: hidden;
padding: 10px 5px;
padding: 10px;
position: relative;
vertical-align: middle;
text-align: center;
text-decoration: none;
flex: 1 0 12em;

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 1fbff24

Please sign in to comment.