Mailspring/internal_packages/search-bar/stylesheets/search-bar.less
Ben Gotow 5b7ae0ad54 feat(tags): Tags dropdown and new features for Menu and Popover
Summary:
Focused Content Store should notify observers when focused items change, not just when they're reassigned

Popovers should have a `direction` and optional event onOpened

Menu divider documentation was wrong, menus should support checked items by default

Pressing escape in a popover's input should dismiss the popover

Other changes

Remove specs that make no sense anymore

Small tweak to report build breaking. Shouldn't happen often ;)

Test Plan: Run tests, which will now phone home if they break

Reviewers: evan

Reviewed By: evan

Differential Revision: https://review.inboxapp.com/D1493
2015-05-13 12:01:41 -07:00

84 lines
1.4 KiB
Plaintext

@import "ui-variables";
@import "ui-mixins";
.search-bar {
position: relative;
order: -100;
overflow: visible;
z-index: 100;
width:450px;
margin-top: (50px - 30px) / 2;
margin-left: 12px;
margin-right: 12px;
.menu .header-container {
padding:0;
height:30px;
background-color: transparent;
border:none;
input {
padding-top: 3.5px;
padding-left:30px;
width: 100%;
height: 30px;
}
input.empty {
text-align: left;
}
input.empty:focus {
text-align: left;
}
}
.menu .footer-container {
border:none;
}
.menu .content-container {
position: absolute;
z-index: 2;
width: 100%;
box-shadow: @standard-shadow;
background-color: @menu-color;
.item {
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
}
.search-container {
position: relative;
&.showing-suggestions {
.suggestions { display: inherit; }
.clear {
color: @input-accessory-color;
display: inherit;
}
}
&.showing-query {
.clear { display: inherit; }
}
}
.search-accessory {
&.search {
position: absolute;
top: floor(40px - 16px)/2;
left: @padding-base-horizontal;
}
&.clear {
position: absolute;
top: floor(40px - 26px)/2 - 1px;
color: @input-cancel-color;
right: @padding-base-horizontal;
display: none;
}
}
}