Skip to content

Commit

Permalink
Improve page icon styling
Browse files Browse the repository at this point in the history
  • Loading branch information
timolins committed Sep 21, 2020
1 parent 5e99022 commit 611a373
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/components/page-icon.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ const PageIcon: React.FC<AssetProps> = ({
<span
className={classNames(
className,
"notion-emoji",
big ? "notion-page-icon-cover" : "notion-page-icon"
)}
role="img"
Expand Down
6 changes: 5 additions & 1 deletion src/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,10 @@
font-size: 1.25em;
margin-top: 1em;
}
.notion-emoji {
font-family: "Apple Color Emoji", Arial, sans-serif, "Segoe UI Emoji",
"Segoe UI Symbol";
}
.notion-page-cover {
display: block;
object-fit: cover;
Expand Down Expand Up @@ -279,7 +283,7 @@ img.notion-page-icon-offset {
.notion-page-icon {
font-size: 1.1em;
margin-right: 4px;
margin-top: 2px;
margin-top: 1px;
margin-left: 2px;
}
img.notion-page-icon {
Expand Down

0 comments on commit 611a373

Please sign in to comment.