Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ACMS-2007: Add install-page library in Acquia CMS Common module. #1660

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions modules/acquia_cms_common/acquia_cms_common.libraries.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,8 @@ pnf_style:
css:
component:
assets/style/pnf_style.css: {}

install-page:
css:
theme:
css/install-page.css: { }
2 changes: 1 addition & 1 deletion modules/acquia_cms_common/acquia_cms_common.module
Original file line number Diff line number Diff line change
Expand Up @@ -396,7 +396,7 @@ function acquia_cms_common_modules_installed($modules, $is_syncing) {
* @see template_preprocess_maintenance_page()
*/
function acquia_cms_common_preprocess_maintenance_page(array &$variables) {
$variables['#attached']['library'][] = 'acquia_claro/install-page';
$variables['#attached']['library'][] = 'acquia_cms_common/install-page';
$acquia_cms_path = \Drupal::service('extension.list.module')->getPath('acquia_cms_common');
$variables['install_page_logo_path'] = '/' . $acquia_cms_path . '/acquia_cms.png';
}
Expand Down
44 changes: 44 additions & 0 deletions modules/acquia_cms_common/css/install-page.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
.banner-title-img {
display: flex;
align-items: center;
}
.banner-title-img .page-title {
color: #168ec4;
padding-bottom: 10px;
margin: 0.5em 1.9em 0.1em 0.2em;
}
.banner-title-img img {
height: 36px;
}
.powered-by {
display: block;
margin-bottom: 24px;
}
.site-version {
margin-left: 10px;
}
.button--primary {
border-radius: 0;
padding: 15px 33px;
}
.form-type-select select:focus,
select:hover {
padding-right: 1.9375rem;
background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 9'%3E%3Cpath fill='none' stroke-width='1.5' d='M1 1L7 7L13 1' stroke='%23545560'/%3E%3C/svg%3E%0A") no-repeat 100% 50%;
background-size: 2.75rem 0.5625rem;
}
.is-initial.is-password-empty .password-strength__title {
margin: 0;
line-height: 1;
}
@media all and (min-width: 48em) { /* 768px */
.install-page .banner-title-img .page-title {
padding-bottom: 5px;
}
}
@media screen and (max-width: 600px) {
.form-actions input,
.form-wrapper input[type="submit"] {
padding-bottom: 15px;
}
}