diff --git a/modules/sso.php b/modules/sso.php index 7247ec5437f46..0175509f1eaf5 100644 --- a/modules/sso.php +++ b/modules/sso.php @@ -29,7 +29,6 @@ private function __construct() { add_filter( 'jetpack_xmlrpc_methods', array( $this, 'xmlrpc_methods' ) ); add_action( 'init', array( $this, 'maybe_logout_user' ), 5 ); add_action( 'jetpack_modules_loaded', array( $this, 'module_configure_button' ) ); - add_action( 'admin_enqueue_scripts', array( $this, 'admin_enqueue_scripts' ) ); add_action( 'login_form_logout', array( $this, 'store_wpcom_profile_cookies_on_logout' ) ); add_action( 'wp_login', array( 'Jetpack_SSO', 'clear_wpcom_profile_cookies' ) ); add_action( 'jetpack_unlinked_user', array( $this, 'delete_connection_for_user') ); @@ -76,7 +75,6 @@ public static function module_configuration_screen() { base, array( 'edit-user', 'profile' ) ) ) { - return; - } - - wp_enqueue_style( 'jetpack-sso-profile', plugins_url( 'modules/sso/jetpack-sso-profile.css', JETPACK__PLUGIN_FILE ), array( 'genericons' ), JETPACK__VERSION ); - } - /** * Adds Jetpack SSO classes to login body * diff --git a/modules/sso/jetpack-sso-profile.css b/modules/sso/jetpack-sso-profile.css deleted file mode 100644 index 1d6c1ac328b3c..0000000000000 --- a/modules/sso/jetpack-sso-profile.css +++ /dev/null @@ -1,72 +0,0 @@ -.jetpack-sso.button { - position: relative; - padding-left: 37px; -} -.jetpack-sso.button:before { - display: block; - box-sizing: border-box; - padding: 7px 0 0; - text-align: center; - position: absolute; - top: -1px; - left: -1px; - border-radius: 2px 0 0 2px; - content: '\f205'; - background: #0074a2; - color: #fff; - -webkit-font-smoothing: antialiased; - width: 30px; - height: 107%; - height: calc( 100% + 2px ); - font: normal 22px/1 Genericons !important; - text-shadow: none; -} -@media screen and (min-width: 783px) { - .jetpack-sso.button:before { - padding-top: 3px; - } -} -.jetpack-sso.button:hover { - border: 1px solid #aaa; -} - -.jetpack-sso-form-table td { - padding-left: 0; -} - -.jetpack-sso-form-table .profile-card { - padding: 10px; - background: #fff; - overflow: hidden; - max-width: 400px; - box-shadow: 0 1px 2px rgba( 0, 0, 0, 0.1 ); - margin-bottom: 1em; -} - -.jetpack-sso-form-table .profile-card img { - float: left; - margin-right: 1em; - width: 48px; - height: 48px; -} - -.jetpack-sso-form-table .profile-card .connected { - float: right; - margin-right: 0.5em; - color: #0a0; -} - -.jetpack-sso-form-table .profile-card p { - margin-top: 0.7em; - font-size: 1.2em; -} - -.jetpack-sso-form-table .profile-card .two_step .enabled a { - float: right; - color: #0a0; -} - -.jetpack-sso-form-table .profile-card .two_step .disabled a { - float: right; - color: red; -}