Skip to content

Commit

Permalink
[Dark Theme] Fix reserved icon error and updated default icon image (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
martinrrm authored Jun 24, 2024
1 parent 5355aa3 commit 7127734
Show file tree
Hide file tree
Showing 10 changed files with 31 additions and 22 deletions.
8 changes: 8 additions & 0 deletions src/Bootstrap/dist/css/bootstrap-theme.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions src/Bootstrap/less/theme/page-add-organization.less
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@
margin-bottom: 6px;
}

.package-default-icon {
content: var(--default-package-icon, url(../img/default-package-icon-256x256.png));
}

.required:after {
color: var(--statusDangerStroke2Rest);
content: " *";
Expand Down
6 changes: 6 additions & 0 deletions src/Bootstrap/less/theme/page-display-package.less
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@
width: 18px;
margin-right: 5px;
margin-left: 2px;
color: var(--brandBackground1Rest);
}

.prefix-reserve-label {
Expand Down Expand Up @@ -359,6 +360,7 @@
margin-bottom: 3px;
margin-left: 2px;
vertical-align: middle;
color: var(--brandBackground1Rest);
}
}

Expand Down Expand Up @@ -517,6 +519,10 @@
margin-bottom: -1px;
background-color: transparent;

i {
color: var(--brandStrokeCompoundRest);
}

&:hover {
border-bottom-color: var(--brandStrokeCompoundHover);
border-bottom-width: 2px;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -180,12 +180,7 @@
<td>
@if (pr.IsVerified)
{
<img class="img-responsive"
src="~/Content/gallery/img/reserved-indicator.svg"
alt="Reserved namespace icon"
width="24" height="24"
@ViewHelpers.ImageFallback(Url.Absolute("~/Content/gallery/img/reserved-indicator-256x256.png"))
title="@Strings.ReservedNamespace_ReservedIndicatorTooltip" />
<i class="ms-Icon ms-Icon--SkypeCircleCheck reserved-indicator" title="@Strings.ReservedNamespace_ReservedIndicatorTooltip" alt="Reserved namespace icon"></i>
}
</td>
<td>@pr.DownloadCount.ToNuGetNumberString()</td>
Expand Down
2 changes: 1 addition & 1 deletion src/NuGetGallery/Content/gallery/css/bootstrap.min.css

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions src/NuGetGallery/NuGetGallery.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -1386,6 +1386,7 @@
<Content Include="Content\gallery\img\circuit-board-light-theme.svg" />
<Content Include="Content\gallery\img\default-package-icon-256x256.png" />
<Content Include="Content\gallery\img\default-package-icon.svg" />
<Content Include="Content\gallery\img\default-package-icon-white.png" />
<Content Include="Content\gallery\img\dotnet-foundation-42x42.png" />
<Content Include="Content\gallery\img\dotnet-foundation.svg" />
<Content Include="Content\gallery\img\facebook-24x24.png" />
Expand Down
15 changes: 7 additions & 8 deletions src/NuGetGallery/Views/Organizations/Add.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,13 @@
<div>
<aside class="col-sm-3 col-sm-push-9">
<b>Logo</b>
<img src="@Url.Absolute("~/Content/gallery/img/default-package-icon-256x256.png")"
class="owner-image img-responsive"
height="332"
id="gravatar-image"
width="332"
alt="gravatar"
title="Organization logo"
aria-label="Organization logo">
<img class="package-icon img-responsive owner-image package-default-icon"
height="332"
id="gravatar-image"
width="332"
alt="gravatar"
title="Organization logo"
aria-label="Organization logo" />
<p class="ms-font-s">
We use the organization's name and its verified email address to get its publicly visible Gravatar profile picture
(or a default image if it does not have a Gravatar profile picture). Please go to gravatar.com to change the profile picture for your organization.
Expand Down
2 changes: 1 addition & 1 deletion src/NuGetGallery/Views/Packages/DisplayPackage.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -281,14 +281,14 @@

@if (Model.IsVerified.HasValue && Model.IsVerified.Value)
{
}
<span class="prefix-reserve-title">
<i class="ms-Icon ms-Icon--SkypeCircleCheck reserved-indicator" data-content="@Strings.ReservedNamespace_ReservedIndicatorTooltip" tabindex="0"
alt="@Strings.ReservedNamespace_ReservedIndicatorTooltip"></i>
<a href="https://docs.microsoft.com/nuget/nuget-org/id-prefix-reservation" class="prefix-reserve-label">
Prefix Reserved
</a>
</span>
}
</div>
}
else
Expand Down
2 changes: 1 addition & 1 deletion src/NuGetGallery/Views/Shared/_ListPackage.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
@if (Model.IsVerified.HasValue && Model.IsVerified.Value)
{
<i class="ms-Icon ms-Icon--SkypeCircleCheck reserved-indicator"
data-content="@Strings.ReservedNamespace_ReservedIndicatorTooltip" tabindex="0" alt="@Strings.ReservedNamespace_ReservedIndicatorTooltip"/>
data-content="@Strings.ReservedNamespace_ReservedIndicatorTooltip" tabindex="0" alt="@Strings.ReservedNamespace_ReservedIndicatorTooltip"></i>
}

@if (showEditButton && (Model.CanEdit || Model.CanManageOwners || Model.CanUnlistOrRelist))
Expand Down
6 changes: 1 addition & 5 deletions src/NuGetGallery/Views/Users/Packages.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -222,11 +222,7 @@
<tbody data-bind="foreach: Namespaces">
<tr class="manage-package-listing" data-bind="visible: Visible">
<td class="align-middle hidden-xs">
<img class="reserved-indicator-icon img-responsive"
src="~/Content/gallery/img/reserved-indicator.svg"
alt="Reserved namespace icon"
@ViewHelpers.ImageFallback(Url.Absolute("~/Content/gallery/img/reserved-indicator-256x256.png"))
title="@Strings.ReservedNamespace_ReservedIndicatorTooltip" />
<i class="ms-Icon ms-Icon--SkypeCircleCheck reserved-indicator" title="@Strings.ReservedNamespace_ReservedIndicatorTooltip" alt="Reserved namespace icon"></i>
</td>
<td class="align-middle reserved-id">
<a data-bind="text: Pattern, attr: { href: SearchUrl, target: '_blank' }"></a>
Expand Down

0 comments on commit 7127734

Please sign in to comment.