Skip to content

fix(docs-infra): even more style fixes for angular.io - #40944

Closed
gkalpak wants to merge 13 commits into
angular:masterfrom
gkalpak:fix-aio-styles-4
Closed

gkalpak wants to merge 13 commits into
angular:masterfrom
gkalpak:fix-aio-styles-4

Conversation

@gkalpak

@gkalpak gkalpak commented Feb 22, 2021 •

Copy link
Copy Markdown
Member

Even more style fixes for angular.io:

fix(docs-infra): increase margin of header-links (click to expand)

This change has been extracted from #36045.

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


refactor(docs-infra): use Sass variables for colors used in themes (click to expand)

This change has been extracted from #36045.

NOTE:
The color names for the RC theme were computed using https://www.color-blindness.com/color-name-hue.

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


refactor(docs-infra): remove redundant Sass mixin (click to expand)

This commit removes the bp() Sass mixin, which was only used in one place (and also included several unused code-branches).


fix(docs-infra): put the license references in a separate paragraph in the footer (click to expand)

This commit improves how sentences are broken up into lines in the footer (due to the limited max-width of the content) by moving the license references in a separate paragraph.

Before:

footer before

After:

footer after


refactor(docs-infra): move `.filter-button` styles inside `.group-buttons` (click to expand)

Since .filter-button elements only appear inside .group-buttons elements, this commit moves .filter-button CSS styles inside .group-buttons styles.


fix(docs-infra): improve the appearance of `.filter-button` elements (click to expand)

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

Before (narrow screen):

contributors buttons (narrow screen) before

After (wide screen):

contributors buttons (wide screen) after

After (narrow screen):

contributors buttons (narrow screen) after

This change has been extracted from #36045.

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


fix(docs-infra): make inline code stand out more (click to expand)

This commit improves the styling of inline code blocks to make them stand out more.

Before:

code formatting before

After:

code formatting after

This change has been extracted from #36045.

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


fix(docs-infra): remove unwanted underline when hovering over contributor info links (click to expand)

This commit removes an unwanted underline effect when hovering over contributor info links (.contributor-info > .info-item). This was accidentally introduced in #40427.

Before:

contributor info on hover before

After:

contributor info on hover after


fix(docs-infra): use up-to-date URLs in "Contribute" links (and replace deprecated `md-button`) (click to expand)

This commit replaces some outdated URLs in "Contribute" links (on the "Contribute" page):

  • github.com/angular/material2 --> github.com/angular/components
  • github.com/angular/angularfire2 --> github.com/angular/angularfire

It also replaces the deprecated md-button attribute with mat-button.


fix(docs-infra): center the "Contribute" page (click to expand)

This commit improves the layout of the "Contribute" page by centering the content (similar to other marketing pages).

Before:

contribute layout before

After:

contribute layout after

This change has been extracted from #36045.

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


refactor(docs-infra): clean up styling of the `<aio-resource-list>` component (click to expand)

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]


fix(docs-infra): improve the layout of the "Resources" page (click to expand)

This commit improves the readability of the "Resources" page by limiting the content's max width to 50em (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

After:

resources page after

This change has been extracted from #36045.

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

@gkalpak gkalpak added type: bug/fix refactoring Issue that involves refactoring or code-cleanup comp: docs-infra target: patch This PR is targeted for the next patch release labels Feb 22, 2021
@gkalpak gkalpak added this to the docs-infra-aio-app milestone Feb 22, 2021
@google-cla

This comment has been minimized.

@mary-poppins

Copy link
Copy Markdown

@gkalpak gkalpak mentioned this pull request Feb 22, 2021
3 of 14 tasks
@gkalpak
gkalpak marked this pull request as ready for review February 22, 2021 19:44
@pullapprove
pullapprove Bot requested a review from mgechev February 22, 2021 19:45
@sjtrimble

This comment has been minimized.

@google-cla google-cla Bot added cla: yes and removed cla: no labels Feb 22, 2021
@petebacondarwin

Copy link
Copy Markdown
Contributor

commit typo:

fix(docs-infra): increase margin of header-links …

This change has been exTracted from #36045.

@petebacondarwin petebacondarwin left a comment

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.

LGTM! Thanks for working through all this @gkalpak

Comment thread aio/src/styles/2-modules/_buttons.scss Resolved
Comment thread aio/src/styles/2-modules/_code.scss Resolved
@gkalpak gkalpak added the action: merge The PR is ready for merge by the caretaker label Feb 23, 2021
@ngbot

This comment has been minimized.

gkalpak and others added 5 commits February 23, 2021 16:49
This change has been extracted from angular#36045.

Co-authored-by: Stefanie Fluin <[email protected]>
This commit removes the `bp()` Sass mixin, which was only used in one
place (and also included several unused code-branches).
…tons`

Since `.filter-button` elements only appear inside `.group-buttons`
elements, this commit moves `.filter-button` CSS styles inside
`.group-buttons` styles.
@mary-poppins

Copy link
Copy Markdown

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 zarend closed this in 6275346 Feb 26, 2021
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 removes the `bp()` Sass mixin, which was only used in one
place (and also included several unused code-branches).

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
…tons` (#40944)

Since `.filter-button` elements only appear inside `.group-buttons`
elements, this commit moves `.filter-button` CSS styles inside
`.group-buttons` styles.

PR Close #40944
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
…utor info links (#40944)

This commit removes an unwanted underline effect when hovering over
contributor info links (`.contributor-info > .info-item`). This was
accidentally introduced in #40427.

Before: ![contributor info on hover before][1]
After: ![contributor info on hover after][2]

[1]: https://user-images.githubusercontent.com/8604205/108560170-045a7580-7305-11eb-98d2-4302d98581c6.png
[2]: https://user-images.githubusercontent.com/8604205/108560176-058ba280-7305-11eb-97eb-74cf2c830a39.png

PR Close #40944
zarend pushed a commit that referenced this pull request Feb 26, 2021
…ce deprecated `md-button`) (#40944)

This commit replaces some outdated URLs in "Contribute" links (on the
"Contribute" page):
- `github.com/angular/material2` --> `github.com/angular/components`
- `github.com/angular/angularfire2` --> `github.com/angular/angularfire`

It also replaces the deprecated `md-button` attribute with `mat-button`.

PR Close #40944
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
@gkalpak
gkalpak deleted the fix-aio-styles-4 branch February 27, 2021 06:44
@Splaktar

Splaktar commented Mar 2, 2021

Copy link
Copy Markdown
Contributor

The buttons on the Contributors page look much better! Thank you for fixing it so that Collaborators fits in the button without making the left and right padding not match! That was driving me crazy. I recall running into that confusing md-button reference recently as well.

gkalpak added a commit to gkalpak/angular that referenced this pull request Mar 9, 2021
Since angular#40944, `<code>` elements have a distinctive background to make
them stand out from regular text. However, this styling is not desirable
in certain cells of the "Cheat sheet" guide's tables, which exclusively
contain code.

This commit updates the `<code>` styling to remove the distinctive
background in those "Cheat sheet" cells.

Before angular#40944: ![cheatsheet code before PR 40944][1]
Since angular#40944: ![cheatsheet code since PR 40944][2]
After this commit: ![cheatsheet code after][3]

[1]: https://user-images.githubusercontent.com/8604205/109383633-4f215200-78f0-11eb-95e2-2a2c4fb3a31f.png
[2]: https://user-images.githubusercontent.com/8604205/109383634-50527f00-78f0-11eb-8c48-ff5f96918c4d.png
[3]: https://user-images.githubusercontent.com/8604205/109383635-50eb1580-78f0-11eb-9cf2-98851692ddd9.png
AndrewKushnir pushed a commit that referenced this pull request Mar 9, 2021
)

Since #40944, `<code>` elements have a distinctive background to make
them stand out from regular text. However, this styling is not desirable
in certain cells of the "Cheat sheet" guide's tables, which exclusively
contain code.

This commit updates the `<code>` styling to remove the distinctive
background in those "Cheat sheet" cells.

Before #40944: ![cheatsheet code before PR 40944][1]
Since #40944: ![cheatsheet code since PR 40944][2]
After this commit: ![cheatsheet code after][3]

[1]: https://user-images.githubusercontent.com/8604205/109383633-4f215200-78f0-11eb-95e2-2a2c4fb3a31f.png
[2]: https://user-images.githubusercontent.com/8604205/109383634-50527f00-78f0-11eb-8c48-ff5f96918c4d.png
[3]: https://user-images.githubusercontent.com/8604205/109383635-50eb1580-78f0-11eb-9cf2-98851692ddd9.png

PR Close #41051
AndrewKushnir pushed a commit that referenced this pull request Mar 9, 2021
)

Since #40944, `<code>` elements have a distinctive background to make
them stand out from regular text. However, this styling is not desirable
in certain cells of the "Cheat sheet" guide's tables, which exclusively
contain code.

This commit updates the `<code>` styling to remove the distinctive
background in those "Cheat sheet" cells.

Before #40944: ![cheatsheet code before PR 40944][1]
Since #40944: ![cheatsheet code since PR 40944][2]
After this commit: ![cheatsheet code after][3]

[1]: https://user-images.githubusercontent.com/8604205/109383633-4f215200-78f0-11eb-95e2-2a2c4fb3a31f.png
[2]: https://user-images.githubusercontent.com/8604205/109383634-50527f00-78f0-11eb-8c48-ff5f96918c4d.png
[3]: https://user-images.githubusercontent.com/8604205/109383635-50eb1580-78f0-11eb-9cf2-98851692ddd9.png

PR Close #41051
@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.

@angular-automatic-lock-bot angular-automatic-lock-bot Bot locked and limited conversation to collaborators Apr 2, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

action: merge The PR is ready for merge by the caretaker cla: yes refactoring Issue that involves refactoring or code-cleanup target: patch This PR is targeted for the next patch release type: bug/fix

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants