Skip to content

Commit

Permalink
content/static: fix directory indentation
Browse files Browse the repository at this point in the history
Fixes golang/go#44399

Change-Id: I298986d2219a6c8333bfa7d49cb0bed9818f59e0
Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/295591
Trust: Jamal Carvalho <jamal@golang.org>
Run-TryBot: Jamal Carvalho <jamal@golang.org>
Reviewed-by: Julie Qiu <julie@golang.org>
TryBot-Result: kokoro <noreply+kokoro@google.com>
  • Loading branch information
jamalc committed Feb 23, 2021
1 parent bc0218a commit dc9827c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
6 changes: 6 additions & 0 deletions content/static/css/unit_directories.css
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,9 @@ th.UnitDirectories-toggleCell {
.UnitDirectories-toggleButton {
background-color: transparent;
border: none;
left: -0.75rem;
margin: 0 -0.5rem -1rem -1rem;
position: absolute;
vertical-align: top;
}
.UnitDirectories-subSpacer {
Expand All @@ -96,10 +98,14 @@ th.UnitDirectories-toggleCell {
line-height: 1.75rem;
word-break: break-all;
}
.UnitDirectories-pathCell > div {
position: relative;
}
.UnitDirectories-subdirectory {
border-left: 0.0625rem solid var(--gray-8);
display: flex;
flex-direction: column;
margin-left: 0.375rem;
padding: 0.5rem 1rem;
}
.UnitDirectories-mobileSynopsis {
Expand Down
6 changes: 4 additions & 2 deletions content/static/html/helpers/_unit_directories.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,10 @@
<tr data-id="{{$prefix}}-{{.Suffix}}">
<td>
<div class="UnitDirectories-subdirectory">
<a href="{{.URL}}">{{.Suffix}}</a>
{{if .IsModule}}<span class="UnitHeader-badge">Module</span>{{end}}
<span>
<a href="{{.URL}}">{{.Suffix}}</a>
{{if .IsModule}}<span class="UnitHeader-badge">Module</span>{{end}}
</span>
<div class="UnitDirectories-mobileSynopsis">{{.Synopsis}}</div>
</div>
</td>
Expand Down

0 comments on commit dc9827c

Please sign in to comment.