Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitdb154b9

Browse files
committed
Refactor out breadcrumbs
1 parent414d0f6 commitdb154b9

File tree

6 files changed

+50
-24
lines changed

6 files changed

+50
-24
lines changed
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
@{Layout="_Layout";}
2+
3+
@* view-styles*@
4+
@section Styles{
5+
@RenderSection("Styles",required:false)
6+
}
7+
8+
@*view-breadcrumbs*@
9+
@section Breadcrumbs{
10+
<olclass="breadcrumb">
11+
12+
<!-- BREADCRUMB-ITEMS-->
13+
<partialname="_breadcrumb-items" />
14+
<!-- /BREADCRUMB-ITEMS-->
15+
16+
<!-- BREADCRUMB-MENU-->
17+
<partialname="_breadcrumb-menu" />
18+
<!-- /BREADCRUMB-MENU-->
19+
20+
</ol>
21+
}
22+
23+
@RenderBody()
24+
25+
@* view-modals*@
26+
@section Modals{
27+
@RenderSection("Modals",required:false)
28+
}
29+
30+
@* view-scripts*@
31+
@section Scripts{
32+
@RenderSection("Scripts",required:false)
33+
}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
@{Layout="_CoreUILayout";}
File renamed without changes.

‎src/CoreUI.Mvc/Views/CoreUI/blank.cshtml‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22
@section Styles{
33
}
44

5+
@*view-breadcrumbs*@
6+
@section Breadcrumbs{
7+
}
8+
59
@* view-content*@
610

711
@* view-modals*@

‎src/CoreUI.Mvc/Views/Shared/_Layout.cshtml‎

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -59,21 +59,13 @@
5959
<buttonclass="sidebar-minimizer brand-minimizer"type="button"></button>
6060
</div>
6161
<mainclass="main">
62-
<!-- Breadcrumb-->
63-
<olclass="breadcrumb">
64-
65-
<!-- BREADCRUMB-ITEMS-->
66-
<partialname="_breadcrumb-items" />
67-
<!-- /BREADCRUMB-ITEMS-->
68-
69-
<!-- BREADCRUMB-MENU-->
70-
<partialname="_breadcrumb-menu" />
71-
<!-- /BREADCRUMB-MENU-->
72-
73-
</ol>
7462

7563
<partialname="_CookieConsentPartial" />
7664

65+
<!-- VIEW-BREADCRUMBS-->
66+
@RenderSection("Breadcrumbs", required: false)
67+
<!-- /VIEW-BREADCRUMBS-->
68+
7769
<divclass="container-fluid">
7870

7971
<!-- VIEW-STYLES-->

‎src/CoreUI.Mvc/wwwroot/css/site.css‎

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,4 @@
11
/* Please see documentation at https://docs.microsoft.com/aspnet/core/client-side/bundling-and-minification\
2-
for details on configuring this project to bundle and minify static web assets. */
3-
/*body {
4-
padding-top: 50px;
5-
padding-bottom: 20px;
6-
}*/
7-
8-
/* Wrapping element */
9-
/* Set some basic padding to keep content from hitting the edges */
10-
/*.body-content {
11-
padding-left: 15px;
12-
padding-right: 15px;
13-
}*/
142
153
/* Carousel */
164
.carousel-captionp {
@@ -35,3 +23,11 @@ for details on configuring this project to bundle and minify static web assets.
3523
display: none;
3624
}
3725
}
26+
27+
.container-fluid {
28+
padding-top:24px!important;
29+
}
30+
31+
.breadcrumb {
32+
margin-bottom:0;
33+
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp