Repository navigation
Conversation
|
You can preview 4c1e0b1 at https://pr40881-4c1e0b1.ngbuilds.io/. |
4c1e0b1 to
055ac13
Compare
|
You can preview 055ac13 at https://pr40881-055ac13.ngbuilds.io/. |
petebacondarwin
left a comment
There was a problem hiding this comment.
LGTM! A couple of minor NITs that you can consider.
In this commit:
fix(docs-infra): ensure the main font is applied to search inputs
Given that you are also fixing "other inputs" as well, perhaps remove the word search from the commit title?
AndrewKushnir
left a comment
There was a problem hiding this comment.
Reviewed-for: public-api
055ac13 to
4f8a0ab
Compare
|
You can preview 4f8a0ab at https://pr40881-4f8a0ab.ngbuilds.io/. |
There was a problem hiding this comment.
I see that this file already existed, but this might be a good opportunity to move content into more specifically-named files. I consider having files named e.g. "mixins.scss" to be an anti-pattern and would recommend separate files named based on what they target.
(could also be a follow-up at some point in the future)
There was a problem hiding this comment.
I'll leave it for a future clean-up 😁
(TBH, I am not sure what files the mixins would be split out to 😅)
There was a problem hiding this comment.
Sass mixins are conventionally named with dash-case (though I see this file already was using camelCase for one)
There was a problem hiding this comment.
Oh, I had no idea 😁
I updated the newly added mixins and added one more commit to change deployTheme() to deploy-theme().
There was a problem hiding this comment.
SassDoc typically uses a triple-slash (///) rather than block-style comments (/** */) since the latter are CSS-comments that can be emitted into the output CSS rather than Sass comments that are always omitted.
jelbourn
left a comment
There was a problem hiding this comment.
LGTM
Reviewed-for: public-api
Previously, in order to apply some styles to docs (i.e. non-marketing) pages, we listed the various `.folder-*` classes that corresponded to docs pages. This meant that adding/removing a docs area required updates in several places, which is error-prone. This commit avoids this by using a Sass mixin for applying styles to docs pages. PR Close #40881
…40881) This commit adds some more spacing between the past and future events sections on the "Events" page. Before: ![events spacing before][1] After: ![events spacing after][2] [1]: https://user-images.githubusercontent.com/8604205/107989711-82eca580-6fdb-11eb-837e-1255d439d51a.png [2]: https://user-images.githubusercontent.com/8604205/107989708-81bb7880-6fdb-11eb-8cf4-4653254e1c37.png PR Close #40881
… marketing pages (#40881) Before (wide screen): ![contributors (wide screen) before][1] Before (narrow screen): ![contributors (narrow screen) before][2] After (wide screen): ![contributors (wide screen) after][3] After (narrow screen): ![contributors (narrow screen) after][4] [1]: https://user-images.githubusercontent.com/8604205/107983880-634f8000-6fcf-11eb-8ad9-5a5df65d3d5e.png [2]: https://user-images.githubusercontent.com/8604205/107983893-6a768e00-6fcf-11eb-9ccd-158ec491404f.png [3]: https://user-images.githubusercontent.com/8604205/107983903-6f3b4200-6fcf-11eb-94e1-182893b7a715.png [4]: https://user-images.githubusercontent.com/8604205/107983895-6ba7bb00-6fcf-11eb-9ff5-59d221ba906d.png PR Close #40881
…40881) Previously, some of the marketing pages had different styles for the top-nav than others (even if they had the same layout and blue-background header). More specifically, the top-nav had a box-shadow and it was absolutely positioned on some marketing pages, while it had no box-shadow and was statically positioned on others. This commit makes the appearance of marketing pages wrt the top-nav consistent across all marketing pages by changing the styles for the remaining pages: - Contributors (`/about`) - Contribute (`/contribute`) - Press kit (`/presskit`) Before: ![contribute topnav shadow before][1] After: ![contribute topnav shadow after][2] [1]: https://user-images.githubusercontent.com/8604205/107984898-a6aaee00-6fd1-11eb-8bf3-79393c8983ff.png [2]: https://user-images.githubusercontent.com/8604205/107984900-a7438480-6fd1-11eb-8d9b-a643d69ab692.png PR Close #40881
This commit makes the padding of the "Events", "Features" and "Press kit" pages consistent with that of other marketing pages. Before: ![presskit padding before][1] After: ![presskit padding after][2] [1]: https://user-images.githubusercontent.com/8604205/107986067-f8547800-6fd3-11eb-9164-51793e431d05.png [2]: https://user-images.githubusercontent.com/8604205/107986064-f7234b00-6fd3-11eb-9050-ed7ec04e7443.png PR Close #40881
…40881) Previously, the "Press kit" page had a larger top margin on smaller screens, that seemed unnecessary. This commit removes the extra top margin. Before: ![presskit top section margin before][1] After: ![presskit top section margin after][2] [1]: https://user-images.githubusercontent.com/8604205/107988545-efb27080-6fd8-11eb-91d6-79651f2dffaf.png [2]: https://user-images.githubusercontent.com/8604205/107988547-f04b0700-6fd8-11eb-9c4b-d444b39a34fe.png PR Close #40881
This commit removes some CSS styles that have no effect (i.e. are duplicates or overridden by other rules). PR Close #40881
Previously, in order to apply some styles to marketing (i.e. non-docs) pages, we listed the various `.page-*` classes that corresponded to docs pages. This meant that adding/removing a marketing page required updates in several places, which is error-prone. This commit avoids this by using a Sass mixin for applying styles to marketing pages. PR Close #40881
… to follow Sass conventions (#40881) This commit converts the last remaining camelCased Sass mixin (`deployTheme`) to kebab-case (`deploy-theme`) to follow the Sass conventions. Discussed in #40881 (comment). PR Close #40881
…40881) Previously, some of the links on the error pages had URLs prefixed with `https://angular.io/`. This caused them to be treated as external URLs, which had the following downsides: - Links would always point to `angular.io` instead of the same version as the error page (e.g. `next.angular.io` or `v11.angular.io`). - Dgeni would not be able to check that the URLs are valid (i.e. point to existing pages). - An external link icon would incorrectly be shown next to the links on `angular.io`. This commit fixes the links to use relative URLs. PR Close #40881
… results (#40881) Previously, the "Errors List" page was appearing under the "OTHER" section in search results. This commit fixes this to make it appear under the "ERRORS" section. Before: ![search-results before][1] After: ![search-results after][2] [1]: https://user-images.githubusercontent.com/8604205/107691151-c1b8ed80-6cb3-11eb-8079-fcace685f0ec.png [2]: https://user-images.githubusercontent.com/8604205/107691145-bfef2a00-6cb3-11eb-8523-b2747fa40469.png PR Close #40881
…` in search-results (#40881) Previously, the `docs.md` guide was appearing under "OTHER" in search results and the results for the `/start*` tutorial pages were appearing under "START". This commit changes this so that `docs.md` appears under "GUIDES" and `/start*` appear under "TUTORIALS", since that is where they belong conceptually. It also changes the header of the guides search-area from "GUIDE" to "GUIDES" and that of tutorials from "TUTORIAL" to "TUTORIALS". Before: ![search-results areas before][1] After: ![search-results areas after][2] [1]: https://user-images.githubusercontent.com/8604205/107811568-0ce80480-6d77-11eb-8652-e7a947c36e63.png [2]: https://user-images.githubusercontent.com/8604205/107811569-0eb1c800-6d77-11eb-9a69-0000a3703c8a.png PR Close #40881
) This commit removes some CSS rules targeting `.doc-version select` in the sidenav. These rules do not match any elements any more, since now we use a custom `<aio-select>` component (instead of the `<select>` element). PR Close #40881
This commit removes some unnecessary styles setting `font-family` to `$main-font`. These styles are redundant, because the targeted elements already inherit this style from `<body>`. PR Close #40881
It turns out that `<input>` and `<button>` elements do not inherit the `font-family` style from `<body>` by default, but rather use a user-agent defined style. This means that their font-family might be different than the one used in the rest of the page. This commit fixes it by ensuring `<input>` (and other) elements inherit their `font-family` style from their parent element. Before: ![inputs font before][1] After: ![inputs font after][2] (The difference in font is subtle, but it's there.) [1]: https://user-images.githubusercontent.com/8604205/107853245-76bae980-6e1d-11eb-8318-e5f6e13876cc.png [2]: https://user-images.githubusercontent.com/8604205/107853246-77538000-6e1d-11eb-86f2-e3e7e41158f5.png PR Close #40881
Previously, in order to apply some styles to docs (i.e. non-marketing) pages, we listed the various `.folder-*` classes that corresponded to docs pages. This meant that adding/removing a docs area required updates in several places, which is error-prone. This commit avoids this by using a Sass mixin for applying styles to docs pages. PR Close #40881
…40881) This commit adds some more spacing between the past and future events sections on the "Events" page. Before: ![events spacing before][1] After: ![events spacing after][2] [1]: https://user-images.githubusercontent.com/8604205/107989711-82eca580-6fdb-11eb-837e-1255d439d51a.png [2]: https://user-images.githubusercontent.com/8604205/107989708-81bb7880-6fdb-11eb-8cf4-4653254e1c37.png PR Close #40881
… marketing pages (#40881) Before (wide screen): ![contributors (wide screen) before][1] Before (narrow screen): ![contributors (narrow screen) before][2] After (wide screen): ![contributors (wide screen) after][3] After (narrow screen): ![contributors (narrow screen) after][4] [1]: https://user-images.githubusercontent.com/8604205/107983880-634f8000-6fcf-11eb-8ad9-5a5df65d3d5e.png [2]: https://user-images.githubusercontent.com/8604205/107983893-6a768e00-6fcf-11eb-9ccd-158ec491404f.png [3]: https://user-images.githubusercontent.com/8604205/107983903-6f3b4200-6fcf-11eb-94e1-182893b7a715.png [4]: https://user-images.githubusercontent.com/8604205/107983895-6ba7bb00-6fcf-11eb-9ff5-59d221ba906d.png PR Close #40881
…40881) Previously, some of the marketing pages had different styles for the top-nav than others (even if they had the same layout and blue-background header). More specifically, the top-nav had a box-shadow and it was absolutely positioned on some marketing pages, while it had no box-shadow and was statically positioned on others. This commit makes the appearance of marketing pages wrt the top-nav consistent across all marketing pages by changing the styles for the remaining pages: - Contributors (`/about`) - Contribute (`/contribute`) - Press kit (`/presskit`) Before: ![contribute topnav shadow before][1] After: ![contribute topnav shadow after][2] [1]: https://user-images.githubusercontent.com/8604205/107984898-a6aaee00-6fd1-11eb-8bf3-79393c8983ff.png [2]: https://user-images.githubusercontent.com/8604205/107984900-a7438480-6fd1-11eb-8d9b-a643d69ab692.png PR Close #40881
This commit makes the padding of the "Events", "Features" and "Press kit" pages consistent with that of other marketing pages. Before: ![presskit padding before][1] After: ![presskit padding after][2] [1]: https://user-images.githubusercontent.com/8604205/107986067-f8547800-6fd3-11eb-9164-51793e431d05.png [2]: https://user-images.githubusercontent.com/8604205/107986064-f7234b00-6fd3-11eb-9050-ed7ec04e7443.png PR Close #40881
…40881) Previously, the "Press kit" page had a larger top margin on smaller screens, that seemed unnecessary. This commit removes the extra top margin. Before: ![presskit top section margin before][1] After: ![presskit top section margin after][2] [1]: https://user-images.githubusercontent.com/8604205/107988545-efb27080-6fd8-11eb-91d6-79651f2dffaf.png [2]: https://user-images.githubusercontent.com/8604205/107988547-f04b0700-6fd8-11eb-9c4b-d444b39a34fe.png PR Close #40881
This commit removes some CSS styles that have no effect (i.e. are duplicates or overridden by other rules). PR Close #40881
Previously, in order to apply some styles to marketing (i.e. non-docs) pages, we listed the various `.page-*` classes that corresponded to docs pages. This meant that adding/removing a marketing page required updates in several places, which is error-prone. This commit avoids this by using a Sass mixin for applying styles to marketing pages. PR Close #40881
… to follow Sass conventions (#40881) This commit converts the last remaining camelCased Sass mixin (`deployTheme`) to kebab-case (`deploy-theme`) to follow the Sass conventions. Discussed in #40881 (comment). PR Close #40881
|
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Several more style fixes for angular.io:
fix(docs-infra): show external link icons for external links on error pages (click to expand)
This commit adds error pages to the list of docs pages that have an external link icon next to links to external URLs.
fix(docs-infra): use relative URLs for internal links on error pages (click to expand)
Previously, some of the links on the error pages had URLs prefixed with
https://angular.io/. This caused them to be treated as external URLs, which had the following downsides:angular.ioinstead of the same version as the error page (e.g.next.angular.ioorv11.angular.io).angular.io.This commit fixes the links to use relative URLs.
fix(docs-infra): show the "Errors List" page under "ERRORS" in search results (click to expand)
Previously, the "Errors List" page was appearing under the "OTHER" section in search results.
This commit fixes this to make it appear under the "ERRORS" section.
Before:
After:
fix(docs-infra): merge `docs` with `guide` and `start` with `tutorial` in search-results (click to expand)
Previously, the
docs.mdguide was appearing under "OTHER" in search results and the results for the/start*tutorial pages were appearing under "START".This commit changes this so that
docs.mdappears under "GUIDES" and/start*appear under "TUTORIALS", since that is where they belong conceptually.It also changes the header of the guides search-area from "GUIDE" to "GUIDES" and that of tutorials from "TUTORIAL" to "TUTORIALS".
Before:
After:
refactor(docs-infra): remove unused CSS for the version selector (click to expand)
This commit removes some CSS rules targeting
.doc-version selectin the sidenav. These rules do not match any elements any more, since now we use a custom<aio-select>component (instead of the<select>element).refactor(docs-infra): remove unnecessary `font-family` styles (click to expand)
This commit removes some unnecessary styles setting
font-familyto$main-font. These styles are redundant, because the targeted elements already inherit this style from<body>.fix(docs-infra): ensure the main font is applied to search inputs (click to expand)
It turns out that
<input>and<button>elements do not inherit thefont-familystyle from<body>by default, but rather use a user-agent defined style. This means that their font-family might be different than the one used in the rest of the page.This commit fixes it by ensuring
<input>(and other) elements inherit theirfont-familystyle from their parent element.Before:
After:
(The difference in font is subtle, but it's there.)
refactor(docs-infra): create mixin for styling docs pages (click to expand)
Previously, in order to apply some styles to docs (i.e. non-marketing) pages, we listed the various
.folder-*classes that corresponded to docs pages. This meant that adding/removing a docs area required updates in several places, which is error-prone.This commit avoids this by using a Sass mixin for applying styles to docs pages.
fix(docs-infra): add spacing between past and future events sections (click to expand)
This commit adds some more spacing between the past and future events sections on the "Events" page.
Before:
After:
fix(docs-infra): make the "Contributors" page header similar to other marketing pages (click to expand)
Before (wide screen):
Before (narrow screen):
After (wide screen):
After (narrow screen):
fix(docs-infra): make top-nav consistent across all marketing pages (click to expand)
Previously, some of the marketing pages had different styles for the top-nav than others (even if they had the same layout and blue-background header). More specifically, the top-nav had a box-shadow and it was absolutely positioned on some marketing pages, while it had no box-shadow and was statically positioned on others.
This commit makes the appearance of marketing pages wrt the top-nav consistent across all marketing pages by changing the styles for the remaining pages:
/about)/contribute)/presskit)Before:
After:
fix(docs-infra): use consistent padding in marketing pages (click to expand)
This commit makes the padding of the "Events", "Features" and "Press kit" pages consistent with that of other marketing pages.
Before:
After:
fix(docs-infra): fix top margin of "Press kit" page on small screens (click to expand)
Previously, the "Press kit" page had a larger top margin on smaller screens, that seemed unnecessary.
This commit removes the extra top margin.
Before:
After:
refactor(docs-infra): remove duplicate or unused CSS styles (click to expand)
This commit removes some CSS styles that have no effect (i.e. are duplicates or overridden by other rules).
refactor(docs-infra): create mixin for styling marketing pages (click to expand)
Previously, in order to apply some styles to marketing (i.e. non-docs) pages, we listed the various
.page-*classes that corresponded to docs pages. This meant that adding/removing a marketing page required updates in several places, which is error-prone.This commit avoids this by using a Sass mixin for applying styles to marketing pages.