mirror of https://github.com/zulip/zulip.git
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:
parent
4d9c1cda55
commit
e3189860ec
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue