Skip to content

Commit

Permalink
Moved to minifed CSS
Browse files Browse the repository at this point in the history
  • Loading branch information
chrissainty committed May 8, 2020
1 parent fb74733 commit d041524
Show file tree
Hide file tree
Showing 7 changed files with 28 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
##
## Get latest from https://github.com/github/gitignore/blob/master/VisualStudio.gitignore

# Custom
#src/Blazored.Toast/wwwroot/*.css

# User-specific files
*.suo
*.user
Expand Down
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -103,9 +103,19 @@ The example above is from the [server side samples](https://github.com/Blazored/
Add the following line to the `head` tag of your `_Host.cshtml` (Blazor Server app) or `index.html` (Blazor WebAssembly).
The blazored-toast.css includes the open-iconic-bootstrap.min.css.

We ship both minified and unminified CSS.

For minifed use:

```
<link href="_content/Blazored.Toast/blazored-toast.min.css" rel="stylesheet" />
```

For unminifed use:
```
<link href="_content/Blazored.Toast/blazored-toast.css" rel="stylesheet" />
```

Presumably, if you want to use the Material Icons your project already includes some form of the icons. If not see [Material Design Icons](https://dev.materialdesignicons.com/getting-started/webfont) for the available alternatives.

## Usage
Expand Down
2 changes: 1 addition & 1 deletion samples/BlazorServer/Pages/_Host.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" />
</environment>
<link href="~/css/site.css" rel="stylesheet" />
<link href="_content/Blazored.Toast/blazored-toast.css" rel="stylesheet" />
<link href="_content/Blazored.Toast/blazored-toast.min.css" rel="stylesheet" />

<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
</head>
Expand Down
2 changes: 1 addition & 1 deletion samples/BlazorWebAssembly/wwwroot/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<base href="/" />
<link href="https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet" integrity="sha384-wvfXpqpZZVQGK6TAh5PVlGOfQNHSoD2xbE+QkPxCAFlNEevoEH3Sl0sibVcOQVnN" crossorigin="anonymous">
<link href="css/bootstrap/bootstrap.min.css" rel="stylesheet" />
<link href="_content/Blazored.Toast/blazored-toast.css" rel="stylesheet" />
<link href="_content/Blazored.Toast/blazored-toast.min.css" rel="stylesheet" />
<link href="css/site.css" rel="stylesheet" />
</head>
<body>
Expand Down
5 changes: 5 additions & 0 deletions src/Blazored.Toast/Blazored.Toast.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,14 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="BuildBundlerMinifier" Version="3.2.447" />
<PackageReference Include="Microsoft.Extensions.DependencyInjection.Abstractions" Version="3.1.1" />
<PackageReference Include="Microsoft.AspNetCore.Components" Version="3.1.1" />
<PackageReference Include="Microsoft.AspNetCore.Components.Web" Version="3.1.1" />
</ItemGroup>

<ItemGroup>
<Folder Include="wwwroot\" />
</ItemGroup>

</Project>
8 changes: 8 additions & 0 deletions src/Blazored.Toast/bundleconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
[
{
"outputFileName": "wwwroot/blazored-toast.css",
"inputFiles": [
"Styles/blazored-toast.css"
]
}
]

0 comments on commit d041524

Please sign in to comment.