Skip to content

Commit 4c6783c

Browse files
bundle and minification
1 parent 954ad8c commit 4c6783c

File tree

5 files changed

+102
-4
lines changed

5 files changed

+102
-4
lines changed

Webgentle.BookStore/Webgentle.BookStore/Views/Shared/_Layout.cshtml

+8-4
Original file line numberDiff line numberDiff line change
@@ -7,21 +7,25 @@
77

88
<environment include="Development">
99
<link href="~/lib/twitter-bootstrap/css/bootstrap.css" rel="stylesheet" />
10-
</environment>
10+
<link href="~/css/Site.css" rel="stylesheet" />
11+
<link href="~/css/NewStyle.css" rel="stylesheet" />
12+
</environment>
1113
<environment exclude="Development">
1214
@*<link href="~/lib/twitter-bootstrap/css/bootstrap.min.css" rel="stylesheet" />*@
1315

14-
<link rel="stylesheet"
16+
<link rel="stylesheet"
1517
href="http://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css"
1618
asp-fallback-href="~/lib/twitter-bootstrap/css/bootstrap.min.css"
1719
asp-fallback-test-class="sr-only"
1820
asp-fallback-test-property="position"
1921
asp-fallback-test-value="absolute"
20-
integrity=""
22+
integrity=""
2123
crossorigin="anonymous">
24+
25+
<link href="~/css/site.min.css" rel="stylesheet" />
2226
</environment>
2327

24-
<link href="~/css/Site.css" rel="stylesheet" />
28+
2529
</head>
2630
<body>
2731
<partial name="_header" />

Webgentle.BookStore/Webgentle.BookStore/Webgentle.BookStore.csproj

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
</PropertyGroup>
66

77
<ItemGroup>
8+
<PackageReference Include="BuildBundlerMinifier" Version="3.2.449" />
89
<PackageReference Include="Microsoft.AspNetCore.Identity.EntityFrameworkCore" Version="3.1.8" />
910
<PackageReference Include="Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation" Version="3.1.4" />
1011
<PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="3.1.4">
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
[
2+
{
3+
"outputFileName": "wwwroot/css/site.min.css",
4+
"inputFiles": [
5+
"wwwroot/css/Site.css",
6+
"wwwroot/css/NewStyle.css"
7+
],
8+
"minify": {
9+
"enabled": true,
10+
"renameLocals": true
11+
}
12+
}
13+
]
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
.nitish {
2+
color: blue;
3+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
.jumbotron {
2+
background: none;
3+
}
4+
5+
a.navbar-brand {
6+
white-space: normal;
7+
text-align: center;
8+
word-break: break-all;
9+
}
10+
11+
a {
12+
color: #0366d6;
13+
}
14+
15+
.nav-pills .nav-link.active, .nav-pills .show > .nav-link {
16+
color: #fff;
17+
background-color: #1b6ec2;
18+
border-color: #1861ac;
19+
}
20+
21+
/* Sticky footer styles
22+
-------------------------------------------------- */
23+
html {
24+
font-size: 14px;
25+
}
26+
27+
@media (min-width: 768px) {
28+
html {
29+
font-size: 16px;
30+
}
31+
}
32+
33+
.border-top {
34+
border-top: 1px solid #e5e5e5;
35+
}
36+
37+
.border-bottom {
38+
border-bottom: 1px solid #e5e5e5;
39+
}
40+
41+
.box-shadow {
42+
box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .05);
43+
}
44+
45+
button.accept-policy {
46+
font-size: 1rem;
47+
line-height: inherit;
48+
}
49+
50+
/* Sticky footer styles
51+
-------------------------------------------------- */
52+
html {
53+
position: relative;
54+
min-height: 100%;
55+
}
56+
57+
body {
58+
/* Margin bottom by footer height */
59+
margin-bottom: 60px;
60+
}
61+
62+
.footer {
63+
position: absolute;
64+
bottom: 0;
65+
width: 100%;
66+
white-space: nowrap;
67+
line-height: 60px; /* Vertically center the text there */
68+
}
69+
70+
.membership-img {
71+
width: 80%;
72+
}
73+
74+
75+
.nitish {
76+
color: blue;
77+
}

0 commit comments

Comments
 (0)