Mailspring/static/components/menu.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

88 lines
1.9 KiB
Text

@import "ui-variables";
.menu {
.header-container {
background-color: @background-color-secondary;
border-bottom:1px solid @base-border-color;
padding:8px;
position: relative;
input.search {
border:1px solid darken(@background-color-secondary, 10%);
background-color: white;
border-radius:12px;
padding-left: 10px;
}
}
.footer-container {
position: relative;
border-top:1px solid @base-border-color;
}
.content-container {
background: @background-color-secondary;
width: 100%;
margin-top: -1px;
}
.item {
display: block;
padding-left: @padding-base-horizontal;
padding-top: @padding-base-vertical;
padding-bottom: @padding-base-vertical;
cursor: pointer;
color: @text-color;
width: 100%;
overflow: hidden;
.primary {
max-width: 100%;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
.secondary {
max-width: 100%;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
padding-left:5px;
color:@text-color-very-subtle;
}
}
.item.divider {
font-weight:@headings-font-weight;
color: @menu-divider-color;
font-size: @font-size-small;
text-transform: uppercase;
margin-top: 10px;
pointer-events: none;
}
.item.checked {
background-image:url(./images/menu/checked@2x.png);
background-size: 16px;
background-position: right;
background-repeat: no-repeat;
background-position-x: 97%;
margin-right: 20px;
padding-right: 10%;
}
.item.selected.checked, .item.checked:hover {
background-image:url(./images/menu/checked-selected@2x.png);
}
.item.selected, .item:hover {
text-decoration: none;
background-color: @accent-primary;
color: @text-color-inverse;
.primary {
color: @text-color-inverse;
}
.secondary {
color: @text-color-inverse-very-subtle;
}
}
}