Skip to content

Commit 48468b7

Browse files
committed
Improve CSS styles of the sample site to be simpler
1 parent 7a1d86a commit 48468b7

File tree

2 files changed

+5
-8
lines changed

2 files changed

+5
-8
lines changed

SampleApps/BlazorWasmApp/BlazorWasmApp.csproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly" Version="8.0.8" />
1414
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.DevServer" Version="8.0.8" PrivateAssets="all" />
1515
<PackageReference Include="PublishSPAforGitHubPages.Build" Version="3.0.0" />
16-
<PackageReference Include="System.Text.Json" Version="8.0.4" />
16+
<PackageReference Include="System.Text.Json" Version="8.0.5" />
1717
</ItemGroup>
1818

1919
<ItemGroup>

SampleApps/BlazorWasmApp/Shared/Layout.razor.css

+4-7
Original file line numberDiff line numberDiff line change
@@ -36,18 +36,14 @@ main {
3636
white-space: nowrap;
3737
overflow: hidden;
3838
text-overflow: ellipsis;
39-
border: dashed 2px blueviolet;
39+
--border-size: 2px;
40+
border: dashed var(--border-size) blueviolet;
4041
position: absolute;
4142
inset: 0;
4243
text-align: center;
44+
line-height: calc(100cqh - (var(--border-size) * 2));
4345
}
4446

45-
::deep h1::before {
46-
content: "";
47-
display: block;
48-
height: calc(50% - 0.8em);
49-
}
50-
5147
::deep .split-container {
5248
--splitter-bar-size: 14px;
5349
}
@@ -57,4 +53,5 @@ main {
5753
display: flex;
5854
justify-content: center;
5955
align-items: center;
56+
container-type: size;
6057
}

0 commit comments

Comments
 (0)