Skip to content

fix(docs-infra): typography and UI polish - #36045

Closed
sjtrimble wants to merge 5 commits into
angular:masterfrom
sjtrimble:aio-2020-refresh
Closed

sjtrimble wants to merge 5 commits into
angular:masterfrom
sjtrimble:aio-2020-refresh

Conversation

@sjtrimble

@sjtrimble sjtrimble commented Mar 12, 2020 •

Copy link
Copy Markdown
Contributor
  • Sidenav background
  • Sidenav padding
  • In-content paragraph code style
  • Header styles
  • General typography styles (letter spacing, size and line height)
  • Prominent h2 styles with line to segment important sections more easily
  • Vertical align header link icons (on hover)
  • Prominent link hover underline (more accessible)
  • Max width on content paragraph text to improve legibility (best practices)
  • Centered layout
  • Cleaned up unused styles in Press Kit and Resources pages
  • Updated Press Kit page with small design layout changes for easier processing (less repitive)

PR Checklist

Please check if your PR fulfills the following requirements:

PR Type

What kind of change does this PR introduce?

  • Bugfix
  • Feature
  • Code style update (formatting, local variables)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • CI related changes
  • Documentation content changes
  • angular.io application / infrastructure changes
  • Other... Please describe: visual updates to improve legibility

What is the current behavior?

N/A

Issue Number: N/A

What is the new behavior?

Updated visuals primarily on typography and layout

Does this PR introduce a breaking change?

  • Yes
  • No

@ngbot ngbot Bot modified the milestone: needsTriage Mar 12, 2020
@sjtrimble sjtrimble added the action: review The PR is still awaiting reviews from at least one requested reviewer label Mar 12, 2020
@sjtrimble

Copy link
Copy Markdown
Contributor Author

Need to fix the code inside code blocks to not pick up new style (this should not Screen Shot 2020-03-12 at 1 09 12 PM

@mary-poppins

Copy link
Copy Markdown

@Achilles1515

Copy link
Copy Markdown

Is hovering over the "example" heading link supposed to cause this jumping behavior?

GIF

@aikithoughts

Copy link
Copy Markdown

Looks like the landing page is handling the changes incorrectly:

image

@sjtrimble

sjtrimble commented Mar 16, 2020 •

Copy link
Copy Markdown
Contributor Author

Looks like the landing page is handling the changes incorrectly:

image

@aikidave Yeah .. noticed that after I rebased :) will make an update

@sjtrimble

Copy link
Copy Markdown
Contributor Author

Is hovering over the "example" heading link supposed to cause this jumping behavior?

GIF

@Achilles1515 thanks for catching, I'll take a look to remove that jump.

@aikithoughts

Copy link
Copy Markdown

Something is keeping Mary Poppins from creating a preview, I think. @gkalpak or @petebacondarwin, could you shed some light on this?

@gkalpak

gkalpak commented Mar 25, 2020 •

Copy link
Copy Markdown
Member

@aikidave, @mary-poppins does not create the previews; the CI creates them. @marry-poppins just announces them 😁
CI is currently failing for this PR, hence no preview 😉

@aikithoughts

Copy link
Copy Markdown

I have blamed @mary-poppins when I shouldn't have! I apologize!

Thanks for clarifying, @gkalpak!

@gkalpak

gkalpak commented Mar 25, 2020

Copy link
Copy Markdown
Member

I have blamed @mary-poppins when I shouldn't have! I apologize!

Don't worry. She won't hold it against you 😛

@mary-poppins

Copy link
Copy Markdown

@kapunahelewong

Copy link
Copy Markdown
Contributor

I love the changes in this PR. Thank you, @sjtrimble!!

@gkalpak

gkalpak commented Apr 3, 2020

Copy link
Copy Markdown
Member

@sjtrimble, what is the status of this? Is this ready for review?

@sjtrimble

Copy link
Copy Markdown
Contributor Author

@gkalpak Yeah, it's ready for review .. just keeps getting outdated so I need to rebase again once ready.

@gkalpak gkalpak left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Personally, I am not thrilled by the font-size/line-height bumps, but that might be due to my small screen 🤷‍♂️

Otherwise, generally lgtm (with the exceptions of the things I've commented on 😁).

Comment thread aio/src/styles/0-base/_typography.scss Resolved
Comment thread aio/src/styles/0-base/_typography.scss Resolved
Comment thread aio/src/styles/0-base/_typography.scss Resolved
Comment thread aio/src/styles/0-base/_typography.scss Resolved
Comment thread aio/src/styles/1-layouts/_sidenav.scss Resolved
Comment thread aio/src/styles/2-modules/_code.scss Outdated

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OOC, why the p? What about code inside other elements?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I couldn't think of any other elements that also wouldn't be inside of a paragraph. The other one that some people use would be on headers, but I personally think it distracts from legibility. Are there other scenarios I might be missing?

@gkalpak gkalpak Aug 13, 2020 •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't know off the top of my head, but headers is indeed one case and I am sure there are others.
You seem to have found ul and ol. Wouldn't it be preferrable to exclude headers instead?

Comment thread aio/src/styles/2-modules/_code.scss Resolved

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Using top doesn't seem like a good idea 😁

polished-header-link-1

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah... I struggled with this one. Might need some help on it.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks a little too low:

polished-header-link-2

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Might need help figuring this one out because on my screen it's almost the opposite... I added the red horizontal line to show where the center would be and how the icon is relative to it.

Screen Shot 2020-05-04 at 4 22 01 PM

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FWIW, mine displays with the h2 too high and is reduced by getting rid of this line:
https://github.com/angular/angular/blob/master/aio/src/styles/2-modules/_heading-anchors.scss#L11

Then fixed by replacing that vertical-align with:

    position: relative;
    top: 4px;

Screen Shot 2020-05-07 at 1 59 53 PM

The h3 at the bottom there is ok. I'm running Chrome on mac.
Hope this helps. I love the updates! :)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Things seems to have become worse now 😁

h2-anchor-links

@aikithoughts aikithoughts left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I love these changes. One question: in the docs section, the Introduction topic is centered. All of the other topics are flush left. Is there a way we can have them all centered in the page? Or is there a reason why the introduction topic is different?

@sjtrimble
sjtrimble force-pushed the aio-2020-refresh branch from 81feff1 to befca3c Compare May 4, 2020 23:17
gkalpak added a commit to gkalpak/angular that referenced this pull request Feb 22, 2021
… page

This commit improves the layout and appearance of the "Press kit" page.
Most notable changes include:
- Center content and limit max width to 50em (which is 50px by default).
- Remove uppercase transform for headings.
- Use a two-column layout for icons (instead of one icon per row).
- Show "download" icons next to download links.

Before (wide): ![presskit page (wide) before][1]
Before (narrow 1/2): ![presskit page (narrow 1/2) before][2]
Before (narrow 2/2): ![presskit page (narrow 2/2) before][3]
After (wide): ![presskit page (wide) after][4]
After (narrow 1/2): ![presskit page (narrow 1/2) after][5]
After (narrow 2/2): ![presskit page (narrow 2/2) after][6]

This change is based on code from angular#36045.

[1]: https://user-images.githubusercontent.com/8604205/108739632-80d79900-753d-11eb-8ddc-ac542ec5b3ac.png
[2]: https://user-images.githubusercontent.com/8604205/108739641-82a15c80-753d-11eb-9b20-8119ad117460.png
[3]: https://user-images.githubusercontent.com/8604205/108739643-83d28980-753d-11eb-8afa-2d7a5e87d586.png
[4]: https://user-images.githubusercontent.com/8604205/108739638-8208c600-753d-11eb-99bb-ea119640de39.png
[5]: https://user-images.githubusercontent.com/8604205/108739642-8339f300-753d-11eb-9b25-5c1988adb1dd.png
[6]: https://user-images.githubusercontent.com/8604205/108739645-846b2000-753d-11eb-8ef3-b6a8b7c6d1ff.png

Co-authored-by: Stefanie Fluin <[email protected]>
@gkalpak

gkalpak commented Feb 22, 2021 •

Copy link
Copy Markdown
Member

The work from this PR has been split out into #40427, #40704, #40802, #40881, #40944 and #40945.

Huge thx, @sjtrimble, for spearheading the effort 💯 ❤️ 🤓

@gkalpak gkalpak closed this Feb 22, 2021
gkalpak added a commit to gkalpak/angular that referenced this pull request Feb 23, 2021
This change has been extracted from angular#36045.

Co-authored-by: Stefanie Fluin <[email protected]>
gkalpak added a commit to gkalpak/angular that referenced this pull request Feb 23, 2021
gkalpak added a commit to gkalpak/angular that referenced this pull request Feb 23, 2021
This commit improves the appearance of `.filter-button` elements used to
jump between different categories in "Contributors" and "Resources" pages.

Before (wide screen): ![contributors buttons (wide screen) before][1]
Before (narrow screen): ![contributors buttons (narrow screen) before][2]
After (wide screen): ![contributors buttons (wide screen) after][3]
After (narrow screen): ![contributors buttons (narrow screen) after][4]

This change has been extracted from angular#36045.

[1]: https://user-images.githubusercontent.com/8604205/108414895-72376c00-7235-11eb-9537-7a7b059d09fe.png
[2]: https://user-images.githubusercontent.com/8604205/108414923-782d4d00-7235-11eb-8ba4-87a3a9ae14cd.png
[3]: https://user-images.githubusercontent.com/8604205/108414929-78c5e380-7235-11eb-807a-109b4200e64e.png
[4]: https://user-images.githubusercontent.com/8604205/108414942-7cf20100-7235-11eb-8ef0-9b2da397b3ee.png

Co-authored-by: Stefanie Fluin <[email protected]>
gkalpak added a commit to gkalpak/angular that referenced this pull request Feb 23, 2021
gkalpak added a commit to gkalpak/angular that referenced this pull request Feb 23, 2021
This commit improves the layout of the "Contribute" page by centering
the content (similar to other marketing pages).

Before: ![contribute layout before][1]
After: ![contribute layout after][2]

This change has been extracted from angular#36045.

[1]: https://user-images.githubusercontent.com/8604205/108595056-5b545f00-7386-11eb-97b6-c3606dbfb5fa.png
[2]: https://user-images.githubusercontent.com/8604205/108595060-5becf580-7386-11eb-91fa-b2877f2a4691.png

Co-authored-by: Stefanie Fluin <[email protected]>
gkalpak added a commit to gkalpak/angular that referenced this pull request Feb 23, 2021
…omponent

This commit cleans up the styles and the elements/classes used for
styling the content of the `<aio-resource-list>` component.

This change has been extracted from angular#36045.

Co-authored-by: Stefanie Fluin <[email protected]>
gkalpak added a commit to gkalpak/angular that referenced this pull request Feb 23, 2021
This commit improves the readability of the "Resources" page by limiting
the content's max width to 50em (which is 800px by default).

It also gets rid of custom color values and either uses the default
color or colors specified via Sass variables.

Before: ![resources page before][1]
After: ![resources page after][2]

This change has been extracted from angular#36045.

[1]: https://user-images.githubusercontent.com/8604205/108601949-104b4380-73a8-11eb-864b-948db8c36f80.png
[2]: https://user-images.githubusercontent.com/8604205/108602036-894a9b00-73a8-11eb-870d-39bea9b46d97.png

Co-authored-by: Stefanie Fluin <[email protected]>
zarend pushed a commit that referenced this pull request Feb 26, 2021
… page (#40945)

This commit improves the layout and appearance of the "Press kit" page.
Most notable changes include:
- Center content and limit max width to 50em (which is 50px by default).
- Remove uppercase transform for headings.
- Use a two-column layout for icons (instead of one icon per row).
- Show "download" icons next to download links.

Before (wide): ![presskit page (wide) before][1]
Before (narrow 1/2): ![presskit page (narrow 1/2) before][2]
Before (narrow 2/2): ![presskit page (narrow 2/2) before][3]
After (wide): ![presskit page (wide) after][4]
After (narrow 1/2): ![presskit page (narrow 1/2) after][5]
After (narrow 2/2): ![presskit page (narrow 2/2) after][6]

This change is based on code from #36045.

[1]: https://user-images.githubusercontent.com/8604205/108739632-80d79900-753d-11eb-8ddc-ac542ec5b3ac.png
[2]: https://user-images.githubusercontent.com/8604205/108739641-82a15c80-753d-11eb-9b20-8119ad117460.png
[3]: https://user-images.githubusercontent.com/8604205/108739643-83d28980-753d-11eb-8afa-2d7a5e87d586.png
[4]: https://user-images.githubusercontent.com/8604205/108739638-8208c600-753d-11eb-99bb-ea119640de39.png
[5]: https://user-images.githubusercontent.com/8604205/108739642-8339f300-753d-11eb-9b25-5c1988adb1dd.png
[6]: https://user-images.githubusercontent.com/8604205/108739645-846b2000-753d-11eb-8ef3-b6a8b7c6d1ff.png

Co-authored-by: Stefanie Fluin <[email protected]>

PR Close #40945
zarend pushed a commit that referenced this pull request Feb 26, 2021
… page (#40945)

This commit improves the layout and appearance of the "Press kit" page.
Most notable changes include:
- Center content and limit max width to 50em (which is 50px by default).
- Remove uppercase transform for headings.
- Use a two-column layout for icons (instead of one icon per row).
- Show "download" icons next to download links.

Before (wide): ![presskit page (wide) before][1]
Before (narrow 1/2): ![presskit page (narrow 1/2) before][2]
Before (narrow 2/2): ![presskit page (narrow 2/2) before][3]
After (wide): ![presskit page (wide) after][4]
After (narrow 1/2): ![presskit page (narrow 1/2) after][5]
After (narrow 2/2): ![presskit page (narrow 2/2) after][6]

This change is based on code from #36045.

[1]: https://user-images.githubusercontent.com/8604205/108739632-80d79900-753d-11eb-8ddc-ac542ec5b3ac.png
[2]: https://user-images.githubusercontent.com/8604205/108739641-82a15c80-753d-11eb-9b20-8119ad117460.png
[3]: https://user-images.githubusercontent.com/8604205/108739643-83d28980-753d-11eb-8afa-2d7a5e87d586.png
[4]: https://user-images.githubusercontent.com/8604205/108739638-8208c600-753d-11eb-99bb-ea119640de39.png
[5]: https://user-images.githubusercontent.com/8604205/108739642-8339f300-753d-11eb-9b25-5c1988adb1dd.png
[6]: https://user-images.githubusercontent.com/8604205/108739645-846b2000-753d-11eb-8ef3-b6a8b7c6d1ff.png

Co-authored-by: Stefanie Fluin <[email protected]>

PR Close #40945
zarend pushed a commit that referenced this pull request Feb 26, 2021
This change has been extracted from #36045.

Co-authored-by: Stefanie Fluin <[email protected]>

PR Close #40944
zarend pushed a commit that referenced this pull request Feb 26, 2021
zarend pushed a commit that referenced this pull request Feb 26, 2021
…40944)

This commit improves the appearance of `.filter-button` elements used to
jump between different categories in "Contributors" and "Resources" pages.

Before (wide screen): ![contributors buttons (wide screen) before][1]
Before (narrow screen): ![contributors buttons (narrow screen) before][2]
After (wide screen): ![contributors buttons (wide screen) after][3]
After (narrow screen): ![contributors buttons (narrow screen) after][4]

This change has been extracted from #36045.

[1]: https://user-images.githubusercontent.com/8604205/108414895-72376c00-7235-11eb-9537-7a7b059d09fe.png
[2]: https://user-images.githubusercontent.com/8604205/108414923-782d4d00-7235-11eb-8ba4-87a3a9ae14cd.png
[3]: https://user-images.githubusercontent.com/8604205/108414929-78c5e380-7235-11eb-807a-109b4200e64e.png
[4]: https://user-images.githubusercontent.com/8604205/108414942-7cf20100-7235-11eb-8ef0-9b2da397b3ee.png

Co-authored-by: Stefanie Fluin <[email protected]>

PR Close #40944
zarend pushed a commit that referenced this pull request Feb 26, 2021
zarend pushed a commit that referenced this pull request Feb 26, 2021
This commit improves the layout of the "Contribute" page by centering
the content (similar to other marketing pages).

Before: ![contribute layout before][1]
After: ![contribute layout after][2]

This change has been extracted from #36045.

[1]: https://user-images.githubusercontent.com/8604205/108595056-5b545f00-7386-11eb-97b6-c3606dbfb5fa.png
[2]: https://user-images.githubusercontent.com/8604205/108595060-5becf580-7386-11eb-91fa-b2877f2a4691.png

Co-authored-by: Stefanie Fluin <[email protected]>

PR Close #40944
zarend pushed a commit that referenced this pull request Feb 26, 2021
…omponent (#40944)

This commit cleans up the styles and the elements/classes used for
styling the content of the `<aio-resource-list>` component.

This change has been extracted from #36045.

Co-authored-by: Stefanie Fluin <[email protected]>

PR Close #40944
zarend pushed a commit that referenced this pull request Feb 26, 2021
This commit improves the readability of the "Resources" page by limiting
the content's max width to 50em (which is 800px by default).

It also gets rid of custom color values and either uses the default
color or colors specified via Sass variables.

Before: ![resources page before][1]
After: ![resources page after][2]

This change has been extracted from #36045.

[1]: https://user-images.githubusercontent.com/8604205/108601949-104b4380-73a8-11eb-864b-948db8c36f80.png
[2]: https://user-images.githubusercontent.com/8604205/108602036-894a9b00-73a8-11eb-870d-39bea9b46d97.png

Co-authored-by: Stefanie Fluin <[email protected]>

PR Close #40944
zarend pushed a commit that referenced this pull request Feb 26, 2021
This change has been extracted from #36045.

Co-authored-by: Stefanie Fluin <[email protected]>

PR Close #40944
@angular-automatic-lock-bot

Copy link
Copy Markdown

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

action: review The PR is still awaiting reviews from at least one requested reviewer cla: yes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants