Skip to content

Commit

Permalink
make focus more obvious
Browse files Browse the repository at this point in the history
  • Loading branch information
jamespohalloran committed Jul 21, 2023
1 parent ab7541d commit 238b981
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
2 changes: 1 addition & 1 deletion content/docs/product-tour.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ TinaCMS can be setup on your site with `tinacms init`. This installs a few Tina

- Content in TinaCMS is modelled using a `tina/config.ts` file in your project. Through this, you can define "collections" that model various content types on your site.

![](https://placehold.co/600x400?text=Content+Modelling+Code+Snippet)
![](https://res.cloudinary.com/forestry-demo/image/upload/v1689950496/tina-io/docs/product-tour/Tina_Content_Modelling.png)

### Data-fetching

Expand Down
16 changes: 15 additions & 1 deletion pages/docs/product-tour.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -197,12 +197,21 @@ const SplitContent = styled.div`
h2,
h3,
h4 {
color: var(--color-primary);
color: var(--color-light-dark);
&:not(.focused) * {
color: var(--color-light-dark);
}
+ p,
+ ul {
padding-left: 1rem;
border-left: 4px solid var(--color-light-dark);
color: var(--color-light-dark);
* {
color: var(--color-light-dark);
}
}
&.focused {
Expand All @@ -211,6 +220,11 @@ const SplitContent = styled.div`
+ p,
+ ul {
border-left: 4px solid var(--color-orange);
color: var(--color-primary);
* {
color: var(--color-primary);
}
}
}
}
Expand Down

0 comments on commit 238b981

Please sign in to comment.