Skip to content

Commit d39f821

Browse files
committed
refactor: 增加 IconLayout 母版页
1 parent 2bde8d6 commit d39f821

File tree

7 files changed

+477
-450
lines changed

7 files changed

+477
-450
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
@inherits LayoutComponentBase
2+
@layout MainLayout
3+
4+
@Body
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
// Licensed to the .NET Foundation under one or more agreements.
2+
// The .NET Foundation licenses this file to you under the Apache 2.0 License
3+
// See the LICENSE file in the project root for more information.
4+
// Maintainer: Argo Zhang([email protected]) Website: https://www.blazor.zone
5+
6+
namespace BootstrapBlazor.Server.Components.Layout;
7+
8+
/// <summary>
9+
/// Icon Layout Component
10+
/// </summary>
11+
public partial class IconLayout
12+
{
13+
14+
}

src/BootstrapBlazor.Server/Components/Samples/Icons/UniverIconList.razor

Lines changed: 434 additions & 436 deletions
Large diffs are not rendered by default.

src/BootstrapBlazor.Server/Components/Samples/Icons/UniverIconList.razor.css

Lines changed: 0 additions & 13 deletions
This file was deleted.

src/BootstrapBlazor.Server/Components/Samples/Icons/UniverIcons.razor

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,6 @@
2222

2323
<div>@((MarkupString)Localizer["Icons"].Value)</div>
2424

25-
<UniverIconList></UniverIconList>
25+
<div class="icon-list">
26+
<UniverIconList></UniverIconList>
27+
</div>
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
@layout IconLayout

src/BootstrapBlazor.Server/wwwroot/css/site.css

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -369,3 +369,24 @@ code {
369369
--bd-callout-code-color: #e685b5;
370370
--bd-pre-bg: #1b1f22;
371371
}
372+
373+
.icon-list {
374+
margin-top: 1rem;
375+
display: flex;
376+
flex-direction: row;
377+
flex-wrap: wrap;
378+
}
379+
380+
.icon-list > div {
381+
padding: 1rem 30px;
382+
border: 1px solid var(--bs-border-color);
383+
border-radius: var(--bs-border-radius);
384+
margin: 0.25rem;
385+
cursor: pointer;
386+
transition: background-color .3s linear;
387+
}
388+
389+
.icon-list > div:hover {
390+
background-color: var(--bb-primary-color);
391+
color: #fff;
392+
}

0 commit comments

Comments
 (0)