-
-
Notifications
You must be signed in to change notification settings - Fork 78.8k
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
Doc tweaks #29029
Doc tweaks #29029
Conversation
0a65ca8
to
60e1707
Compare
037b5fc
to
2055ec3
Compare
IE should be fixed. /CC @mdo for approval Perhaps we should move the arrow in the CSS pseudo selector since it's repeated a lot. |
@patrickhlauke: should I add |
493bfcf
to
b73b1b8
Compare
yes please |
We can skip those SVG changes if we instead make it part of the CSS. Lemme have a crack at that. |
Pushed up the changes for the sidebar, but it occurs to me that I'm also using the same icon elsewhere in the subnav, so we likely need those optimizations as well. |
Which optimizations are you referring to? And where is this arrow SVG being used apart from here? |
@@ -17,7 +17,7 @@ | |||
|
|||
<li class="bd-sidenav-group my-1{{ if $active_group }} active{{ end }} js-sidenav-group"> | |||
<a class="d-inline-flex align-items-center bd-sidenav-group-link" href="/docs/{{ $.Site.Params.docs_version }}/{{ $group_slug }}/{{ if $group.pages }}{{ $link_slug }}/{{ end }}"> | |||
<svg class="bd-sidenav-group-link-icon" viewbox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path stroke="currentColor" stroke-width="2" d="M5 14l6-6-6-6" fill="none" fill-rule="evenodd" stroke-linecap="round" stroke-linejoin="round"/></svg> | |||
<svg class="bd-sidenav-group-link-icon" width="16" height="16" viewbox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path stroke="currentColor" stroke-width="2" d="M5 14l6-6-6-6" fill="none" fill-rule="evenodd" stroke-linecap="round" stroke-linejoin="round"/></svg> | |||
<div>{{- $group.title -}}</div> |
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.
Should this be just a span
@mdo?
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.
In this case, it doesn't matter because the parent element is a flex container and will align everything essentially the same way.
@@ -38,7 +37,9 @@ | |||
|
|||
<li class="my-3 mx-4 border-top"></li> | |||
<li class="bd-sidenav-group pl-3"> | |||
<a class="d-inline-flex bd-sidenav-group-link" href="/migration">Migration</a> | |||
<a class="d-inline-flex align-items-center bd-sidenav-group-link" href="/migration"> | |||
<div>Migration</div> |
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.
Shouldn't this be in nav.yml?
5f169a3
to
7c115eb
Compare
Alright, I left a couple more comments, but I'd like them addressed soon so that we don't end up with a huge PR. |
070d614
to
dc25c91
Compare
I'm putting this on hold because I believe it can be optimized further.
|
74b9710
to
6929fb1
Compare
Fixes IE.
b834c7e
to
b24b228
Compare
@mdo: not sure why you used 600px, but this is the proper way to do it. If you want it bigger, we'd need a bigger set of the 2 images.