css: Use padding-top instead of putting margin-top on first div.

It has the same visual effect and we do not have to use a div selector.
Having the `div` selector there affects the performance. See
https://chat.zulip.org/#narrow/stream/6-frontend/topic/CSS.20selector.20performance/near/1845719
for more details.

(cherry picked from commit 2081fb52a1)
This commit is contained in:
Shubham Padia 2024-08-01 05:48:57 +00:00 committed by Tim Abbott
parent 4d9c1cda55
commit e3189860ec
1 changed files with 4 additions and 4 deletions

View File

@ -551,8 +551,8 @@ input[type="checkbox"] {
}
}
.organization-settings-parent > div:first-of-type {
margin-top: 10px;
.organization-settings-parent {
padding-top: 10px;
}
#id_org_profile_preview {
@ -563,8 +563,8 @@ input[type="checkbox"] {
margin-bottom: 20px;
}
.inline-block.organization-permissions-parent div:first-of-type {
margin-top: 10px;
.inline-block.organization-permissions-parent {
padding-top: 10px;
}
.language_selection_widget .language_selection_button {