Skip to content

Commit 0ef7165

Browse files
manage-banner: minor style change
1 parent eccf693 commit 0ef7165

9 files changed

+55
-18
lines changed

class.jetpack.php

+9-10
Original file line numberDiff line numberDiff line change
@@ -2330,20 +2330,19 @@ function admin_connect_notice() {
23302330
?>
23312331
<div id="message" class="updated jetpack-message jp-banner" style="display:block !important;">
23322332
<a class="jp-banner__dismiss" href="<?php echo esc_url( $dismiss_and_deactivate_url ); ?>" title="<?php esc_attr_e( 'Dismiss this notice and deactivate Jetpack.', 'jetpack' ); ?>"></a>
2333-
<div class="jp-banner__content">
2334-
<?php if ( in_array( Jetpack_Options::get_option( 'activated' ) , array( 1, 2, 3 ) ) ) : ?>
2333+
<?php if ( in_array( Jetpack_Options::get_option( 'activated' ) , array( 1, 2, 3 ) ) ) : ?>
2334+
<div class="jp-banner__content is-connection">
23352335
<h4><?php _e( 'Your Jetpack is almost ready!', 'jetpack' ); ?></h4>
23362336
<p><?php _e( 'Connect now to enable features like Stats, Likes, and Social Sharing.', 'jetpack' ); ?></p>
2337-
<?php else : ?>
2338-
<h4><?php _e( 'Jetpack is installed!', 'jetpack' ) ?></h4>
2339-
<p><?php _e( 'It\'s ready to bring awesome, WordPress.com cloud-powered features to your site.', 'jetpack' ) ?></p>
2340-
<?php endif; ?>
2341-
</div>
2342-
<?php if ( in_array( Jetpack_Options::get_option( 'activated' ) , array( 1, 2, 3 ) ) ) : ?>
2343-
<div class="jp-banner__action-container is-full-width">
2337+
</div>
2338+
<div class="jp-banner__action-container is-connection">
23442339
<a href="<?php echo $this->build_connect_url() ?>" class="jp-banner__button" id="wpcom-connect"><?php _e( 'Connect to WordPress.com', 'jetpack' ); ?></a>
23452340
</div>
23462341
<?php else : ?>
2342+
<div class="jp-banner__content">
2343+
<h4><?php _e( 'Jetpack is installed!', 'jetpack' ) ?></h4>
2344+
<p><?php _e( 'It\'s ready to bring awesome, WordPress.com cloud-powered features to your site.', 'jetpack' ) ?></p>
2345+
</div>
23472346
<div class="jp-banner__action-container">
23482347
<a href="<?php echo Jetpack::admin_url() ?>" class="jp-banner__button" id="wpcom-connect"><?php _e( 'Learn More', 'jetpack' ); ?></a>
23492348
</div>
@@ -2388,7 +2387,7 @@ function admin_jetpack_manage_notice() {
23882387
<p><?php printf( __( 'Opting in allows all connected Administrators to modify your site from WordPress.com. <a href="%s">Maybe later.</a>', 'jetpack' ), $opt_out_url ); ?></p>
23892388
</div>
23902389
<div class="jp-banner__action-container is-opt-in">
2391-
<a href="<?php echo esc_url( $opt_in_url ); ?>" class="jp-banner__button" id="wpcom-connect"><?php _e( 'I&#39;m in!', 'jetpack' ); ?></a>
2390+
<a href="<?php echo esc_url( $opt_in_url ); ?>" class="jp-banner__button" id="wpcom-connect"><?php _e( 'Opt in', 'jetpack' ); ?></a>
23922391
</div>
23932392
</div>
23942393
<?php

css/jetpack-admin.css.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

css/jetpack-banners-rtl.css

+14-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

css/jetpack-banners-rtl.min.css

+2-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

css/jetpack-banners.css

+12
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,9 @@
5656
width: auto;
5757
}
5858
}
59+
#message .jp-banner__content.is-connection {
60+
width: 50%;
61+
}
5962
#message .jp-banner__content a {
6063
background-image: -webkit-linear-gradient(top, transparent 75%, white 50%);
6164
background-image: linear-gradient(to bottom, transparent 75%, white 50%);
@@ -99,11 +102,20 @@
99102
width: 100%;
100103
height: auto;
101104
}
105+
#message .jp-banner__action-container.is-connection {
106+
width: 50%;
107+
}
108+
@media (max-width: 768px) {
109+
#message .jp-banner__action-container.is-connection {
110+
width: 100%;
111+
}
112+
}
102113

103114
#message .jp-banner__button {
104115
display: inline-block;
105116
position: absolute;
106117
top: 50%;
118+
left: 20px;
107119
margin-top: -23px;
108120
padding: 0.57143em 0.85714em 0.38095em 0.57143em;
109121
border-radius: 0;

0 commit comments

Comments
 (0)