Skip to content

Commit 363c2d7

Browse files
committed
MOBILE-1987 choice: Fix warning twice
1 parent 4ea88d5 commit 363c2d7

File tree

2 files changed

+18
-6
lines changed

2 files changed

+18
-6
lines changed

www/addons/mod/choice/templates/index.html

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,6 @@
5555
<div class="item item-divider">
5656
<h3>{{ 'mma.mod_choice.responses' | translate }}</h3>
5757
</div>
58-
<div class="mm-warning" ng-if="hasOffline">
59-
<i class="icon ion-alert-circled padding"></i> {{ 'mma.mod_choice.resultsnotsynced' | translate }}
60-
</div>
6158
<div class="row row-no-padding responsive-md">
6259
<div class="col col-33">
6360
<div class="mm-warning" ng-if="hasOffline">

www/core/scss/styles.scss

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -594,10 +594,25 @@ p.mm-error {
594594
box-shadow: $card-box-shadow;
595595
margin: 20px 10px;
596596
background-color: #fff;
597+
position: relative;
598+
padding-left: $item-padding * 3;
599+
text-align: left;
597600

598-
i.icon:before {
599-
color: $mm-warning-color;
600-
font-size: 125%;
601+
i.icon {
602+
@include display-flex();
603+
@include align-items(center);
604+
position: absolute;
605+
top: 0;
606+
height: 100%;
607+
font-size: ceil(($item-icon-font-size / 4) * 3);
608+
left: ceil($item-padding / 4);
609+
color: $mm-warning-color;
610+
611+
&:before {
612+
display: block;
613+
width: ceil(($item-icon-font-size / 4) * 3);
614+
text-align: center;
615+
}
601616
}
602617
}
603618

0 commit comments

Comments
 (0)