Skip to content

Commit 48d43a1

Browse files
committed
MOBILE-2103 overview: Fix centered course icon
1 parent 6cc4ac2 commit 48d43a1

File tree

2 files changed

+11
-6
lines changed

2 files changed

+11
-6
lines changed

www/addons/mod/quiz/scss/styles.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ p.mma-mod-quiz-warning {
4848
.mm-timer {
4949
min-height: 41px;
5050
border: 0;
51-
padding: 2px 0 1px 25px;
51+
padding: 1px 0 1px 25px;
5252

5353
.icon {
5454
left: 0;

www/core/components/courses/scss/styles.scss

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -97,16 +97,21 @@ $doughnut-text-colour: $gray-darker;
9797

9898
.icon {
9999
position: absolute;
100-
top: 50%;
101100
text-align: center;
102101
/*rtl:ignore*/
103-
left: 50%;
102+
left: -1px;
103+
top: -1px;
104+
right: 0;
105+
bottom: 0;
104106
margin: 0;
105-
transform: translate(-42%, -50%);
106107
color: $white;
107-
height: ($chart-size / 2) + 10px;
108-
width: ($chart-size / 2) + 10px;
108+
height: $chart-size;
109+
width: $chart-size;
110+
line-height: $chart-size;
109111
font-size: ($chart-size / 2) + 10px;
112+
&:before {
113+
width: $chart-size;
114+
}
110115
}
111116
}
112117
}

0 commit comments

Comments
 (0)