cryptpad/customize.dist/src/less2/include/tokenfield.less

109 lines
2.9 KiB
Plaintext
Raw Normal View History

2020-03-10 15:43:19 +00:00
@import (reference) "./colortheme-all.less";
@import (reference) "./tools.less";
2017-09-25 09:48:42 +00:00
2017-09-07 10:45:07 +00:00
.tokenfield_main () {
2018-07-14 13:15:23 +00:00
--LessLoader_require: LessLoader_currentFile();
}
& {
.ui-autocomplete {
z-index: 100001; // alertify + 1
}
2017-09-07 10:45:07 +00:00
.tokenfield {
2017-09-25 09:48:42 +00:00
.tools_unselectable();
display: flex;
flex-wrap: wrap;
2017-09-07 10:45:07 +00:00
height: auto;
min-height: 34px;
padding-bottom: 0px;
2017-09-19 13:30:08 +00:00
background-color: unset;
border: none;
margin: 0 10px;
padding: 0;
width: ~"calc(100% - 20px)";
2020-10-26 15:45:36 +00:00
span.tokenfield-empty {
font-size: 14px;
font-style: italic;
color: lighten(@cryptpad_text_col, 10%);
}
.cp-tokenfield-container {
width: 100%;
}
.cp-tokenfield-form {
display: flex;
width: 100%;
input {
flex: 1;
min-width: 0 !important;
}
}
2017-09-07 10:45:07 +00:00
.token {
box-sizing: border-box;
display: inline-flex;
align-items: center;
2020-03-10 15:43:19 +00:00
background-color: rgba(0, 0, 0, 0.1);
2017-09-07 10:45:07 +00:00
white-space: nowrap;
margin: 2px 0;
2020-03-04 16:59:13 +00:00
margin-right: 5px;
2017-09-19 13:30:08 +00:00
height: 24px;
vertical-align: middle;
2017-09-07 10:45:07 +00:00
cursor: default;
2020-03-10 15:43:19 +00:00
color: @cryptpad_text_col;
2017-09-07 10:45:07 +00:00
&:hover {
2020-03-10 15:43:19 +00:00
background-color: rgba(0, 0, 0, 0.2);
2017-09-07 10:45:07 +00:00
}
&.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 13:30:08 +00:00
vertical-align: middle;
2017-09-07 10:45:07 +00:00
}
.close {
2020-03-10 15:43:19 +00:00
opacity: 1;
2017-09-07 10:45:07 +00:00
font-family: Arial;
display: inline-block;
line-height: 1.49em;
2017-09-07 10:45:07 +00:00
font-size: 1.1em;
margin-left: 5px;
float: none;
height: 100%;
2017-09-19 13:30:08 +00:00
vertical-align: middle;
2017-09-07 10:45:07 +00:00
padding-right: 4px;
}
&.active {
border-color: rgba(82, 168, 236, 0.8);
}
&.duplicate {
border-color: #ebccd1;
}
}
.token-input {
background: none;
2017-09-19 13:30:08 +00:00
flex: 1;
2017-09-07 10:45:07 +00:00
border: 0;
padding: 0;
2017-09-19 13:30:08 +00:00
margin: 0 !important; // Override alertify
2017-09-07 10:45:07 +00:00
box-shadow: none;
max-width: 100%;
width: 100%;
min-width: 100% !important;
2017-09-07 10:45:07 +00:00
&:focus {
outline: 0;
box-shadow: none;
}
}
}
}