Room dialog (#905)

* support ToolIcon className and fix label padding

* factor some ExportDialog classes out to Modal

* initial RoomDialog prototype

* change label for another-session button

* remove unused css

* add color comments

* Move the collaboration button to the main menu, add support for mobile

* remove button for creating another session

* add locks

* Fix alignment issue

* Reorder button

* reuse current scene for collab session

* keep collaboration state on restore

Co-authored-by: Jed Fox <git@twopointzero.us>
This commit is contained in:
David Luzar
2020-03-11 19:42:18 +01:00
committed by GitHub
parent aa9a6b0909
commit b82b0754ac
15 changed files with 341 additions and 40 deletions

View File

@@ -0,0 +1,43 @@
.RoomDialog-modalButton.is-collaborating {
background-color: #ebfbee; // OC GREEN-0
color: #2b8a3e; // OC GREEN-9
}
.RoomDialog-linkContainer {
display: flex;
margin: 1.5em 0;
}
.RoomDialog-link {
min-width: 0;
flex: 1 1 auto;
margin-left: 1.5em;
display: inline-block;
cursor: pointer;
border: none;
height: 2.5rem;
line-height: 2.5rem;
padding: 0 0.5rem;
white-space: nowrap;
border-radius: var(--space-factor);
background-color: #eee;
}
.RoomDialog-link:hover {
background-color: #eee;
}
.RoomDialog-link:focus {
outline: none;
box-shadow: 0 0 0 2px steelblue;
}
.RoomDialog-sessionStartButtonContainer {
display: flex;
justify-content: center;
}
.RoomDialog-stopSession {
background-color: #ffe3e3; // OC RED-1
color: #c92a2a; // OC RED-9
}