fix: center site name in mobile header outside collapsible menu
Agent-Logs-Url: https://github.com/dsaub/proyecto-final/sessions/4d080a78-4752-427f-8205-876ef7b85f7a Co-authored-by: dsaub <54474838+dsaub@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
b1e73c80aa
commit
840021c215
Binary file not shown.
BIN
Binary file not shown.
Binary file not shown.
BIN
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -51,12 +51,23 @@ p.price {
|
|||||||
background-color: #513CB0 !important;
|
background-color: #513CB0 !important;
|
||||||
color: #FFF;
|
color: #FFF;
|
||||||
}
|
}
|
||||||
|
.navbar.header .container-fluid {
|
||||||
|
position: relative;
|
||||||
|
}
|
||||||
.navbar.header .navbar-brand img {
|
.navbar.header .navbar-brand img {
|
||||||
border-radius: 10px;
|
border-radius: 10px;
|
||||||
}
|
}
|
||||||
.navbar.header .navbar-brand {
|
.navbar.header .navbar-brand {
|
||||||
color: #FFF !important;
|
color: #FFF !important;
|
||||||
}
|
}
|
||||||
|
.navbar.header .site-title-mobile {
|
||||||
|
color: #FFF;
|
||||||
|
position: absolute;
|
||||||
|
left: 50%;
|
||||||
|
transform: translateX(-50%);
|
||||||
|
margin: 0;
|
||||||
|
pointer-events: none;
|
||||||
|
}
|
||||||
.navbar.header .navbar-toggler {
|
.navbar.header .navbar-toggler {
|
||||||
border-color: #FFF !important;
|
border-color: #FFF !important;
|
||||||
}
|
}
|
||||||
@@ -276,4 +287,4 @@ p.price {
|
|||||||
|
|
||||||
.texto-ajustado {
|
.texto-ajustado {
|
||||||
overflow-wrap: anywhere;
|
overflow-wrap: anywhere;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -95,13 +95,15 @@
|
|||||||
decoding="async">
|
decoding="async">
|
||||||
</picture>
|
</picture>
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
|
<span class="navbar-text fw-semibold site-title-mobile d-md-none">Comercialmeria</span>
|
||||||
|
|
||||||
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarContent" aria-controls="navbarContent" aria-expanded="false" aria-label="Toggle navigation">
|
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarContent" aria-controls="navbarContent" aria-expanded="false" aria-label="Toggle navigation">
|
||||||
<span class="navbar-toggler-icon"></span>
|
<span class="navbar-toggler-icon"></span>
|
||||||
</button>
|
</button>
|
||||||
|
|
||||||
<div class="collapse navbar-collapse" id="navbarContent">
|
<div class="collapse navbar-collapse" id="navbarContent">
|
||||||
<span class="navbar-text fw-semibold me-3" style="color: #ffffff">Comercialmeria</span>
|
<span class="navbar-text fw-semibold me-3 d-none d-md-inline site-title-desktop" style="color: #ffffff">Comercialmeria</span>
|
||||||
<!-- Barra de búsqueda con sugerencias -->
|
<!-- Barra de búsqueda con sugerencias -->
|
||||||
<form class="search-suggestions-container" method="GET" action="{% url 'search' %}" role="search" id="searchForm">
|
<form class="search-suggestions-container" method="GET" action="{% url 'search' %}" role="search" id="searchForm">
|
||||||
<div class="input-group">
|
<div class="input-group">
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
@@ -1358,6 +1358,12 @@ class EndpointViewTests(TestCase):
|
|||||||
response = self.client.get(url)
|
response = self.client.get(url)
|
||||||
self.assertEqual(response.status_code, 200)
|
self.assertEqual(response.status_code, 200)
|
||||||
|
|
||||||
|
def test_home_header_renders_mobile_title_outside_collapsible_menu(self):
|
||||||
|
response = self.client.get(reverse("home"))
|
||||||
|
self.assertEqual(response.status_code, 200)
|
||||||
|
self.assertContains(response, 'site-title-mobile d-md-none')
|
||||||
|
self.assertContains(response, 'site-title-desktop')
|
||||||
|
|
||||||
def test_login_required_endpoints_redirect_anonymous(self):
|
def test_login_required_endpoints_redirect_anonymous(self):
|
||||||
secured_get_routes = [
|
secured_get_routes = [
|
||||||
reverse("mis_productos"),
|
reverse("mis_productos"),
|
||||||
|
|||||||
Reference in New Issue
Block a user