Skip to content

Commit d55b12a

Browse files
smasher164toothrot
authored andcommitted
playground: fix vertical alignment of "Imports" checkbox
When examples were added to the playground, the banner was changed to use flexbox. However, the "Imports" checkbox lost its vertical centering as a result. See https://i.imgur.com/KDYGGaR.png. This change fixes the vertical alignment to look like the following: https://i.imgur.com/HJQSJ1w.png. Fixes golang/go#45641. Change-Id: I438ae0979bed3b08be0c369d8a009e9f27a4ea9f Reviewed-on: https://go-review.googlesource.com/c/playground/+/294889 Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org> Reviewed-by: Alexander Rakoczy <alex@golang.org> Trust: Dmitri Shuralyov <dmitshur@golang.org> Run-TryBot: Alexander Rakoczy <alex@golang.org> TryBot-Result: Go Bot <gobot@golang.org>
1 parent 69dad2b commit d55b12a

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

static/style.css

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -125,12 +125,15 @@ input[type=button],
125125
padding: 0.25em 7px;
126126
}
127127
#importsBox input {
128-
position: relative;
129-
top: -2px;
130-
left: 1px;
131-
height: 10px;
132-
width: 10px;
133-
margin-left: 0;
128+
flex: none;
129+
height: 11px;
130+
width: 11px;
131+
margin: 0 5px 0 0;
132+
}
133+
#importsBox label {
134+
display: flex;
135+
align-items: center;
136+
line-height: 1.2;
134137
}
135138
#shareURL {
136139
width: 280px;

0 commit comments

Comments
 (0)