Skip to content

Commit

Permalink
SAK-42750 Fixed the alignment of the banner icons so they do not look…
Browse files Browse the repository at this point in the history
… broken (sakaiproject#9320)
  • Loading branch information
fostersdesign authored Jun 10, 2021
1 parent 4be384d commit f6180cf
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
12 changes: 10 additions & 2 deletions library/src/morpheus-master/sass/base/_extendables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -64,12 +64,12 @@
@if $isInline {
display: inline-block;
margin: 0;
padding: 0 $standard-space;
padding: 0 $standard-space 0 calc(#{$standard-spacing} * 2 + 18px); // making room on either side of the icon plus the width of the icon;
} @else {
display: block;
clear: both;
margin: $standard-spacing 0;
padding: $standard-spacing;
padding: $standard-spacing $standard-spacing $standard-spacing calc(#{$standard-spacing} * 2 + 18px); // making room on either side of the icon plus the width of the icon;
}
border-left: calc( #{$standard-spacing} / 2) solid $bordercolor;
background-color: $bgcolor;
Expand All @@ -81,6 +81,9 @@
@extend .fa;
@extend .fa-fw; // fixed width icons
@extend #{$icon}; // icon passed in through mixin's parameter
position: absolute;
top: calc(50% - 7px); // half the height of the icon
left: $standard-spacing;
margin-right: $standard-space; // space between icon and message text
color: $color;
}
Expand Down Expand Up @@ -113,6 +116,11 @@
color: $color;
text-decoration: underline;
}

// remove end spacing from any paragraphs at the end of the banner
p:last-child {
margin-bottom: 0;
}
}

.sak-banner-info {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@
<%@ include file="/jsf/delivery/assessment_attachment.jsp" %>


<div class="tier2">
<div>
<h:panelGrid columns="1" border="0">
<!-- Due Message -->
<h:panelGroup rendered="#{delivery.firstTimeTaking}">
Expand Down

0 comments on commit f6180cf

Please sign in to comment.