Skip to content
This repository was archived by the owner on Jun 25, 2024. It is now read-only.

Commit 37b654b

Browse files
Merge pull request #67 from silinternational/profile-review-tweak
Profile review tweak
2 parents 48d407d + 1f28983 commit 37b654b

File tree

4 files changed

+30
-12
lines changed

4 files changed

+30
-12
lines changed

dictionaries/review.definition.json

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,16 @@
77
"ko": "프로필 검토"
88
},
99
"header": {
10-
"en": "Profile review – Are these still accurate?",
11-
"es": "Revisión del perfil - ¿Siguen siendo exactos?",
12-
"fr": "Examen du profil - Sont-ils toujours exacts?",
13-
"ko": "프로필 검토 - 여전히 정확한가?"
10+
"en": "Profile review",
11+
"es": "Revisión del perfil",
12+
"fr": "Examen du profil",
13+
"ko": "프로필 검토"
14+
},
15+
"info": {
16+
"en": "Are these still correct?",
17+
"es": "¿Siguen siendo correctos?",
18+
"fr": "Sont-ils toujours corrects?",
19+
"ko": "여전히 맞습니까?"
1420
},
1521
"mfa_header": {
1622
"en": "2-Step Verification",
@@ -61,9 +67,9 @@
6167
"ko": "이들 중 일부는 업데이트해야합니다."
6268
},
6369
"button_continue": {
64-
"en": "These are still accurate",
65-
"es": "Estos siguen siendo precisos.",
66-
"fr": "Ce sont toujours précis",
70+
"en": "These are still correct",
71+
"es": "Estos siguen siendo correctos",
72+
"fr": "Ceux-ci sont toujours corrects",
6773
"ko": "이들은 여전히 정확하다."
6874
}
6975
}

themes/material/common-head-elements.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
$colors = htmlentities($this->configuration->getValue('theme.color-scheme') ?: 'indigo-purple');
3333
?>
3434
<link rel="stylesheet" href="material.<?= $colors ?>.1.2.1.min.css">
35-
<link rel="stylesheet" href="styles.2.3.3.css">
35+
<link rel="stylesheet" href="styles.2.3.4.css">
3636

3737
<script async src="material.1.2.1.min.js"></script>
3838

themes/material/profilereview/review.php

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,16 +36,22 @@ function prettifyDates() {
3636

3737
<main class="mdl-layout__content" layout-children="column">
3838
<form layout-children="column" method="post">
39+
<p>
40+
<h2 class="mdl-typography--headline">
41+
<?= $this->t('{material:review:info}') ?>
42+
</h2>
43+
</p>
44+
3945
<section layout-children="row-top" >
4046
<?php if (count($this->data['mfaOptions']) > 0): ?>
41-
<div class="mdl-card mdl-shadow--8dp">
47+
<div class="mdl-card fixed-width mdl-shadow--8dp">
4248
<div class="mdl-card__title center">
4349
<h1 class="mdl-card__title-text">
4450
<?= $this->t('{material:review:mfa_header}') ?>
4551
</h1>
4652
</div>
4753

48-
<div class="mdl-card__title center" >
54+
<div class="mdl-card__title" >
4955
<ul class="mdl-card__subtitle-text mdl-list">
5056
<?php foreach ($this->data['mfaOptions'] as $mfa): ?>
5157
<li class="mdl-list__item mdl-list__item--three-line">
@@ -74,14 +80,15 @@ function prettifyDates() {
7480
<?php endif; ?>
7581

7682
<?php if (count($this->data['methodOptions']) > 0): ?>
77-
<div class="mdl-card mdl-shadow--8dp">
83+
<!-- if there are two cards, remove the right margin so the buttons align with the edge of the card. -->
84+
<div class="mdl-card fixed-width mdl-shadow--8dp" style="<?= count($this->data['methodOptions']) == 2 ? 'margin-right: 0px' : '' ?>">
7885
<div class="mdl-card__title center">
7986
<h1 class="mdl-card__title-text">
8087
<?= $this->t('{material:review:methods_header}') ?>
8188
</h1>
8289
</div>
8390

84-
<div class="mdl-card__title center" >
91+
<div class="mdl-card__title" >
8592
<ul class="mdl-card__subtitle-text mdl-list">
8693
<?php foreach ($this->data['methodOptions'] as $method): ?>
8794
<li class="mdl-list__item mdl-list__item--two-line">
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,11 @@ i.material-icons.mdl-typography--display-4 {
137137
margin: 1em;
138138
}
139139

140+
/* cards on profile review needed to have consistent width */
141+
.mdl-card.fixed-width {
142+
width: 365px; /* takes into acocunt "... (10 remaining)" for appropriate width */
143+
}
144+
140145
/* don't want images to be too small on cards */
141146
.mdl-card__media > img {
142147
min-width: 20%;

0 commit comments

Comments
 (0)