Skip to content

Commit 643b5cb

Browse files
updates and fixes
1 parent fc6eff7 commit 643b5cb

16 files changed

Lines changed: 36 additions & 21 deletions

_includes/topbar.html

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,6 @@
4040
</nav>
4141
<!-- endof #breadcrumb -->
4242

43-
<!-- só na /projetos: botão de tema (essa página não dá acesso à sidebar; mantém o título centralizado no mobile) -->
44-
<button type="button" id="projetos-mode-toggle" class="btn btn-link" aria-label="Alternar tema claro/escuro" title="Tema claro/escuro">
45-
<i class="fas fa-adjust fa-fw"></i>
46-
</button>
47-
4843
<button type="button" id="sidebar-trigger" class="btn btn-link" aria-label="Abrir/fechar navegação do conteúdo">
4944
<i class="fas fa-chevron-right fa-fw"></i>
5045
</button>

_layouts/projetos.html

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,14 @@ <h1 class="projetos-title">Repositórios &amp; Projetos</h1>
1010
Coisas que eu construí — ferramentas de segurança, scripts, addons e temas. Tudo aberto no
1111
<a href="https://github.com/matheuslaidler" target="_blank" rel="noopener">GitHub</a>.
1212
</p>
13-
<div class="projetos-filter">
14-
<i class="fas fa-search"></i>
15-
<input type="search" id="projetos-filter" placeholder="Buscar projetos..." aria-label="Buscar projetos" autocomplete="off">
13+
<div class="projetos-toolbar">
14+
<div class="projetos-filter">
15+
<i class="fas fa-search"></i>
16+
<input type="search" id="projetos-filter" placeholder="Buscar projetos..." aria-label="Buscar projetos" autocomplete="off">
17+
</div>
18+
<button type="button" id="projetos-mode-toggle" aria-label="Alternar tema claro/escuro" title="Tema claro/escuro">
19+
<i class="fas fa-adjust fa-fw"></i>
20+
</button>
1621
</div>
1722
</div>
1823

assets/css/custom.css

Lines changed: 27 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -239,10 +239,12 @@ html[data-mode='dark'] #sidebar {
239239
overflow-x: hidden;
240240
}
241241

242-
/* evita qualquer scroll horizontal residual (sintoma: footer "cortado"); clip não vira scroll-container -> não quebra o position:sticky do menu/topbar */
243-
html {
244-
overflow-x: clip;
245-
}
242+
/* reserva a calha da barra de rolagem -> evita o "pulo" de ~6px que deixava o footer levemente cortado */
243+
html { scrollbar-gutter: stable; }
244+
245+
/* tabelas largas (markdown e código) NÃO podem estourar a página (era o que cortava o footer) -> rolam internamente */
246+
.content table:not(.rouge-table) { display: block; max-width: 100%; overflow-x: auto; }
247+
.content .highlight { max-width: 100%; }
246248

247249
html[data-mode='dark'] #topbar-wrapper {
248250
border-bottom: 2px solid rgba(115, 255, 232, 0.3);
@@ -1069,23 +1071,28 @@ html.page-projetos #search-result-wrapper {
10691071
html.page-projetos #topbar search,
10701072
html.page-projetos #search-trigger,
10711073
html.page-projetos #search-cancel { display: none !important; }
1072-
/* "Projetos" centralizado no mobile (theme-toggle à esquerda; sem search-trigger à direita) */
1074+
/* "Projetos" centralizado no mobile (sem itens nas pontas do topbar nessa página) */
10731075
@media (max-width: 849px) {
10741076
html.page-projetos #topbar-title { position: absolute; left: 50%; transform: translateX(-50%); width: auto; }
10751077
}
1076-
/* botão de tema no topbar SÓ na /projetos (substitui o sidebar-trigger escondido; mantém "Projetos" centralizado no mobile) */
1077-
#projetos-mode-toggle { display: none; }
1078-
html.page-projetos #projetos-mode-toggle { display: inline-flex; align-items: center; }
10791078

1080-
/* filtro de projetos (na página; funciona desktop + mobile) */
1081-
.projetos-filter { position: relative; max-width: 420px; margin-top: 1rem; }
1079+
/* barra da página: filtro (cresce) + botão de tema na OUTRA PONTA, mesma linha */
1080+
.projetos-toolbar { display: flex; align-items: center; gap: 0.75rem; margin-top: 1rem; }
1081+
.projetos-filter { position: relative; flex: 1 1 auto; max-width: 520px; }
10821082
.projetos-filter i { position: absolute; left: 0.9rem; top: 50%; transform: translateY(-50%); color: var(--text-muted-color); font-size: 0.9rem; pointer-events: none; }
10831083
.projetos-filter input {
10841084
width: 100%; padding: 0.5rem 0.9rem 0.5rem 2.3rem; border-radius: 10px;
10851085
border: 1px solid rgba(115, 255, 232, 0.25); background: rgba(115, 255, 232, 0.05); color: var(--text-color);
10861086
}
10871087
.projetos-filter input::placeholder { color: var(--text-muted-color); }
10881088
.projetos-filter input:focus { outline: none; border-color: rgba(115, 255, 232, 0.6); }
1089+
#projetos-mode-toggle {
1090+
flex: 0 0 auto; margin-left: auto;
1091+
width: 2.4rem; height: 2.4rem; border-radius: 10px; cursor: pointer; text-decoration: none;
1092+
background: rgba(115, 255, 232, 0.06); border: 1px solid rgba(115, 255, 232, 0.25); color: #73ffe8;
1093+
display: inline-flex; align-items: center; justify-content: center;
1094+
}
1095+
#projetos-mode-toggle:hover { background: rgba(115, 255, 232, 0.14); text-decoration: none; }
10891096

10901097
.projetos-head { margin-bottom: 1.4rem; }
10911098
.projetos-head .projetos-title { margin-bottom: 0.2rem; }
@@ -1096,9 +1103,17 @@ html.page-projetos #projetos-mode-toggle { display: inline-flex; align-items: ce
10961103
}
10971104
.projetos-donate h2 { font-size: 1.3rem; margin-bottom: 0.3rem; }
10981105

1099-
/* cards de projeto: como os posts (capa na lateral), borda ciano sutil (não a branca padrão), info + tags */
1100-
#projetos-list .proj-card { border: 1px solid rgba(115, 255, 232, 0.16); }
1106+
/* cards de projeto: capa na lateral; SEM contorno branco; card um pouco mais escuro que o fundo; imagem preenche o card */
1107+
#projetos-list .proj-card {
1108+
border: none;
1109+
background: rgba(0, 0, 0, 0.22);
1110+
border-radius: 10px;
1111+
overflow: hidden;
1112+
}
1113+
html[data-mode='light'] #projetos-list .proj-card { background: rgba(0, 0, 0, 0.05); }
1114+
#projetos-list .proj-card .post-preview img { width: 100%; height: 100%; object-fit: cover; }
11011115
#projetos-list .card-title { font-size: 1.2rem; display: flex; align-items: center; gap: 0.4rem; }
1116+
html[data-mode='light'] #projetos-list .card-title { color: #0c7d6e; } /* legível no modo claro */
11021117
#projetos-list .card-title .proj-pin { font-size: 0.8rem; color: #73ffe8; }
11031118
#projetos-list .card-text.content { display: block; }
11041119
#projetos-list .card-text.content p { color: var(--text-muted-color); margin: 0; }

assets/css/menu.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525

2626
#cssmenu a {
2727
display: inline-block;
28-
padding: 0.75vh 2.2rem; /*botão: largura em rem (vh aqui causava overflow horizontal -> footer cortado)*/
28+
padding: 0.75vh clamp(2rem, 3.4vw, 4.5rem); /*grande, mas escalado p/ CABER (sem vh, sem estourar a largura -> footer não corta)*/
2929
line-height: 6vh; /*botão altura*/
3030
color: #fff;
3131
text-decoration: none;
-16.2 KB
Loading
-14.5 KB
Loading
-9.55 KB
Loading
-17.2 KB
Loading
-14.1 KB
Loading

assets/img/covers/proj-SubdT.png

-10.6 KB
Loading

0 commit comments

Comments
 (0)