Change CSS
Some checks failed
Deploy Hugo PaperMod Demo to Pages / build (push) Has been cancelled
Deploy Hugo PaperMod Demo to Pages / deploy (push) Has been cancelled

This commit is contained in:
JurassikDev34 2025-07-28 21:15:42 +02:00
parent 5a4651783f
commit 9a787ad2b7
No known key found for this signature in database
GPG key ID: 9AE21A5A5A8E18D3
2 changed files with 56 additions and 25 deletions

View file

@ -2,7 +2,6 @@
display: flex; display: flex;
flex-wrap: wrap; flex-wrap: wrap;
justify-content: space-between; justify-content: space-between;
max-width: calc(var(--nav-width) + var(--gap) * 2);
margin-inline-start: auto; margin-inline-start: auto;
margin-inline-end: auto; margin-inline-end: auto;
line-height: var(--header-height); line-height: var(--header-height);
@ -39,15 +38,18 @@
button#theme-toggle { button#theme-toggle {
font-size: 26px; font-size: 26px;
margin: auto 4px; margin: auto 4px;
color: #fff;
} }
body.dark #moon { body.dark #moon {
vertical-align: middle; vertical-align: middle;
display: none; display: none;
color: #fff;
} }
body:not(.dark) #sun { body:not(.dark) #sun {
display: none; display: none;
color: #fff;
} }
#menu { #menu {

View file

@ -1,38 +1,67 @@
:root { :root {
--gap: 24px; --gap: 24px;
--content-gap: 20px; --content-gap: 20px;
--nav-width: 1024px; --nav-width: 1024px;
--main-width: 720px; --main-width: 720px;
--header-height: 60px; --header-height: 70px;
--footer-height: 60px; --footer-height: 70px;
--radius: 8px; --radius: 8px;
--theme: rgb(255, 255, 255);
--entry: rgb(255, 255, 255); /* Paleta */
--primary: rgb(30, 30, 30); --theme: #ffffff;
--secondary: rgb(108, 108, 108); --entry: #f9f9f9;
--tertiary: rgb(214, 214, 214); --primary: #A10F2B; /* Rojo profundo */
--content: rgb(31, 31, 31); --secondary: #555555; /* Gris sobrio */
--code-block-bg: rgb(28, 29, 33); --tertiary: #FFC400; /* Dorado */
--code-bg: rgb(245, 245, 245); --content: #2e2e2e;
--border: rgb(238, 238, 238); --code-block-bg: #1c1c1c;
--code-bg: #f4f4f4;
--border: #ddd;
/* Color especial para hover en header */
--header-hover-color: #003d7a; /* Azul marino */
--header-bg: #A10F2B; /* Rojo rojigualda */
--header-color: #FFC400; /* Dorado rojigualda */
--header-hover: #003d7a; /* Azul marino */
} }
/* 🔥 Tema oscuro */
.dark { .dark {
--theme: rgb(29, 30, 32); --theme: #1a1a1a;
--entry: rgb(46, 46, 51); --entry: #2b2b2b;
--primary: rgb(218, 218, 219); --primary: #FFC400; /* Dorado como base */
--secondary: rgb(155, 156, 157); --secondary: #bbbbbb;
--tertiary: rgb(65, 66, 68); --tertiary: #A10F2B; /* Rojo como hover */
--content: rgb(196, 196, 197); --content: #e6e6e6;
--code-block-bg: rgb(46, 46, 51); --code-block-bg: #2e2e2e;
--code-bg: rgb(55, 56, 62); --code-bg: #3a3a3a;
--border: rgb(51, 51, 51); --border: #444;
--header-hover-color: #003d7a; /* Puede mantenerse o ajustarse si quiere */
} }
.list { /* 🔗 Estilo global de enlaces */
background: var(--code-bg); a {
color: var(--primary);
text-decoration: none;
transition: color 0.3s ease;
} }
.dark.list { a:hover {
background: var(--theme); color: var(--header-hover-color);
}
nav {
background-color: var(--header-bg);
color: var(--header-color);
}
nav a {
color: var(--header-color);
text-decoration: none;
transition: color 0.3s ease;
}
nav a:hover {
color: var(--header-hover);
} }