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

Commit 410f004

Browse files
author
Billy Clark
committed
users did not like inconsistent card width for profile review
1 parent 471ec09 commit 410f004

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

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: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ function prettifyDates() {
4444

4545
<section layout-children="row-top" >
4646
<?php if (count($this->data['mfaOptions']) > 0): ?>
47-
<div class="mdl-card mdl-shadow--8dp">
47+
<div class="mdl-card fixed-width mdl-shadow--8dp">
4848
<div class="mdl-card__title center">
4949
<h1 class="mdl-card__title-text">
5050
<?= $this->t('{material:review:mfa_header}') ?>
@@ -80,7 +80,7 @@ function prettifyDates() {
8080
<?php endif; ?>
8181

8282
<?php if (count($this->data['methodOptions']) > 0): ?>
83-
<div class="mdl-card mdl-shadow--8dp">
83+
<div class="mdl-card fixed-width mdl-shadow--8dp">
8484
<div class="mdl-card__title center">
8585
<h1 class="mdl-card__title-text">
8686
<?= $this->t('{material:review:methods_header}') ?>
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)