Pull request Nicolas Murua #2

Open
murua.nicolas wants to merge 9 commits from murua.nicolas/clase-8-DOM:ramaMurua into main
2 changed files with 11 additions and 1 deletions
Showing only changes of commit 2a0aa2bbc2 - Show all commits

View File

@@ -19,4 +19,14 @@ function agregarItem(texto){
lista.appendChild(nuevo);
}
function destacarImportantes() {
const parrafos = document.querySelectorAll("#parrafos p");
for (const p of parrafos) {
if (p.textContent.includes("importante")) {
p.classList.add("destacado");
}
}
}

View File

@@ -144,7 +144,7 @@ h1 {
.destacado {
background: linear-gradient(135deg, #4a90e2, #357abd);
color: white;
color: rgb(255, 255, 255);
font-weight: bold;
padding: 18px !important;
box-shadow: 0 6px 16px rgba(74, 144, 226, 0.35);