From a9b0c03a0d4c99348810e3dc77266e0567b7bac7 Mon Sep 17 00:00:00 2001 From: jagansivam28 Date: Sun, 7 Jun 2020 01:03:42 +0530 Subject: [PATCH] settings CSS: Refactor delete button, text css to use common css class. Refactor user avatar and realm icon delete-button, delete-text CSS to use common CSS Class. --- static/styles/settings.scss | 20 ++++++------------- .../templates/settings/account_settings.hbs | 4 ++-- .../settings/organization_profile_admin.hbs | 4 ++-- 3 files changed, 10 insertions(+), 18 deletions(-) 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 @@
- × - + {{t 'Delete profile picture' }} diff --git a/static/templates/settings/organization_profile_admin.hbs b/static/templates/settings/organization_profile_admin.hbs index 506cda08d1..cf6af3bce8 100644 --- a/static/templates/settings/organization_profile_admin.hbs +++ b/static/templates/settings/organization_profile_admin.hbs @@ -32,10 +32,10 @@ {{#if is_admin}}
- + × - + {{t 'Delete icon' }}