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

Fixed view of Redirection and Subscription Pages for Mobile #169

Merged
merged 4 commits into from
Mar 8, 2024
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
12 changes: 7 additions & 5 deletions css/card-slider.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion css/card-slider.css.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions css/redirect.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion css/redirect.css.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 7 additions & 5 deletions scss/card-slider.scss
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@

.pp-card-slider {
margin: 0 -40px;
overflow: hidden;
}

.pp-card-container {
Expand Down Expand Up @@ -63,15 +64,16 @@
box-shadow: 0 0 10px rgba(0, 0, 0, .1);
color: #81cf1f;
content: '';
line-height: 40px;
font-size: clamp(10px, 3vw, 1.2em);
line-height: clamp(10px, 6vw, 40px);
opacity: 0;
position: absolute;
top: 20px;
right: 20px;
text-align: center;
transition: opacity .2s;
width: 40px;
height: 40px;
width: clamp(10px, 6vw, 40px);
height: clamp(10px, 6vw, 40px);

&::after {
content: '✓';
Expand Down Expand Up @@ -100,15 +102,15 @@
}

.pp-card__label {
font-size: 14px;
font-size: clamp(10px, 2.5vw, 14px);
font-weight: normal;
opacity: .6;
margin: 0;
}

.pp-card__value {
font-family: 'Roboto Mono';
font-size: 20px;
font-size: clamp(8px, 3vw, 20px);
margin: 0;
}

Expand Down
9 changes: 8 additions & 1 deletion scss/redirect.scss
Original file line number Diff line number Diff line change
Expand Up @@ -99,11 +99,18 @@ body {
font-size: 1.25em;
font-weight: 300;
letter-spacing: .05rem;
white-space: normal;

&:hover {
background-color: $wp-button-primary-background-hover-color;
}
}

@media (max-width: 600px) {
input[type="submit"] {
font-size: 3.5vw;
}
}
}

hr {
Expand Down Expand Up @@ -135,4 +142,4 @@ hr {

.alignleft {
text-align: left;
}
}
2 changes: 2 additions & 0 deletions views/redirect-via-html.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@
<head>
<meta charset="<?php bloginfo( 'charset' ); ?>" />

<meta name="viewport" content="width=device-width, initial-scale=1.0">

<title><?php esc_html_e( 'Redirecting…', 'pronamic_ideal' ); ?></title>

<?php wp_print_styles( 'pronamic-pay-redirect' ); ?>
Expand Down
2 changes: 2 additions & 0 deletions views/subscription-cancel.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@
<head>
<meta charset="<?php bloginfo( 'charset' ); ?>" />

<meta name="viewport" content="width=device-width, initial-scale=1.0">

<title><?php esc_html_e( 'Subscription Cancellation', 'pronamic_ideal' ); ?></title>

<?php wp_print_styles( 'pronamic-pay-redirect' ); ?>
Expand Down
2 changes: 2 additions & 0 deletions views/subscription-mandate-failed.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@
<head>
<meta charset="<?php bloginfo( 'charset' ); ?>" />

<meta name="viewport" content="width=device-width, initial-scale=1.0">

<title><?php esc_html_e( 'Subscription Mandate', 'pronamic_ideal' ); ?></title>

<?php wp_print_styles( 'pronamic-pay-redirect' ); ?>
Expand Down
2 changes: 2 additions & 0 deletions views/subscription-mandate-updated.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@
<head>
<meta charset="<?php bloginfo( 'charset' ); ?>" />

<meta name="viewport" content="width=device-width, initial-scale=1.0">

<title><?php esc_html_e( 'Subscription Mandate', 'pronamic_ideal' ); ?></title>

<?php wp_print_styles( 'pronamic-pay-redirect' ); ?>
Expand Down
2 changes: 2 additions & 0 deletions views/subscription-mandate.php
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,8 @@
<head>
<meta charset="<?php bloginfo( 'charset' ); ?>" />

<meta name="viewport" content="width=device-width, initial-scale=1.0">

<title><?php esc_html_e( 'Change subscription payment method', 'pronamic_ideal' ); ?></title>

<?php wp_print_styles( 'pronamic-pay-subscription-mandate' ); ?>
Expand Down
2 changes: 2 additions & 0 deletions views/subscription-renew-failed.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@
<head>
<meta charset="<?php bloginfo( 'charset' ); ?>" />

<meta name="viewport" content="width=device-width, initial-scale=1.0">

<title><?php esc_html_e( 'Subscription Renewal', 'pronamic_ideal' ); ?></title>

<?php wp_print_styles( 'pronamic-pay-redirect' ); ?>
Expand Down
2 changes: 2 additions & 0 deletions views/subscription-renew.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@
<head>
<meta charset="<?php bloginfo( 'charset' ); ?>" />

<meta name="viewport" content="width=device-width, initial-scale=1.0">

<title><?php esc_html_e( 'Subscription Renewal', 'pronamic_ideal' ); ?></title>

<?php wp_print_styles( 'pronamic-pay-redirect' ); ?>
Expand Down
Loading