Skip to content

Commit

Permalink
updt
Browse files Browse the repository at this point in the history
  • Loading branch information
Gabriel marques do nascimento committed Nov 4, 2024
1 parent ac70ef1 commit 242d278
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 9 deletions.
9 changes: 5 additions & 4 deletions module.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { console_log } from "./utils.js";

export function paragraph_height(
{ log = false, font_Size = null, height = null },
{ log = true, font_Size = null, height = null },
...args
) {
let tot = 0;
Expand All @@ -18,15 +18,16 @@ export function paragraph_height(
const fontSize = parseInt(font_Size);

// Calcula a altura da linha com base no tamanho da fonte
const lineHeight = fontSize + fontSize / 2;
const lineHeight = fontSize + (fontSize / 2);

// Calcula a altura aproximada do elemento "hello" em relação à altura da janela
const tela_size = tela_heith / lineHeight;
let tela = parseInt(tela_heith / lineHeight) * lineHeight;

if (log) {
console_log(`tela disponivel: ${[tela, lineHeight]}`);
console_log(`tela disponivel: ${[tela, lineHeight]}`, true);
}
return [tela + 4, lineHeight];
return [tela, lineHeight, tela_size];
}

export function _lineheight_(font_size) {
Expand Down
8 changes: 3 additions & 5 deletions style.css
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ body {
background-color: rgb(247, 247, 8); /* Cor de destaque */
border: solid rgba(42, 41, 41, 0.238) 2px;
z-index: -1; /* Coloca atrás do texto */
box-shadow:;

transition: top 0.2s ease;
width: 52%;
margin: 0 auto;
Expand Down Expand Up @@ -415,7 +415,6 @@ body {
}
#pai {
margin-top: 20px;
align-items: center;

width: 98vw;
height: 86vh;
Expand All @@ -425,13 +424,12 @@ body {
}
#paragraph {
/*max-height: calc(88vh - 40px);*/
left:51%;
transform: translate(-50%, 0);

z-index: 2;
width: 95%; /* O parágrafose ajusta à largura da tela */
/* font-size: 14px; Fonte um pouco menor para celular */
/* Reduz a altura para celulares */
margin: 0 auto;
margin: auto;

}
.highlight{
Expand Down

0 comments on commit 242d278

Please sign in to comment.