forked from excalidraw/excalidraw
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
58 changed files
with
1,916 additions
and
297 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,144 @@ | ||
@import "../../packages/excalidraw/css/variables.module.scss"; | ||
|
||
.excalidraw { | ||
.command-palette-dialog { | ||
user-select: none; | ||
|
||
.Modal__content { | ||
height: 100%; | ||
max-height: 750px; | ||
|
||
.Island { | ||
height: 100%; | ||
padding: 1.5rem; | ||
} | ||
|
||
.Dialog__content { | ||
height: 100%; | ||
display: flex; | ||
flex-direction: column; | ||
} | ||
} | ||
|
||
.shortcuts-wrapper { | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
margin-top: 12px; | ||
gap: 1.5rem; | ||
} | ||
|
||
.shortcut { | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
height: 16px; | ||
font-size: 10px; | ||
gap: 0.25rem; | ||
|
||
.shortcut-wrapper { | ||
display: flex; | ||
} | ||
|
||
.shortcut-plus { | ||
margin: 0px 4px; | ||
} | ||
|
||
.shortcut-key { | ||
padding: 0px 4px; | ||
height: 16px; | ||
border-radius: 4px; | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
background-color: var(--color-primary-light); | ||
} | ||
|
||
.shortcut-desc { | ||
margin-left: 4px; | ||
color: var(--color-gray-50); | ||
} | ||
} | ||
|
||
.commands { | ||
overflow-y: auto; | ||
box-sizing: border-box; | ||
margin-top: 12px; | ||
color: var(--popup-text-color); | ||
|
||
.command-category { | ||
display: flex; | ||
flex-direction: column; | ||
padding: 12px 0px; | ||
margin-right: 0.25rem; | ||
} | ||
|
||
.command-category-title { | ||
font-size: 1rem; | ||
font-weight: 600; | ||
margin-bottom: 6px; | ||
display: flex; | ||
align-items: center; | ||
} | ||
|
||
.command-item { | ||
color: var(--popup-text-color); | ||
height: 36px; | ||
display: flex; | ||
justify-content: space-between; | ||
align-items: center; | ||
box-sizing: border-box; | ||
padding: 0 12px; | ||
border-radius: var(--border-radius-lg); | ||
cursor: pointer; | ||
|
||
&:active { | ||
background-color: var(--color-primary-light-darker); | ||
} | ||
|
||
.name { | ||
display: flex; | ||
align-items: center; | ||
gap: 0.25rem; | ||
} | ||
} | ||
|
||
.item-selected { | ||
background-color: var(--color-surface-mid); | ||
} | ||
|
||
.item-disabled { | ||
opacity: 0.3; | ||
cursor: not-allowed; | ||
} | ||
|
||
.no-match { | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
margin-top: 36px; | ||
} | ||
} | ||
|
||
.icon { | ||
width: 16px; | ||
height: 16px; | ||
margin-right: 6px; | ||
} | ||
|
||
b { | ||
background-color: #ffe599; | ||
color: var(--color-gray-100); | ||
font-weight: inherit; | ||
|
||
&:first-of-type { | ||
border-bottom-left-radius: 4px; | ||
border-top-left-radius: 4px; | ||
} | ||
&:last-of-type { | ||
border-bottom-right-radius: 4px; | ||
border-top-right-radius: 4px; | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.