Mailspring/static/components/tokenizing-text-field.less

86 lines
1.7 KiB
Text
Raw Normal View History

@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;
.header-container, .footer-container {
background-color: transparent;
padding:0;
margin:0;
border:0;
}
.token {
display: inline-block;
position: relative;
2015-03-06 05:31:11 +08:00
padding: 0.5em @spacing-half 0.10em @spacing-half;
2015-03-05 04:30:54 +08:00
padding-right: 1.5em;
margin: 0 5px 5px 0;
border-radius: @border-radius-base;
font-size: 15px;
background-color: @background-secondary;
2015-03-05 10:47:48 +08:00
max-width: 100%;
2015-03-05 04:30:54 +08:00
.action {
position:absolute;
padding: 0;
padding-top: 1px;
right: 5px;
border: 0;
margin: 0;
background-color: transparent;
color: @text-color-very-subtle;
font-size: 10px;
}
2015-03-05 04:30:54 +08:00
&:hover {
background-color: darken(@background-secondary, 5%);
cursor: -webkit-grab;
}
2015-03-05 04:30:54 +08:00
&.selected,
&.dragging {
background-color: @background-tertiary;
color: @text-color-inverse;
.action { color: @text-color-inverse-subtle; }
}
&.dragging {
cursor: -webkit-grabbing;
}
2015-03-05 04:30:54 +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-03-05 04:30:54 +08:00
input {
display: inline-block;
width: initial;
2015-03-06 05:31:11 +08:00
padding: 6px 0 3px 0;
2015-03-05 04:30:54 +08:00
margin: 0 5px 5px 0;
border: none;
min-width: 5em;
background-color:transparent;
}
input:focus {
box-shadow: none;
}
2015-03-05 04:30:54 +08:00
}
}
body.is-blurred .tokenizing-field .token {
2015-03-05 04:30:54 +08:00
background-color: @background-secondary;
}