Skip to content

Commit

Permalink
MDL-60700 calendar: remove bottom margin for description in summary
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanwyllie committed Nov 7, 2017
1 parent 8926030 commit f0fc8a1
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 2 deletions.
3 changes: 2 additions & 1 deletion calendar/templates/event_summary_body.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
}
}}
<div{{!
}} class="summary-modal-container"{{!
}} data-region="summary-modal-container"{{!
}} data-event-id="{{id}}"{{!
}} data-event-title="{{name}}"{{!
Expand All @@ -49,7 +50,7 @@
{{#description}}
<div class="row m-t-1">
<div class="col-xs-1">{{#pix}} i/calendareventdescription, core, {{#str}} description {{/str}} {{/pix}}</div>
<div class="col-xs-11">{{{.}}}</div>
<div class="description-content col-xs-11">{{{.}}}</div>
</div>
{{/description}}
{{#isactionevent}}
Expand Down
8 changes: 8 additions & 0 deletions theme/boost/scss/moodle/calendar.scss
Original file line number Diff line number Diff line change
Expand Up @@ -417,3 +417,11 @@ table.calendartable caption {
display: block;
}
}

.summary-modal-container {
.description-content {
> p {
margin: 0;
}
}
}
8 changes: 8 additions & 0 deletions theme/bootstrapbase/less/moodle/calendar.less
Original file line number Diff line number Diff line change
Expand Up @@ -409,3 +409,11 @@
.calendarwrapper {
position: relative;
}

.summary-modal-container {
.description-content {
> p {
margin: 0;
}
}
}
3 changes: 3 additions & 0 deletions theme/bootstrapbase/style/moodle.css
Original file line number Diff line number Diff line change
Expand Up @@ -5908,6 +5908,9 @@ img.iconsmall {
.calendarwrapper {
position: relative;
}
.summary-modal-container .description-content > p {
margin: 0;
}
/* course.less */
/* COURSE CONTENT */
/* stylelint-disable unit-blacklist */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
}
}}
<div{{!
}} class="summary-modal-container"{{!
}} data-region="summary-modal-container"{{!
}} data-event-id="{{id}}"{{!
}} data-event-title="{{name}}"{{!
Expand All @@ -49,7 +50,7 @@
{{#description}}
<div class="row-fluid m-t-1">
<div class="span1">{{#pix}} i/calendareventdescription, core, {{#str}} description {{/str}} {{/pix}}</div>
<div class="span11">{{{.}}}</div>
<div class="description-content span11">{{{.}}}</div>
</div>
{{/description}}
{{#iscategoryevent}}
Expand Down

0 comments on commit f0fc8a1

Please sign in to comment.