92 lines
2.5 KiB
Plaintext
Raw Normal View History

2017-09-07 12:45:07 +02:00
.tokenfield_main () {
.tokenfield {
.unselectable () {
-webkit-touch-callout: none;
-webkit-user-select: none;
-khtml-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
.unselectable();
height: auto;
min-height: 34px;
padding-bottom: 0px;
2017-09-19 15:30:08 +02:00
background-color: unset;
border: none;
display: flex;
flex-wrap: wrap;
align-items: center;
padding: 0 10px;
2017-09-07 12:45:07 +02:00
.token {
box-sizing: border-box;
border-radius: 3px;
display: inline-block;
border: 1px solid #d9d9d9;
background-color: #ededed;
white-space: nowrap;
2017-09-19 15:30:08 +02:00
margin: 10px 5px;
height: 24px;
vertical-align: middle;
2017-09-07 12:45:07 +02:00
cursor: default;
color: #222;
&:hover {
border-color: #b9b9b9;
}
&.invalid {
background: none;
border: 1px solid transparent;
border-radius: 0;
border-bottom: 1px dotted #d9534f;
}
&.invalid.active {
background: #ededed;
border: 1px solid #ededed;
border-radius: 3px;
}
.token-label {
display: inline-block;
overflow: hidden;
text-overflow: ellipsis;
padding-left: 4px;
2017-09-19 15:30:08 +02:00
vertical-align: middle;
2017-09-07 12:45:07 +02:00
}
.close {
font-family: Arial;
display: inline-block;
2017-09-19 15:30:08 +02:00
line-height: 24px;
2017-09-07 12:45:07 +02:00
font-size: 1.1em;
margin-left: 5px;
float: none;
height: 100%;
2017-09-19 15:30:08 +02:00
vertical-align: middle;
2017-09-07 12:45:07 +02:00
padding-right: 4px;
}
&.active {
border-color: #52a8ec;
border-color: rgba(82, 168, 236, 0.8);
}
&.duplicate {
border-color: #ebccd1;
}
}
.token-input {
background: none;
2017-09-19 15:30:08 +02:00
flex: 1;
2017-09-07 12:45:07 +02:00
border: 0;
padding: 0;
2017-09-19 15:30:08 +02:00
margin: 0 !important; // Override alertify
2017-09-07 12:45:07 +02:00
box-shadow: none;
max-width: 100%;
&:focus {
border-color: transparent;
outline: 0;
box-shadow: none;
}
}
}
}