-
Notifications
You must be signed in to change notification settings - Fork 206
Docs design tweaks #204
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Docs design tweaks #204
Conversation
A live preview of this PR will be available at the URL(s) below. https://pr204-f43446b---lit-dev-bvxw3ycs6q-uw.a.run.app/ |
f43446b
to
83ee123
Compare
83ee123
to
970260f
Compare
|
||
.CodeMirror, playground-file-editor, playground-preview { | ||
border: 1px solid #dedede; | ||
border-radius: 6px; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
btw, <litdev-example>
still has this style and it differs from the 5px
used elsewhere. It maybe could be border-radius: inherit;
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@@ -3,6 +3,15 @@ | |||
* ------------------------------------ */ | |||
|
|||
main { | |||
/* Colors */ | |||
--docs-h1-underline-color: var(--color-blue); | |||
--docs-h2-color: #384861; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this the steel-blue color in the Ocupop design/logo? Maybe make it a variable next to --color-blue
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's not from Ocupop, I just picked it. Not using it anywhere else yet, might change, and the h3 is a less saturated version. So not sure it deserves a proper name yet. Maybe I'll add one if we end up using it somewhere else.
@@ -32,12 +41,20 @@ article { | |||
line-height: 1.8em; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks like this line height is inheriting into code editors - I think the lines look a little tall. Could you try 1.5em for those?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oops, yeah but I also had some incorrect extra padding that was making the effective line height much bigger than 1.8em. Fixed, and I think 1.8em actually looks good.
* ------------------------------------ */ | ||
|
||
article li { | ||
padding-inline: 0.5em 10%; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We also have article li > p
elements that are getting pretty big top and bottom margins. Can we trim those a bit? Maybe even 0 (line-height would still apply):
article li > p {
margin: 0;
}
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
|
||
.docsSectionBorderBelow article h2 { | ||
border-top: none !important; | ||
padding: 1em 0 0.75em 0 !important; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can't tell for sure, but I might like the smaller .5 bottom padding even with the bottom border.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
?mods=docsSectionBorderBelow
to see an underline instead)