2017-10-25 01:06:25 +02:00
|
|
|
.pill-container {
|
2018-07-11 18:29:48 +02:00
|
|
|
display: inline-flex;
|
2018-07-26 00:46:51 +02:00
|
|
|
flex-wrap: wrap;
|
2017-10-25 01:06:25 +02:00
|
|
|
|
|
|
|
padding: 2px;
|
2018-03-06 15:07:55 +01:00
|
|
|
border: 1px solid hsla(0, 0%, 0%, 0.15);
|
2017-10-25 01:06:25 +02:00
|
|
|
border-radius: 4px;
|
|
|
|
|
|
|
|
font-size: 0.9em;
|
|
|
|
|
|
|
|
cursor: text;
|
|
|
|
}
|
|
|
|
|
|
|
|
.pill-container .pill {
|
2018-07-11 18:29:48 +02:00
|
|
|
display: inline-flex;
|
|
|
|
align-items: center;
|
2017-10-25 01:06:25 +02:00
|
|
|
|
2018-07-09 08:38:16 +02:00
|
|
|
height: 20px;
|
2018-07-11 18:29:48 +02:00
|
|
|
margin: 1px 2px;
|
2017-10-25 01:06:25 +02:00
|
|
|
|
2018-03-14 09:28:53 +01:00
|
|
|
color: inherit;
|
|
|
|
border: 1px solid hsla(0, 0%, 0%, 0.15);
|
2017-10-25 01:06:25 +02:00
|
|
|
|
|
|
|
border-radius: 4px;
|
2018-10-08 22:31:26 +02:00
|
|
|
background-color: hsla(0, 0%, 0%, 0.07);
|
2017-10-25 01:06:25 +02:00
|
|
|
cursor: pointer;
|
|
|
|
}
|
|
|
|
|
|
|
|
.pill-container .pill:focus {
|
2018-09-27 21:57:07 +02:00
|
|
|
color: hsl(0, 0%, 100%);
|
2018-10-06 18:49:20 +02:00
|
|
|
border: 1px solid hsl(176, 78%, 28%);
|
2018-10-08 22:31:26 +02:00
|
|
|
background-color: hsl(176, 49%, 42%);
|
2017-10-25 01:06:25 +02:00
|
|
|
outline: none;
|
|
|
|
}
|
|
|
|
|
2018-08-18 06:23:53 +02:00
|
|
|
.pill-container.not-editable {
|
2018-02-13 11:34:11 +01:00
|
|
|
cursor: not-allowed;
|
|
|
|
border: none;
|
|
|
|
}
|
|
|
|
|
2018-08-18 06:23:53 +02:00
|
|
|
.pill-container.not-editable .pill {
|
2018-02-13 11:34:11 +01:00
|
|
|
padding-right: 4px;
|
|
|
|
cursor: not-allowed;
|
|
|
|
}
|
|
|
|
|
2018-08-18 06:23:53 +02:00
|
|
|
.pill-container.not-editable .pill:focus {
|
2018-02-13 11:34:11 +01:00
|
|
|
color: inherit;
|
|
|
|
border: 1px solid hsla(0, 0%, 0%, 0.15);
|
2018-10-08 22:31:26 +02:00
|
|
|
background-color: hsla(0, 0%, 0%, 0.07);
|
2018-02-13 11:34:11 +01:00
|
|
|
}
|
|
|
|
|
2018-08-18 06:23:53 +02:00
|
|
|
.pill-container.not-editable .pill .exit {
|
2018-02-13 11:34:11 +01:00
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
2017-10-25 01:06:25 +02:00
|
|
|
.pill-container .input {
|
|
|
|
display: inline-block;
|
|
|
|
padding: 2px 4px;
|
|
|
|
|
|
|
|
min-width: 2px;
|
2018-02-02 06:11:03 +01:00
|
|
|
word-break: break-all;
|
2017-10-25 01:06:25 +02:00
|
|
|
|
|
|
|
outline: none;
|
|
|
|
}
|
|
|
|
|
2018-07-11 18:29:48 +02:00
|
|
|
.pill-container .pill .pill-value {
|
|
|
|
margin: 0 5px;
|
|
|
|
}
|
2017-10-25 01:06:25 +02:00
|
|
|
|
2018-07-11 18:29:48 +02:00
|
|
|
.pill-container .pill .exit {
|
2017-10-25 01:06:25 +02:00
|
|
|
opacity: 0.5;
|
|
|
|
font-size: 1.3em;
|
2018-07-11 18:29:48 +02:00
|
|
|
margin-right: 3px;
|
2017-10-25 01:06:25 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.pill-container .pill:hover .exit {
|
|
|
|
opacity: 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
.pill-container .input.shake {
|
2018-07-27 00:58:50 +02:00
|
|
|
animation: shake 0.3s cubic-bezier(.36, .07, .19, .97) both;
|
2017-10-25 01:06:25 +02:00
|
|
|
transform: translate3d(0, 0, 0);
|
|
|
|
backface-visibility: hidden;
|
|
|
|
perspective: 1000px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.pm_recipient .pill-container {
|
2018-03-06 15:07:55 +01:00
|
|
|
padding: 0px 2px;
|
|
|
|
border: none;
|
2018-07-30 21:47:23 +02:00
|
|
|
flex-grow: 1;
|
2018-01-31 06:13:27 +01:00
|
|
|
align-content: center;
|
2017-10-25 01:06:25 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.pm_recipient .pill-container .input {
|
2018-03-06 15:07:55 +01:00
|
|
|
height: 20px;
|
|
|
|
}
|
|
|
|
|
2018-03-08 19:13:40 +01:00
|
|
|
.pm_recipient .pill-container .input:first-child:empty::before {
|
2018-03-06 15:07:55 +01:00
|
|
|
content: attr(data-no-recipients-text);
|
|
|
|
opacity: 0.5;
|
|
|
|
}
|
|
|
|
|
2018-03-24 18:05:55 +01:00
|
|
|
.pm_recipient .pill-container .pill + .input:empty::before {
|
2018-03-06 15:07:55 +01:00
|
|
|
content: attr(data-some-recipients-text);
|
|
|
|
opacity: 0.5;
|
2017-10-25 01:06:25 +02:00
|
|
|
}
|
|
|
|
|
2018-06-27 20:17:04 +02:00
|
|
|
.pill-image {
|
|
|
|
height: 20px;
|
|
|
|
width: 20px;
|
|
|
|
border-radius: 4px 0 0 4px;
|
|
|
|
}
|
|
|
|
|
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);
|
|
|
|
}
|
|
|
|
}
|