invite: Re-add bootstrap CSS for custom expiration text input.

This commit re-adds bootstrap CSS for custom expiration time
input in invite modal.

We also need to add the code to handle dark theme CSS here to
make sure the CSS for dark theme is prioritized correctly.

This commit also refactors the CSS to modify the selectors to
be simple and remove unnecessary IDs.
This commit is contained in:
Sahil Batra 2023-06-20 09:23:00 +05:30 committed by Tim Abbott
parent 04debf72df
commit 1db5ebae53
2 changed files with 24 additions and 13 deletions

View File

@ -479,7 +479,8 @@
.new-style .tab-switcher .ind-tab:not(.selected),
select,
.pill-container,
.user-status-content-wrapper {
.user-status-content-wrapper,
#custom-expiration-time-input {
background-color: hsl(0deg 0% 0% / 20%);
border-color: hsl(0deg 0% 0% / 60%);
color: inherit;

View File

@ -2411,11 +2411,9 @@ textarea.invitee_emails {
}
}
#invite-user-modal {
#custom-expiration-time-input,
#invite-user-form {
margin: 0;
}
#custom-expiration-time-input,
#invite-user-form {
margin: 0;
}
select.invite-expires-in,
@ -2468,17 +2466,29 @@ select.invite-as {
width: fit-content;
}
#custom-invite-expiration-time {
#custom-expiration-time-input {
width: 5ch;
margin-right: 15px;
}
#custom-expiration-time-input {
width: 5ch;
margin-right: 15px;
#custom-expiration-time-unit {
width: auto;
padding: 4px 6px;
color: hsl(0deg 0% 33%);
border-radius: 4px;
border: 1px solid hsl(0deg 0% 80%);
box-shadow: inset 0 1px 1px hsl(0deg 0% 0% / 7.5%);
transition: border linear 0.2s, box-shadow linear 0.2s;
&:focus {
border-color: hsl(206deg 80% 62% / 80%);
outline: 0;
box-shadow: inset 0 1px 1px hsl(0deg 0% 0% / 7.5%),
0 0 8px hsl(206deg 80% 62% / 60%);
}
}
#custom-expiration-time-unit {
width: auto;
}
.empty_feed_notice {
padding: 3em 1em;
text-align: center;