2015-02-07 06:46:30 +08:00
|
|
|
@import "ui-variables";
|
|
|
|
|
|
|
|
.tokenizing-field {
|
2015-03-05 04:30:54 +08:00
|
|
|
display: block;
|
|
|
|
margin: 0;
|
|
|
|
padding: 0;
|
|
|
|
border-bottom: 1px solid @border-color-divider;
|
|
|
|
min-height: 30px;
|
|
|
|
position: relative;
|
|
|
|
|
2015-03-21 01:23:50 +08:00
|
|
|
.content-container {
|
|
|
|
border: 1px solid @border-secondary-bg;
|
|
|
|
box-shadow: 0 2px 8px rgba(0,0,0,0.2);
|
|
|
|
border-radius: @border-radius-small;
|
2015-03-26 09:22:52 +08:00
|
|
|
background-color: @background-color;
|
2015-03-21 01:23:50 +08:00
|
|
|
position: absolute;
|
|
|
|
}
|
|
|
|
|
|
|
|
.content-container.empty {
|
|
|
|
border: 0;
|
|
|
|
box-shadow: none;
|
|
|
|
}
|
|
|
|
|
2015-03-05 04:30:54 +08:00
|
|
|
.header-container, .footer-container {
|
|
|
|
background-color: transparent;
|
|
|
|
padding:0;
|
|
|
|
margin:0;
|
|
|
|
border:0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.token {
|
|
|
|
display: inline-block;
|
2015-02-07 06:46:30 +08:00
|
|
|
position: relative;
|
2015-06-06 02:40:44 +08:00
|
|
|
color: @text-color;
|
2015-06-04 02:07:59 +08:00
|
|
|
padding: 0.4em @spacing-half 0.4em @spacing-half;
|
2015-03-05 04:30:54 +08:00
|
|
|
padding-right: 1.5em;
|
2015-06-12 09:39:55 +08:00
|
|
|
margin: 2px 5px 3px 0;
|
2015-03-05 04:30:54 +08:00
|
|
|
border-radius: @border-radius-base;
|
|
|
|
font-size: 15px;
|
|
|
|
background-color: @background-secondary;
|
2015-03-05 10:47:48 +08:00
|
|
|
max-width: 100%;
|
2015-02-07 06:46:30 +08:00
|
|
|
|
2015-03-05 04:30:54 +08:00
|
|
|
.action {
|
|
|
|
position:absolute;
|
|
|
|
padding: 0;
|
|
|
|
padding-top: 1px;
|
2015-06-04 02:07:59 +08:00
|
|
|
right: 7px;
|
2015-03-05 04:30:54 +08:00
|
|
|
border: 0;
|
|
|
|
margin: 0;
|
|
|
|
background-color: transparent;
|
|
|
|
color: @text-color-very-subtle;
|
2015-06-12 09:45:48 +08:00
|
|
|
img { background-color: @text-color-very-subtle; }
|
2015-03-05 04:30:54 +08:00
|
|
|
font-size: 10px;
|
2015-02-07 06:46:30 +08:00
|
|
|
}
|
2015-03-05 04:30:54 +08:00
|
|
|
&:hover {
|
|
|
|
background-color: darken(@background-secondary, 5%);
|
2015-03-19 09:21:04 +08:00
|
|
|
cursor: default;
|
2015-02-07 06:46:30 +08:00
|
|
|
}
|
2015-03-05 04:30:54 +08:00
|
|
|
&.selected,
|
|
|
|
&.dragging {
|
|
|
|
background-color: @background-tertiary;
|
|
|
|
color: @text-color-inverse;
|
2015-06-04 02:07:59 +08:00
|
|
|
.action {
|
|
|
|
color: @text-color-inverse-subtle;
|
2015-06-12 09:45:48 +08:00
|
|
|
img { background-color: @text-color-inverse-subtle; }
|
2015-06-04 02:07:59 +08:00
|
|
|
}
|
2015-02-07 06:46:30 +08:00
|
|
|
}
|
2015-03-18 07:19:40 +08:00
|
|
|
&.dragging {
|
|
|
|
cursor: -webkit-grabbing;
|
|
|
|
}
|
2015-03-05 04:30:54 +08:00
|
|
|
}
|
2015-02-07 06:46:30 +08:00
|
|
|
|
|
|
|
|
2015-03-05 04:30:54 +08:00
|
|
|
.tokenizing-field-label {
|
2015-03-05 07:52:40 +08:00
|
|
|
color: @text-color-very-subtle;
|
2015-03-05 04:30:54 +08:00
|
|
|
float: left;
|
|
|
|
text-transform: capitalize;
|
|
|
|
padding-top: 8px;
|
|
|
|
display: block;
|
|
|
|
}
|
2015-03-05 07:52:40 +08:00
|
|
|
|
2015-03-05 04:30:54 +08:00
|
|
|
.tokenizing-field-input {
|
2015-03-05 10:47:48 +08:00
|
|
|
position: relative;
|
2015-03-05 07:52:40 +08:00
|
|
|
padding-left: 2.1em;
|
2015-02-07 06:46:30 +08:00
|
|
|
|
2015-05-08 06:28:44 +08:00
|
|
|
&:hover {
|
|
|
|
cursor: text;
|
|
|
|
}
|
|
|
|
|
2015-03-05 04:30:54 +08:00
|
|
|
input {
|
|
|
|
display: inline-block;
|
|
|
|
width: initial;
|
2015-06-04 02:07:59 +08:00
|
|
|
vertical-align:top;
|
2015-03-05 04:30:54 +08:00
|
|
|
border: none;
|
2015-06-26 22:06:57 +08:00
|
|
|
min-width: 0.5em;
|
2015-03-05 04:30:54 +08:00
|
|
|
background-color:transparent;
|
2015-06-04 02:07:59 +08:00
|
|
|
|
2015-06-12 09:39:55 +08:00
|
|
|
// NOTE: padding-top and padding-bottom need to match that of
|
|
|
|
// `.token`. to ensure they have the same baseline.
|
|
|
|
//
|
|
|
|
// The padding-left and padding-right must be 0 so we can manually
|
|
|
|
// set the width properly to always match the size of the input
|
|
|
|
// test.
|
|
|
|
padding: 0.4em 0 0.4em 7.5px;
|
|
|
|
margin: 2px 5px 3px 0;
|
2015-06-04 02:07:59 +08:00
|
|
|
|
2015-05-08 06:28:44 +08:00
|
|
|
&.noop-input {
|
|
|
|
position: absolute;
|
|
|
|
min-width: 0;
|
|
|
|
padding-left: 0;
|
|
|
|
margin-right: 0;
|
|
|
|
}
|
2015-02-07 06:46:30 +08:00
|
|
|
}
|
2015-05-08 06:28:44 +08:00
|
|
|
|
2015-03-06 02:59:00 +08:00
|
|
|
input:focus {
|
|
|
|
box-shadow: none;
|
2015-02-07 06:46:30 +08:00
|
|
|
}
|
2015-03-05 04:30:54 +08:00
|
|
|
}
|
2015-06-18 11:40:08 +08:00
|
|
|
|
|
|
|
.placeholder {
|
|
|
|
color: fade(@text-color, 50%);
|
|
|
|
position: absolute;
|
|
|
|
top: 50%;
|
|
|
|
margin-top: -0.8em;
|
|
|
|
left: 1em;
|
|
|
|
font-size: 12px;
|
|
|
|
}
|
2015-02-07 06:46:30 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
body.is-blurred .tokenizing-field .token {
|
2015-03-05 04:30:54 +08:00
|
|
|
background-color: @background-secondary;
|
2015-02-07 06:46:30 +08:00
|
|
|
}
|