@@ -56,30 +56,16 @@ function setSelectedIdp(id) {
5656 $ name = htmlspecialchars ($ this ->t ($ idp ['name ' ]));
5757 $ idpId = htmlspecialchars ($ idp ['entityid ' ]);
5858 ?>
59- <div class="mdl-card mdl-shadow--8dp margin">
59+ <div class="mdl-card mdl-shadow--8dp row-aware"
60+ title="<?= $ this ->t ('{material:selectidp:logo} ' , ['{idpName} ' => $ name ]) ?> ">
6061 <div class="mdl-card__media white-bg fixed-height">
61- <button class="mdl-button fill-parent no-padding " value="<?= $ name ?> "
62+ <button class="mdl-button fill-parent" value="<?= $ name ?> "
6263 onclick="setSelectedIdp('<?= $ idpId ?> ')">
63- <img src="<?= empty ($ idp ['logoURL ' ]) ? '/module.php/material/default-logo.png '
64+ <img class="scale-to-parent"
65+ src="<?= empty ($ idp ['logoURL ' ]) ? '/module.php/material/default-logo.png '
6466 : $ idp ['logoURL ' ] ?> ">
6567 </button>
6668 </div>
67- <div class="mdl-card__actions mdl-card--border">
68- <button class="mdl-button mdl-button--colored fill-parent"
69- value="<?= $ name ?> "
70- onclick="setSelectedIdp('<?= $ idpId ?> ')">
71- <!-- div added because of https://github.com/philipwalton/flexbugs#9-some-html-elements-cant-be-flex-containers
72- TODO: move properties to button and remove div if
73- these bugs are resolved. -->
74- <div layout-children="row" child-spacing="space-between">
75- <span>
76- <?= $ this ->t ('{material:selectidp:button_login} ' , ['{idpName} ' => $ name ]) ?>
77- </span>
78-
79- <i class="material-icons">exit_to_app</i>
80- </div>
81- </button>
82- </div>
8369 </div>
8470 <?php
8571 }
@@ -88,14 +74,14 @@ function setSelectedIdp(id) {
8874 <?php
8975 foreach ($ disabledIdps as $ idp ) {
9076 ?>
91- <div class="mdl-card mdl-shadow--2dp margin disabled" title="Planned for a future release.">
92- <div class="mdl-card__media white-bg fixed-height" layout-children="row" child-spacing="center">
93- <img src="<?= empty ($ idp ['logoURL ' ]) ? '/module.php/material/default-logo.png '
77+ <div class="mdl-card mdl-shadow--2dp disabled row-aware"
78+ title="<?= $ this ->t ('{material:selectidp:future} ' ) ?> ">
79+ <div class="mdl-card__media white-bg fixed-height" layout-children="row"
80+ child-spacing="center">
81+ <img class="scale-to-parent"
82+ src="<?= empty ($ idp ['logoURL ' ]) ? '/module.php/material/default-logo.png '
9483 : $ idp ['logoURL ' ] ?> ">
9584 </div>
96- <div class="mdl-card__supporting-text" layout-children="row" child-spacing="center">
97- <?= $ this ->t ('{material:selectidp:button_login_disabled} ' ) ?>
98- </div>
9985 </div>
10086 <?php
10187 }
0 commit comments