Skip to content

Commit

Permalink
fix styles
Browse files Browse the repository at this point in the history
  • Loading branch information
yujonglee committed Jul 23, 2024
1 parent 4ab5b81 commit afea1da
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 13 deletions.
3 changes: 2 additions & 1 deletion js/packages/web/.storybook/preview.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ const preview: Preview = {
disable: true,
},
cssprops: {
"canary-color-primary-ch": { value: "30 296" },
"canary-color-primary-c": { value: "0.1" },
"canary-color-primary-h": { value: "260" },
},
msw: {
handlers: {
Expand Down
10 changes: 5 additions & 5 deletions js/packages/web/src/canary-reference.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,12 +76,14 @@ export class CanaryReference extends LitElement {
padding: 8px 16px;
border: 1px solid var(--canary-color-gray-90);
border-radius: 8px;
background-color: var(--canary-color-gray-95);
background-color: var(--canary-is-light, var(--canary-color-gray-95))
var(--canary-is-dark, var(--canary-color-gray-80));
}
.container:hover,
.selected {
background-color: var(--canary-color-primary-80);
background-color: var(--canary-is-light, var(--canary-color-primary-95))
var(--canary-is-dark, var(--canary-color-primary-70));
}
.selected .arrow,
Expand Down Expand Up @@ -122,10 +124,8 @@ export class CanaryReference extends LitElement {
}
.excerpt mark {
background-color: var(--canary-color-primary-10);
background-color: var(--canary-color-primary-20);
color: var(--canary-color-gray-90);
border-radius: 2px;
padding: 0 2px;
}
.paths {
Expand Down
4 changes: 0 additions & 4 deletions js/packages/web/src/canary-search-results-group.ts
Original file line number Diff line number Diff line change
Expand Up @@ -147,10 +147,6 @@ export class CanarySearchResultsGroup extends LitElement {
flex-direction: column;
gap: 10px;
max-height: 425px;
overflow-y: hidden;
}
.container:hover {
overflow-y: auto;
}
.skeleton-container {
Expand Down
1 change: 0 additions & 1 deletion js/packages/web/src/canary-search-results.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,6 @@ export class CanarySearchResults extends LitElement {
flex-direction: column;
gap: 8px;
max-height: 425px;
overflow-y: scroll;
}
.skeleton-container {
display: flex;
Expand Down
6 changes: 4 additions & 2 deletions js/packages/web/src/canary-styles-default.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,8 @@ export class CanaryStylesDefault extends LitElement {
`,
css`
:host {
--canary-theme: "light";
--canary-is-light: initial;
--canary-is-dark: ;
--l-0: 0%;
--l-5: 0%;
Expand All @@ -88,7 +89,8 @@ export class CanaryStylesDefault extends LitElement {
}
:host([theme="dark"]) {
--canary-theme: "dark";
--canary-is-light: ;
--canary-is-dark: initial;
--l-0: 100%;
--l-5: 95%;
Expand Down
1 change: 1 addition & 0 deletions js/packages/web/src/styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ export const scrollContainer = css`
padding-left: 4px;
padding-right: 4px;
overflow-y: scroll;
scrollbar-width: thin;
scrollbar-color: var(--canary-color-gray-90) var(--canary-color-gray-100);
}
Expand Down

0 comments on commit afea1da

Please sign in to comment.