-
Notifications
You must be signed in to change notification settings - Fork 86
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Added sizes to the theme * Change specificity in CSS variables * Added TweetContainer * Added changeset
- Loading branch information
Showing
17 changed files
with
158 additions
and
137 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'next-tweet': minor | ||
--- | ||
|
||
Improved accessibility, added support for symbols, improved decoding and improved theming. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
.root { | ||
line-height: 1.5rem; | ||
font-size: 1.25rem; | ||
line-height: var(--tweet-body-line-height); | ||
font-size: var(--tweet-body-font-size); | ||
overflow-wrap: break-word; | ||
white-space: pre-wrap; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
.root { | ||
width: 100%; | ||
min-width: 250px; | ||
max-width: 550px; | ||
overflow: hidden; | ||
/* Base font styles */ | ||
color: var(--tweet-font-color); | ||
font-family: var(--tweet-font-family); | ||
font-weight: 400; | ||
box-sizing: border-box; | ||
border: var(--tweet-border); | ||
border-radius: 12px; | ||
margin: var(--tweet-container-margin); | ||
background-color: var(--tweet-bg-color); | ||
transition-property: background-color, box-shadow; | ||
transition-duration: 0.2s; | ||
} | ||
.root:hover { | ||
background-color: var(--tweet-bg-color-hover); | ||
} | ||
.article { | ||
position: relative; | ||
box-sizing: inherit; | ||
padding: 0.75rem 1rem; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import type { PropsWithChildren } from 'react' | ||
import clsx from 'clsx' | ||
import s from './tweet-container.module.css' | ||
import './theme.css' | ||
|
||
type Props = PropsWithChildren<{ className?: string }> | ||
|
||
export const TweetContainer = ({ className, children }: Props) => ( | ||
<div className={clsx('next-tweet-theme', s.root, className)}> | ||
<article className={s.article}>{children}</article> | ||
</div> | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.