Skip to content

Commit

Permalink
SHS-6000: Stanford login font link changes (#1705)
Browse files Browse the repository at this point in the history
* fix(shs-6000): fix stanford login font link

* fix(shs-6000): remove form_alter hook and update the formatting of su_humsci_gin_admin.portal.css

---------

Co-authored-by: Mari Nez <mariannuar@gmail.com>
Co-authored-by: Callin Mullaney <callin@mullaney.io>
  • Loading branch information
3 people authored Jan 13, 2025
1 parent e80dc37 commit 7c8efe1
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 36 deletions.
9 changes: 0 additions & 9 deletions docroot/modules/humsci/hs_admin/hs_admin.module
Original file line number Diff line number Diff line change
Expand Up @@ -128,15 +128,6 @@ function hs_admin_form_node_form_alter(&$form, FormStateInterface $form_state, $
];
}

/**
* Implements hook_form_FORM_ID_alter().
*/
function hs_admin_form_user_login_form_alter(&$form, FormStateInterface $form_state, $form_id) {
if (isset($form['saml']['#attributes']['class'])) {
$form['saml']['#attributes']['class'][] = 'simplesamlphp-auth-login-link';
}
}

/**
* After build callback for hs_admin_form_node_form_alter().
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,32 +16,6 @@
padding: 30px;
}

.simplesamlphp-auth-login-link {
display: block;
font-size: 32px;
box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12), 0 3px 1px -2px rgba(0, 0, 0, 0.2);
padding: 10px;
position: relative;
color: #b1040e;

/* stylelint-disable font-family-no-missing-generic-family-keyword */
&::after {
content: '\f054';
font-family: 'Font Awesome 5 Free';
font-weight: 900;
font-style: normal;
font-variant: normal;
text-rendering: auto;
line-height: 1;
color: #9e9e9e;
position: absolute;
top: calc(50% - 10px);
font-size: 20px;
right: 20px;
}
/* stylelint-enable font-family-no-missing-generic-family-keyword */
}

h1 {
margin: 2.1rem 0 1.68rem;
font-weight: 200;
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1,33 @@
.content-header{background:transparent;text-align:center}.content-header,.layout-container{max-width:600px;margin:0 auto}.user-login-form h1{display:none}.simplesamlphp-auth-login-link{display:inline-block;font-size:32px;padding:30px 0;position:relative;color:#b1040e}.simplesamlphp-auth-login-link::after{content:'\f054';font-family:'Font Awesome 5 Free';font-weight:900;font-style:normal;font-variant:normal;text-rendering:auto;line-height:1;color:#9e9e9e;position:absolute;top:calc(50% - 10px);font-size:20px;right:-20px}
.content-header {
background: transparent;
text-align: center;
}
.content-header,
.layout-container {
max-width: 600px;
margin: 0 auto;
}
.user-login-form h1 {
display: none;
}
.samlauth-login {
display: inline-block;
font-size: 32px;
padding: 30px 0;
position: relative;
color: #b1040e;
}
.samlauth-login::after {
content: "\f054";
font-family: "Font Awesome 5 Free";
font-weight: 900;
font-style: normal;
font-variant: normal;
text-rendering: auto;
line-height: 1;
color: #9e9e9e;
position: absolute;
top: calc(50% - 10px);
font-size: 20px;
right: -20px;
}

0 comments on commit 7c8efe1

Please sign in to comment.