Skip to content

Commit

Permalink
feat(jdanielmourao#224): style document properties
Browse files Browse the repository at this point in the history
  • Loading branch information
antoKeinanen committed Apr 14, 2024
1 parent adb90ae commit bb221c4
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/scss/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
@use "obsidian/titlebar";
@use "obsidian/tooltip";
@use "obsidian/typography";
@use "obsidian/properties.scss";

@use "components/buttons";
@use "components/checkbox";
Expand Down
29 changes: 29 additions & 0 deletions src/scss/obsidian/properties.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
.metadata-properties {
gap: 0;
}

.metadata-property {
padding-block: 4px;
border-radius: 0;

&:hover,
&:focus-within {
background-color: var(--background-modifier-hover);
}

.metadata-property-key .metadata-property-key-input {
background-color: transparent;
}

.metadata-property-value:hover {
background-color: var(--field-hover-1);
}

&:hover {
box-shadow: none;
}

&:not(:last-child) {
border-bottom: 1px solid var(--background-modifier-border);
}
}

0 comments on commit bb221c4

Please sign in to comment.