Skip to content

Commit 3404a49

Browse files
authored
Banner about the upcoming TLS 1.2 enforcement (#8012)
* Quick banner for the upcoming TLS 1.2 enforcement. * Variable for the background color. * Aligned the banner text with the blog post.
1 parent 1e24826 commit 3404a49

6 files changed

Lines changed: 24 additions & 3 deletions

File tree

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

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

src/Bootstrap/less/theme/base.less

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -226,6 +226,10 @@ body {
226226
&.banner-notice {
227227
background: @alert-info-bg;
228228
}
229+
230+
&.banner-info {
231+
background: @info-bg;
232+
}
229233
}
230234

231235
.alert {

src/Bootstrap/less/theme/modals.less

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
font-size: 14px;
4242

4343
.tag-node {
44-
background-color: #fff4ce;
44+
background-color: @info-bg;
4545
padding: 13px;
4646
text-align: left;
4747

src/Bootstrap/less/theme/page-status.less

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
}
3737

3838
.status-degraded {
39-
background-color: #FFF4CE;
39+
background-color: @info-bg;
4040

4141
.ms-Icon {
4242
color: orange;

src/Bootstrap/less/variables.less

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -873,3 +873,5 @@
873873
@dl-horizontal-breakpoint: @grid-float-breakpoint;
874874
//** Horizontal line color.
875875
@hr-border: @gray-lighter;
876+
877+
@info-bg: #fff4ce;

src/NuGetGallery/Views/Shared/Gallery/Header.cshtml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,18 @@
88
var rawErrorMessage = TempData.ContainsKey("RawErrorMessage") ? TempData["RawErrorMessage"].ToString() : null;
99
}
1010

11+
<div class="container-fluid banner banner-info text-center">
12+
<div class="row">
13+
<div class="col-sm-12">
14+
<i class="ms-Icon ms-Icon--Warning" aria-hidden="true"></i>
15+
<span>
16+
NuGet.org will permanently <a href="https://devblogs.microsoft.com/nuget/nuget-org-will-permanently-remove-support-for-tls-1-0-and-1-1-on-june-15th/">
17+
remove support</a> for TLS 1.0 and 1.1 on June 15th. Please ensure that your systems use TLS 1.2.
18+
</span>
19+
</div>
20+
</div>
21+
</div>
22+
1123
@if (!string.IsNullOrWhiteSpace(Config.Current.WarningBanner))
1224
{
1325
<div class="container-fluid banner banner-bright text-center">

0 commit comments

Comments
 (0)