Skip to content
This repository was archived by the owner on Jan 16, 2021. It is now read-only.

Commit 41221c3

Browse files
committed
gddo-server/assets: update banner
Banner is updated to have a separator in the middle, which looks better for centered content per UXD. Desktop: https://photos.app.goo.gl/5ZkmLqi8RCDRRPc69 Mobile: https://photos.app.goo.gl/Lf8aw5yWuaB6kGe68 Change-Id: I635e9a19133f66d7a58192ae70f21dd0913b2901 Reviewed-on: https://go-review.googlesource.com/c/gddo/+/278412 Trust: Julie Qiu <[email protected]> Run-TryBot: Julie Qiu <[email protected]> Reviewed-by: Jamal Carvalho <[email protected]>
1 parent 56ec5ff commit 41221c3

File tree

2 files changed

+7
-31
lines changed

2 files changed

+7
-31
lines changed

gddo-server/assets/site.css

Lines changed: 2 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -129,37 +129,14 @@ a, .navbar-default .navbar-brand {
129129
padding: 8px 16px;
130130
}
131131

132-
.banner-message {
133-
text-align: right;
134-
}
135-
136-
.banner-action-container {
137-
white-space: nowrap;
138-
}
139-
140-
.banner-action {
141-
margin-right: 90px;
142-
white-space: nowrap;
143-
}
144-
145-
.banner-action + .banner-action {
146-
margin-left: 24px;
132+
.banner-separator {
133+
margin: 0 10px;
147134
}
148135

149136
@media (max-width: 768px) {
150137
.banner {
151138
flex-direction: column;
152139
}
153-
154-
.banner-message {
155-
align-items: flex-start;
156-
margin-bottom: 10px;
157-
margin-right: 0;
158-
}
159-
160-
.banner-action-container {
161-
width: 100%;
162-
}
163140
}
164141

165142
.panel-default > .panel-heading {

gddo-server/assets/templates/layout.html

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,11 @@
3434
</div>
3535
</nav>
3636
<div class="banner">
37-
<div class="banner-action-container">
38-
<a class="banner-action" href="?redirect=on"><b>Set default to always use pkg.go.dev</b></a>
39-
</div>
40-
<div class="banner-message">
41-
Requests to this page will redirect to {{template "PkgGoDevLink" $}} in early 2021. <a href="https://blog.golang.org/godoc.org-redirect">Learn More.</a>
42-
</div>
37+
<div>
38+
<a href="?redirect=on"><b>Set default to always use pkg.go.dev</b></a>
39+
<span class="banner-separator">|</span>
40+
Requests to this page will redirect to {{template "PkgGoDevLink" $}} in early 2021. <a href="https://blog.golang.org/godoc.org-redirect">Learn More.</a>
41+
</div>
4342
</div>
4443

4544
<div class="container">

0 commit comments

Comments
 (0)