Skip to content

Commit 99ef1d8

Browse files
committed
Improve IdPs section in discopower
1 parent 6fcbd39 commit 99ef1d8

2 files changed

Lines changed: 16 additions & 9 deletions

File tree

themes/ssp/discopower/disco-tpl.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -193,12 +193,12 @@ function getTranslatedName($t, $metadata) {
193193
}
194194
else if($tab == "idps_with_logos") {
195195
$idps_with_logos_index = array_search($tab, array_keys($this->data['idplist']));
196-
$top = '<div class="row ssp-content-group">
196+
$top = '<div class="row ssp-content-group"><div class="col-sm-12">
197197
';
198-
$list_open = '<div class="col-sm-12"><div class="metalist ssp-content-group__provider-list ssp-content-group__provider-list--other">';
198+
$list_open = '<div class="metalist ssp-content-group__provider-list ssp-content-group__provider-list--other js-idps">';
199199
$list_items = '';
200-
$close_list = '</div>';
201-
$close = '</div></div>'; // /metalist /ssp-content-group /row
200+
$close_list = '</div>'; // /metalist
201+
$close = '</div></div>'; // /ssp-content-group /col-sm-12
202202
if (!empty($this->data['preferredidp']) && array_key_exists($this->data['preferredidp'], $slist)) {
203203
$idpentry = $slist[$this->data['preferredidp']];
204204
$list_items .= (showEntry($this, $idpentry, TRUE, TRUE));
@@ -210,11 +210,11 @@ function getTranslatedName($t, $metadata) {
210210
}
211211
}
212212
if($idps_in_searchable_list_index < $idps_with_logos_index) {
213-
$or = '<div class="col-sm-12"><div class="col-sm-12 text-center ssp-line-or-line ssp-line-or-line--top"><span class="ssp-line-or-line__or">' . $this->t('{themevanilla:discopower:or}') . '</span></div>';
213+
$or = '<div class="text-center ssp-line-or-line ssp-line-or-line--top"><span class="ssp-line-or-line__or">' . $this->t('{themevanilla:discopower:or}') . '</span></div>';
214214
echo $top . $or . $list_open . $list_items . $close_list . $close;
215215
}
216216
else {
217-
$or = '<div class="col-sm-12 text-center ssp-line-or-line ssp-line-or-line--bottom"><span class="ssp-line-or-line__or">' . $this->t('{themevanilla:discopower:or}') . '</span></div>';
217+
$or = '<div class="text-center ssp-line-or-line ssp-line-or-line--bottom"><span class="ssp-line-or-line__or">' . $this->t('{themevanilla:discopower:or}') . '</span></div>';
218218
echo $top . $list_open . $list_items . $close_list . $or . $close;
219219
}
220220
}

www/resources/sass/_extra.scss

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -276,8 +276,11 @@ h4 {
276276
position: relative;
277277
padding: 6px;
278278
background-color: $denim;
279-
margin-right: 18px;
279+
margin-right: 9px;
280+
margin-left: 9px;
280281
border: 1px solid;
282+
min-width: 145px;
283+
text-align: center;
281284
&:hover, &:focus {
282285
color: $white;
283286
text-decoration: none;
@@ -289,13 +292,16 @@ h4 {
289292
}
290293
}
291294
&__icon-no-label {
295+
text-align: center;
292296
color: $white;
293297
display: inline-block;
294298
position: relative;
295299
padding: 0px 6px;
296300
background-color: $denim;
297-
margin-right: 18px;
301+
margin-right: 9px;
302+
margin-left: 9px;
298303
border: 1px solid;
304+
min-width: 145px;
299305
&:hover, &:focus {
300306
color: $white;
301307
text-decoration: none;
@@ -358,7 +364,8 @@ h4 {
358364
}
359365
}
360366
&--other {
361-
margin: 2px 6px 2px 54px;
367+
margin: 2px 0px 2px 46px;
368+
text-align: center;
362369
}
363370
}
364371
}

0 commit comments

Comments
 (0)