mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-09-17 22:40:54 +02:00
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:
43
src/components/RoomDialog.scss
Normal file
43
src/components/RoomDialog.scss
Normal 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
|
||||
}
|
Reference in New Issue
Block a user