Mailspring/static/components/tokenizing-text-field.less
Ben Gotow 73b99880fd refactor(*): Remove Atom package dependecies and Atom styles!
Test Plan: Run existing tests

Reviewers: evan

Differential Revision: https://review.inboxapp.com/D1160
2015-02-06 16:57:33 -08:00

83 lines
2 KiB
Text

@import "ui-variables";
.tokenizing-field {
display: block;
padding: 0;
margin: 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;
}
.content-container {
position: absolute;
width: 100%;
background-color: @background-color;
box-shadow: 0 2px 8px rgba(0,0,0,0.4);
z-index: 40;
}
.token {
display: inline-block;
position: relative;
padding: 0 16px;
margin: 0 5px 5px 0;
border-radius: 18px;
font-size: 15px;
background-color: @input-tint-color;
border: 1px solid darken(@input-tint-color, 20%);
.action {
position:absolute;
padding:2px;
right:2px;
border: 0;
margin: 0;
background-color: transparent;
color: transparent;
font-size: 12px;
}
&:hover {
background-color: @input-tint-color-hover;
.action {
color: @text-color-subtle;
}
}
&.selected,
&.dragging {
background-color: @background-color-selected;
color: @text-color-inverse;
}
}
.tokenizing-field-label {
color: @text-color-subtle;
float: left;
text-transform: capitalize;
padding-top: 2px;
}
.tokenizing-field-input {
padding-left:30px;
input {
display: inline-block;
width: initial;
padding: 2px 0;
margin: 0 5px 5px 0;
border: none;
min-width: 5em;
background-color:transparent;
}
}
}
body.is-blurred .tokenizing-field .token {
background-color: @input-tint-color-blurred;
border: 1px solid darken(@input-tint-color-blurred, 20%);
}