Mailspring/internal_packages/search-bar/stylesheets/search-bar.less
Ben Gotow d6336dae08 Squashed commit of deeply broken branch
commit d1c455515e04424d429c87a07aff248a4a767f23
Merge: 72e5536 512f8db
Author: Ben Gotow <bengotow@gmail.com>
Date:   Thu Feb 19 18:42:29 2015 -0800

    Merge sheet and flexbox components, fonts, and more

    Conflicts:
    	static/workspace-view.less

commit 72e553652f5b26a96155c51e04db46baafb916be
Author: Ben Gotow <bengotow@gmail.com>
Date:   Wed Feb 18 12:33:08 2015 -0800

    Start transitioning to a better set of ui-variables (from bootstrap)

commit ed22fb7fe1c6544af44fae69b83e7e63965ddf4d
Author: Ben Gotow <bengotow@gmail.com>
Date:   Wed Feb 18 11:55:58 2015 -0800

    I hate CSS

commit 512f8db414ceef74712c9d63ba5a67b44cf778c4
Author: Ben Gotow <bengotow@gmail.com>
Date:   Mon Feb 16 10:10:44 2015 -0800

    Initial work on top toolbar

commit c2d7a0e0a2f6f6ebe254cca24ad0735336d57b70
Author: Ben Gotow <bengotow@gmail.com>
Date:   Thu Feb 12 18:47:26 2015 -0800

    New UI Prototype interaction / stores for sheets
2015-03-03 09:49:15 -08:00

120 lines
2.1 KiB
Plaintext

@import "ui-variables";
@import "ui-mixins";
.search-settings-bar {
background: -webkit-linear-gradient(top, @background-color, @background-color-secondary);
order: 200;
.showing {
display:inherit;
height: 85px;
}
.hidden {
display:none;
}
.field {
display:inline-block;
padding:5px;
padding-left:8px;
padding-right:8px;
input {
margin-left:5px;
vertical-align: middle;
}
}
}
.search-bar {
position: relative;
order: 1;
overflow: visible;
z-index: 100;
-webkit-user-select: none;
.menu .header-container {
padding: 0px 50px 0px 15px;
background-color: transparent;
border:none;
input {
width: 100%;
font-size: 20px;
line-height: 1;
border: 0;
padding-top: 16px;
padding-bottom: 15px;
}
}
.menu .content-container {
position: absolute;
z-index: 2;
width: 100%;
box-shadow: @standard-shadow;
background-color: @menu-color;
.divider {
font-weight:@headings-font-weight;
color: @menu-divider-color;
font-size: @minor-font-size;
text-transform: uppercase;
margin-top: 10px;
padding: 4px;
padding-left: 15px;
}
.item {
padding: 4px;
padding-left: 15px;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
}
.search-container {
position: relative;
&.focused {
.search-accessory { color: @text-color-subtle; }
.search-accessory:hover {
cursor: pointer;
color: @input-accessory-color-hover !important;
}
}
&.committed-query {
.search-accessory.clear { display: block; }
.search-accessory.search {
display: none;
}
}
&.showing-suggestions {
.suggestions{ display: inherit; }
}
}
.search-accessory {
color: @input-accessory-color;
position: absolute;
top: 0;
right: 0;
&.search {
padding: 18px 15px;
font-size: 20px;
line-height: 1;
}
&.clear {
display: none;
padding: 17px 19px;
line-height: 20px
}
}
}