-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #162 from rrafaelc/refactor/sistema-pesquisar
Refactor/sistema pesquisar
- Loading branch information
Showing
7 changed files
with
1,124 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,129 @@ | ||
.autoComplete_wrapper { | ||
display: inline-block; | ||
position: relative; | ||
} | ||
|
||
.autoComplete_wrapper > input { | ||
height: 5rem; | ||
width: 520px; | ||
margin: 0; | ||
padding: 0 2rem 0 3.2rem; | ||
box-sizing: border-box; | ||
-moz-box-sizing: border-box; | ||
-webkit-box-sizing: border-box; | ||
font-size: 2rem; | ||
text-overflow: ellipsis; | ||
outline: none; | ||
border-radius: 12px; | ||
border: 1px solid var(--cinza-texto); | ||
background-image: url(./images/search.svg); | ||
background-size: 2rem; | ||
background-position: left 1.05rem top 1.5rem; | ||
background-repeat: no-repeat; | ||
background-origin: border-box; | ||
background-color: #fff; | ||
transition: all 0.4s ease; | ||
-webkit-transition: all -webkit-transform 0.4s ease; | ||
} | ||
|
||
.autoComplete_wrapper > input::placeholder { | ||
transition: all 0.3s ease; | ||
-webkit-transition: all -webkit-transform 0.3s ease; | ||
} | ||
|
||
.autoComplete_wrapper > input:hover::placeholder { | ||
transition: all 0.3s ease; | ||
-webkit-transition: all -webkit-transform 0.3s ease; | ||
} | ||
|
||
.autoComplete_wrapper > input:focus::placeholder { | ||
padding: 0.1rem 0.6rem; | ||
font-size: 0.95rem; | ||
} | ||
|
||
.autoComplete_wrapper > input:focus::selection { | ||
background-color: rgba(255, 122, 122, 0.15); | ||
} | ||
|
||
.autoComplete_wrapper > input::selection { | ||
background-color: rgba(255, 122, 122, 0.15); | ||
} | ||
|
||
.autoComplete_wrapper > input:hover { | ||
transition: all 0.3s ease; | ||
-webkit-transition: all -webkit-transform 0.3s ease; | ||
} | ||
|
||
.autoComplete_wrapper > ul { | ||
position: absolute; | ||
max-height: 226px; | ||
overflow-y: scroll; | ||
box-sizing: border-box; | ||
left: 0; | ||
right: 0; | ||
margin: 0.5rem 0 0 0; | ||
padding: 0; | ||
z-index: 1; | ||
list-style: none; | ||
border-radius: 0.6rem; | ||
background-color: #fff; | ||
border: 1px solid rgba(33, 33, 33, 0.07); | ||
box-shadow: 0 3px 6px rgba(149, 157, 165, 0.15); | ||
outline: none; | ||
transition: opacity 0.15s ease-in-out; | ||
-moz-transition: opacity 0.15s ease-in-out; | ||
-webkit-transition: opacity 0.15s ease-in-out; | ||
} | ||
|
||
.autoComplete_wrapper > ul[hidden], | ||
.autoComplete_wrapper > ul:empty { | ||
display: block; | ||
opacity: 0; | ||
transform: scale(0); | ||
} | ||
|
||
.autoComplete_wrapper > ul > li { | ||
margin: 0.3rem; | ||
padding: 0.3rem 0.5rem; | ||
text-align: left; | ||
font-size: 2rem; | ||
color: #212121; | ||
border-radius: 0.35rem; | ||
background-color: rgba(255, 255, 255, 1); | ||
white-space: nowrap; | ||
overflow: hidden; | ||
text-overflow: ellipsis; | ||
transition: all 0.2s ease; | ||
} | ||
|
||
.autoComplete_wrapper > ul > li mark { | ||
background-color: transparent; | ||
font-weight: bold; | ||
} | ||
|
||
.autoComplete_wrapper > ul > li:hover { | ||
cursor: pointer; | ||
background-color: rgba(255, 122, 122, 0.15); | ||
} | ||
|
||
.autoComplete_wrapper > ul > li[aria-selected='true'] { | ||
background-color: rgba(255, 122, 122, 0.15); | ||
} | ||
|
||
@media only screen and (max-width: 600px) { | ||
.autoComplete_wrapper > input { | ||
width: 30rem; | ||
} | ||
} | ||
|
||
@media only screen and (max-width: 320px) { | ||
.autoComplete_wrapper > input { | ||
width: 25rem; | ||
} | ||
} | ||
|
||
@media only screen and (max-width: 290px) { | ||
.autoComplete_wrapper > input { | ||
width: 20rem; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,113 @@ | ||
<!DOCTYPE html> | ||
<html lang="pt-br"> | ||
|
||
<head> | ||
<meta charset="UTF-8" /> | ||
<meta http-equiv="X-UA-Compatible" content="IE=edge" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css" /> | ||
<script src="https://kit.fontawesome.com/1aacb3a88a.js" crossorigin="anonymous"></script> | ||
<link rel="stylesheet" href="../../styles/global.css" /> | ||
<link rel="stylesheet" href="styles.css" /> | ||
<link rel="apple-touch-icon" sizes="180x180" href="../../img/favicon/apple-touch-icon.png" /> | ||
<link rel="icon" type="image/png" sizes="32x32" href="../../img/favicon/favicon-32x32.png" /> | ||
<link rel="icon" type="image/png" sizes="16x16" href="../../img/favicon/favicon-16x16.png" /> | ||
<link rel="manifest" href="../../img/favicon/site.webmanifest" /> | ||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.1/font/bootstrap-icons.css"> | ||
<link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/toastify-js/src/toastify.min.css"> | ||
<link rel="stylesheet" href="../../scripts/autocomplete/css/autoComplete.custom.01.css"> | ||
<script defer type="text/javascript" src="https://cdn.jsdelivr.net/npm/toastify-js"></script> | ||
<script defer src="https://cdn.jsdelivr.net/npm/sweetalert2@11"></script> | ||
|
||
|
||
<script type="module" src="script.js" defer></script> | ||
<title>Sistema FAQ | Pesquisar</title> | ||
</head> | ||
|
||
<body class="no-scroll"> | ||
<?php | ||
$dir = '../..'; | ||
include '../../layouts/painel-lateral.php'; | ||
?> | ||
<div class="spinnerFull"> | ||
<div class="loader"></div> | ||
</div> | ||
<main> | ||
<div class="header"> | ||
<div class="grupo"> | ||
<h1 class="title">Pesquisar</h1> | ||
<div class="subgrupo"> | ||
<a href="../../sistema">Início</a> | ||
<i class="fas fa-angle-right"></i> | ||
<span>Pesquisar</span> | ||
</div> | ||
</div> | ||
<div class="usuario"> | ||
<div class="foto"> | ||
<img src="" /> | ||
</div> | ||
<div class="nome"> | ||
<span class="nome_completo"></span> | ||
<span class="cargo"></span> | ||
</div> | ||
<i class="fas fa-angle-down botao"></i> | ||
<div class="dropdown"> | ||
<a href="../../sistema/editar-dados">Editar dados</a> | ||
<a id="deslogar">Deslogar</a> | ||
</div> | ||
</div> | ||
</div> | ||
<div class="pesquisar-por"> | ||
<div class="autoComplete_wrapper"> | ||
<input disabled placeholder="Quando abre o vestibular?" id="autoComplete" type="search" dir="ltr" spellcheck=false autocorrect="off" autocomplete="off" autocapitalize="off" maxlength="2048" tabindex="1"> | ||
</div> | ||
</div> | ||
<div class="dados"> | ||
<table class="perguntas"> | ||
<thead> | ||
<tr> | ||
<th> | ||
<span>ID</span> | ||
</th> | ||
<th> | ||
<span>Colaborador</span> | ||
</th> | ||
<th id="pergunta"> | ||
<span>Pergunta</span> | ||
</th> | ||
<th> | ||
<span>Editado por</span> | ||
</th> | ||
<th> | ||
<span>Prioridade</span> | ||
</th> | ||
<th> | ||
<span>Data de edição</span> | ||
</th> | ||
<th> | ||
<span>Ação</span> | ||
</th> | ||
</tr> | ||
</thead> | ||
<tbody class="perguntas-tbody"></tbody> | ||
</table> | ||
<div class="spinnerContainer mostrar"> | ||
<div class="spinner loader"></div> | ||
</div> | ||
<div class="paginacao"> | ||
<div class="pg"> | ||
<span class="pg-inicio-pesquisar disabled" title="Ínicio"><i class="bi bi-chevron-double-left"></i></span> | ||
<span class="pg-anterior-pesquisar disabled" title="Anterior"><i class="bi bi-chevron-left"></i></span> | ||
</div> | ||
<div class="numeros pg-numeros-pesquisar"> | ||
</div> | ||
<div class="pg"> | ||
<span class="pg-proximo-pesquisar" title="Próximo"><i class="bi bi-chevron-right"></i></span> | ||
<span class="pg-ultimo-pesquisar" title="Último"><i class="bi bi-chevron-double-right"></i></span> | ||
</div> | ||
</div> | ||
</div> | ||
</main> | ||
</body> | ||
|
||
</html> |
Oops, something went wrong.