2023-07-21 12:48:23 -04:00
|
|
|
@import './colors.css';
|
2023-07-20 19:25:04 -04:00
|
|
|
|
2022-11-22 09:06:08 +11:00
|
|
|
@tailwind base;
|
|
|
|
|
@tailwind components;
|
|
|
|
|
@tailwind utilities;
|
|
|
|
|
|
2022-11-12 13:11:54 +11:00
|
|
|
body {
|
|
|
|
|
margin: 0;
|
2023-12-19 14:19:34 -05:00
|
|
|
@apply font-sans;
|
2022-11-12 13:11:54 +11:00
|
|
|
-webkit-font-smoothing: antialiased;
|
|
|
|
|
-moz-osx-font-smoothing: grayscale;
|
2023-08-10 13:30:32 -04:00
|
|
|
@apply text-chalkboard-110;
|
2023-08-08 18:30:26 -04:00
|
|
|
overflow: hidden;
|
2023-08-06 21:29:26 -04:00
|
|
|
scrollbar-width: thin;
|
|
|
|
|
scrollbar-color: var(--color-chalkboard-20) var(--color-chalkboard-40);
|
2023-07-31 06:33:10 -04:00
|
|
|
}
|
|
|
|
|
|
2023-12-19 14:19:34 -05:00
|
|
|
h1,
|
|
|
|
|
h2,
|
|
|
|
|
h3,
|
|
|
|
|
h4,
|
|
|
|
|
h5,
|
|
|
|
|
h6 {
|
|
|
|
|
@apply font-display;
|
|
|
|
|
}
|
|
|
|
|
|
2023-08-10 13:30:32 -04:00
|
|
|
.body-bg {
|
|
|
|
|
@apply bg-chalkboard-10;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.body-bg.dark,
|
|
|
|
|
.dark .body-bg {
|
|
|
|
|
@apply bg-chalkboard-100;
|
|
|
|
|
}
|
|
|
|
|
|
2023-07-31 06:33:10 -04:00
|
|
|
body.dark {
|
2023-08-06 21:29:26 -04:00
|
|
|
scrollbar-color: var(--color-chalkboard-70) var(--color-chalkboard-90);
|
2023-08-10 13:30:32 -04:00
|
|
|
@apply text-chalkboard-10;
|
2023-07-31 06:33:10 -04:00
|
|
|
}
|
|
|
|
|
|
2023-09-19 18:06:13 -04:00
|
|
|
select {
|
|
|
|
|
@apply bg-chalkboard-20;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.dark select {
|
|
|
|
|
@apply bg-chalkboard-90;
|
|
|
|
|
}
|
|
|
|
|
|
2024-04-15 12:04:17 -04:00
|
|
|
/* We hide the cursor if the user has turned off the textEditor.blinkingCursor setting
|
|
|
|
|
* any elements that could present a blinking cursor to the user
|
|
|
|
|
*/
|
|
|
|
|
input,
|
|
|
|
|
textarea,
|
|
|
|
|
*[contenteditable] {
|
|
|
|
|
caret-color: var(--cursor-color, auto);
|
|
|
|
|
}
|
|
|
|
|
|
2023-08-06 21:29:26 -04:00
|
|
|
::-webkit-scrollbar {
|
2023-08-15 21:56:24 -04:00
|
|
|
@apply w-2 h-2 rounded-sm;
|
2023-08-06 21:29:26 -04:00
|
|
|
@apply bg-chalkboard-20;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
::-webkit-scrollbar-thumb {
|
|
|
|
|
@apply bg-chalkboard-40 rounded-sm;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.dark ::-webkit-scrollbar {
|
|
|
|
|
@apply bg-chalkboard-90;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.dark ::-webkit-scrollbar-thumb {
|
|
|
|
|
@apply bg-chalkboard-70;
|
|
|
|
|
}
|
|
|
|
|
|
2023-07-31 06:33:10 -04:00
|
|
|
button {
|
2024-04-05 00:59:02 -04:00
|
|
|
@apply border border-chalkboard-30 m-0.5 px-3 rounded text-xs focus-visible:ring-primary;
|
2023-12-06 14:44:13 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
button:hover {
|
2024-04-05 00:59:02 -04:00
|
|
|
@apply border-chalkboard-40 bg-primary/5;
|
2023-07-31 06:33:10 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.dark button {
|
2024-04-05 00:59:02 -04:00
|
|
|
@apply border-chalkboard-70 focus-visible:ring-primary/50;
|
2023-12-06 14:44:13 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.dark button:hover {
|
|
|
|
|
@apply border-chalkboard-60;
|
2023-07-31 06:33:10 -04:00
|
|
|
}
|
|
|
|
|
|
2023-07-31 12:08:16 -04:00
|
|
|
button:disabled {
|
2024-04-05 00:59:02 -04:00
|
|
|
@apply cursor-not-allowed bg-chalkboard-20/50 text-chalkboard-60 border-chalkboard-20;
|
2023-07-31 12:08:16 -04:00
|
|
|
}
|
|
|
|
|
|
2023-07-31 06:33:10 -04:00
|
|
|
.dark button:disabled {
|
|
|
|
|
@apply bg-chalkboard-90 text-chalkboard-40 border-chalkboard-70;
|
2022-11-12 13:11:54 +11:00
|
|
|
}
|
|
|
|
|
|
2024-04-19 10:50:58 -04:00
|
|
|
a {
|
2024-04-05 00:59:02 -04:00
|
|
|
@apply text-primary underline hover:hue-rotate-15;
|
2023-08-09 15:41:41 -04:00
|
|
|
}
|
|
|
|
|
|
2024-04-19 10:50:58 -04:00
|
|
|
.dark a {
|
2024-04-05 00:59:02 -04:00
|
|
|
@apply hover:brightness-110 hover:hue-rotate-0;
|
2023-08-09 15:41:41 -04:00
|
|
|
}
|
|
|
|
|
|
2024-04-19 10:50:58 -04:00
|
|
|
a.action-button,
|
|
|
|
|
.dark a.action-button {
|
|
|
|
|
@apply text-inherit no-underline hover:hue-rotate-0;
|
|
|
|
|
}
|
|
|
|
|
|
Command bar: add extrude command, nonlinear editing, etc (#1204)
* Tweak toaster look and feel
* Add icons, tweak plus icon names
* Rename commandBarMeta to commandBarConfig
* Refactor command bar, add support for icons
* Create a tailwind plugin for aria-pressed button state
* Remove overlay from behind command bar
* Clean up toolbar
* Button and other style tweaks
* Icon tweaks follow-up: make old icons work with new sizing
* Delete unused static icons
* More CSS tweaks
* Small CSS tweak to project sidebar
* Add command bar E2E test
* fumpt
* A snapshot a day keeps the bugs away! 📷🐛 (OS: ubuntu)
* fix typo in a comment
* Fix icon padding (built version only)
* Update onboarding and warning banner icons padding
* Misc minor style fixes
* Get Extrude opening and canceling from command bar
* Iconography tweaks
* Get extrude kind of working
* Refactor command bar config types and organization
* Move command bar configs to be co-located with each other
* Start building a state machine for the command bar
* Start converting command bar to state machine
* Add support for multiple args, confirmation step
* Submission behavior, hotkeys, code organization
* Add new test for extruding from command bar
* Polish step back and selection hotkeys, CSS tweaks
* Loading style tweaks
* Validate selection inputs, polish UX of args re-editing
* Prevent submission with multiple selection on singlular arg
* Remove stray console logs
* Tweak test, CSS nit, remove extrude "result" argument
* Fix linting warnings
* Show Ctrl+/ instead of ⌘K on all platforms but Mac
* A snapshot a day keeps the bugs away! 📷🐛 (OS: ubuntu)
* Add "Enter sketch" to command bar
* fix command bar test
* Fix flaky cmd bar extrude test by waiting for engine select response
* Cover both button labels '⌘K' and 'Ctrl+/' in test
---------
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-12-13 12:49:01 -05:00
|
|
|
input {
|
2024-04-05 00:59:02 -04:00
|
|
|
@apply selection:bg-primary/50;
|
Command bar: add extrude command, nonlinear editing, etc (#1204)
* Tweak toaster look and feel
* Add icons, tweak plus icon names
* Rename commandBarMeta to commandBarConfig
* Refactor command bar, add support for icons
* Create a tailwind plugin for aria-pressed button state
* Remove overlay from behind command bar
* Clean up toolbar
* Button and other style tweaks
* Icon tweaks follow-up: make old icons work with new sizing
* Delete unused static icons
* More CSS tweaks
* Small CSS tweak to project sidebar
* Add command bar E2E test
* fumpt
* A snapshot a day keeps the bugs away! 📷🐛 (OS: ubuntu)
* fix typo in a comment
* Fix icon padding (built version only)
* Update onboarding and warning banner icons padding
* Misc minor style fixes
* Get Extrude opening and canceling from command bar
* Iconography tweaks
* Get extrude kind of working
* Refactor command bar config types and organization
* Move command bar configs to be co-located with each other
* Start building a state machine for the command bar
* Start converting command bar to state machine
* Add support for multiple args, confirmation step
* Submission behavior, hotkeys, code organization
* Add new test for extruding from command bar
* Polish step back and selection hotkeys, CSS tweaks
* Loading style tweaks
* Validate selection inputs, polish UX of args re-editing
* Prevent submission with multiple selection on singlular arg
* Remove stray console logs
* Tweak test, CSS nit, remove extrude "result" argument
* Fix linting warnings
* Show Ctrl+/ instead of ⌘K on all platforms but Mac
* A snapshot a day keeps the bugs away! 📷🐛 (OS: ubuntu)
* Add "Enter sketch" to command bar
* fix command bar test
* Fix flaky cmd bar extrude test by waiting for engine select response
* Cover both button labels '⌘K' and 'Ctrl+/' in test
---------
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-12-13 12:49:01 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.dark input {
|
2024-04-05 00:59:02 -04:00
|
|
|
@apply selection:bg-primary/40;
|
Command bar: add extrude command, nonlinear editing, etc (#1204)
* Tweak toaster look and feel
* Add icons, tweak plus icon names
* Rename commandBarMeta to commandBarConfig
* Refactor command bar, add support for icons
* Create a tailwind plugin for aria-pressed button state
* Remove overlay from behind command bar
* Clean up toolbar
* Button and other style tweaks
* Icon tweaks follow-up: make old icons work with new sizing
* Delete unused static icons
* More CSS tweaks
* Small CSS tweak to project sidebar
* Add command bar E2E test
* fumpt
* A snapshot a day keeps the bugs away! 📷🐛 (OS: ubuntu)
* fix typo in a comment
* Fix icon padding (built version only)
* Update onboarding and warning banner icons padding
* Misc minor style fixes
* Get Extrude opening and canceling from command bar
* Iconography tweaks
* Get extrude kind of working
* Refactor command bar config types and organization
* Move command bar configs to be co-located with each other
* Start building a state machine for the command bar
* Start converting command bar to state machine
* Add support for multiple args, confirmation step
* Submission behavior, hotkeys, code organization
* Add new test for extruding from command bar
* Polish step back and selection hotkeys, CSS tweaks
* Loading style tweaks
* Validate selection inputs, polish UX of args re-editing
* Prevent submission with multiple selection on singlular arg
* Remove stray console logs
* Tweak test, CSS nit, remove extrude "result" argument
* Fix linting warnings
* Show Ctrl+/ instead of ⌘K on all platforms but Mac
* A snapshot a day keeps the bugs away! 📷🐛 (OS: ubuntu)
* Add "Enter sketch" to command bar
* fix command bar test
* Fix flaky cmd bar extrude test by waiting for engine select response
* Cover both button labels '⌘K' and 'Ctrl+/' in test
---------
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-12-13 12:49:01 -05:00
|
|
|
}
|
|
|
|
|
|
2023-07-13 07:22:08 -04:00
|
|
|
.mono {
|
|
|
|
|
font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New',
|
|
|
|
|
monospace;
|
|
|
|
|
}
|
|
|
|
|
|
2022-11-12 13:11:54 +11:00
|
|
|
code {
|
|
|
|
|
font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New',
|
|
|
|
|
monospace;
|
|
|
|
|
}
|
2023-03-15 19:03:55 +11:00
|
|
|
|
2024-04-15 12:04:17 -04:00
|
|
|
/*
|
|
|
|
|
* The first descendent of the CodeMirror wrapper is the theme,
|
|
|
|
|
* but its identifying class can change depending on the theme.
|
|
|
|
|
*/
|
|
|
|
|
#code-mirror-override > div,
|
2023-08-06 21:29:26 -04:00
|
|
|
#code-mirror-override .cm-editor {
|
2024-04-15 12:04:17 -04:00
|
|
|
@apply bg-transparent h-full;
|
2024-05-20 10:28:34 -05:00
|
|
|
@apply select-auto;
|
2023-08-06 21:29:26 -04:00
|
|
|
}
|
|
|
|
|
|
2023-09-05 16:02:27 -07:00
|
|
|
#code-mirror-override .cm-scroller {
|
2024-04-15 12:04:17 -04:00
|
|
|
overflow: auto;
|
2023-09-05 16:02:27 -07:00
|
|
|
}
|
|
|
|
|
|
2024-04-15 21:40:45 -04:00
|
|
|
#code-mirror-override .cm-gutter {
|
|
|
|
|
@apply select-none;
|
|
|
|
|
}
|
|
|
|
|
|
2023-08-31 08:17:26 -04:00
|
|
|
#code-mirror-override .cm-activeLine,
|
|
|
|
|
#code-mirror-override .cm-activeLineGutter {
|
2024-04-15 21:40:45 -04:00
|
|
|
@apply bg-primary/10;
|
2023-08-31 08:17:26 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.dark #code-mirror-override .cm-activeLine,
|
|
|
|
|
.dark #code-mirror-override .cm-activeLineGutter {
|
2024-04-15 12:04:17 -04:00
|
|
|
@apply bg-primary/20;
|
|
|
|
|
mix-blend-mode: lighten;
|
2023-08-31 08:17:26 -04:00
|
|
|
}
|
|
|
|
|
|
2023-08-06 21:29:26 -04:00
|
|
|
#code-mirror-override .cm-gutters {
|
2023-08-31 08:17:26 -04:00
|
|
|
@apply bg-chalkboard-10/30;
|
2023-08-06 21:29:26 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.dark #code-mirror-override .cm-gutters {
|
|
|
|
|
@apply bg-chalkboard-110/50;
|
|
|
|
|
}
|
|
|
|
|
|
2024-04-15 12:04:17 -04:00
|
|
|
#code-mirror-override .cm-content {
|
|
|
|
|
@apply caret-primary;
|
|
|
|
|
}
|
|
|
|
|
.dark #code-mirror-override .cm-content {
|
|
|
|
|
@apply caret-chalkboard-10;
|
|
|
|
|
}
|
|
|
|
|
|
2023-03-15 19:03:55 +11:00
|
|
|
#code-mirror-override .cm-focused .cm-cursor {
|
2023-03-16 10:33:36 +11:00
|
|
|
width: 0px;
|
2023-03-15 19:03:55 +11:00
|
|
|
}
|
|
|
|
|
#code-mirror-override .cm-cursor {
|
|
|
|
|
display: block;
|
2023-08-31 08:17:26 -04:00
|
|
|
width: 1ch;
|
2024-04-15 12:04:17 -04:00
|
|
|
@apply mix-blend-multiply;
|
|
|
|
|
@apply border-l-primary;
|
2023-08-31 08:17:26 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.dark #code-mirror-override .cm-cursor {
|
2024-04-15 12:04:17 -04:00
|
|
|
@apply border-l-chalkboard-10;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#code-mirror-override.blink .cm-cursor {
|
|
|
|
|
animation: blink 1200ms ease-out infinite;
|
2023-08-31 08:17:26 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@keyframes blink {
|
|
|
|
|
0%,
|
|
|
|
|
100% {
|
|
|
|
|
opacity: 0;
|
|
|
|
|
}
|
2024-04-15 12:04:17 -04:00
|
|
|
10% {
|
|
|
|
|
opacity: 1;
|
2023-08-31 08:17:26 -04:00
|
|
|
}
|
2023-03-15 19:03:55 +11:00
|
|
|
}
|
2023-08-06 21:29:26 -04:00
|
|
|
|
|
|
|
|
.react-json-view {
|
|
|
|
|
@apply bg-transparent !important;
|
|
|
|
|
}
|
2023-09-05 16:02:27 -07:00
|
|
|
|
|
|
|
|
#code-mirror-override .cm-tooltip {
|
2023-09-06 21:27:30 -04:00
|
|
|
@apply text-xs shadow-md;
|
|
|
|
|
@apply bg-chalkboard-10 text-chalkboard-80;
|
|
|
|
|
@apply rounded-sm border-solid border border-chalkboard-40/30 border-l-liquid-10;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.dark #code-mirror-override .cm-tooltip {
|
|
|
|
|
@apply bg-chalkboard-110 text-chalkboard-40;
|
|
|
|
|
@apply border-chalkboard-70/20 border-l-liquid-70;
|
2023-09-05 16:02:27 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#code-mirror-override .cm-tooltip-hover {
|
2023-09-06 21:27:30 -04:00
|
|
|
@apply py-1 px-2 w-max max-w-md;
|
2023-09-05 16:02:27 -07:00
|
|
|
}
|
|
|
|
|
|
2023-09-06 21:27:30 -04:00
|
|
|
#code-mirror-override .cm-completionInfo {
|
|
|
|
|
@apply px-4 rounded-l-none;
|
|
|
|
|
@apply bg-chalkboard-10 text-liquid-90;
|
|
|
|
|
@apply border-liquid-40/30;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.dark #code-mirror-override .cm-completionInfo {
|
|
|
|
|
@apply bg-liquid-120 text-liquid-50;
|
|
|
|
|
@apply border-liquid-90/60;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#code-mirror-override .cm-tooltip-autocomplete li {
|
|
|
|
|
@apply px-2 py-1;
|
|
|
|
|
}
|
|
|
|
|
#code-mirror-override .cm-tooltip-autocomplete li[aria-selected='true'] {
|
|
|
|
|
@apply bg-liquid-10 text-liquid-110;
|
|
|
|
|
}
|
|
|
|
|
.dark #code-mirror-override .cm-tooltip-autocomplete li[aria-selected='true'] {
|
|
|
|
|
@apply bg-liquid-100 text-liquid-20;
|
2023-09-05 16:02:27 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#code-mirror-override .cm-content {
|
|
|
|
|
white-space: pre-wrap;
|
|
|
|
|
word-break: normal;
|
|
|
|
|
word-wrap: break-word;
|
|
|
|
|
}
|
2024-02-15 13:56:31 -08:00
|
|
|
|
|
|
|
|
.cm-ghostText,
|
|
|
|
|
.cm-ghostText * {
|
|
|
|
|
color: rgb(120, 120, 120, 0.8) !important;
|
|
|
|
|
}
|