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

Fix dots pattern on mobile log in screen & thank you screen #240

Merged
merged 4 commits into from
Oct 18, 2023
Merged
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
55 changes: 24 additions & 31 deletions source/wp-content/themes/wporg-showcase-2022/patterns/log-in.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,39 +7,32 @@

?>

<!-- wp:cover {"dimRatio":0,"minHeight":45,"minHeightUnit":"vh","isDark":false,"align":"wide","style":{"spacing":{"padding":{"top":"0","bottom":"0","left":"0","right":"0"}}}} -->
<div class="wp-block-cover alignwide is-light" style="padding-top:0;padding-right:0;padding-bottom:0;padding-left:0;min-height:45vh">
<span aria-hidden="true" class="wp-block-cover__background has-background-dim-0 has-background-dim"></span>
<div class="wp-block-cover__inner-container">
<!-- wp:group {"align":"wide","style":{"spacing":{"blockGap":"0"}},"layout":{"type":"constrained"}} -->
<div class="wp-block-group alignwide">
<!-- wp:heading {"textAlign":"center","level":1,"align":"wide","style":{"spacing":{"margin":{"bottom":"var:preset|spacing|30"}}},"fontSize":"heading-3"} -->
<h1 class="wp-block-heading alignwide has-text-align-center has-heading-3-font-size" style="margin-bottom:var(--wp--preset--spacing--30)"><?php esc_html_e( 'Log in to submit a site', 'wporg' ); ?></h1>
<!-- /wp:heading -->
<!-- wp:group {"align":"wide","style":{"spacing":{"blockGap":"0"}},"layout":{"type":"constrained"}} -->
<div class="wp-block-group alignwide">
<!-- wp:heading {"textAlign":"center","level":1,"align":"wide","style":{"spacing":{"margin":{"bottom":"var:preset|spacing|30"}}},"fontSize":"heading-3"} -->
<h1 class="wp-block-heading alignwide has-text-align-center has-heading-3-font-size" style="margin-bottom:var(--wp--preset--spacing--30)"><?php esc_html_e( 'Log in to submit a site', 'wporg' ); ?></h1>
<!-- /wp:heading -->

<!-- wp:paragraph {"align":"center"} -->
<p class="has-text-align-center"><?php esc_html_e( 'Thanks for your interest in submitting a site to the Showcase!', 'wporg' ); ?></p>
<!-- /wp:paragraph -->
<!-- wp:paragraph {"align":"center"} -->
<p class="has-text-align-center"><?php esc_html_e( 'Thanks for your interest in submitting a site to the Showcase!', 'wporg' ); ?></p>
<!-- /wp:paragraph -->

<!-- wp:paragraph {"align":"center"} -->
<p class="has-text-align-center"><?php
printf(
/* translators: %s is the login url. */
wp_kses_post( __( '<a href="%s">Log in to your WordPress.org account</a> to continue.', 'wporg' ) ),
esc_url( wp_login_url( home_url( '/' ) . 'submit-a-wordpress-site' ) )
);
?></p>
<!-- /wp:paragraph -->
<!-- wp:paragraph {"align":"center"} -->
<p class="has-text-align-center"><?php
printf(
/* translators: %s is the login url. */
wp_kses_post( __( '<a href="%s">Log in to your WordPress.org account</a> to continue.', 'wporg' ) ),
esc_url( wp_login_url( home_url( '/' ) . 'submit-a-wordpress-site' ) )
);
?></p>
<!-- /wp:paragraph -->

<!-- wp:group {"style":{"spacing":{"margin":{"top":"var:preset|spacing|40","bottom":"var:preset|spacing|40"}}},"layout":{"type":"constrained"}} -->
<div class="wp-block-group" style="margin-top:var(--wp--preset--spacing--40);margin-bottom:var(--wp--preset--spacing--40)">
<!-- wp:image {"align":"center","sizeSlug":"large"} -->
<figure class="wp-block-image aligncenter size-large"><img src="<?php echo esc_attr( get_stylesheet_directory_uri() . '/images/star-blue.svg' ); ?>" alt=""/></figure>
<!-- /wp:image -->
</div>
<!-- /wp:group -->
</div>
<!-- /wp:group -->
<!-- wp:group {"style":{"spacing":{"margin":{"top":"var:preset|spacing|40","bottom":"var:preset|spacing|40"}}},"layout":{"type":"constrained"}} -->
<div class="wp-block-group" style="margin-top:var(--wp--preset--spacing--40);margin-bottom:var(--wp--preset--spacing--40)">
<!-- wp:image {"align":"center","sizeSlug":"large"} -->
<figure class="wp-block-image aligncenter size-large"><img src="<?php echo esc_attr( get_stylesheet_directory_uri() . '/images/star-blue.svg' ); ?>" alt=""/></figure>
<!-- /wp:image -->
</div>
<!-- /wp:group -->
</div>
<!-- /wp:cover -->
<!-- /wp:group -->
Original file line number Diff line number Diff line change
Expand Up @@ -219,24 +219,12 @@ body.page-template-page-submit-confirmation .wp-site-blocks {
color: var(--wp--preset--color--white);
}

body.page-template-page-submit-confirmation,
body.page-template-page-submit {

/* Adjust margin used to pull the header over the dots background when the font size changes. */
@media (max-width: 599px) {
.wp-block-spacer.has-dark-dots-background,
.wp-block-spacer.has-blue-dots-background {
margin-bottom: -30px !important;
}
}
}

/* Add background to spacers. These are custom classes, not attached as block styles. */
.wp-block-spacer {
&.has-dots-background,
&.has-dark-dots-background,
&.has-blue-dots-background {
background-position: top left;
background-position: top center;
background-repeat: repeat-x;
background-size: auto;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
<main class="wp-block-group" style="padding-left:var(--wp--preset--spacing--edge-space);padding-right:var(--wp--preset--spacing--edge-space)">
<!-- wp:group {"layout":{"type":"constrained","wideSize":"1760px"}} -->
<div class="wp-block-group">
<!-- wp:spacer {"height":"125px","className":"alignwide has-blue-dots-background","style":{"spacing":{"margin":{"top":"var:preset|spacing|50"}}}} -->
<div style="margin-top:var(--wp--preset--spacing--50);height:125px" aria-hidden="true" class="wp-block-spacer alignwide has-blue-dots-background"></div>
<!-- wp:spacer {"height":"125px","className":"alignwide has-blue-dots-background","style":{"spacing":{"margin":{"top":"var:preset|spacing|50","bottom":"var:preset|spacing|50"}}}} -->
<div style="margin-top:var(--wp--preset--spacing--50);margin-bottom:var(--wp--preset--spacing--50);height:125px" aria-hidden="true" class="wp-block-spacer alignwide has-blue-dots-background"></div>
<!-- /wp:spacer -->
</div>
<!-- /wp:group -->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@

<!-- wp:group {"tagName":"main","style":{"spacing":{"blockGap":"0px","padding":{"left":"var:preset|spacing|edge-space","right":"var:preset|spacing|edge-space"}}},"layout":{"type":"constrained","wideSize":"1760px"}} -->
<main class="wp-block-group" style="padding-left:var(--wp--preset--spacing--edge-space);padding-right:var(--wp--preset--spacing--edge-space)">
<!-- wp:spacer {"height":"125px","className":"alignwide has-dark-dots-background","style":{"spacing":{"margin":{"top":"var:preset|spacing|50"}}}} -->
<div style="margin-top:var(--wp--preset--spacing--50);height:125px" aria-hidden="true" class="wp-block-spacer alignwide has-dark-dots-background"></div>
<!-- wp:spacer {"height":"125px","className":"alignwide has-dark-dots-background","style":{"spacing":{"margin":{"top":"var:preset|spacing|50","bottom":"var:preset|spacing|50"}}}} -->
<div style="margin-top:var(--wp--preset--spacing--50);margin-bottom:var(--wp--preset--spacing--50);height:125px" aria-hidden="true" class="wp-block-spacer alignwide has-dark-dots-background"></div>
<!-- /wp:spacer -->

<!-- wp:post-content /-->
Expand Down
Loading