Skip to content

Commit 69e0cb4

Browse files
committed
[Bootstrap v5] Replace jumbotron with utility classes
1 parent be1ff47 commit 69e0cb4

File tree

4 files changed

+8
-32
lines changed

4 files changed

+8
-32
lines changed

assets/styles/app.scss

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -102,10 +102,6 @@ form legend {
102102

103103
/* Utilities
104104
------------------------------------------------------------------------- */
105-
.jumbotron {
106-
padding: 1.5rem 1rem
107-
}
108-
109105
.well {
110106
background-color: var(--secondary-color);
111107
border: 1px solid transparent;
@@ -410,26 +406,6 @@ body#homepage .page-header a.language-selector-dropdown-button .current-language
410406
display: inline-flex;
411407
margin-inline: 5px 10px;
412408
}
413-
body#homepage .jumbotron {
414-
background: var(--secondary-color);
415-
display: flex;
416-
flex-direction: column;
417-
height: 100%;
418-
justify-content: center;
419-
padding: 45px 15px;
420-
}
421-
body#homepage .jumbotron .btn {
422-
font-size: 19px;
423-
line-height: 1.33333;
424-
padding: 18px 27px;
425-
border-radius: 6px;
426-
margin-top: 20px;
427-
}
428-
body#homepage .jumbotron P {
429-
margin-bottom: 0;
430-
font-size: 23px;
431-
font-weight: 400
432-
}
433409

434410
/* Page: 'Login'
435411
------------------------------------------------------------------------- */

templates/admin/blog/show.html.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
<span class="metadata"><twig:ux:icon name="tabler:user"/> {{ post.author.fullName }}</span>
1111
</p>
1212

13-
<div class="jumbotron">
13+
<div class="bg-body-tertiary mb-3 p-3 rounded">
1414
<p class="mb-0"><strong>{{ 'label.summary'|trans }}</strong>: {{ post.summary }}</p>
1515
</div>
1616

templates/blog/index.html.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
{% for post in paginator.results %}
77
{{ include('blog/_post.html.twig') }}
88
{% else %}
9-
<div class="jumbotron">{{ 'post.no_posts_found'|trans }}</div>
9+
<div class="bg-body-tertiary mb-3 p-3 rounded">{{ 'post.no_posts_found'|trans }}</div>
1010
{% endfor %}
1111

1212
{% if paginator.hasToPaginate %}

templates/default/homepage.html.twig

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,11 @@
1919

2020
<div class="row">
2121
<div class="col-sm">
22-
<div class="jumbotron">
23-
<p>
22+
<div class="bg-body-tertiary px-3 py-5 rounded-3">
23+
<p class="fs-4">
2424
{{ 'help.browse_app'|trans|raw }}
2525
</p>
26-
<p>
26+
<p class="mb-0">
2727
<a class="btn btn-primary btn-lg" href="{{ path('blog_index') }}">
2828
<twig:ux:icon name="tabler:users-group" font-size="21px" /> {{ 'action.browse_app'|trans }}
2929
</a>
@@ -32,11 +32,11 @@
3232
</div>
3333

3434
<div class="col-sm">
35-
<div class="jumbotron">
36-
<p>
35+
<div class="bg-body-tertiary px-3 py-5 rounded-3">
36+
<p class="fs-4">
3737
{{ 'help.browse_admin'|trans|raw }}
3838
</p>
39-
<p>
39+
<p class="mb-0">
4040
<a class="btn btn-primary btn-lg" href="{{ path('admin_index') }}">
4141
<twig:ux:icon name="tabler:lock"/> {{ 'action.browse_admin'|trans }}
4242
</a>

0 commit comments

Comments
 (0)