Skip to content

Commit a3b1b5f

Browse files
Fixed package icon-title-version alignment (#10653)
* Fixed package icon-title-version alignment on package details page * Maintaining aspect ratio for non-standard icons and aligned version number with title
1 parent da412e0 commit a3b1b5f

3 files changed

Lines changed: 30 additions & 9 deletions

File tree

src/Bootstrap/dist/css/bootstrap-theme.css

Lines changed: 15 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Bootstrap/less/theme/page-display-package.less

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,26 +32,36 @@
3232
margin-bottom: 16px;
3333

3434
h1 {
35+
display: flex;
36+
align-items: center;
37+
flex-wrap: wrap;
38+
margin-top: 40px;
39+
40+
> span.pull-left {
41+
float: none;
42+
display: flex;
43+
align-items: center;
44+
}
3545

3646
.title {
3747
font-size: 32px;
38-
margin-top: 40px;
3948
font-weight: 400;
4049
margin-right: 18px;
50+
line-height: 1;
4151
}
4252

4353
.version-title {
4454
font-size: 16px;
4555
font-weight: 400;
4656
color: var(--neutralForeground3Rest);
4757
margin-right: 14px;
48-
vertical-align: middle;
58+
transform: translateY(6px);
4959
}
5060

5161
.package-icon {
52-
height: 32px;
5362
width: 32px;
54-
margin-top: 8px;
63+
height: 32px;
64+
object-fit: contain;
5565
margin-right: 12px;
5666
}
5767
}

src/NuGetGallery/Content/gallery/css/bootstrap.min.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)