static-httpd

Sitio web estático (HTML + CSS) que sostiene el blog del autor
Log | Files | Refs

style.css (1995B)


      1 header {
      2     text-align: center;
      3 }
      4 
      5 header .logo {
      6     display: block;
      7     margin: 0 auto 1rem auto;
      8     width: 50px;
      9     height: 50px;
     10     object-fit: cover;
     11     padding-top: 2em;
     12 }
     13 
     14 h1 {
     15     font-size: 2.8rem;
     16     font-weight: 700;
     17     margin-bottom: 10px;
     18 }
     19 
     20 
     21 hr {
     22     height: 0.5px;
     23     border: none;
     24     background-color: #ddd;
     25     width: 50%;
     26     margin: 30px auto;
     27 }
     28 
     29 .menu {
     30     font-style: bold;
     31     text-align: center;
     32     margin: 1.5rem 0;
     33 }
     34 
     35 .menu a {
     36     color: inherit;
     37     /* text-decoration: none; */
     38 }
     39 
     40 .menu a:hover {
     41     text-decoration: underline;
     42 }
     43 
     44 
     45 /* Sección del blog */
     46 .blog {
     47     display: grid;
     48     grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
     49     gap: 1rem;
     50 }
     51 
     52 /* Cada artículo */
     53 .blog .article {
     54     display: block;
     55     padding: 1rem;
     56     border: 1px solid #ccc;
     57     border-radius: 4px;
     58     text-decoration: none;
     59     color: inherit;
     60     background: #fff;
     61 
     62     transition: background-color 0.2s ease,
     63                 border-color 0.2s ease;
     64 }
     65 
     66 /* Efecto al pasar el ratón */
     67 .blog .article:hover {
     68     background-color: #f0f0f0;
     69     border-color: #999;
     70 }
     71 
     72 /* Opcional: mejorar accesibilidad al navegar con teclado */
     73 .blog .article:focus {
     74     outline: 2px solid #666;
     75     outline-offset: 2px;
     76 }
     77 
     78 /* Márgenes internos de los textos */
     79 .blog .article p {
     80     margin: 0;
     81 }
     82 
     83 .blog .article .title {
     84     margin-bottom: 0.5rem;
     85     font-weight: bold;
     86 }
     87 
     88 .blog .article .info {
     89     margin-bottom: 0.75rem;
     90     color: #666;
     91     font-size: 0.9rem;
     92 }
     93 
     94 @media (prefers-color-scheme: dark) {
     95 	body {
     96 		color: rgb(234, 234, 234);
     97 		background-color: black;
     98 	}
     99 
    100     .blog .article {
    101         border: 1px solid rgb(27, 27, 27);;
    102         background: #101010;
    103     }
    104 
    105     .blog .article:hover {
    106         background-color: #222222;
    107         border-color: #2f2f2f;
    108     }
    109 
    110     /* Opcional: mejorar accesibilidad al navegar con teclado */
    111     .blog .article:focus {
    112         outline: 2px solid #454545;
    113     }
    114 
    115     .blog .article .info {
    116         color: #a1a1a1;
    117     }
    118 	
    119 }