Skip to content

Commit

Permalink
Fixed the Settings Menu (#3044)
Browse files Browse the repository at this point in the history
  • Loading branch information
jameskerr authored Apr 10, 2024
1 parent 18dc5e8 commit 66059b8
Show file tree
Hide file tree
Showing 64 changed files with 1,393 additions and 1,407 deletions.
1 change: 1 addition & 0 deletions apps/zui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,7 @@
"tmp": "^0.1.0",
"tree-model": "^1.0.7",
"use-resize-observer": "^8.0.0",
"utopia-core-scss": "^1.0.1",
"web-file-polyfill": "^1.0.4",
"web-streams-polyfill": "^3.2.0",
"zed": "brimdata/zed#d1a78b8450b6c4c6bc80cb3d608133b447acf2f3",
Expand Down
203 changes: 0 additions & 203 deletions apps/zui/src/components/forms.module.css

This file was deleted.

6 changes: 0 additions & 6 deletions apps/zui/src/components/h1.tsx

This file was deleted.

2 changes: 1 addition & 1 deletion apps/zui/src/components/icon-button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const BG = styled.button`
align-items: center;
justify-content: center;
flex-shrink: 0;
transition: background var(--quick), transform var(--quick);
transition: background var(--hover-duration), transform var(--hover-duration);
-webkit-app-region: no-drag;
&:disabled {
Expand Down
2 changes: 1 addition & 1 deletion apps/zui/src/components/popover-modal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export const PopoverModal = forwardRef(function PopoverModal(
data-debut="popover:drop-in"
className={classNames(
props.className,
"width:full bg:normal shadow:l radius:l border:solid"
"width:full bg:normal shadow:l radius:l border:solid h-fit overflow-hidden"
)}
>
{props.children}
Expand Down
46 changes: 24 additions & 22 deletions apps/zui/src/css/_blocks.scss
Original file line number Diff line number Diff line change
@@ -1,37 +1,39 @@
.field {
&>*+* {
margin-block-start: var(--space-2xs);
}
& > * + * {
margin-block-start: var(--space-2xs);
}
}

.field-stack {
&>*+* {
margin-block-start: var(--space-s);
}
& > * + * {
margin-block-start: var(--space-s);
}
}

.modal {
background: var(--bg-color);
box-shadow: 0 20px 50px 10px rgb(0 0 0 /0.25);
border-radius: 8px;
border: none;
padding: 0;
will-change: opacity, transform;
color: var(--fg-color);
background: var(--bg-color);
box-shadow: 0 20px 50px 10px rgb(0 0 0 /0.25);
border-radius: 8px;
border: none;
padding: 0;
will-change: opacity, transform;
color: var(--fg-color);
}

.modal::backdrop {
background-color: black;
opacity: 0.25;
will-change: opacity;
background-color: black;
opacity: 0.25;
will-change: opacity;
}

@media (prefers-color-scheme: dark) {
.modal::backdrop {
opacity: 0.8;
}
.modal::backdrop {
opacity: 0.8;
}

.modal {
border: 1px solid var(--border-color);
}
.modal {
border: 1px solid var(--border-color);
}
}


61 changes: 2 additions & 59 deletions apps/zui/src/css/_global.scss
Original file line number Diff line number Diff line change
Expand Up @@ -21,55 +21,10 @@ body {
width: 100%;
}

body {
line-height: 1.5;
font-size: var(--step-0);
-webkit-font-smoothing: antialiased;
font-family: var(--body-font);
color: var(--fg-color);

&:not(.is-mac) {
background-color: var(--window-color);
}
}


input,
button,
textarea,
select {
color: var(--fg-color);
font: inherit;
}

p,
h1,
h2,
h3,
h4,
h5,
h6 {
overflow-wrap: break-word;
}

h4 {
font-size: var(--step-1);
body:not(.is-mac) {
background-color: var(--window-color);
}

h3 {
font-size: var(--step-2);
}

h2 {
font-size: var(--step-3);
}

h1 {
font-size: var(--step-4);
}



pre,
code {
border-radius: 3px;
Expand Down Expand Up @@ -106,7 +61,6 @@ button {
height: 0.75rem;
}


*::-webkit-scrollbar-track {
background-color: var(--emphasis-bg-less);
}
Expand All @@ -133,17 +87,6 @@ dd {
user-select: none;
}

label {
display: block;
font-weight: bold;
color: var(--fg-color-less);
opacity: 0.9;
font-weight: 700;
text-transform: uppercase;
letter-spacing: 0.8px;
font-size: var(--step--1);
}

input {
font-size: inherit;
}
Expand Down
Loading

0 comments on commit 66059b8

Please sign in to comment.