2015-03-06 07:42:38 +08:00
|
|
|
@import "ui-variables";
|
|
|
|
@import "ui-mixins";
|
|
|
|
|
2015-02-21 05:17:11 +08:00
|
|
|
html,
|
|
|
|
body {
|
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
|
|
|
overflow: hidden;
|
|
|
|
font-family: @font-family;
|
|
|
|
font-size: @font-size;
|
2015-03-06 05:31:11 +08:00
|
|
|
line-height: @line-height-base;
|
2015-03-05 02:37:57 +08:00
|
|
|
-webkit-font-smoothing: antialiased;
|
2015-02-21 05:17:11 +08:00
|
|
|
}
|
|
|
|
|
2015-11-12 02:25:11 +08:00
|
|
|
nylas-workspace {
|
2015-02-21 05:17:11 +08:00
|
|
|
display: block;
|
|
|
|
height: 100%;
|
|
|
|
overflow: hidden;
|
|
|
|
position: relative;
|
|
|
|
font-family: @font-family;
|
|
|
|
|
feat(*): draft icon, misc fixes, and WorkspaceStore / custom toolbar in secondary windows
Summary:
Features:
- ThreadListParticipants ignores drafts when computing participants, renders "Draft" label, pending design
- Put the WorkspaceStore in every window—means they all get toolbars and custom gumdrop icons on Mac OS X
Bug Fixes:
- Never display notifications for email the user just sent
- Fix obscure issue with DatabaseView trying to update metadata on items it froze. This resolves issue with names remaining bold after marking as read, drafts not appearing in message list immediately.
- When you pop out a draft, save it first and *wait* for the commit() promise to succeed.
- If you scroll very fast, you node.contentWindow can be null in eventedIframe
Other:
Make it OK to re-register the same component
Make it possible to unregister a hot window
Break the Sheet Toolbar out into it's own file to make things manageable
Replace `package.windowPropsReceived` with a store-style model where anyone can listen for changes to `windowProps`
When I put the WorkspaceStore in every window, I ran into a problem because the package was no longer rendering an instance of the Composer, it was declaring a root sheet with a composer in it. This meant that it was actually a React component that needed to listen to window props, not the package itself.
`atom` is already an event emitter, so I added a `onWindowPropsReceived` hook so that components can listen to window props as if they were listening to a store. I think this might be more flexible than only broadcasting the props change event to packages.
Test Plan: Run tests
Reviewers: evan
Reviewed By: evan
Differential Revision: https://phab.nylas.com/D1592
2015-06-04 07:02:19 +08:00
|
|
|
// Important: This attribute is used in the theme-manager-specs to check that
|
|
|
|
// themes load and override each other correctly. Do not remove!
|
2015-06-03 10:51:00 +08:00
|
|
|
background-color: @background-primary;
|
|
|
|
|
2015-11-12 02:25:11 +08:00
|
|
|
nylas-workspace-axis.horizontal {
|
2015-02-21 05:17:11 +08:00
|
|
|
display: -webkit-flex;
|
|
|
|
height: 100%;
|
|
|
|
}
|
|
|
|
|
2015-11-12 02:25:11 +08:00
|
|
|
nylas-workspace-axis.vertical {
|
2015-02-21 05:17:11 +08:00
|
|
|
display: -webkit-flex;
|
|
|
|
-webkit-flex: 1;
|
|
|
|
-webkit-flex-flow: column;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.sheet-container {
|
|
|
|
height:100%;
|
|
|
|
}
|
|
|
|
|
2015-04-09 10:25:00 +08:00
|
|
|
.sheet {
|
|
|
|
background-color: @background-primary;
|
|
|
|
}
|
|
|
|
|
2015-02-21 05:17:11 +08:00
|
|
|
.sheet-stack-enter {
|
2015-03-26 03:41:48 +08:00
|
|
|
left:30px;
|
2015-03-19 09:21:04 +08:00
|
|
|
opacity: 0;
|
2015-03-26 03:41:48 +08:00
|
|
|
transition: all .125s ease-out;
|
2015-02-21 05:17:11 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.sheet-stack-enter.sheet-stack-enter-active {
|
|
|
|
left:0;
|
2015-03-19 09:21:04 +08:00
|
|
|
opacity: 1;
|
2015-02-21 05:17:11 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.sheet-stack-leave {
|
|
|
|
left:0;
|
2015-03-19 09:21:04 +08:00
|
|
|
opacity: 1;
|
2015-03-26 03:41:48 +08:00
|
|
|
transition: all .125s ease-in;
|
2015-02-21 05:17:11 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.sheet-stack-leave.sheet-stack-leave-active {
|
2015-03-26 03:41:48 +08:00
|
|
|
left:30px;
|
2015-03-19 09:21:04 +08:00
|
|
|
opacity: 0;
|
2015-02-21 05:17:11 +08:00
|
|
|
}
|
|
|
|
|
2015-09-12 05:49:21 +08:00
|
|
|
.toolbar-menu-control {
|
|
|
|
display:none;
|
|
|
|
}
|
|
|
|
|
2015-03-19 09:21:04 +08:00
|
|
|
.toolbar-window-controls {
|
2016-02-10 11:45:24 +08:00
|
|
|
margin-top:9px;
|
2015-03-26 09:22:52 +08:00
|
|
|
margin-left:@spacing-half;
|
2015-03-19 09:21:04 +08:00
|
|
|
order: -1000;
|
2015-03-26 09:22:52 +08:00
|
|
|
min-width: 72px;
|
|
|
|
width: 72px;
|
2015-03-21 05:52:10 +08:00
|
|
|
flex-grow: 0;
|
|
|
|
flex-shrink: 0;
|
2015-03-14 08:02:46 +08:00
|
|
|
|
2015-03-28 07:35:15 +08:00
|
|
|
&:hover {
|
|
|
|
button {
|
|
|
|
background-position: 0 -12px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-03-14 08:02:46 +08:00
|
|
|
button {
|
|
|
|
-webkit-app-region: no-drag;
|
|
|
|
display:inline-block;
|
|
|
|
padding:0;
|
2015-03-28 07:35:15 +08:00
|
|
|
width:12px;
|
|
|
|
height:12px;
|
2015-03-14 08:02:46 +08:00
|
|
|
margin:4px;
|
|
|
|
float:left;
|
2015-03-28 07:35:15 +08:00
|
|
|
background-color: transparent;
|
|
|
|
background-repeat: no-repeat;
|
|
|
|
background-position: 0 0;
|
|
|
|
background-size: 12px 48px;
|
|
|
|
border: 0;
|
2015-03-14 08:02:46 +08:00
|
|
|
&:active {
|
2015-03-28 07:35:15 +08:00
|
|
|
background-position: 0 -24px;
|
2015-03-14 08:02:46 +08:00
|
|
|
}
|
|
|
|
}
|
2015-03-28 07:35:15 +08:00
|
|
|
.close {
|
2015-09-09 05:32:38 +08:00
|
|
|
background-image: url("images/application-frame/close@1x.png");
|
2015-03-28 07:35:15 +08:00
|
|
|
}
|
2015-03-14 08:02:46 +08:00
|
|
|
.minimize {
|
2015-09-09 05:32:38 +08:00
|
|
|
background-image: url("images/application-frame/minimize@1x.png");
|
2015-03-14 08:02:46 +08:00
|
|
|
}
|
|
|
|
.maximize {
|
2015-10-24 09:30:47 +08:00
|
|
|
background-image: url("images/application-frame/fullscreen@1x.png");
|
|
|
|
}
|
|
|
|
&.alt-true {
|
|
|
|
.maximize {
|
|
|
|
background-image: url("images/application-frame/maximize@1x.png");
|
|
|
|
}
|
2015-09-09 05:32:38 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@media (-webkit-min-device-pixel-ratio: 2) {
|
|
|
|
.toolbar-window-controls {
|
|
|
|
.close {
|
|
|
|
background-image: url("images/application-frame/close@2x.png");
|
|
|
|
}
|
|
|
|
.minimize {
|
|
|
|
background-image: url("images/application-frame/minimize@2x.png");
|
|
|
|
}
|
|
|
|
.maximize {
|
2015-10-24 09:30:47 +08:00
|
|
|
background-image: url("images/application-frame/fullscreen@2x.png");
|
|
|
|
}
|
|
|
|
&.alt-true {
|
|
|
|
.maximize {
|
|
|
|
background-image: url("images/application-frame/maximize@2x.png");
|
|
|
|
}
|
2015-09-09 05:32:38 +08:00
|
|
|
}
|
2015-03-14 08:02:46 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
body.is-blurred {
|
2015-03-19 09:21:04 +08:00
|
|
|
.toolbar-window-controls {
|
2015-03-14 08:02:46 +08:00
|
|
|
button {
|
2015-03-28 07:35:15 +08:00
|
|
|
background-position: 0 -36px;
|
2015-03-14 08:02:46 +08:00
|
|
|
}
|
|
|
|
}
|
2015-07-17 08:51:18 +08:00
|
|
|
.sheet-toolbar-container {
|
2015-09-28 18:00:20 +08:00
|
|
|
background-image: -webkit-linear-gradient(top, lighten(@toolbar-background-color, 14%), lighten(@toolbar-background-color, 14%));
|
2015-11-24 10:28:30 +08:00
|
|
|
|
2015-09-28 18:00:20 +08:00
|
|
|
.btn.btn-toolbar {
|
|
|
|
background: none;
|
2016-02-10 11:45:24 +08:00
|
|
|
box-shadow: 0 0.5px 0 rgba(0,0,0,0.15), 0 -0.5px 0 rgba(0,0,0,0.15), 0.5px 0 0 rgba(0,0,0,0.15), -0.5px 0 0 rgba(0,0,0,0.15);
|
2015-09-28 18:00:20 +08:00
|
|
|
img { opacity:0.5; }
|
2015-07-17 08:51:18 +08:00
|
|
|
}
|
2015-09-30 14:58:30 +08:00
|
|
|
.item-container {
|
|
|
|
.window-title {
|
|
|
|
opacity: 0.5;
|
|
|
|
}
|
|
|
|
}
|
2015-07-17 08:51:18 +08:00
|
|
|
}
|
2015-03-14 08:02:46 +08:00
|
|
|
}
|
|
|
|
|
2015-04-09 10:25:00 +08:00
|
|
|
.sheet-toolbar-container {
|
2016-03-10 06:09:03 +08:00
|
|
|
background-image: -webkit-linear-gradient(lighten(@toolbar-background-color, 10%) 0%, lighten(@toolbar-background-color, 10%) 1.9%, lighten(@toolbar-background-color, 9%) 2%, @toolbar-background-color 100%);
|
2015-11-24 10:28:30 +08:00
|
|
|
color:@text-color-heading;
|
2015-06-18 07:03:50 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.layout-mode-popout {
|
|
|
|
.sheet-toolbar {
|
|
|
|
background: @background-primary;
|
|
|
|
height: 35px;
|
|
|
|
min-height: 35px;
|
|
|
|
max-height: 35px;
|
2016-11-16 08:16:42 +08:00
|
|
|
|
|
|
|
.btn-toolbar {
|
|
|
|
margin-top: 6px;
|
|
|
|
}
|
2015-06-18 07:03:50 +08:00
|
|
|
}
|
|
|
|
.toolbar-window-controls {
|
|
|
|
margin-top: 7px;
|
|
|
|
}
|
2015-04-09 10:25:00 +08:00
|
|
|
}
|
|
|
|
|
2015-03-13 06:07:38 +08:00
|
|
|
.sheet-toolbar {
|
2015-03-14 08:02:46 +08:00
|
|
|
position: relative;
|
|
|
|
-webkit-app-region: drag;
|
2015-07-17 08:51:18 +08:00
|
|
|
border-bottom: 1px solid darken(@toolbar-background-color, 9%);
|
2015-03-07 03:05:25 +08:00
|
|
|
width: 100%;
|
2016-02-10 11:45:24 +08:00
|
|
|
height: 38px;
|
2015-03-25 04:57:24 +08:00
|
|
|
|
2015-03-07 03:05:25 +08:00
|
|
|
// prevent flexbox from ever, ever resizing toolbars, no matter
|
|
|
|
// how much it thinks other content is being squished
|
2016-02-10 11:45:24 +08:00
|
|
|
min-height: 38px;
|
|
|
|
max-height: 38px;
|
2015-03-07 03:05:25 +08:00
|
|
|
|
|
|
|
// cover up the vertical resizing separators, so the toolbar appears
|
|
|
|
// to be one continuous bar.
|
|
|
|
z-index: 10;
|
2015-03-07 04:03:32 +08:00
|
|
|
|
2015-03-14 08:02:46 +08:00
|
|
|
.item-container > * {
|
|
|
|
-webkit-app-region: no-drag;
|
|
|
|
}
|
|
|
|
.item-spacer {
|
|
|
|
-webkit-app-region: drag;
|
|
|
|
}
|
2015-06-18 07:03:50 +08:00
|
|
|
|
2015-09-12 05:49:21 +08:00
|
|
|
.item-compose {
|
|
|
|
order: 101;
|
|
|
|
}
|
|
|
|
|
2015-06-18 07:03:50 +08:00
|
|
|
.item-container {
|
|
|
|
.window-title {
|
2015-07-15 07:08:23 +08:00
|
|
|
position: absolute;
|
2015-06-18 07:03:50 +08:00
|
|
|
text-align: center;
|
2015-07-15 07:08:23 +08:00
|
|
|
left: 50%;
|
|
|
|
transform: translateX(-50%);
|
2015-06-18 07:03:50 +08:00
|
|
|
-webkit-app-region: drag;
|
2015-07-15 07:08:23 +08:00
|
|
|
line-height: 36px;
|
2015-06-18 07:03:50 +08:00
|
|
|
&:hover {
|
|
|
|
cursor: default;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-03-19 09:21:04 +08:00
|
|
|
.item-back {
|
|
|
|
order:-999;
|
2015-06-06 02:40:44 +08:00
|
|
|
img.content-mask { background-color: @text-color-heading; }
|
2015-03-21 05:52:10 +08:00
|
|
|
flex-grow: 0;
|
|
|
|
flex-shrink: 0;
|
2015-07-14 07:33:57 +08:00
|
|
|
|
|
|
|
.item-back-title {
|
|
|
|
cursor: default;
|
|
|
|
color:@text-color-heading;
|
|
|
|
margin:0;
|
|
|
|
font-size: @font-size-h4;
|
|
|
|
font-weight: @font-weight-normal;
|
|
|
|
vertical-align: middle;
|
|
|
|
display:inline-block;
|
|
|
|
}
|
2016-02-24 07:56:34 +08:00
|
|
|
&:active {
|
|
|
|
.item-back-title { color: mix(@text-color-heading, @black, 30%); }
|
|
|
|
img.content-mask { background-color: mix(@text-color-heading, @black, 30%); }
|
|
|
|
}
|
2015-03-19 09:21:04 +08:00
|
|
|
}
|
2015-03-14 08:02:46 +08:00
|
|
|
|
2015-03-07 04:03:32 +08:00
|
|
|
.btn-toolbar {
|
2016-02-10 11:45:24 +08:00
|
|
|
margin-top: 8px;
|
2015-07-24 03:22:27 +08:00
|
|
|
margin-left: @spacing-three-quarters;
|
|
|
|
margin-right: 0;
|
2015-05-22 09:08:29 +08:00
|
|
|
flex-shrink: 0;
|
2016-02-10 11:45:24 +08:00
|
|
|
line-height: 1.75em;
|
|
|
|
height: 1.75em;
|
|
|
|
box-shadow: 0 0.5px 0.05px rgba(0,0,0,0.4), 0 -0.5px 0 rgba(0,0,0,0.12);
|
2016-02-19 07:21:36 +08:00
|
|
|
img.content-mask { background-color: fade(@text-color-heading, 80%); }
|
2016-02-10 11:45:24 +08:00
|
|
|
}
|
|
|
|
.btn-toolbar:active {
|
2016-02-19 07:21:36 +08:00
|
|
|
img.content-mask { background-color: fade(@text-color-heading, 90%); }
|
2015-03-07 04:03:32 +08:00
|
|
|
}
|
2015-07-24 03:22:27 +08:00
|
|
|
.btn-toolbar:only-of-type {
|
|
|
|
margin-right: @spacing-three-quarters;
|
2015-06-09 08:02:50 +08:00
|
|
|
}
|
2015-02-21 05:17:11 +08:00
|
|
|
}
|
|
|
|
|
2015-10-22 01:34:14 +08:00
|
|
|
.opacity-125ms-enter {
|
2015-03-14 04:11:24 +08:00
|
|
|
opacity:0;
|
2015-03-26 03:41:48 +08:00
|
|
|
transition: opacity .125s ease-out;
|
2015-03-14 04:11:24 +08:00
|
|
|
}
|
|
|
|
|
2015-10-22 01:34:14 +08:00
|
|
|
.opacity-125ms-enter.opacity-125ms-enter-active {
|
2015-03-14 04:11:24 +08:00
|
|
|
opacity:1;
|
|
|
|
}
|
|
|
|
|
2015-10-22 01:34:14 +08:00
|
|
|
.opacity-125ms-leave {
|
2015-03-14 04:11:24 +08:00
|
|
|
opacity:1;
|
2015-03-26 03:41:48 +08:00
|
|
|
transition: opacity .125s ease-in;
|
2015-03-14 04:11:24 +08:00
|
|
|
}
|
|
|
|
|
2015-10-22 01:34:14 +08:00
|
|
|
.opacity-125ms-leave.opacity-125ms-leave-active {
|
2015-03-14 04:11:24 +08:00
|
|
|
opacity:0;
|
|
|
|
}
|
|
|
|
|
2015-02-21 05:17:11 +08:00
|
|
|
.flexbox-handle-horizontal {
|
2016-02-19 07:21:36 +08:00
|
|
|
width: 8px;
|
2015-03-04 10:09:57 +08:00
|
|
|
top: 0;
|
|
|
|
bottom: 0;
|
|
|
|
z-index: 2;
|
|
|
|
position: absolute;
|
2015-02-21 05:17:11 +08:00
|
|
|
cursor: col-resize;
|
|
|
|
div {
|
|
|
|
height:100%;
|
2016-02-19 07:21:36 +08:00
|
|
|
box-shadow: 0.5px 0 0 @border-color-divider;
|
2015-02-21 05:17:11 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
&.flexbox-handle-right {
|
2015-06-06 02:50:55 +08:00
|
|
|
right:-4px;
|
2016-02-19 07:21:36 +08:00
|
|
|
padding-right:4px;
|
2015-02-21 05:17:11 +08:00
|
|
|
}
|
|
|
|
&.flexbox-handle-left {
|
2016-02-19 07:21:36 +08:00
|
|
|
left:-4px;
|
|
|
|
padding-right:4px;
|
2015-02-21 05:17:11 +08:00
|
|
|
}
|
|
|
|
}
|
2015-02-28 07:34:37 +08:00
|
|
|
|
|
|
|
.flexbox-handle-vertical {
|
|
|
|
width:100%;
|
|
|
|
height:6px;
|
|
|
|
left:0;
|
|
|
|
right:0;
|
|
|
|
z-index:2;
|
|
|
|
position:absolute;
|
|
|
|
cursor: row-resize;
|
|
|
|
div {
|
|
|
|
width:100%;
|
|
|
|
}
|
|
|
|
&.flexbox-handle-top {
|
|
|
|
top:-3px;
|
|
|
|
padding-right:3px;
|
|
|
|
}
|
|
|
|
&.flexbox-handle-bottom {
|
2015-03-06 07:42:38 +08:00
|
|
|
bottom: 0;
|
2015-02-28 07:34:37 +08:00
|
|
|
padding-right:2px;
|
|
|
|
}
|
|
|
|
}
|
2015-03-12 04:13:51 +08:00
|
|
|
|
2015-04-22 09:16:08 +08:00
|
|
|
.registered-region-visible {
|
feat(unsafe-components): Wrap injected components, catch exceptions, clean up ComponentRegistry
Summary:
This diff gives the ComponentRegistry a cleaner, smaller API. Instead of querying by name, location or role,
it's now just location and role, and you can register components for one or more location and one or more
roles without assigning the entries in the registry separate names.
When you register with the ComponentRegistry, the syntax is also cleaner and uses the component's displayName
instead of requiring you to provide a name. You also provide the actual component when unregistering, ensuring
that you can't unregister someone else's component.
InjectedComponent and InjectedComponentSet now wrap their children in UnsafeComponent, which prevents
render/component lifecycle problems from propogating.
Existing components have been updated:
1. maxWidth / minWidth are now containerStyles.maxWidth/minWidth
2. displayName is now required to use the CR.
3. containerRequired = false can be provided to exempt a component from being wrapped in an UnsafeComponent.
This is useful because it's slightly faster and keeps DOM flat.
This diff also makes the "Show Component Regions" more awesome. It displays column regions, since they now
use the InjectedComponentSet, and also shows for InjectedComponent as well as InjectedComponentSet.
Change ComponentRegistry syntax, lots more work on safely wrapping items. See description.
Fix for inline flexbox scenarios (message actions)
Allow ~/.inbox/packages to be symlinked to a github repo
Test Plan: Run tests!
Reviewers: evan
Reviewed By: evan
Differential Revision: https://review.inboxapp.com/D1457
2015-05-01 07:10:15 +08:00
|
|
|
border: 1px dashed rgba(255,0,0,0.5);
|
|
|
|
margin: 2px;
|
2015-04-22 09:16:08 +08:00
|
|
|
position:relative;
|
|
|
|
min-height:1.5em;
|
feat(unsafe-components): Wrap injected components, catch exceptions, clean up ComponentRegistry
Summary:
This diff gives the ComponentRegistry a cleaner, smaller API. Instead of querying by name, location or role,
it's now just location and role, and you can register components for one or more location and one or more
roles without assigning the entries in the registry separate names.
When you register with the ComponentRegistry, the syntax is also cleaner and uses the component's displayName
instead of requiring you to provide a name. You also provide the actual component when unregistering, ensuring
that you can't unregister someone else's component.
InjectedComponent and InjectedComponentSet now wrap their children in UnsafeComponent, which prevents
render/component lifecycle problems from propogating.
Existing components have been updated:
1. maxWidth / minWidth are now containerStyles.maxWidth/minWidth
2. displayName is now required to use the CR.
3. containerRequired = false can be provided to exempt a component from being wrapped in an UnsafeComponent.
This is useful because it's slightly faster and keeps DOM flat.
This diff also makes the "Show Component Regions" more awesome. It displays column regions, since they now
use the InjectedComponentSet, and also shows for InjectedComponent as well as InjectedComponentSet.
Change ComponentRegistry syntax, lots more work on safely wrapping items. See description.
Fix for inline flexbox scenarios (message actions)
Allow ~/.inbox/packages to be symlinked to a github repo
Test Plan: Run tests!
Reviewers: evan
Reviewed By: evan
Differential Revision: https://review.inboxapp.com/D1457
2015-05-01 07:10:15 +08:00
|
|
|
> .name {
|
2015-04-22 09:16:08 +08:00
|
|
|
background-color: rgba(255,180,180,0.9);
|
|
|
|
position: absolute;
|
|
|
|
color: black;
|
|
|
|
font-size: 13px;
|
|
|
|
top:50%;
|
|
|
|
left:50%;
|
|
|
|
white-space: nowrap;
|
|
|
|
z-index:100;
|
|
|
|
-webkit-transform: translate(-50%, -50%);
|
feat(unsafe-components): Wrap injected components, catch exceptions, clean up ComponentRegistry
Summary:
This diff gives the ComponentRegistry a cleaner, smaller API. Instead of querying by name, location or role,
it's now just location and role, and you can register components for one or more location and one or more
roles without assigning the entries in the registry separate names.
When you register with the ComponentRegistry, the syntax is also cleaner and uses the component's displayName
instead of requiring you to provide a name. You also provide the actual component when unregistering, ensuring
that you can't unregister someone else's component.
InjectedComponent and InjectedComponentSet now wrap their children in UnsafeComponent, which prevents
render/component lifecycle problems from propogating.
Existing components have been updated:
1. maxWidth / minWidth are now containerStyles.maxWidth/minWidth
2. displayName is now required to use the CR.
3. containerRequired = false can be provided to exempt a component from being wrapped in an UnsafeComponent.
This is useful because it's slightly faster and keeps DOM flat.
This diff also makes the "Show Component Regions" more awesome. It displays column regions, since they now
use the InjectedComponentSet, and also shows for InjectedComponent as well as InjectedComponentSet.
Change ComponentRegistry syntax, lots more work on safely wrapping items. See description.
Fix for inline flexbox scenarios (message actions)
Allow ~/.inbox/packages to be symlinked to a github repo
Test Plan: Run tests!
Reviewers: evan
Reviewed By: evan
Differential Revision: https://review.inboxapp.com/D1457
2015-05-01 07:10:15 +08:00
|
|
|
-webkit-user-select:text;
|
|
|
|
}
|
|
|
|
&:hover {
|
|
|
|
border: 1px dashed rgba(255,0,0,1);
|
2015-04-22 09:16:08 +08:00
|
|
|
}
|
|
|
|
}
|
2015-03-12 04:13:51 +08:00
|
|
|
|
2015-09-11 03:41:12 +08:00
|
|
|
// WINDOWS
|
|
|
|
|
2015-03-12 04:13:51 +08:00
|
|
|
body.platform-win32 {
|
2015-09-12 05:49:21 +08:00
|
|
|
&.window-type-default {
|
|
|
|
.toolbar-menu-control {
|
|
|
|
display:inherit;
|
2015-10-22 03:17:15 +08:00
|
|
|
order:10000;
|
|
|
|
.btn-toolbar {
|
2016-02-10 11:45:24 +08:00
|
|
|
margin-left: 0;
|
2015-10-22 03:17:15 +08:00
|
|
|
padding: 0 17px;
|
2016-02-10 11:45:24 +08:00
|
|
|
line-height: 36px;
|
|
|
|
img.content-mask {
|
|
|
|
vertical-align: middle;
|
|
|
|
background-color: @text-color-heading;
|
|
|
|
}
|
2015-10-22 03:17:15 +08:00
|
|
|
}
|
2015-09-12 05:49:21 +08:00
|
|
|
}
|
2015-10-22 03:17:15 +08:00
|
|
|
|
2015-09-12 05:49:21 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.item-compose {
|
|
|
|
order: -101;
|
|
|
|
}
|
|
|
|
|
2015-09-28 18:09:34 +08:00
|
|
|
.btn {
|
|
|
|
border-radius: 0;
|
|
|
|
}
|
2015-09-30 14:20:23 +08:00
|
|
|
|
2015-03-12 04:13:51 +08:00
|
|
|
.flexbox-handle-vertical {
|
|
|
|
cursor:ns-resize;
|
|
|
|
}
|
|
|
|
.flexbox-handle-horizontal {
|
|
|
|
cursor:ew-resize;
|
|
|
|
}
|
2015-09-11 03:41:12 +08:00
|
|
|
|
|
|
|
.toolbar-window-controls {
|
|
|
|
display:none;
|
|
|
|
}
|
|
|
|
|
|
|
|
.sheet-toolbar-container {
|
|
|
|
background-image: none;
|
|
|
|
background: @background-primary;
|
2015-09-12 05:49:21 +08:00
|
|
|
.btn-toolbar {
|
2015-10-22 03:17:15 +08:00
|
|
|
transition: background 300ms;
|
|
|
|
margin: 0 0 0 1px;
|
2016-02-10 11:45:24 +08:00
|
|
|
height: 37px;
|
2015-10-22 03:17:15 +08:00
|
|
|
padding: 0 14px;
|
2016-02-10 11:45:24 +08:00
|
|
|
padding-bottom: 2px;
|
2015-09-12 05:49:21 +08:00
|
|
|
border: 0;
|
|
|
|
box-shadow: none;
|
|
|
|
background: none;
|
2015-10-22 03:17:15 +08:00
|
|
|
&:hover {
|
2016-03-13 03:43:49 +08:00
|
|
|
background: darken(@list-hover-bg, 5%);
|
2015-10-22 03:17:15 +08:00
|
|
|
}
|
2015-09-12 05:49:21 +08:00
|
|
|
}
|
2015-09-11 03:41:12 +08:00
|
|
|
}
|
2015-10-22 11:32:33 +08:00
|
|
|
.btn-feedback {
|
|
|
|
background: @blue;
|
|
|
|
&:hover { background: lighten(@blue, 5%); }
|
|
|
|
&:active { background: lighten(@blue, 20%); }
|
|
|
|
}
|
2015-09-11 03:41:12 +08:00
|
|
|
}
|
2015-09-12 05:49:21 +08:00
|
|
|
|
2015-09-11 03:41:12 +08:00
|
|
|
body.platform-win32.is-blurred {
|
|
|
|
.sheet-toolbar-container {
|
|
|
|
background-image: none;
|
|
|
|
background: @background-primary;
|
2016-02-10 11:45:24 +08:00
|
|
|
.btn-toolbar {
|
|
|
|
box-shadow: none;
|
|
|
|
}
|
2015-09-11 03:41:12 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// LINUX
|
|
|
|
|
|
|
|
body.platform-linux {
|
|
|
|
.toolbar-window-controls {
|
|
|
|
display:none;
|
|
|
|
}
|
2015-09-12 05:49:21 +08:00
|
|
|
.item-compose {
|
|
|
|
order: -101;
|
|
|
|
}
|
|
|
|
|
2015-03-25 04:57:24 +08:00
|
|
|
}
|