2017-10-25 01:06:25 +02:00
|
|
|
.pill-container {
|
|
|
|
display: inline-block;
|
|
|
|
|
|
|
|
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 {
|
|
|
|
position: relative;
|
|
|
|
display: inline-block;
|
|
|
|
|
2018-03-06 15:07:55 +01:00
|
|
|
padding: 0px 18px 0px 3px;
|
2017-10-25 01:06:25 +02:00
|
|
|
margin: 1px 1px;
|
|
|
|
|
2017-11-13 16:34:06 +01:00
|
|
|
color: hsl(177, 38%, 54%);
|
2017-10-25 01:06:25 +02:00
|
|
|
border: 1px solid #b2e4e2;
|
|
|
|
|
|
|
|
border-radius: 4px;
|
|
|
|
|
|
|
|
cursor: pointer;
|
|
|
|
}
|
|
|
|
|
|
|
|
.pill-container .pill:focus {
|
2017-11-13 16:34:06 +01:00
|
|
|
color: hsl(0, 38%, 54%);
|
2017-10-25 01:06:25 +02:00
|
|
|
border: 1px solid #e4b2b2;
|
|
|
|
|
|
|
|
outline: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
.pill-container .input {
|
|
|
|
display: inline-block;
|
|
|
|
padding: 2px 4px;
|
|
|
|
|
|
|
|
min-width: 2px;
|
|
|
|
|
|
|
|
outline: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
.pill-container .pill .exit {
|
|
|
|
content: "\D7";
|
|
|
|
position: absolute;
|
|
|
|
top: 0px;
|
|
|
|
right: 3px;
|
|
|
|
|
|
|
|
opacity: 0.5;
|
|
|
|
|
|
|
|
font-size: 1.3em;
|
|
|
|
}
|
|
|
|
|
|
|
|
.pill-container .pill:hover .exit {
|
|
|
|
opacity: 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
.pill-container .input.shake {
|
|
|
|
animation: shake 0.3s cubic-bezier(.36,.07,.19,.97) both;
|
|
|
|
transform: translate3d(0, 0, 0);
|
|
|
|
backface-visibility: hidden;
|
|
|
|
perspective: 1000px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.pm_recipient .pill-container {
|
2018-03-06 15:07:55 +01:00
|
|
|
position: relative;
|
2017-10-25 01:06:25 +02:00
|
|
|
width: 100%;
|
2018-03-06 15:07:55 +01:00
|
|
|
padding: 0px 2px;
|
|
|
|
|
|
|
|
/* this is because the pills have a margin-bottom of 2px, so we want to negate
|
|
|
|
the height of the bottom row. */
|
|
|
|
margin: -1px 0px;
|
2017-10-25 01:06:25 +02:00
|
|
|
|
2018-03-06 15:07:55 +01:00
|
|
|
border: none;
|
2017-10-25 01:06:25 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.pm_recipient .pill-container .pill {
|
2018-03-06 15:07:55 +01:00
|
|
|
color: inherit;
|
|
|
|
border: 1px solid hsla(0, 0%, 0%, 0.15);
|
|
|
|
background: hsla(0, 0%, 0%, 0.07);
|
2017-10-25 01:06:25 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.pm_recipient .pill-container .pill:focus {
|
2018-03-06 15:07:55 +01:00
|
|
|
color: #fff;
|
2017-10-25 01:06:25 +02:00
|
|
|
border: 1px solid #108179;
|
2017-11-13 16:34:06 +01:00
|
|
|
background: hsl(176, 49%, 42%);
|
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-08 18:28:36 +01:00
|
|
|
.pm_recipient .pill-container .pill + .input:focus: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
|
|
|
}
|
|
|
|
|
|
|
|
@keyframes shake {
|
|
|
|
10%, 90% {
|
|
|
|
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);
|
|
|
|
}
|
|
|
|
}
|