Skip to content

Commit

Permalink
tweak styling
Browse files Browse the repository at this point in the history
No need to transform if we use the other border; padding helps keep indicator from being on the previous line
  • Loading branch information
RoyEJohnson committed Apr 16, 2024
1 parent 28b7a6e commit b654cee
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/app/content/components/Page/PageContent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,10 @@ export default styled(MainContent)`
@media screen {
${hideBeforeAndAfter}
&.first {
padding-left: 0.4rem;
}
&.first[data-start-message]::before {
content: attr(data-start-message);
}
Expand Down Expand Up @@ -135,8 +139,7 @@ export default styled(MainContent)`
height: 0;
opacity: 0.8;
border-left: ${highlightIndicatorSize}em solid ${style.focused};
border-top: ${highlightIndicatorSize}em solid transparent;
transform: rotate(90deg);
border-bottom: ${highlightIndicatorSize}em solid transparent;
}
@media screen {
Expand Down

0 comments on commit b654cee

Please sign in to comment.