Skip to content

Commit

Permalink
Style updates in data view
Browse files Browse the repository at this point in the history
  • Loading branch information
estruyf committed Jan 26, 2024
1 parent 5f92ad3 commit 313533d
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 18 deletions.
2 changes: 1 addition & 1 deletion src/components/uniforms-frontmatter/ListDelField.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ function ListDel({ disabled, name, readOnly, ...props }: ListDelFieldProps) {

return (
<span
className="autoform__list_del_field"
className="autoform__list_del_field mb-1"
{...filterDOMProps(props)}
onClick={onAction}
onKeyDown={onAction}
Expand Down
1 change: 1 addition & 0 deletions src/components/uniforms-frontmatter/LongTextField.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ function LongText({
<LabelField label={label} id={id} required={props.required} />

<textarea
className={`block w-full py-2 pr-2 sm:text-sm appearance-none disabled:opacity-50 rounded bg-[var(--vscode-input-background)] text-[var(--vscode-input-foreground)] placeholder-[var(--vscode-input-placeholderForeground)] border-[var(--frontmatter-border)] focus:border-[var(--vscode-focusBorder)] focus:outline-0`}
disabled={disabled}
id={id}
name={name}
Expand Down
1 change: 1 addition & 0 deletions src/components/uniforms-frontmatter/TextField.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ function Text({
<LabelField label={label} id={id} required={props.required} />

<input
className='block w-full py-2 pr-2 sm:text-sm appearance-none disabled:opacity-50 rounded bg-[var(--vscode-input-background)] text-[var(--vscode-input-foreground)] placeholder-[var(--vscode-input-placeholderForeground)] border-[var(--frontmatter-border)] focus:border-[var(--vscode-focusBorder)] focus:outline-0'
autoComplete={autoComplete}
disabled={disabled}
id={id}
Expand Down
19 changes: 2 additions & 17 deletions src/dashboardWebView/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -79,21 +79,6 @@
}

form {
label {
@apply block;
@apply text-gray-500;
@apply my-2;
}

input,
textarea {
@apply w-full px-2 py-1 text-vulcan-500;

&::placeholder {
@apply text-gray-500;
}
}

.ant-form-item-has-error .ant-form-item-control-input {
@apply relative;
}
Expand Down Expand Up @@ -147,12 +132,12 @@

> .fields {
> div > label:first-of-type {
color: var(--primary-color);
color: var(--frontmatter-text);
}

> div:not(:first-child) > label:first-of-type {
margin-block-start: 2rem;
border-block-start: 1px solid;
border-block-start: 1px solid var(--frontmatter-border);
padding-block-start: 2rem;
}
}
Expand Down

0 comments on commit 313533d

Please sign in to comment.