Skip to content

Commit

Permalink
style: theme variables
Browse files Browse the repository at this point in the history
  • Loading branch information
gbicou committed Nov 21, 2023
1 parent 976d668 commit 653e5f3
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 12 deletions.
5 changes: 5 additions & 0 deletions .changeset/young-moons-mix.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@bicou/directus-extension-tiptap": patch
---

fix css theme variables
22 changes: 10 additions & 12 deletions src/tiptap-editor.vue
Original file line number Diff line number Diff line change
Expand Up @@ -645,7 +645,7 @@

<style lang="scss">
.tiptap-editor {
font-family: var(--theme--font-family-sans-serif);
font-family: var(--theme--fonts--sans--font-family);
border: var(--theme--border-width) solid var(--theme--form--field--input--border-color);
border-radius: var(--theme--border-radius);
box-shadow: var(--theme--form--field--input--box-shadow);
Expand All @@ -669,7 +669,7 @@
}
&.disabled {
background-color: var(--background-subdued);
background-color: var(--theme--form--field--input--background-subdued);
}
&__info {
Expand All @@ -679,17 +679,15 @@
justify-content: flex-end;
min-height: 30px;
padding: 0 8px;
background-color: var(--background-subdued);
color: var(--foreground-subdued);
background-color: var(--theme--form--field--input--background-subdued);
border-top: var(--theme--border-width) solid var(--theme--form--field--input--border-color);
font-family: var(--theme--font-family-monospace);
color: var(--theme--form--field--input--border-color);
font-family: var(--theme--fonts--monospace--font-family);
font-size: 12px;
}
&__toolbar {
--v-button-background-color-disabled: transparent;
--v-button-background-color: var(--border-subdued);
--v-button-background-color: transparent;
--v-button-color: var(--theme--form--field--input--foreground-subdued);
--v-button-background-color-hover: var(--theme--form--field--input--border-color);
--v-button-color-hover: var(--theme--form--field--input--foreground);
Expand All @@ -710,7 +708,7 @@
align-items: center;
min-height: 40px;
padding: 2px;
background-color: var(--background-subdued);
background-color: var(--theme--form--field--input--background-subdued);
border-bottom: var(--theme--border-width) solid var(--theme--form--field--input--border-color);
.v-button + .v-button {
Expand All @@ -736,7 +734,7 @@
cursor: pointer;
&.outlined {
background-color: var(--background-page);
background-color: var(--theme--background);
}
}
}
Expand All @@ -747,8 +745,8 @@
.ProseMirror {
min-height: 230px;
margin: var(--input-padding) 0;
padding: 0 var(--input-padding);
margin: 20px 0;
padding: 0 20px;
}
* {
Expand Down

0 comments on commit 653e5f3

Please sign in to comment.