2015-03-10 09:25:53 +08:00
|
|
|
@import "ui-variables";
|
|
|
|
|
2015-07-24 05:12:14 +08:00
|
|
|
.selection-bar-absolute-enter {
|
|
|
|
opacity: 0;
|
|
|
|
.inner {
|
|
|
|
top: -100%;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.selection-bar-absolute-enter.selection-bar-absolute-enter-active {
|
|
|
|
opacity: 1;
|
|
|
|
.inner {
|
|
|
|
top:0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.selection-bar-absolute-leave {
|
|
|
|
opacity: 1;
|
|
|
|
.inner {
|
|
|
|
top:0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.selection-bar-absolute-leave.selection-bar-absolute-leave-active {
|
|
|
|
opacity: 0;
|
|
|
|
.inner {
|
|
|
|
top: -100%;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
refactor(*): Thread list fixes, flexible workspace store, multiple root sheets
Summary:
Remember to remove all the event listeners added to email frame
New files tab, queryable filename, not attribute
Rename ThreadSelectionBar to RootSelectionBar to go with RootCenterComponent, make it appear for draft selection and file selection as well
Initial file list and file list store, File Location
Remove unnecessary shouldComponentUpdate
Always track whether new requests have happened since ours to prevent out of order triggers
Always scroll to the current [focused/keyboard-cursor] in lists
So goodbye to the trash tag
Only scroll to current item if focus or keyboard has moved
Show message snippet in notification if no subject line
Make the RootSelectionBar pull items from Component Registry
New Archive button (prettier than the other one)
Refactor event additions to iframe so iframe can be used for file display also
Thread List is no longer the uber root package - drafts and files moved to separate packages
WorkspaceStore now allows packages to register sheets, "view" concept replaced with "root sheet" concept, "mode" may not be observed by all sheets, and is now called "preferred mode"
Don't animate transitions between two root sheets
Mode switch is only visible on root sheets that support multiple modes
Account sidebar now shows "Views" that have registered themselves: drafts and files for now
Model Selection Bar is now a component, just like ModelList. Meant to be in the toolbar above a Model List
Misc supporting changes
New files package which registers it's views and components
Rename files package to `file-list`
Move checkmark column down into model list
Don't throw exception if shift-down arrow and nothing selected
Takes a long time on login to fetch first page of threads, make pages smaller
Displaynames, spec fixes
Test Plan: Run tests
Reviewers: evan
Reviewed By: evan
Differential Revision: https://review.inboxapp.com/D1412
2015-04-11 05:33:05 +08:00
|
|
|
.sheet-toolbar .selection-bar {
|
|
|
|
// This item sits in the toolbar and takes up all the remaining
|
|
|
|
// space from the toolbar-spacer divs, but flex-shrink means that
|
|
|
|
// it shrinks before any other element when not enough space is available.
|
|
|
|
|
|
|
|
// This is important because the spacers will prevent items from being clickable,
|
|
|
|
// (webkit-app-region:drag) even if we're covering them up. We need to make them
|
|
|
|
// 0px wide!
|
|
|
|
|
|
|
|
width: 100%;
|
|
|
|
flex-shrink:100;
|
2016-02-25 11:51:36 +08:00
|
|
|
height:38px;
|
refactor(*): Thread list fixes, flexible workspace store, multiple root sheets
Summary:
Remember to remove all the event listeners added to email frame
New files tab, queryable filename, not attribute
Rename ThreadSelectionBar to RootSelectionBar to go with RootCenterComponent, make it appear for draft selection and file selection as well
Initial file list and file list store, File Location
Remove unnecessary shouldComponentUpdate
Always track whether new requests have happened since ours to prevent out of order triggers
Always scroll to the current [focused/keyboard-cursor] in lists
So goodbye to the trash tag
Only scroll to current item if focus or keyboard has moved
Show message snippet in notification if no subject line
Make the RootSelectionBar pull items from Component Registry
New Archive button (prettier than the other one)
Refactor event additions to iframe so iframe can be used for file display also
Thread List is no longer the uber root package - drafts and files moved to separate packages
WorkspaceStore now allows packages to register sheets, "view" concept replaced with "root sheet" concept, "mode" may not be observed by all sheets, and is now called "preferred mode"
Don't animate transitions between two root sheets
Mode switch is only visible on root sheets that support multiple modes
Account sidebar now shows "Views" that have registered themselves: drafts and files for now
Model Selection Bar is now a component, just like ModelList. Meant to be in the toolbar above a Model List
Misc supporting changes
New files package which registers it's views and components
Rename files package to `file-list`
Move checkmark column down into model list
Don't throw exception if shift-down arrow and nothing selected
Takes a long time on login to fetch first page of threads, make pages smaller
Displaynames, spec fixes
Test Plan: Run tests
Reviewers: evan
Reviewed By: evan
Differential Revision: https://review.inboxapp.com/D1412
2015-04-11 05:33:05 +08:00
|
|
|
z-index: 10000;
|
|
|
|
-webkit-app-region: drag;
|
|
|
|
|
|
|
|
.absolute {
|
|
|
|
position: absolute;
|
|
|
|
left: -1px;
|
|
|
|
right:-1px;
|
|
|
|
top: 0;
|
2016-02-12 07:24:33 +08:00
|
|
|
height:37px;
|
refactor(*): Thread list fixes, flexible workspace store, multiple root sheets
Summary:
Remember to remove all the event listeners added to email frame
New files tab, queryable filename, not attribute
Rename ThreadSelectionBar to RootSelectionBar to go with RootCenterComponent, make it appear for draft selection and file selection as well
Initial file list and file list store, File Location
Remove unnecessary shouldComponentUpdate
Always track whether new requests have happened since ours to prevent out of order triggers
Always scroll to the current [focused/keyboard-cursor] in lists
So goodbye to the trash tag
Only scroll to current item if focus or keyboard has moved
Show message snippet in notification if no subject line
Make the RootSelectionBar pull items from Component Registry
New Archive button (prettier than the other one)
Refactor event additions to iframe so iframe can be used for file display also
Thread List is no longer the uber root package - drafts and files moved to separate packages
WorkspaceStore now allows packages to register sheets, "view" concept replaced with "root sheet" concept, "mode" may not be observed by all sheets, and is now called "preferred mode"
Don't animate transitions between two root sheets
Mode switch is only visible on root sheets that support multiple modes
Account sidebar now shows "Views" that have registered themselves: drafts and files for now
Model Selection Bar is now a component, just like ModelList. Meant to be in the toolbar above a Model List
Misc supporting changes
New files package which registers it's views and components
Rename files package to `file-list`
Move checkmark column down into model list
Don't throw exception if shift-down arrow and nothing selected
Takes a long time on login to fetch first page of threads, make pages smaller
Displaynames, spec fixes
Test Plan: Run tests
Reviewers: evan
Reviewed By: evan
Differential Revision: https://review.inboxapp.com/D1412
2015-04-11 05:33:05 +08:00
|
|
|
border-left:1px solid @border-color-divider;
|
|
|
|
border-right:1px solid @border-color-divider;
|
2015-06-09 08:02:50 +08:00
|
|
|
background-color: @background-primary;
|
refactor(*): Thread list fixes, flexible workspace store, multiple root sheets
Summary:
Remember to remove all the event listeners added to email frame
New files tab, queryable filename, not attribute
Rename ThreadSelectionBar to RootSelectionBar to go with RootCenterComponent, make it appear for draft selection and file selection as well
Initial file list and file list store, File Location
Remove unnecessary shouldComponentUpdate
Always track whether new requests have happened since ours to prevent out of order triggers
Always scroll to the current [focused/keyboard-cursor] in lists
So goodbye to the trash tag
Only scroll to current item if focus or keyboard has moved
Show message snippet in notification if no subject line
Make the RootSelectionBar pull items from Component Registry
New Archive button (prettier than the other one)
Refactor event additions to iframe so iframe can be used for file display also
Thread List is no longer the uber root package - drafts and files moved to separate packages
WorkspaceStore now allows packages to register sheets, "view" concept replaced with "root sheet" concept, "mode" may not be observed by all sheets, and is now called "preferred mode"
Don't animate transitions between two root sheets
Mode switch is only visible on root sheets that support multiple modes
Account sidebar now shows "Views" that have registered themselves: drafts and files for now
Model Selection Bar is now a component, just like ModelList. Meant to be in the toolbar above a Model List
Misc supporting changes
New files package which registers it's views and components
Rename files package to `file-list`
Move checkmark column down into model list
Don't throw exception if shift-down arrow and nothing selected
Takes a long time on login to fetch first page of threads, make pages smaller
Displaynames, spec fixes
Test Plan: Run tests
Reviewers: evan
Reviewed By: evan
Differential Revision: https://review.inboxapp.com/D1412
2015-04-11 05:33:05 +08:00
|
|
|
transition: opacity 0.2s ease-in-out;
|
|
|
|
|
|
|
|
.inner {
|
|
|
|
position: absolute;
|
|
|
|
width: 100%;
|
|
|
|
display:flex;
|
|
|
|
-webkit-app-region: no-drag;
|
2015-07-24 05:12:14 +08:00
|
|
|
transition: top 0.2s ease-in-out;
|
refactor(*): Thread list fixes, flexible workspace store, multiple root sheets
Summary:
Remember to remove all the event listeners added to email frame
New files tab, queryable filename, not attribute
Rename ThreadSelectionBar to RootSelectionBar to go with RootCenterComponent, make it appear for draft selection and file selection as well
Initial file list and file list store, File Location
Remove unnecessary shouldComponentUpdate
Always track whether new requests have happened since ours to prevent out of order triggers
Always scroll to the current [focused/keyboard-cursor] in lists
So goodbye to the trash tag
Only scroll to current item if focus or keyboard has moved
Show message snippet in notification if no subject line
Make the RootSelectionBar pull items from Component Registry
New Archive button (prettier than the other one)
Refactor event additions to iframe so iframe can be used for file display also
Thread List is no longer the uber root package - drafts and files moved to separate packages
WorkspaceStore now allows packages to register sheets, "view" concept replaced with "root sheet" concept, "mode" may not be observed by all sheets, and is now called "preferred mode"
Don't animate transitions between two root sheets
Mode switch is only visible on root sheets that support multiple modes
Account sidebar now shows "Views" that have registered themselves: drafts and files for now
Model Selection Bar is now a component, just like ModelList. Meant to be in the toolbar above a Model List
Misc supporting changes
New files package which registers it's views and components
Rename files package to `file-list`
Move checkmark column down into model list
Don't throw exception if shift-down arrow and nothing selected
Takes a long time on login to fetch first page of threads, make pages smaller
Displaynames, spec fixes
Test Plan: Run tests
Reviewers: evan
Reviewed By: evan
Differential Revision: https://review.inboxapp.com/D1412
2015-04-11 05:33:05 +08:00
|
|
|
|
|
|
|
.centered {
|
|
|
|
flex: 1;
|
|
|
|
cursor:default;
|
|
|
|
text-align: center;
|
|
|
|
color:@text-color-subtle;
|
2016-02-12 07:24:33 +08:00
|
|
|
line-height: 38px;
|
2015-05-22 09:08:29 +08:00
|
|
|
text-overflow: ellipsis;
|
|
|
|
overflow: hidden;
|
|
|
|
white-space: nowrap;
|
2015-07-24 05:12:14 +08:00
|
|
|
-webkit-app-region: drag;
|
refactor(*): Thread list fixes, flexible workspace store, multiple root sheets
Summary:
Remember to remove all the event listeners added to email frame
New files tab, queryable filename, not attribute
Rename ThreadSelectionBar to RootSelectionBar to go with RootCenterComponent, make it appear for draft selection and file selection as well
Initial file list and file list store, File Location
Remove unnecessary shouldComponentUpdate
Always track whether new requests have happened since ours to prevent out of order triggers
Always scroll to the current [focused/keyboard-cursor] in lists
So goodbye to the trash tag
Only scroll to current item if focus or keyboard has moved
Show message snippet in notification if no subject line
Make the RootSelectionBar pull items from Component Registry
New Archive button (prettier than the other one)
Refactor event additions to iframe so iframe can be used for file display also
Thread List is no longer the uber root package - drafts and files moved to separate packages
WorkspaceStore now allows packages to register sheets, "view" concept replaced with "root sheet" concept, "mode" may not be observed by all sheets, and is now called "preferred mode"
Don't animate transitions between two root sheets
Mode switch is only visible on root sheets that support multiple modes
Account sidebar now shows "Views" that have registered themselves: drafts and files for now
Model Selection Bar is now a component, just like ModelList. Meant to be in the toolbar above a Model List
Misc supporting changes
New files package which registers it's views and components
Rename files package to `file-list`
Move checkmark column down into model list
Don't throw exception if shift-down arrow and nothing selected
Takes a long time on login to fetch first page of threads, make pages smaller
Displaynames, spec fixes
Test Plan: Run tests
Reviewers: evan
Reviewed By: evan
Differential Revision: https://review.inboxapp.com/D1412
2015-04-11 05:33:05 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2015-03-10 09:25:53 +08:00
|
|
|
.list-container {
|
2016-02-20 10:22:28 +08:00
|
|
|
.list-rows > div {
|
|
|
|
// Note: This allows rows to be animated in and out!
|
|
|
|
transition: top ease-out 120ms;
|
|
|
|
}
|
2015-03-10 09:25:53 +08:00
|
|
|
.list-item {
|
|
|
|
font-size: @font-size-base;
|
|
|
|
color: @text-color;
|
|
|
|
background: @list-bg;
|
|
|
|
|
|
|
|
&:hover {
|
2015-03-26 09:22:52 +08:00
|
|
|
background: darken(@list-bg, 5%);
|
2015-03-10 09:25:53 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
&.selected {
|
2015-04-09 10:25:00 +08:00
|
|
|
background: @list-selected-bg;
|
|
|
|
color: @list-selected-color;
|
2016-02-12 07:24:33 +08:00
|
|
|
border-bottom: 1px solid @list-selected-border;
|
2015-04-09 10:25:00 +08:00
|
|
|
}
|
|
|
|
|
2016-02-03 03:12:13 +08:00
|
|
|
&.next-is-selected {
|
2016-02-12 07:24:33 +08:00
|
|
|
border-bottom: 1px solid @list-selected-border;
|
2016-02-03 03:12:13 +08:00
|
|
|
}
|
|
|
|
|
2015-04-09 10:25:00 +08:00
|
|
|
&.focused {
|
|
|
|
background: @list-focused-bg;
|
|
|
|
color: @list-focused-color;
|
2016-02-12 07:24:33 +08:00
|
|
|
border-bottom: 1px solid @list-focused-border;
|
2015-03-10 09:25:53 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-09-28 17:43:46 +08:00
|
|
|
body.is-blurred {
|
|
|
|
.list-container {
|
|
|
|
.list-item {
|
|
|
|
&.selected {
|
|
|
|
background: fadeout(desaturate(@list-selected-bg, 100%), 65%);
|
2016-02-12 07:24:33 +08:00
|
|
|
border-bottom: 1px solid fadeout(desaturate(@list-selected-border, 100%), 65%);
|
2015-09-28 17:43:46 +08:00
|
|
|
color: @text-color;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.focused {
|
|
|
|
background: fadeout(desaturate(@list-focused-bg, 100%), 65%);
|
2016-02-12 07:24:33 +08:00
|
|
|
border-bottom: 1px solid fadeout(desaturate(@list-focused-border, 100%), 65%);
|
2015-09-28 17:43:46 +08:00
|
|
|
color: @text-color;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-03-10 09:25:53 +08:00
|
|
|
.list-tabular {
|
|
|
|
flex: 1;
|
|
|
|
width: 100%;
|
2015-06-06 02:50:55 +08:00
|
|
|
height: 100%;
|
2015-03-10 09:25:53 +08:00
|
|
|
|
|
|
|
.list-tabular-item {
|
|
|
|
position: relative;
|
|
|
|
width: 100%;
|
|
|
|
display: flex;
|
2016-02-12 07:24:33 +08:00
|
|
|
align-items: center;
|
|
|
|
border-bottom: 1px solid @list-border;
|
2016-02-23 08:08:44 +08:00
|
|
|
border-left:4px solid transparent;
|
2016-02-12 07:24:33 +08:00
|
|
|
|
2015-03-10 09:25:53 +08:00
|
|
|
&:hover {
|
|
|
|
cursor: default;
|
|
|
|
}
|
2015-04-09 10:25:00 +08:00
|
|
|
|
2015-05-16 01:55:17 +08:00
|
|
|
&.keyboard-cursor {
|
2016-02-23 08:08:44 +08:00
|
|
|
border-left:4px solid @list-focused-bg;
|
2015-05-16 01:55:17 +08:00
|
|
|
}
|
|
|
|
|
2015-04-09 10:25:00 +08:00
|
|
|
&.selected {
|
|
|
|
.checkmark .inner {
|
|
|
|
background-color: @accent-primary;
|
|
|
|
background-image: url(images/thread-list/checkbox-checkmark@2x.png);
|
|
|
|
border:none;
|
|
|
|
border-radius: 2px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&.selected.focused {
|
|
|
|
.checkmark .inner {
|
|
|
|
background-color: @list-bg;
|
|
|
|
background-image: url(images/thread-list/checkbox-checkmark-activerow@2x.png);
|
|
|
|
border:none;
|
|
|
|
border-radius: 2px;
|
|
|
|
}
|
|
|
|
}
|
2015-06-06 02:40:44 +08:00
|
|
|
&.focused {
|
|
|
|
.checkmark .inner {
|
|
|
|
border:1px solid @accent-primary;
|
|
|
|
}
|
|
|
|
}
|
2015-04-09 10:25:00 +08:00
|
|
|
|
|
|
|
.checkmark {
|
2016-02-12 07:24:33 +08:00
|
|
|
padding: 11px;
|
2015-04-09 10:25:00 +08:00
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
|
|
|
left: 0;
|
|
|
|
.inner {
|
|
|
|
width:14px;
|
|
|
|
height:14px;
|
2015-06-06 02:40:44 +08:00
|
|
|
border:1px solid @list-border;
|
2015-04-09 10:25:00 +08:00
|
|
|
border-radius: 2px;
|
|
|
|
background: transparent;
|
|
|
|
background-size: 12px 9px;
|
|
|
|
background-repeat: no-repeat;
|
|
|
|
background-position: center;
|
|
|
|
}
|
|
|
|
}
|
2015-03-10 09:25:53 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.list-column {
|
|
|
|
// The width is set by React.
|
2016-02-12 07:24:33 +08:00
|
|
|
display: inherit;
|
|
|
|
padding: 0 @padding-base-horizontal;
|
2015-03-10 09:25:53 +08:00
|
|
|
overflow: hidden;
|
|
|
|
white-space: nowrap;
|
|
|
|
text-overflow: ellipsis;
|
2016-02-24 17:04:57 +08:00
|
|
|
align-items: center;
|
2016-02-25 11:51:36 +08:00
|
|
|
|
2016-02-23 08:08:44 +08:00
|
|
|
&:first-child {
|
|
|
|
padding-left: @padding-base-horizontal - 4;
|
|
|
|
}
|
2015-03-10 09:25:53 +08:00
|
|
|
&:last-child {
|
|
|
|
text-align: right;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|