Skip to content

Commit e98e59c

Browse files
committed
Update template baselines
1 parent 93ff9e8 commit e98e59c

File tree

5 files changed

+92
-83
lines changed

5 files changed

+92
-83
lines changed

src/ProjectTemplates/Web.ProjectTemplates/content/RazorPagesWeb-CSharp/Pages/Shared/_Layout.cshtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
66
<title>@ViewData["Title"] - Company.WebApplication1</title>
77
<link rel="stylesheet" href="~/lib/bootstrap/dist/css/bootstrap.min.css" />
8-
<link rel="stylesheet" href="~/Company.WebApplication1.styles.css" />
8+
<link rel="stylesheet" href="~/css/site.css" />
99
</head>
1010
<body>
1111
<header>

src/ProjectTemplates/Web.ProjectTemplates/content/RazorPagesWeb-CSharp/Pages/Shared/_Layout.cshtml.css

Lines changed: 0 additions & 72 deletions
This file was deleted.
Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
/* Please see documentation at https://docs.microsoft.com/aspnet/core/client-side/bundling-and-minification
2+
for details on configuring this project to bundle and minify static web assets. */
3+
4+
a.navbar-brand {
5+
white-space: normal;
6+
text-align: center;
7+
word-break: break-all;
8+
}
9+
10+
/* Provide sufficient contrast against white background */
11+
a {
12+
color: #0366d6;
13+
}
14+
15+
.btn-primary {
16+
color: #fff;
17+
background-color: #1b6ec2;
18+
border-color: #1861ac;
19+
}
20+
21+
.nav-pills .nav-link.active, .nav-pills .show > .nav-link {
22+
color: #fff;
23+
background-color: #1b6ec2;
24+
border-color: #1861ac;
25+
}
26+
27+
/* Sticky footer styles
28+
-------------------------------------------------- */
29+
html {
30+
font-size: 14px;
31+
}
32+
@media (min-width: 768px) {
33+
html {
34+
font-size: 16px;
35+
}
36+
}
37+
38+
.border-top {
39+
border-top: 1px solid #e5e5e5;
40+
}
41+
.border-bottom {
42+
border-bottom: 1px solid #e5e5e5;
43+
}
44+
45+
.box-shadow {
46+
box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .05);
47+
}
48+
49+
button.accept-policy {
50+
font-size: 1rem;
51+
line-height: inherit;
52+
}
53+
54+
/* Sticky footer styles
55+
-------------------------------------------------- */
56+
html {
57+
position: relative;
58+
min-height: 100%;
59+
}
60+
61+
body {
62+
/* Margin bottom by footer height */
63+
margin-bottom: 60px;
64+
}
65+
.footer {
66+
position: absolute;
67+
bottom: 0;
68+
width: 100%;
69+
white-space: nowrap;
70+
line-height: 60px; /* Vertically center the text there */
71+
}

src/ProjectTemplates/Web.ProjectTemplates/content/StarterWeb-CSharp/Views/Shared/_Layout.cshtml.css

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
a.navbar-brand {
1+
/* Please see documentation at https://docs.microsoft.com/aspnet/core/client-side/bundling-and-minification
2+
for details on configuring this project to bundle and minify static web assets. */
3+
4+
a.navbar-brand {
25
white-space: normal;
36
text-align: center;
47
word-break: break-all;
@@ -58,4 +61,11 @@ html {
5861
body {
5962
/* Margin bottom by footer height */
6063
margin-bottom: 60px;
64+
}
65+
.footer {
66+
position: absolute;
67+
bottom: 0;
68+
width: 100%;
69+
white-space: nowrap;
70+
line-height: 60px; /* Vertically center the text there */
6171
}

src/ProjectTemplates/test/template-baselines.json

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,11 @@
2323
"Pages/_ViewImports.cshtml",
2424
"Pages/_ViewStart.cshtml",
2525
"Pages/Shared/_Layout.cshtml",
26+
"Views/Shared/_Layout.cshtml.css",
2627
"Pages/Shared/_LoginPartial.cshtml",
2728
"Pages/Shared/_ValidationScriptsPartial.cshtml",
2829
"Properties/launchSettings.json",
2930
"wwwroot/favicon.ico",
30-
"wwwroot/css/site.css",
3131
"wwwroot/js/site.js",
3232
"wwwroot/lib/bootstrap/LICENSE",
3333
"wwwroot/lib/bootstrap/dist/css/bootstrap.css",
@@ -82,10 +82,10 @@
8282
"Pages/_ViewImports.cshtml",
8383
"Pages/_ViewStart.cshtml",
8484
"Pages/Shared/_Layout.cshtml",
85+
"Views/Shared/_Layout.cshtml.css",
8586
"Pages/Shared/_ValidationScriptsPartial.cshtml",
8687
"Properties/launchSettings.json",
8788
"wwwroot/favicon.ico",
88-
"wwwroot/css/site.css",
8989
"wwwroot/js/site.js",
9090
"wwwroot/lib/bootstrap/LICENSE",
9191
"wwwroot/lib/bootstrap/dist/css/bootstrap.css",
@@ -484,10 +484,10 @@
484484
"Views/Home/Privacy.cshtml",
485485
"Views/Shared/Error.cshtml",
486486
"Views/Shared/_Layout.cshtml",
487+
"Views/Shared/_Layout.cshtml.css",
487488
"Views/Shared/_LoginPartial.cshtml",
488489
"Views/Shared/_ValidationScriptsPartial.cshtml",
489490
"wwwroot/favicon.ico",
490-
"wwwroot/css/site.css",
491491
"wwwroot/js/site.js",
492492
"wwwroot/lib/bootstrap/LICENSE",
493493
"wwwroot/lib/bootstrap/dist/css/bootstrap.css",
@@ -542,9 +542,9 @@
542542
"Views/Home/Privacy.cshtml",
543543
"Views/Shared/Error.cshtml",
544544
"Views/Shared/_Layout.cshtml",
545+
"Views/Shared/_Layout.cshtml.css",
545546
"Views/Shared/_ValidationScriptsPartial.cshtml",
546547
"wwwroot/favicon.ico",
547-
"wwwroot/css/site.css",
548548
"wwwroot/js/site.js",
549549
"wwwroot/lib/bootstrap/LICENSE",
550550
"wwwroot/lib/bootstrap/dist/css/bootstrap.css",
@@ -599,10 +599,10 @@
599599
"Views/Home/Privacy.cshtml",
600600
"Views/Shared/Error.cshtml",
601601
"Views/Shared/_Layout.cshtml",
602+
"Views/Shared/_Layout.cshtml.css",
602603
"Views/Shared/_LoginPartial.cshtml",
603604
"Views/Shared/_ValidationScriptsPartial.cshtml",
604605
"wwwroot/favicon.ico",
605-
"wwwroot/css/site.css",
606606
"wwwroot/js/site.js",
607607
"wwwroot/lib/bootstrap/LICENSE",
608608
"wwwroot/lib/bootstrap/dist/css/bootstrap.css",
@@ -657,10 +657,10 @@
657657
"Views/Home/Privacy.cshtml",
658658
"Views/Shared/Error.cshtml",
659659
"Views/Shared/_Layout.cshtml",
660+
"Views/Shared/_Layout.cshtml.css",
660661
"Views/Shared/_LoginPartial.cshtml",
661662
"Views/Shared/_ValidationScriptsPartial.cshtml",
662663
"wwwroot/favicon.ico",
663-
"wwwroot/css/site.css",
664664
"wwwroot/js/site.js",
665665
"wwwroot/lib/bootstrap/LICENSE",
666666
"wwwroot/lib/bootstrap/dist/css/bootstrap.css",
@@ -715,9 +715,9 @@
715715
"Views/Home/Privacy.cshtml",
716716
"Views/Shared/Error.cshtml",
717717
"Views/Shared/_Layout.cshtml",
718+
"Views/Shared/_Layout.cshtml.css",
718719
"Views/Shared/_ValidationScriptsPartial.cshtml",
719720
"wwwroot/favicon.ico",
720-
"wwwroot/css/site.css",
721721
"wwwroot/js/site.js",
722722
"wwwroot/lib/bootstrap/LICENSE",
723723
"wwwroot/lib/bootstrap/dist/css/bootstrap.css",
@@ -772,10 +772,10 @@
772772
"Views/Home/Privacy.cshtml",
773773
"Views/Shared/Error.cshtml",
774774
"Views/Shared/_Layout.cshtml",
775+
"Views/Shared/_Layout.cshtml.css",
775776
"Views/Shared/_LoginPartial.cshtml",
776777
"Views/Shared/_ValidationScriptsPartial.cshtml",
777778
"wwwroot/favicon.ico",
778-
"wwwroot/css/site.css",
779779
"wwwroot/js/site.js",
780780
"wwwroot/lib/bootstrap/LICENSE",
781781
"wwwroot/lib/bootstrap/dist/css/bootstrap.css",
@@ -830,9 +830,9 @@
830830
"Views/Home/Privacy.cshtml",
831831
"Views/Shared/Error.cshtml",
832832
"Views/Shared/_Layout.cshtml",
833+
"Views/Shared/_Layout.cshtml.css",
833834
"Views/Shared/_ValidationScriptsPartial.cshtml",
834835
"wwwroot/favicon.ico",
835-
"wwwroot/css/site.css",
836836
"wwwroot/js/site.js",
837837
"wwwroot/lib/bootstrap/LICENSE",
838838
"wwwroot/lib/bootstrap/dist/css/bootstrap.css",

0 commit comments

Comments
 (0)