mirror of
https://github.com/welton89/RRBEC.git
synced 2026-04-05 13:35:42 +00:00
style: remodelagem menu mobile
This commit is contained in:
Binary file not shown.
@@ -11,7 +11,6 @@
|
||||
<link rel="shortcut icon" href="{% static 'midia/favicon/favicon.ico' %}" />
|
||||
{% load pwa %}
|
||||
{% progressive_web_app_meta %}
|
||||
<!-- <link rel="stylesheet" href="{% static 'pico.css' %}"> -->
|
||||
<link
|
||||
rel="stylesheet"
|
||||
href="https://cdn.jsdelivr.net/npm/@picocss/pico@2/css/pico.min.css"
|
||||
@@ -30,7 +29,7 @@
|
||||
<h1>
|
||||
<img src="{% static 'midia/logo.png' %}" width="60">
|
||||
</h1>
|
||||
<!-- <button id="icon-notify" style="border: none; margin-left: 10px; border-radius: 20px; height: 40px;width: 40px; padding: 2px; align-self: center;" onclick="cookieNotificacao()" >🔊</button> -->
|
||||
<button id="icon-notify" style="border: none; margin-left: 10px; border-radius: 20px; height: 40px;width: 40px; padding: 2px; align-self: center;" onclick="cookieNotificacao()" >🔊</button>
|
||||
</div>
|
||||
<div class="nav-list">
|
||||
<ul>
|
||||
@@ -61,87 +60,62 @@
|
||||
<a href="{% url 'logout' %}" style="width: 50px;"><img src="{% static 'midia/icons/logout.svg' %}" style="width: 40px;"></a>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="mobile-menu-icon">
|
||||
<button onclick="menuShow()"><img class="icon" src="https://raw.githubusercontent.com/Larissakich/menu_responsivo/6e3b09504434628c1b01f65b7d8ccf6ace3225cb/menu%20responsivo/assets/img/menu_white_36dp.svg" alt=""></button>
|
||||
<button onclick="menuShow()">
|
||||
<img
|
||||
class="icon"
|
||||
src="https://raw.githubusercontent.com/Larissakich/menu_responsivo/6e3b09504434628c1b01f65b7d8ccf6ace3225cb/menu%20responsivo/assets/img/menu_white_36dp.svg"
|
||||
alt="">
|
||||
</button>
|
||||
</div>
|
||||
</nav>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="header-mobile">
|
||||
<div class="logo">
|
||||
<button id="icon-notify" style="border: none; margin-left: 10px; border-radius: 20px; height: 40px;width: 40px; padding: 2px; align-self: center;" onclick="cookieNotificacao()" >🔊</button>
|
||||
|
||||
<span>RRBEC</span>
|
||||
</div>
|
||||
<button class="nav-toggle"><i for="menu-toggle" class="fas fa-bars"></i></button>
|
||||
|
||||
<nav id="nav-links" class="nav-links">
|
||||
<div style="
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
width: 100%;
|
||||
position: absolute;
|
||||
top:20px;
|
||||
">
|
||||
<div class="logo">
|
||||
<button
|
||||
id="icon-notify"
|
||||
style="border: none; margin-left: 10px; border-radius: 20px; height: 40px;width: 40px; padding: 2px; align-self: center;"
|
||||
onclick="cookieNotificacao()" >🔊
|
||||
</button>
|
||||
</div>
|
||||
|
||||
<div id="user-info">{{user.first_name}} {{user.last_name}}</div>
|
||||
<a href="{% url 'logout' %}" style="width: 50px;padding: 3px;"><img src="{% static 'midia/icons/logout.svg' %}" style="width: 40px;"></a>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="nav-component">
|
||||
{% if user|groupUser:"Gerente" %}
|
||||
<a href="{% url 'home' %}" class="nav-link">DashBoard</a>
|
||||
<a href="{% url 'products' %}" class="nav-link"> Produtos</a>
|
||||
{% endif %}
|
||||
<a href="{% url 'comandas' %}" class="nav-link">Comandas</a>
|
||||
<a href="{% url 'pedidos' %}" class="nav-link">Cozinha</a>
|
||||
<a href="{% url 'mapMesas' %}" class="nav-link">Mapa</a>
|
||||
<a href="{% url 'products' %}" class="nav-link"> Produtos</a>
|
||||
<a href="{% url 'clients' %}" class="nav-link"> Clientes</a>
|
||||
{% if user|groupUser:"Gerente" %}
|
||||
{% if user|groupUser:"Admin" %}
|
||||
<a href="{% url 'admin:index' %}" class="nav-link">Admin</a>
|
||||
{% endif %}
|
||||
<!-- <div class="dropdown">
|
||||
<li class="">Cadastros<img class="img-drop" src="{% static 'midia/icons/down.svg' %}" style="width: 35px;"> </li>
|
||||
<div class="dropdown-content">
|
||||
<a href="{% url 'products' %}" class="nav-link"> Produtos</a>
|
||||
<a href="{% url 'categories' %}" class="nav-link"> Categorias</a>
|
||||
<a href="{% url 'clients' %}" class="nav-link"> Clientes</a>
|
||||
<a href="{% url 'admin:index' %}" class="nav-link">Admin</a>
|
||||
</div>
|
||||
</li>
|
||||
</div> -->
|
||||
|
||||
</div>
|
||||
</nav>
|
||||
</div>
|
||||
|
||||
<!-- <div class="mobile-menu">
|
||||
<ul>
|
||||
{% if user|groupUser:"Gerente" %}
|
||||
<li class="nav-item"><a href="{% url 'home' %}" class="nav-link">Início</a></li>
|
||||
{% endif %}
|
||||
<li class="nav-item"><a href="{% url 'comandas' %}" class="nav-link">Comandas</a></li>
|
||||
<li class="nav-item"><a href="{% url 'pedidos' %}" class="nav-link">Cozinha</a></li>
|
||||
<li class="nav-item"><a href="{% url 'mapMesas' %}" class="nav-link">Mapa</a></li>
|
||||
|
||||
|
||||
<div class="dropdown">
|
||||
<li class="nav-item">Cadastros<img class="img-drop" src="{% static 'midia/icons/down.svg' %}" style="width: 35px;"> </li>
|
||||
<div class="dropdown-content">
|
||||
<a href="{% url 'products' %}" class="nav-link"> Produtos</a>
|
||||
<a href="{% url 'categories' %}" class="nav-link"> Categorias</a>
|
||||
<a href="{% url 'clients' %}" class="nav-link"> Clientes</a>
|
||||
<a href="{% url 'admin:index' %}" class="nav-link">Admin</a>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</ul>
|
||||
<div class="logout-button">
|
||||
{{ user.first_name }} {{ user.last_name }}
|
||||
<a href="{% url 'logout' %}"><img src="{% static 'midia/icons/logout.svg' %}" style="width: 40px;"></a>
|
||||
</div>
|
||||
</div> -->
|
||||
|
||||
|
||||
|
||||
|
||||
</header>
|
||||
|
||||
|
||||
</div>
|
||||
<br>
|
||||
<body>
|
||||
@@ -158,30 +132,15 @@
|
||||
|
||||
|
||||
|
||||
|
||||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css">
|
||||
<link href="https://cdn.jsdelivr.net/npm/sweetalert2@11/dist/sweetalert2.min.css" rel="stylesheet">
|
||||
<script src="https://cdn.jsdelivr.net/npm/sweetalert2@11"></script>
|
||||
|
||||
|
||||
|
||||
<!-- <div class="navigation">
|
||||
<ul>
|
||||
<li><a href="#"><span onclick="openFullscreen()" class="icon"><i class="fas fa-home"></i></span></a></li>
|
||||
<li><a href="#"><span class="icon"><i class="fas fa-user"></i></span></a></li>
|
||||
<li><a href="#"><span class="icon"><i class="fas fa-cog"></i></span></a></li>
|
||||
<li><a href="#"><span class="icon"><i class="fas fa-envelope"></i></span></a></li>
|
||||
<li><a href="#"><span class="icon"><i class="fas fa-sign-out-alt"></i></span></a></li>
|
||||
</ul>
|
||||
</div> -->
|
||||
|
||||
<footer>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</footer>
|
||||
|
||||
</html>
|
||||
@@ -43,7 +43,7 @@
|
||||
|
||||
}
|
||||
|
||||
@keyframes jump {
|
||||
@keyframes jump {
|
||||
0% {
|
||||
transform: scale(0.0);
|
||||
}
|
||||
@@ -53,7 +53,7 @@
|
||||
100% {
|
||||
transform: scale(1);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -76,7 +76,6 @@ input, textarea, select {
|
||||
width: 95%;
|
||||
max-width: 95%;
|
||||
max-height: 300px;
|
||||
/* padding: 8px; */
|
||||
margin-top: 5px;
|
||||
border-radius: 8px;
|
||||
border: 1px solid #cccccc52;
|
||||
@@ -93,14 +92,14 @@ input, textarea, select {
|
||||
line-height: 20px;
|
||||
padding: 15px 30px 15px 30px;
|
||||
transition: box-shadow 0.4s;
|
||||
}
|
||||
}
|
||||
|
||||
.btn-primary:hover {
|
||||
.btn-primary:hover {
|
||||
box-shadow: 0px 0px 15px rgba(86, 187, 255, 0.815);
|
||||
text-align: left;
|
||||
line-height: 20px;
|
||||
padding: 15px 30px 15px 30px;
|
||||
}
|
||||
}
|
||||
|
||||
.btn-secondary {
|
||||
align-items: center;
|
||||
@@ -112,14 +111,14 @@ input, textarea, select {
|
||||
line-height: 20px;
|
||||
padding: 15px 30px 15px 30px;
|
||||
transition: box-shadow 0.4s;
|
||||
}
|
||||
}
|
||||
|
||||
.btn-secondary:hover {
|
||||
.btn-secondary:hover {
|
||||
box-shadow: 0px 0px 15px rgb(53, 241, 62);
|
||||
text-align: left;
|
||||
line-height: 20px;
|
||||
padding: 15px 30px 15px 30px;
|
||||
}
|
||||
}
|
||||
|
||||
.btn-cancel {
|
||||
align-items: center;
|
||||
@@ -131,14 +130,14 @@ input, textarea, select {
|
||||
line-height: 20px;
|
||||
padding: 15px 30px 15px 30px;
|
||||
transition: box-shadow 0.4s;
|
||||
}
|
||||
}
|
||||
|
||||
.btn-cancel:hover {
|
||||
box-shadow: 0px 0px 15px rgba(255, 86, 86, 0.815);
|
||||
text-align: left;
|
||||
line-height: 20px;
|
||||
padding: 15px 30px 15px 30px;
|
||||
}
|
||||
.btn-cancel:hover {
|
||||
box-shadow: 0px 0px 15px rgba(255, 86, 86, 0.815);
|
||||
text-align: left;
|
||||
line-height: 20px;
|
||||
padding: 15px 30px 15px 30px;
|
||||
}
|
||||
|
||||
* {
|
||||
padding: 0;
|
||||
@@ -238,121 +237,54 @@ input, textarea, select {
|
||||
}
|
||||
|
||||
|
||||
.dropdown {
|
||||
.dropdown {
|
||||
position: relative;
|
||||
display: inline-block;
|
||||
color: #fff;
|
||||
cursor: pointer;
|
||||
transition: display 0.9s, animation 0.9s;
|
||||
}
|
||||
}
|
||||
|
||||
.dropdown-content {
|
||||
.dropdown-content {
|
||||
display: none;
|
||||
position: absolute;
|
||||
border-radius: 5px;
|
||||
background-color: #313238;
|
||||
min-width: 160px;
|
||||
box-shadow: 0px 3px 10px #464646;
|
||||
}
|
||||
}
|
||||
|
||||
.dropdown-content a {
|
||||
.dropdown-content a {
|
||||
color: rgb(255, 255, 255);
|
||||
padding: 12px 16px;
|
||||
text-decoration: none;
|
||||
display: block;
|
||||
animation: jump 0.7s;
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
.dropdown-content a:hover {
|
||||
.dropdown-content a:hover {
|
||||
background-color: #7a7a7a;
|
||||
border-radius: 5px;
|
||||
display: block;
|
||||
/* animation: jump 0.7s; */
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
.img-drop {
|
||||
.img-drop {
|
||||
width: 35px;
|
||||
transition: transform 0.3s ease-in-out;
|
||||
}
|
||||
}
|
||||
|
||||
.dropdown:hover .img-drop {
|
||||
.dropdown:hover .img-drop {
|
||||
transform: rotate(180deg);
|
||||
}
|
||||
}
|
||||
|
||||
.dropdown:hover .dropdown-content {
|
||||
display: block;
|
||||
animation: jump 0.7s;
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
.navigation {
|
||||
position: fixed;
|
||||
bottom: 0;
|
||||
width: 100%;
|
||||
height: 60px;
|
||||
background: var(--main-gradient);
|
||||
display: none;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
border-radius: 10px 10px 0px 0px;
|
||||
box-shadow: 10px 0px 8px rgb(255, 255, 255);
|
||||
}
|
||||
|
||||
.navigation ul {
|
||||
width: 350px;
|
||||
display: flex;
|
||||
justify-content: space-around;
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.navigation ul li {
|
||||
list-style: none;
|
||||
position: relative;
|
||||
width: 70px;
|
||||
height: 60px;
|
||||
z-index: 2;
|
||||
}
|
||||
|
||||
.navigation ul li a {
|
||||
text-decoration: none;
|
||||
color: #555;
|
||||
position: relative;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.navigation ul li a .icon {
|
||||
position: fixed;
|
||||
background: #add7ff;
|
||||
.dropdown:hover .dropdown-content {
|
||||
display: block;
|
||||
width: 55px;
|
||||
height: 55px;
|
||||
text-align: center;
|
||||
line-height: 65px;
|
||||
border-radius: 50%;
|
||||
color: #222327;
|
||||
font-size: 1.5em;
|
||||
transition: 0.5s;
|
||||
transition-delay: 0s;
|
||||
z-index: 100;
|
||||
animation: jump 0.7s;
|
||||
|
||||
}
|
||||
|
||||
.navigation ul li a .icon:hover {
|
||||
background: #222327;
|
||||
color: #fff;
|
||||
transform: translateY(-10px);
|
||||
}
|
||||
|
||||
.toast {
|
||||
position: fixed;
|
||||
@@ -372,12 +304,7 @@ input, textarea, select {
|
||||
transition: opacity 0.5s ease-in-out, visibility 0.5s ease-in-out;
|
||||
z-index: 999 ;
|
||||
}
|
||||
@media screen and (max-width: 730px) {
|
||||
.toast-add {
|
||||
width: 90%;
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
.toast p {
|
||||
color: #000000;
|
||||
}
|
||||
@@ -388,100 +315,25 @@ input, textarea, select {
|
||||
}
|
||||
|
||||
|
||||
@media screen and (max-width: 730px) {
|
||||
.dropdown-content {
|
||||
display: none;
|
||||
margin-top: 40px;
|
||||
position: relative;
|
||||
border-radius: 0px;
|
||||
min-width: 160px;
|
||||
}
|
||||
.nav-bar {
|
||||
padding: 0.1rem 2rem;
|
||||
}
|
||||
.nav-item {
|
||||
display: none;
|
||||
}
|
||||
.logout-button {
|
||||
display: none;
|
||||
}
|
||||
.mobile-menu-icon {
|
||||
display: block;
|
||||
}
|
||||
.mobile-menu-icon button {
|
||||
background-color: transparent;
|
||||
border: none;
|
||||
cursor: pointer;
|
||||
}
|
||||
.mobile-menu ul {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
text-align: center;
|
||||
padding-bottom: 1rem;
|
||||
}
|
||||
.mobile-menu .nav-item {
|
||||
display: block;
|
||||
padding-top: 1.2rem;
|
||||
}
|
||||
.mobile-menu .logout-button {
|
||||
display: block;
|
||||
justify-items: center;
|
||||
justify-self: center;
|
||||
padding: 1rem 2rem;
|
||||
}
|
||||
.mobile-menu .logout-button button {
|
||||
width: 100%;
|
||||
}
|
||||
.open {
|
||||
display: block;
|
||||
transition: transform 0.2s;
|
||||
}
|
||||
|
||||
.navigation {
|
||||
display: flex;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
.header-mobile {
|
||||
display: none;
|
||||
justify-content: space-between;
|
||||
justify-content: flex-start;
|
||||
align-items: center;
|
||||
background-color: #171525;
|
||||
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
|
||||
/* backdrop-filter: blur(5px); */
|
||||
padding: 1rem;
|
||||
padding-right: 50px;
|
||||
padding-left: 10px;
|
||||
border-radius: 25px;;
|
||||
position: fixed;
|
||||
top: 0;
|
||||
width: 100%;
|
||||
|
||||
top: 50%;
|
||||
right: 0%;
|
||||
|
||||
width: 55px;
|
||||
height: 55px;
|
||||
z-index: 9999;
|
||||
}
|
||||
|
||||
.header-mobile .logo {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
margin-left: 25px;
|
||||
}
|
||||
|
||||
.header-mobile .logo i {
|
||||
color: #fbbf24;
|
||||
font-size: 2rem;
|
||||
}
|
||||
|
||||
.header-mobile .logo span {
|
||||
|
||||
font-size: 1.25rem;
|
||||
font-weight: bold;
|
||||
margin-left: .5rem;
|
||||
}
|
||||
|
||||
.header-mobile .nav-toggle {
|
||||
display: block;
|
||||
@@ -500,10 +352,10 @@ input, textarea, select {
|
||||
.header-mobile .nav-links {
|
||||
max-width: 70%;
|
||||
position: fixed;
|
||||
top: 83px;
|
||||
top: 0px;
|
||||
left: -100%;
|
||||
width: 100%;
|
||||
height: 100vh;
|
||||
height: 100%;
|
||||
background-color: #222033b9;
|
||||
box-shadow: 0 10px 10px rgba(0, 0, 0, 0.5);
|
||||
backdrop-filter: blur(5px);
|
||||
@@ -532,7 +384,7 @@ input, textarea, select {
|
||||
font-size: 1.2rem;
|
||||
margin: 1rem 0;
|
||||
display: block;
|
||||
width: 90%;
|
||||
width: 100%;
|
||||
text-align: center;
|
||||
padding: 1rem;
|
||||
transition: all 0.3s;
|
||||
@@ -540,19 +392,29 @@ input, textarea, select {
|
||||
|
||||
.header-mobile .nav-links a:hover {
|
||||
color: white;
|
||||
scale: 1.1;
|
||||
background-color: #373543;
|
||||
box-shadow: 0 0px 10px rgba(0, 0, 0, 0.5);
|
||||
scale: 1.3;
|
||||
transition: all 0.3s ;
|
||||
}
|
||||
|
||||
|
||||
@media screen and (max-width: 768px) {
|
||||
.background .bg1 {
|
||||
max-height: 21.5%;
|
||||
.toast-add {
|
||||
width: 90%;
|
||||
}
|
||||
|
||||
.dropdown-content {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.header-mobile {
|
||||
display: flex;
|
||||
display: flex;
|
||||
}
|
||||
|
||||
.nav-bar {
|
||||
display:none;
|
||||
}
|
||||
|
||||
body {
|
||||
margin: 8px 0px 0px 0px;
|
||||
}
|
||||
}
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user