diff --git a/static/styles/settings.scss b/static/styles/settings.scss index e563f99352..ebc1192039 100644 --- a/static/styles/settings.scss +++ b/static/styles/settings.scss @@ -1209,27 +1209,22 @@ input[type=checkbox] { cursor: pointer; } - #realm_icon_delete_button, - #user_avatar_delete_button { + .settings-page-delete-button { cursor: pointer; color: hsl(0, 0%, 75%); opacity: 0; position: absolute; + font-size: 2rem; top: 10px; right: 10px; z-index: 99; } - #realm_icon_delete_button { - font-size: 2rem; - } - #user_avatar_delete_button { font-size: 3rem; } - #realm_icon_delete_button:hover, - #user_avatar_delete_button:hover { + .settings-page-delete-button:hover { color: hsl(0, 0%, 100%); } @@ -1239,13 +1234,11 @@ input[type=checkbox] { } - #realm_icon_delete_button:hover ~ #realm_icon_delete, - #user_avatar_delete_button:hover ~ #user_avatar_delete { + .settings-page-delete-button:hover ~ .settings-page-delete-text { visibility: visible; } - #realm_icon_delete, - #user_avatar_delete { + .settings-page-delete-text { color: hsl(0, 0%, 100%); font-size: 0.85rem; position: absolute; @@ -1337,8 +1330,7 @@ input[type=checkbox] { cursor: pointer; } - #realm_icon_delete_button, - #user_avatar_delete_button { + .settings-page-delete-button { opacity: 1; } diff --git a/static/templates/settings/account_settings.hbs b/static/templates/settings/account_settings.hbs index 49b49c5016..afac9215eb 100644 --- a/static/templates/settings/account_settings.hbs +++ b/static/templates/settings/account_settings.hbs @@ -159,11 +159,11 @@