Skip to content

Commit

Permalink
Bump
Browse files Browse the repository at this point in the history
  • Loading branch information
lucemans committed Feb 15, 2024
1 parent b21caf9 commit 5c0ec34
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
5 changes: 3 additions & 2 deletions packages/thorin-core/src/button/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ export class ThorinButton extends LitElement {
appearance: none;
border: none;
outline: none;
border-radius: 24px;
padding: 8px 16px;
border-radius: var(--thorin-radius-button);
padding: 10px 20px;
}
button.full {
width: 100%;
Expand All @@ -26,6 +26,7 @@ export class ThorinButton extends LitElement {
background: var(--thorin-blue-bright);
color: var(--thorin-text-accent);
cursor: pointer;
transform: translateY(-1px);
}
button:focus {
box-shadow: 0 0 0 2px var(--thorin-blue-bright);
Expand Down
5 changes: 2 additions & 3 deletions packages/thorin-core/src/modal/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export class ThorinModal extends LitElement {
/* overflow: hidden; Smooth resizing */
background: var(--thorin-background-primary);
padding: 16px;
border-radius: 24px;
border-radius: var(--thorin-radius-card);
max-width: 100vw;
width: auto;
Expand Down Expand Up @@ -103,8 +103,7 @@ export class ThorinModal extends LitElement {
console.log('Resize observed', height, width);
modal?.setAttribute(
'style',
`--max-height: ${height + padding * 2}px; --max-width: ${
width + padding * 2
`--max-height: ${height + padding * 2}px; --max-width: ${width + padding * 2
}px`
);
// modalContent?.setAttribute(
Expand Down
3 changes: 3 additions & 0 deletions packages/thorin-core/src/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,9 @@ p {
--thorin-spacing-1: 4px;
--thorin-spacing-2: 8px;
--thorin-spacing-4: 16px;

--thorin-radius-button: 8px;
--thorin-radius-card: 16px;
}

@media (prefers-color-scheme: dark) {
Expand Down

0 comments on commit 5c0ec34

Please sign in to comment.