2017-10-25 01:06:25 +02:00
|
|
|
.pill-container {
|
2018-07-11 18:29:48 +02:00
|
|
|
display: inline-flex;
|
2024-06-23 17:53:14 +02:00
|
|
|
gap: var(--vertical-spacing-input-pill) var(--horizontal-spacing-input-pill);
|
2018-07-26 00:46:51 +02:00
|
|
|
flex-wrap: wrap;
|
2024-04-05 16:34:48 +02:00
|
|
|
min-width: 0;
|
2017-10-25 01:06:25 +02:00
|
|
|
|
2024-06-23 17:52:29 +02:00
|
|
|
padding: var(--outer-spacing-input-pill-container);
|
2023-03-20 22:08:47 +01:00
|
|
|
border: 1px solid hsl(0deg 0% 0% / 15%);
|
2017-10-25 01:06:25 +02:00
|
|
|
border-radius: 4px;
|
2021-06-12 01:55:52 +02:00
|
|
|
align-items: center;
|
2017-10-25 01:06:25 +02:00
|
|
|
|
|
|
|
cursor: text;
|
|
|
|
|
2019-06-30 14:37:15 +02:00
|
|
|
.pill {
|
|
|
|
display: inline-flex;
|
|
|
|
align-items: center;
|
2023-04-16 13:41:22 +02:00
|
|
|
max-width: 100%;
|
2024-04-05 16:34:48 +02:00
|
|
|
min-width: 0;
|
2017-10-25 01:06:25 +02:00
|
|
|
|
2024-06-19 17:16:38 +02:00
|
|
|
height: var(--height-input-pill);
|
2024-07-17 16:16:28 +02:00
|
|
|
/* Make sure the `height` property
|
|
|
|
is the authoritative source of an
|
|
|
|
input pill's height, without being
|
|
|
|
affected by borders, etc. */
|
|
|
|
box-sizing: border-box;
|
2024-06-19 17:25:44 +02:00
|
|
|
margin: 0;
|
2017-10-25 01:06:25 +02:00
|
|
|
|
2019-06-30 14:37:15 +02:00
|
|
|
color: inherit;
|
2024-06-10 02:15:36 +02:00
|
|
|
border: 1px solid transparent;
|
2017-10-25 01:06:25 +02:00
|
|
|
|
2019-06-30 14:37:15 +02:00
|
|
|
border-radius: 4px;
|
2024-06-10 02:15:36 +02:00
|
|
|
background-color: var(--color-background-input-pill);
|
2019-06-30 14:37:15 +02:00
|
|
|
cursor: pointer;
|
2017-10-25 01:06:25 +02:00
|
|
|
|
2019-06-30 14:37:15 +02:00
|
|
|
&:focus {
|
2024-06-10 02:15:36 +02:00
|
|
|
border-color: var(--color-focus-outline-input-pill);
|
2019-06-30 14:37:15 +02:00
|
|
|
outline: none;
|
|
|
|
}
|
2017-10-25 01:06:25 +02:00
|
|
|
|
2019-06-30 14:42:51 +02:00
|
|
|
.pill-image {
|
2024-06-19 17:16:38 +02:00
|
|
|
height: var(--length-input-pill-image);
|
|
|
|
width: var(--length-input-pill-image);
|
2019-06-30 14:42:51 +02:00
|
|
|
border-radius: 4px 0 0 4px;
|
|
|
|
}
|
|
|
|
|
2024-07-03 21:13:10 +02:00
|
|
|
.zulip-icon {
|
|
|
|
padding-right: 2px;
|
|
|
|
}
|
|
|
|
|
2023-09-18 19:13:09 +02:00
|
|
|
.pill-label {
|
|
|
|
/* Treat as flex container to better position status
|
|
|
|
emoji and control ellipsis on the pill value. */
|
|
|
|
display: flex;
|
|
|
|
/* Allow label to collapse for ellipsis effect. */
|
|
|
|
min-width: 0;
|
|
|
|
align-items: center;
|
2019-06-30 14:37:15 +02:00
|
|
|
margin: 0 5px;
|
2023-09-18 19:13:09 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.pill-value {
|
|
|
|
flex: 0 1 auto;
|
2023-04-16 13:41:22 +02:00
|
|
|
white-space: nowrap;
|
|
|
|
overflow: hidden;
|
|
|
|
text-overflow: ellipsis;
|
2019-06-30 14:37:15 +02:00
|
|
|
}
|
2019-06-30 14:23:21 +02:00
|
|
|
|
2024-06-10 02:15:36 +02:00
|
|
|
.pill-close-button {
|
|
|
|
font-size: 10px;
|
|
|
|
text-decoration: none;
|
|
|
|
/* Let the close button's box stretch,
|
|
|
|
but no larger than the height of the
|
|
|
|
banner box when the action button
|
|
|
|
achieves its full height (margin,
|
|
|
|
padding, and height), which keeps
|
|
|
|
the X vertically centered with it. */
|
|
|
|
align-self: stretch;
|
|
|
|
max-height: 52px;
|
|
|
|
/* Display as flexbox to better control
|
|
|
|
the X icon's position. This creates
|
|
|
|
an anonymous flexbox item out of the
|
|
|
|
::before content where the icon sits. */
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
/* !important overrides `.dark-theme:root a:hover` */
|
|
|
|
color: var(--color-input-pill-close) !important;
|
|
|
|
opacity: 0.7;
|
|
|
|
}
|
|
|
|
|
2019-06-30 14:37:15 +02:00
|
|
|
.exit {
|
2024-06-10 02:15:36 +02:00
|
|
|
width: 16px;
|
|
|
|
height: 16px;
|
|
|
|
display: flex;
|
|
|
|
justify-content: center;
|
|
|
|
margin-right: 2px;
|
|
|
|
border-radius: 2px;
|
2019-06-30 14:37:15 +02:00
|
|
|
}
|
2019-06-30 14:23:21 +02:00
|
|
|
|
2024-02-04 18:23:37 +01:00
|
|
|
.exit:hover {
|
2024-06-10 02:15:36 +02:00
|
|
|
background: var(--color-background-input-pill-exit-hover);
|
|
|
|
|
|
|
|
.pill-close-button {
|
|
|
|
opacity: 1;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&.deactivated-pill {
|
|
|
|
background-color: var(--color-background-deactivated-user-pill);
|
|
|
|
|
|
|
|
&:focus {
|
|
|
|
border-color: var(--color-focus-outline-deactivated-user-pill);
|
|
|
|
}
|
|
|
|
|
|
|
|
.pill-close-button {
|
|
|
|
/* !important overrides `.dark-theme:root a:hover` */
|
|
|
|
color: var(--color-close-deactivated-user-pill) !important;
|
|
|
|
}
|
|
|
|
|
|
|
|
.exit:hover {
|
|
|
|
background: var(
|
|
|
|
--color-background-exit-hover-deactivated-user-pill
|
|
|
|
);
|
|
|
|
}
|
2019-06-30 14:37:15 +02:00
|
|
|
}
|
|
|
|
}
|
2019-06-30 14:23:21 +02:00
|
|
|
|
2019-06-30 14:37:15 +02:00
|
|
|
&.not-editable {
|
|
|
|
cursor: not-allowed;
|
|
|
|
border: none;
|
2019-06-28 10:49:46 +02:00
|
|
|
background-color: transparent;
|
2020-08-06 02:42:07 +02:00
|
|
|
padding: 0;
|
2018-02-13 11:34:11 +01:00
|
|
|
|
2019-06-30 14:37:15 +02:00
|
|
|
.pill {
|
|
|
|
padding-right: 4px;
|
|
|
|
cursor: not-allowed;
|
2018-02-13 11:34:11 +01:00
|
|
|
|
2019-06-30 14:37:15 +02:00
|
|
|
&:focus {
|
|
|
|
color: inherit;
|
2023-03-20 22:08:47 +01:00
|
|
|
border: 1px solid hsl(0deg 0% 0% / 15%);
|
|
|
|
background-color: hsl(0deg 0% 0% / 7%);
|
2019-06-30 14:37:15 +02:00
|
|
|
}
|
2018-02-13 11:34:11 +01:00
|
|
|
|
2019-06-30 14:37:15 +02:00
|
|
|
.exit {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2018-02-13 11:34:11 +01:00
|
|
|
|
2019-06-30 14:37:15 +02:00
|
|
|
.input {
|
|
|
|
display: inline-block;
|
2024-06-19 17:16:38 +02:00
|
|
|
/* This keeps the input sized to
|
|
|
|
the same height as pills. */
|
|
|
|
line-height: var(--height-input-pill);
|
|
|
|
padding: 0 4px;
|
2017-10-25 01:06:25 +02:00
|
|
|
|
2019-06-30 14:37:15 +02:00
|
|
|
min-width: 2px;
|
|
|
|
word-break: break-all;
|
2017-10-25 01:06:25 +02:00
|
|
|
|
2019-06-30 14:37:15 +02:00
|
|
|
outline: none;
|
2017-10-25 01:06:25 +02:00
|
|
|
|
2019-06-30 14:37:15 +02:00
|
|
|
&.shake {
|
2020-08-04 23:58:56 +02:00
|
|
|
animation: shake 0.3s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
|
2019-06-30 14:37:15 +02:00
|
|
|
transform: translate3d(0, 0, 0);
|
|
|
|
backface-visibility: hidden;
|
|
|
|
perspective: 1000px;
|
|
|
|
}
|
|
|
|
}
|
2017-10-25 01:06:25 +02:00
|
|
|
}
|
|
|
|
|
2024-02-16 10:00:54 +01:00
|
|
|
#compose-direct-recipient .pill-container {
|
2023-03-20 22:08:47 +01:00
|
|
|
border: 1px solid hsl(0deg 0% 0% / 20%);
|
2023-03-24 00:09:48 +01:00
|
|
|
background-color: hsl(0deg 0% 100%);
|
2017-10-25 01:06:25 +02:00
|
|
|
|
2024-06-03 16:21:36 +02:00
|
|
|
.input:first-child:empty::before {
|
|
|
|
content: attr(data-no-recipients-text);
|
|
|
|
opacity: 0.5;
|
2019-06-30 14:37:15 +02:00
|
|
|
}
|
2018-03-06 15:07:55 +01:00
|
|
|
|
2019-06-30 14:37:15 +02:00
|
|
|
.pill + .input:empty::before {
|
|
|
|
content: attr(data-some-recipients-text);
|
|
|
|
opacity: 0.5;
|
|
|
|
}
|
2017-10-25 01:06:25 +02:00
|
|
|
}
|
|
|
|
|
2024-03-23 19:36:45 +01:00
|
|
|
#invitee_emails_container .pill-container {
|
|
|
|
width: 100%;
|
2024-05-21 20:10:56 +02:00
|
|
|
box-sizing: border-box;
|
|
|
|
background-color: var(--color-background-invitee-emails-pill-container);
|
2024-03-23 19:36:45 +01:00
|
|
|
}
|
|
|
|
|
2023-09-19 11:56:06 +02:00
|
|
|
.add_subscribers_container .pill-container,
|
2024-01-24 14:03:43 +01:00
|
|
|
.add_streams_container .pill-container,
|
2023-09-19 11:56:06 +02:00
|
|
|
.add_members_container .pill-container {
|
2020-04-11 21:49:51 +02:00
|
|
|
width: 100%;
|
2023-03-20 22:08:47 +01:00
|
|
|
background-color: hsl(0deg 0% 100%);
|
2020-04-11 21:49:51 +02:00
|
|
|
|
|
|
|
.input:first-child:empty::before {
|
|
|
|
opacity: 0.5;
|
|
|
|
content: attr(data-placeholder);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2024-07-10 22:17:33 +02:00
|
|
|
.add_streams_container .input {
|
|
|
|
flex-grow: 1;
|
|
|
|
}
|
|
|
|
|
2024-06-23 17:53:14 +02:00
|
|
|
.display_only_pill {
|
|
|
|
/* Ensure middle alignment in table contexts. */
|
|
|
|
vertical-align: middle;
|
|
|
|
}
|
|
|
|
|
2024-04-16 21:12:47 +02:00
|
|
|
/* These pill are similar to .not-editable, but are meant to show
|
|
|
|
profile cards when clicked. */
|
2024-03-23 08:06:21 +01:00
|
|
|
.panel_user_list > .pill-container,
|
2024-07-23 20:01:08 +02:00
|
|
|
.creator_details > .display_only_pill {
|
2024-01-08 15:39:20 +01:00
|
|
|
background-color: hsl(0deg 0% 0% / 7%);
|
2024-07-16 12:11:19 +02:00
|
|
|
gap: 2px;
|
|
|
|
flex-wrap: nowrap;
|
|
|
|
|
|
|
|
&.inline_with_text_pill > .pill-deactivated {
|
|
|
|
font-size: 0.9em;
|
|
|
|
padding-right: 2px;
|
|
|
|
}
|
2024-01-08 15:39:20 +01:00
|
|
|
|
|
|
|
&:hover {
|
|
|
|
color: inherit;
|
|
|
|
}
|
|
|
|
|
|
|
|
> .pill {
|
|
|
|
background-color: transparent;
|
|
|
|
border: none;
|
|
|
|
text-decoration: none;
|
|
|
|
|
|
|
|
&:focus {
|
|
|
|
color: inherit;
|
|
|
|
}
|
|
|
|
|
2024-04-16 21:12:47 +02:00
|
|
|
> .pill-label {
|
|
|
|
margin: 0;
|
|
|
|
|
|
|
|
> .pill-value {
|
|
|
|
padding: 5px;
|
|
|
|
max-width: 165px;
|
|
|
|
}
|
2024-01-08 15:39:20 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2024-07-23 20:01:08 +02:00
|
|
|
.creator_details > .display_only_pill.inline_with_text_pill {
|
2024-03-23 08:06:21 +01:00
|
|
|
padding: 0;
|
|
|
|
|
|
|
|
> .pill {
|
|
|
|
margin: 0;
|
|
|
|
align-items: baseline;
|
|
|
|
|
|
|
|
> .pill-image {
|
|
|
|
/* Add line-height equal to height to mimic baseline alignment. */
|
|
|
|
line-height: 20px;
|
|
|
|
align-self: center;
|
|
|
|
}
|
|
|
|
|
|
|
|
> .pill-label {
|
|
|
|
> .pill-value {
|
|
|
|
padding: 0 5px;
|
2024-07-17 09:27:36 +02:00
|
|
|
max-width: 200px;
|
2024-03-23 08:06:21 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
> .my_user_status {
|
|
|
|
margin-right: 2px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-10-25 01:06:25 +02:00
|
|
|
@keyframes shake {
|
2018-07-25 21:38:45 +02:00
|
|
|
10%,
|
|
|
|
90% {
|
2017-10-25 01:06:25 +02:00
|
|
|
transform: translate3d(-1px, 0, 0);
|
|
|
|
}
|
|
|
|
|
|
|
|
20%,
|
|
|
|
80% {
|
|
|
|
transform: translate3d(2px, 0, 0);
|
|
|
|
}
|
|
|
|
|
|
|
|
30%,
|
|
|
|
50%,
|
|
|
|
70% {
|
|
|
|
transform: translate3d(-3px, 0, 0);
|
|
|
|
}
|
|
|
|
|
|
|
|
40%,
|
|
|
|
60% {
|
|
|
|
transform: translate3d(3px, 0, 0);
|
|
|
|
}
|
|
|
|
}
|