Skip to content

Commit 7d848e9

Browse files
committed
1.0.0-preview7-05
1 parent 296ffc0 commit 7d848e9

29 files changed

+28
-34
lines changed

BlazorPrettyCode.sln

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ServerSideSample", "src\Ser
1111
EndProject
1212
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "SamplePages", "src\SamplePages\SamplePages.csproj", "{36CE32DC-CBEA-4394-AB73-BADB5D7F821F}"
1313
EndProject
14-
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "BlazorStyled", "..\BlazorStyled\src\BlazorStyled\BlazorStyled.csproj", "{D23A0EFB-7A28-4FF4-AE6C-A8124DB779A9}"
15-
EndProject
1614
Global
1715
GlobalSection(SolutionConfigurationPlatforms) = preSolution
1816
Debug|Any CPU = Debug|Any CPU
@@ -35,10 +33,6 @@ Global
3533
{36CE32DC-CBEA-4394-AB73-BADB5D7F821F}.Debug|Any CPU.Build.0 = Debug|Any CPU
3634
{36CE32DC-CBEA-4394-AB73-BADB5D7F821F}.Release|Any CPU.ActiveCfg = Release|Any CPU
3735
{36CE32DC-CBEA-4394-AB73-BADB5D7F821F}.Release|Any CPU.Build.0 = Release|Any CPU
38-
{D23A0EFB-7A28-4FF4-AE6C-A8124DB779A9}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
39-
{D23A0EFB-7A28-4FF4-AE6C-A8124DB779A9}.Debug|Any CPU.Build.0 = Debug|Any CPU
40-
{D23A0EFB-7A28-4FF4-AE6C-A8124DB779A9}.Release|Any CPU.ActiveCfg = Release|Any CPU
41-
{D23A0EFB-7A28-4FF4-AE6C-A8124DB779A9}.Release|Any CPU.Build.0 = Release|Any CPU
4236
EndGlobalSection
4337
GlobalSection(SolutionProperties) = preSolution
4438
HideSolutionNode = FALSE
1 KB
Binary file not shown.
304 Bytes
Binary file not shown.

docs/_framework/_bin/BlazorStyled.dll

6 KB
Binary file not shown.
152 KB
Binary file not shown.
3 KB
Binary file not shown.
0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.

docs/_framework/_bin/SamplePages.dll

512 Bytes
Binary file not shown.

docs/_framework/_bin/SamplePages.pdb

80 Bytes
Binary file not shown.

docs/_framework/_bin/System.Core.dll

0 Bytes
Binary file not shown.

docs/_framework/_bin/System.Data.dll

0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.
Binary file not shown.
0 Bytes
Binary file not shown.

docs/_framework/_bin/System.Xml.dll

0 Bytes
Binary file not shown.

docs/_framework/_bin/System.dll

0 Bytes
Binary file not shown.

docs/_framework/_bin/mscorlib.dll

1 KB
Binary file not shown.

docs/_framework/blazor.boot.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"main":"ClientSideSample.dll","entryPoint":"Sample.Program::Main","assemblyReferences":["BlazorPrettyCode.dll","BlazorStyled.dll","CSHTMLTokenizer.dll","Microsoft.AspNetCore.Authorization.dll","Microsoft.AspNetCore.Blazor.dll","Microsoft.AspNetCore.Components.Browser.dll","Microsoft.AspNetCore.Components.dll","Microsoft.AspNetCore.Metadata.dll","Microsoft.Bcl.AsyncInterfaces.dll","Microsoft.Extensions.DependencyInjection.Abstractions.dll","Microsoft.Extensions.DependencyInjection.dll","Microsoft.Extensions.Logging.Abstractions.dll","Microsoft.Extensions.Options.dll","Microsoft.Extensions.Primitives.dll","Microsoft.JSInterop.dll","Mono.Security.dll","Mono.WebAssembly.Interop.dll","mscorlib.dll","Newtonsoft.Json.dll","Polished.net.dll","SamplePages.dll","Stateless.dll","System.Buffers.dll","System.ComponentModel.Annotations.dll","System.Core.dll","System.Data.dll","System.dll","System.Memory.dll","System.Net.Http.dll","System.Numerics.dll","System.Numerics.Vectors.dll","System.Runtime.CompilerServices.Unsafe.dll","System.Runtime.Serialization.dll","System.Text.Json.dll","System.Threading.Tasks.Extensions.dll","System.Xml.dll","System.Xml.Linq.dll","BlazorPrettyCode.pdb","ClientSideSample.pdb","SamplePages.pdb"],"cssReferences":[],"jsReferences":[],"linkerEnabled":true}
1+
{"main":"ClientSideSample.dll","entryPoint":"Sample.Program::Main","assemblyReferences":["BlazorPrettyCode.dll","BlazorStyled.dll","BlazorTypography.dll","CSHTMLTokenizer.dll","Microsoft.AspNetCore.Authorization.dll","Microsoft.AspNetCore.Blazor.dll","Microsoft.AspNetCore.Components.Browser.dll","Microsoft.AspNetCore.Components.dll","Microsoft.AspNetCore.Metadata.dll","Microsoft.Bcl.AsyncInterfaces.dll","Microsoft.Extensions.DependencyInjection.Abstractions.dll","Microsoft.Extensions.DependencyInjection.dll","Microsoft.Extensions.Logging.Abstractions.dll","Microsoft.Extensions.Options.dll","Microsoft.Extensions.Primitives.dll","Microsoft.JSInterop.dll","Mono.Security.dll","Mono.WebAssembly.Interop.dll","mscorlib.dll","Newtonsoft.Json.dll","Polished.net.dll","SamplePages.dll","Stateless.dll","System.Buffers.dll","System.ComponentModel.Annotations.dll","System.Core.dll","System.Data.dll","System.dll","System.Memory.dll","System.Net.Http.dll","System.Numerics.dll","System.Numerics.Vectors.dll","System.Runtime.CompilerServices.Unsafe.dll","System.Runtime.Serialization.dll","System.Text.Json.dll","System.Threading.Tasks.Extensions.dll","System.Xml.dll","System.Xml.Linq.dll","BlazorPrettyCode.pdb","ClientSideSample.pdb","SamplePages.pdb"],"cssReferences":[],"jsReferences":[],"linkerEnabled":true}

src/BlazorPrettyCode/BlazorPrettyCode.csproj

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
<RazorLangVersion>3.0</RazorLangVersion>
1212
<AddRazorSupportForMvc>true</AddRazorSupportForMvc>
1313
<PackageId>BlazorPrettyCode</PackageId>
14-
<Version>1.0.0-preview7-03</Version>
14+
<Version>1.0.0-preview7-05</Version>
1515
<Authors>Chanan Braunstein</Authors>
1616
<Title>Blazor PrettyCode</Title>
1717
<Description>Razor Code Display Component</Description>
@@ -20,7 +20,8 @@
2020
</PropertyGroup>
2121

2222
<ItemGroup>
23-
<PackageReference Include="CSHTMLTokenizer" Version="0.7.3" />
23+
<PackageReference Include="BlazorStyled" Version="1.0.0-preview7-04" />
24+
<PackageReference Include="CSHTMLTokenizer" Version="0.7.4" />
2425
<PackageReference Include="Microsoft.AspNetCore.Components.Browser" Version="3.0.0-preview7.19365.7" />
2526
<PackageReference Include="Newtonsoft.Json" Version="12.0.2" />
2627
</ItemGroup>
@@ -31,9 +32,5 @@
3132
<EmbeddedResource Include="wwwroot\**\*.css" LogicalName="blazor:css:%(RecursiveDir)%(Filename)%(Extension)" />
3233
<EmbeddedResource Include="wwwroot\**" Exclude="**\*.js;**\*.css" LogicalName="blazor:file:%(RecursiveDir)%(Filename)%(Extension)" />
3334
</ItemGroup>
34-
35-
<ItemGroup>
36-
<ProjectReference Include="..\..\..\BlazorStyled\src\BlazorStyled\BlazorStyled.csproj" />
37-
</ItemGroup>
3835

3936
</Project>

src/BlazorPrettyCode/PrettyCode.cs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -296,6 +296,12 @@ @media only screen and (min-width: 320px) and (max-width: 480px) {
296296
_baseCodeCell = _styled.Css(@"
297297
display: table-cell;
298298
padding-left: 1em;
299+
@media only screen and (min-width: 320px) and (max-width: 480px) {
300+
font-size: 50%;
301+
}
302+
@media (min-width: 481px) and (max-width: 1223px) {
303+
font-size: 80%;
304+
}
299305
");
300306

301307
//Title Row
@@ -673,7 +679,7 @@ private void BuildRenderCSLine(RenderTreeBuilder builder, CSLine csLine)
673679
builder.CloseElement();
674680

675681
builder.OpenElement(Next(), "span");
676-
//builder.AddAttribute(Next(), "class", _textClass);
682+
builder.AddAttribute(Next(), "class", _themeTextClass);
677683
builder.AddContent(Next(), csLine.Line);
678684
builder.CloseElement();
679685
}

src/Sample/ClientSideSample.csproj

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
<PackageReference Include="Microsoft.AspNetCore.Blazor" Version="3.0.0-preview7.19365.7" />
1515
<PackageReference Include="Microsoft.AspNetCore.Blazor.Build" Version="3.0.0-preview7.19365.7" PrivateAssets="all" />
1616
<PackageReference Include="Microsoft.AspNetCore.Blazor.DevServer" Version="3.0.0-preview7.19365.7" PrivateAssets="all" />
17-
<PackageReference Include="Polished" Version="1.0.0-preview-02" />
1817
</ItemGroup>
1918

2019
<ItemGroup>

src/Sample/Startup.cs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
using BlazorPrettyCode;
2+
using BlazorTypography;
23
using Microsoft.AspNetCore.Components.Builder;
34
using Microsoft.Extensions.DependencyInjection;
4-
using Polished;
55
using SamplePages;
66

77
namespace Sample
@@ -11,8 +11,7 @@ public class Startup
1111
public void ConfigureServices(IServiceCollection services)
1212
{
1313
services.AddBlazorPrettyCode();
14-
services.AddSingleton<IMixins, Mixins>();
15-
services.AddSingleton<IShorthand, Shorthand>();
14+
services.AddTypography();
1615
}
1716

1817
public void Configure(IComponentsApplicationBuilder app)

src/SamplePages/Pages/Index.razor

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,8 @@
7676
</p>
7777

7878
<PrettyCode CodeFile="https://raw.githubusercontent.com/chanan/BlazorStyled/master/src/SampleCore/Pages/Basic.razor"
79-
CodeFileLineNumbers="2,14"
80-
CodeSectionFileLineNumbers="46,49-52" />
79+
CodeFileLineNumbers="2,28"
80+
CodeSectionFileLineNumbers="50-56" />
8181

8282
<p>is created by:</p>
8383

src/SamplePages/SamplePages.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
</PropertyGroup>
77

88
<ItemGroup>
9-
<PackageReference Include="BlazorStyled" Version="1.0.0-preview7-03" />
10-
<PackageReference Include="Polished" Version="1.0.0-preview-02" />
9+
<PackageReference Include="BlazorStyled" Version="1.0.0-preview7-04" />
10+
<PackageReference Include="BlazorTypography" Version="1.0.0-preview7-04" />
1111
</ItemGroup>
1212

1313
<ItemGroup>
Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
@inherits LayoutComponentBase
2-
@inject IStyled Styled
3-
@inject IMixins Mixins
2+
@inject ITypography Typography
3+
4+
<Styled @bind-Classname="@main">
5+
max-width: 1200px;
6+
margin: 0 auto;
7+
</Styled>
48

59
<div class="@main">
610
@Body
@@ -11,11 +15,7 @@
1115

1216
protected override void OnInit()
1317
{
14-
Styled.Css(Mixins.Normalize());
15-
16-
main = Styled.Css(@"
17-
max-width: 1200px;
18-
margin: 0 auto;
19-
");
18+
DefaultTypographyOptions defaultTheme = new DefaultTypographyOptions();
19+
Typography.ApplyTypography(defaultTheme);
2020
}
2121
}

src/SamplePages/_Imports.razor

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
@using Microsoft.JSInterop
66
@using SamplePages
77
@using SamplePages.Shared
8-
@using Polished;
9-
@using BlazorStyled;
10-
@using BlazorPrettyCode;
11-
8+
@using BlazorStyled
9+
@using BlazorPrettyCode
10+
@using BlazorTypography

0 commit comments

Comments
 (0)