fix: refactor css
This commit is contained in:
@@ -1,31 +1,31 @@
|
||||
{% load i18n %}
|
||||
{% load static %}
|
||||
<nav class="bg-white dark:bg-gray-800 antialiased">
|
||||
<nav class="navbar-bg">
|
||||
<!-- Left side -->
|
||||
<div class="max-w-screen-xl px-4 mx-auto 2xl:px-0 py-4">
|
||||
<div class="flex items-center justify-between">
|
||||
<div class="navbar-content">
|
||||
<div class="navbar-align">
|
||||
|
||||
<!-- Title -->
|
||||
<div class="flex items-center space-x-8">
|
||||
<div class="navbar-title">
|
||||
<div class="shrink-0">
|
||||
<a class="flex flex-row items-center" href="{% url 'web:index' %}">
|
||||
<img class="w-8 h-8 mr-2" src="{{ logo }}" alt="{{ web_title }} logo">
|
||||
<h1 class="text-xl font-semibold text-gray-900 dark:text-white">{{ web_title }}</h1>
|
||||
<h1 class="navbar-web-title">{{ web_title }}</h1>
|
||||
</a>
|
||||
</div>
|
||||
|
||||
<!-- Categories -->
|
||||
<ul class="hidden lg:flex items-center justify-start gap-6 md:gap-8 py-3 sm:justify-center">
|
||||
<ul class="navbar-categories">
|
||||
<li>
|
||||
<a href="{% url 'web:index' %}" title=""
|
||||
class="flex text-sm font-medium text-gray-900 hover:text-primary-700 dark:text-white dark:hover:text-primary-500">
|
||||
class="navbar-category-link">
|
||||
{% translate 'Inicio' %}
|
||||
</a>
|
||||
</li>
|
||||
{% for category in navbar_categories %}
|
||||
<li class="shrink-0">
|
||||
<a href="{% url 'web:category_view' slug=category.slug %}" title=""
|
||||
class="flex text-sm font-medium text-gray-900 hover:text-primary-700 dark:text-white dark:hover:text-primary-500">
|
||||
class="navbar-category-link">
|
||||
{{ category.name }}
|
||||
</a>
|
||||
</li>
|
||||
@@ -48,7 +48,7 @@
|
||||
id="userDropdownButton1"
|
||||
data-dropdown-toggle="userDropdown1" type="button"
|
||||
aria-label="show menu"
|
||||
class="inline-flex items-center rounded-lg justify-center p-4 hover:bg-gray-100 dark:hover:bg-gray-700 text-sm font-medium leading-none text-gray-900 dark:text-white cursor-pointer">
|
||||
class="icon-button">
|
||||
{% include 'components/icons/user.svg' %}
|
||||
<span class="hidden sm:flex">
|
||||
{% translate 'Mi cuenta' %}
|
||||
@@ -63,8 +63,8 @@
|
||||
</div>
|
||||
{% else %}
|
||||
<a href="{% url 'web:login' %}"
|
||||
class="inline-flex items-center rounded-lg justify-center p-4 hover:bg-gray-100 dark:hover:bg-gray-700 text-sm font-medium leading-none text-gray-900 dark:text-white">
|
||||
Inicia sesión
|
||||
class="link-button">
|
||||
{% translate 'Inicia sesión' %}
|
||||
</a>
|
||||
{% endif %}
|
||||
|
||||
@@ -73,7 +73,7 @@
|
||||
data-collapse-toggle="ecommerce-navbar-menu-1" aria-controls="ecommerce-navbar-menu-1"
|
||||
aria-expanded="false"
|
||||
aria-label="show menu"
|
||||
class="inline-flex lg:hidden items-center justify-center hover:bg-gray-100 rounded-md dark:hover:bg-gray-700 p-4 text-gray-900 dark:text-white cursor-pointer">
|
||||
class="icon-button lg:hidden">
|
||||
<span class="sr-only">
|
||||
{% translate 'Abrir menú' %}
|
||||
</span>
|
||||
@@ -83,17 +83,17 @@
|
||||
</div>
|
||||
|
||||
<div id="ecommerce-navbar-menu-1"
|
||||
class="bg-gray-50 dark:bg-gray-700 dark:border-gray-600 border border-gray-200 rounded-lg py-3 hidden px-4 mt-4">
|
||||
<ul class="text-gray-900 dark:text-white text-sm font-medium dark:text-white space-y-3">
|
||||
class="navbar-dropdown-menu hidden">
|
||||
<ul class="navbar-dropdown-menu-list">
|
||||
<li>
|
||||
<a href="{% url 'web:index' %}"
|
||||
class="hover:text-primary-700 dark:hover:text-primary-500">{% translate 'Inicio' %}</a>
|
||||
class="navbar-dropdown-menu-title">{% translate 'Inicio' %}</a>
|
||||
</li>
|
||||
|
||||
{% for category in navbar_categories %}
|
||||
<li>
|
||||
<a href="{% url 'web:category_view' slug=category.slug %}"
|
||||
class="hover:text-primary-700 dark:hover:text-primary-500">{{ category.name }}</a>
|
||||
class="navbar-dropdown-menu-title">{{ category.name }}</a>
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
|
||||
Reference in New Issue
Block a user