Skip to content

Commit 3b4796b

Browse files
Update samples
1 parent 8da0e32 commit 3b4796b

6 files changed

Lines changed: 12 additions & 135 deletions

File tree

samples/BlazorServerApp/Pages/Index.razor

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,10 @@
66

77
<PageTitle>@App.Title</PageTitle>
88

9-
<p style="font-size:64px">@Clock.Date</p>
10-
<p style="font-size:128px">@Clock.Time</p>
9+
<div class="text-center">
10+
<h1 style="font-size:64px">@Clock.Date</h1>
11+
<h1 style="font-size:128px">@Clock.Time</h1>
12+
</div>
1113

1214
@code {
1315
protected override void OnInitialized()

samples/BlazorServerApp/Shared/MainLayout.razor

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,7 @@
1111
</div>
1212

1313
<main>
14-
<div class="top-row px-4">
15-
<a href="https://github.com/DevTeam/Pure.DI/blob/master/readme/BlazorServerApp.md" target="_blank">About</a>
16-
</div>
17-
18-
<article class="content px-4">
19-
@Body
20-
</article>
14+
@Body
2115
</main>
2216
</div>
2317

samples/BlazorServerApp/Shared/MainLayout.razor.css

Lines changed: 1 addition & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -8,63 +8,11 @@ main {
88
flex: 1;
99
}
1010

11-
.sidebar {
12-
background-image: linear-gradient(180deg, rgb(5, 39, 103) 0%, #3a0647 70%);
13-
}
14-
1511
.top-row {
1612
background-color: #f7f7f7;
1713
border-bottom: 1px solid #d6d5d5;
1814
justify-content: flex-end;
1915
height: 3.5rem;
2016
display: flex;
2117
align-items: center;
22-
}
23-
24-
.top-row ::deep a, .top-row .btn-link {
25-
white-space: nowrap;
26-
margin-left: 1.5rem;
27-
}
28-
29-
.top-row a:first-child {
30-
overflow: hidden;
31-
text-overflow: ellipsis;
32-
}
33-
34-
@media (max-width: 640.98px) {
35-
.top-row:not(.auth) {
36-
display: none;
37-
}
38-
39-
.top-row.auth {
40-
justify-content: space-between;
41-
}
42-
43-
.top-row a, .top-row .btn-link {
44-
margin-left: 0;
45-
}
46-
}
47-
48-
@media (min-width: 641px) {
49-
.page {
50-
flex-direction: row;
51-
}
52-
53-
.sidebar {
54-
width: 250px;
55-
height: 100vh;
56-
position: sticky;
57-
top: 0;
58-
}
59-
60-
.top-row {
61-
position: sticky;
62-
top: 0;
63-
z-index: 1;
64-
}
65-
66-
.top-row, article {
67-
padding-left: 2rem !important;
68-
padding-right: 1.5rem !important;
69-
}
70-
}
18+
}

samples/BlazorWebAssemblyApp/Pages/Index.razor

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,10 @@
66

77
<PageTitle>@App.Title</PageTitle>
88

9-
<p style="font-size:64px">@Clock.Date</p>
10-
<p style="font-size:128px">@Clock.Time</p>
9+
<div class="text-center">
10+
<h1 style="font-size:64px">@Clock.Date</h1>
11+
<h1 style="font-size:128px">@Clock.Time</h1>
12+
</div>
1113

1214
@code {
1315
protected override void OnInitialized()

samples/BlazorWebAssemblyApp/Shared/MainLayout.razor

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,7 @@
99
</div>
1010

1111
<main>
12-
<div class="top-row px-4">
13-
<a href="https://github.com/DevTeam/Pure.DI/blob/master/readme/BlazorWebAssemblyApp.md" target="_blank">About</a>
14-
</div>
15-
16-
<article class="content px-4">
17-
@Body
18-
</article>
12+
@Body
1913
</main>
2014
</div>
2115

samples/BlazorWebAssemblyApp/Shared/MainLayout.razor.css

Lines changed: 1 addition & 64 deletions
Original file line numberDiff line numberDiff line change
@@ -8,74 +8,11 @@ main {
88
flex: 1;
99
}
1010

11-
.sidebar {
12-
background-image: linear-gradient(180deg, rgb(5, 39, 103) 0%, #3a0647 70%);
13-
}
14-
1511
.top-row {
1612
background-color: #f7f7f7;
1713
border-bottom: 1px solid #d6d5d5;
1814
justify-content: flex-end;
1915
height: 3.5rem;
2016
display: flex;
2117
align-items: center;
22-
}
23-
24-
.top-row ::deep a, .top-row ::deep .btn-link {
25-
white-space: nowrap;
26-
margin-left: 1.5rem;
27-
text-decoration: none;
28-
}
29-
30-
.top-row ::deep a:hover, .top-row ::deep .btn-link:hover {
31-
text-decoration: underline;
32-
}
33-
34-
.top-row ::deep a:first-child {
35-
overflow: hidden;
36-
text-overflow: ellipsis;
37-
}
38-
39-
@media (max-width: 640.98px) {
40-
.top-row:not(.auth) {
41-
display: none;
42-
}
43-
44-
.top-row.auth {
45-
justify-content: space-between;
46-
}
47-
48-
.top-row ::deep a, .top-row ::deep .btn-link {
49-
margin-left: 0;
50-
}
51-
}
52-
53-
@media (min-width: 641px) {
54-
.page {
55-
flex-direction: row;
56-
}
57-
58-
.sidebar {
59-
width: 250px;
60-
height: 100vh;
61-
position: sticky;
62-
top: 0;
63-
}
64-
65-
.top-row {
66-
position: sticky;
67-
top: 0;
68-
z-index: 1;
69-
}
70-
71-
.top-row.auth ::deep a:first-child {
72-
flex: 1;
73-
text-align: right;
74-
width: 0;
75-
}
76-
77-
.top-row, article {
78-
padding-left: 2rem !important;
79-
padding-right: 1.5rem !important;
80-
}
81-
}
18+
}

0 commit comments

Comments
 (0)