Skip to content

Commit 41532cd

Browse files
committed
Add materialicons to local.
1 parent d83b9a8 commit 41532cd

File tree

5 files changed

+27
-2
lines changed

5 files changed

+27
-2
lines changed

aspnet-core/src/AbpCompanyName.AbpProjectName.Web.Mvc/AbpCompanyName.AbpProjectName.Web.Mvc.csproj

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@
1616
</PropertyGroup>
1717

1818
<ItemGroup>
19+
<Content Include="wwwroot\fonts\materialicons.css" />
20+
<Content Include="wwwroot\fonts\materialicons.woff2" />
1921
<Content Include="wwwroot\images\user-img-background.jpg" />
2022
<Content Include="wwwroot\images\user.png" />
2123
<Content Include="wwwroot\view-resources\Views\Account\_Layout.less" />

aspnet-core/src/AbpCompanyName.AbpProjectName.Web.Mvc/Views/Account/_Layout.cshtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
<!-- TODO: Bundles! -->
2929
<!-- Google Fonts -->
3030
<link href="https://fonts.googleapis.com/css?family=Roboto:400,700&subset=latin,cyrillic-ext" rel="stylesheet" type="text/css">
31-
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet" type="text/css">
31+
<link href="~/fonts/materialicons.css" rel="stylesheet" asp-append-version="true" />
3232

3333
<!-- ~/Bundles/vendor/css -->
3434
<link rel="stylesheet" href="~/lib/jquery-ui/themes/base/all.css" asp-append-version="true" />

aspnet-core/src/AbpCompanyName.AbpProjectName.Web.Mvc/Views/Shared/_Layout.cshtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
<environment names="Development">
3333
<!-- Google Fonts -->
3434
<link href="https://fonts.googleapis.com/css?family=Roboto:400,700&subset=latin,cyrillic-ext" rel="stylesheet" type="text/css">
35-
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet" type="text/css">
35+
<link href="~/fonts/materialicons.css" rel="stylesheet" asp-append-version="true" />
3636

3737
<!-- ~/Bundles/vendor/css TODO: Update bundle! -->
3838
<link rel="stylesheet" href="~/plugins/bootstrap/css/bootstrap.css" asp-append-version="true" />
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
/* fallback */
2+
@font-face {
3+
font-family: 'Material Icons';
4+
font-style: normal;
5+
font-weight: 400;
6+
src: local('Material Icons'), local('MaterialIcons-Regular'), url(materialicons.woff2) format('woff2');
7+
}
8+
9+
.material-icons {
10+
font-family: 'Material Icons';
11+
font-weight: normal;
12+
font-style: normal;
13+
font-size: 24px;
14+
line-height: 1;
15+
letter-spacing: normal;
16+
text-transform: none;
17+
display: inline-block;
18+
white-space: nowrap;
19+
word-wrap: normal;
20+
direction: ltr;
21+
-webkit-font-feature-settings: 'liga';
22+
-webkit-font-smoothing: antialiased;
23+
}

0 commit comments

Comments
 (0)