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;
|
|
|
|
|
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
|
|
|
|
|
'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
|
|
|
|
|
sans-serif;
|
|
|
|
|
-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-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;
|
|
|
|
|
}
|
|
|
|
|
|
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 {
|
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
|
|
|
@apply border border-chalkboard-30 m-0.5 px-3 rounded text-xs focus-visible:ring-energy-10;
|
2023-12-06 14:44:13 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
button:hover {
|
|
|
|
|
@apply border-chalkboard-40 bg-energy-10/20;
|
2023-07-31 06:33:10 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.dark button {
|
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
|
|
|
@apply border-chalkboard-70 focus-visible:ring-energy-10/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 {
|
2023-12-06 14:44:13 -05:00
|
|
|
@apply cursor-not-allowed bg-chalkboard-20 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
|
|
|
}
|
|
|
|
|
|
2023-12-06 14:44:13 -05:00
|
|
|
a:not(.action-button) {
|
|
|
|
|
@apply text-energy-70 hover:text-energy-60;
|
2023-08-09 15:41:41 -04:00
|
|
|
}
|
|
|
|
|
|
2023-12-06 14:44:13 -05:00
|
|
|
.dark a:not(.action-button) {
|
|
|
|
|
@apply text-chalkboard-20 hover:text-energy-10;
|
2023-08-09 15:41:41 -04:00
|
|
|
}
|
|
|
|
|
|
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 {
|
|
|
|
|
@apply selection:bg-energy-10/50;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.dark input {
|
|
|
|
|
@apply selection:bg-energy-10/40;
|
|
|
|
|
}
|
|
|
|
|
|
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
|
|
|
|
2023-09-06 21:27:30 -04:00
|
|
|
.full-height-subtract {
|
|
|
|
|
--height-subtract: 2.25rem;
|
|
|
|
|
height: 100%;
|
|
|
|
|
max-height: calc(100% - var(--height-subtract));
|
|
|
|
|
}
|
|
|
|
|
|
2023-08-06 21:29:26 -04:00
|
|
|
#code-mirror-override .cm-editor {
|
2023-09-06 21:27:30 -04:00
|
|
|
@apply h-full bg-transparent;
|
2023-08-06 21:29:26 -04:00
|
|
|
}
|
|
|
|
|
|
2023-09-05 16:02:27 -07:00
|
|
|
#code-mirror-override .cm-scroller {
|
2023-09-06 21:27:30 -04:00
|
|
|
@apply h-full;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#code-mirror-override .cm-scroller::-webkit-scrollbar {
|
|
|
|
|
@apply h-0;
|
2023-09-05 16:02:27 -07:00
|
|
|
}
|
|
|
|
|
|
2023-08-31 08:17:26 -04:00
|
|
|
#code-mirror-override .cm-activeLine,
|
|
|
|
|
#code-mirror-override .cm-activeLineGutter {
|
|
|
|
|
@apply bg-liquid-10/50;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.dark #code-mirror-override .cm-activeLine,
|
|
|
|
|
.dark #code-mirror-override .cm-activeLineGutter {
|
|
|
|
|
@apply bg-liquid-80/50;
|
|
|
|
|
}
|
|
|
|
|
|
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;
|
|
|
|
|
}
|
|
|
|
|
|
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;
|
|
|
|
|
@apply bg-liquid-40 mix-blend-multiply;
|
|
|
|
|
|
|
|
|
|
animation: blink 2s ease-out infinite;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.dark #code-mirror-override .cm-cursor {
|
|
|
|
|
@apply bg-liquid-50;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@keyframes blink {
|
|
|
|
|
0%,
|
|
|
|
|
100% {
|
|
|
|
|
opacity: 0;
|
|
|
|
|
}
|
|
|
|
|
15% {
|
|
|
|
|
opacity: 0.75;
|
|
|
|
|
}
|
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;
|
|
|
|
|
}
|