add further streamlining suggested by GPT-4

This commit is contained in:
Nuno Sempere 2023-06-17 05:32:50 +00:00
parent 8ff0e1652b
commit a3ed2202bb
5 changed files with 16 additions and 65 deletions

View File

@ -1,20 +1,12 @@
/* latin-ext */ /* Font */
@font-face { @font-face {
font-family: 'Source Serif Pro'; font-family: 'Source Serif Pro';
font-style: normal; font-style: normal;
font-weight: 400; font-weight: 400;
font-display: swap; font-display: swap;
src: url(https://nunosempere.com/.resources/source-serif-pro-latin-ext.woff2) format('woff2'); src: url(https://nunosempere.com/.resources/source-serif-pro-latin-ext.woff2) format('woff2'),
unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; url(https://nunosempere.com/.resources/source-serif-pro-latin.woff2) format('woff2');
} unicode-range: U+0000-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
/* latin */
@font-face {
font-family: 'Source Serif Pro';
font-style: normal;
font-weight: 400;
font-display: swap;
src: url(https://nunosempere.com/.resources/source-serif-pro-latin.woff2) format('woff2');
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
} }
/* Body */ /* Body */
@ -23,7 +15,6 @@ body {
display: flex; display: flex;
flex-wrap: wrap; flex-wrap: wrap;
font-family: serif; font-family: serif;
/* font-family: 'Source Serif Pro', serif; */
font-size: 1.5em; font-size: 1.5em;
background-color: #fcfcfc; background-color: #fcfcfc;
color:#333; color:#333;
@ -32,11 +23,6 @@ body {
/* header */ /* header */
header { header {
flex-basis: 100%; flex-basis: 100%;
flex-shrink: 0;
background-color: transparent;
clear: both;
padding: 0em;
margin: 0;
border-bottom: 2px solid #eee; border-bottom: 2px solid #eee;
} }
@ -46,21 +32,15 @@ header h1 {
} }
header a { header a {
/*
color: inherit;
*/
text-decoration: none; text-decoration: none;
color: #333; color: #333;
/*
* color: #005386;
*/
} }
header h1 span { header h1 span {
margin-left: 0em; margin-left: 0em;
/* font-size: 70%; */
color: #555; color: #555;
/* /*
font-size: 70%;
font-style: italic; font-style: italic;
*/ */
} }
@ -71,17 +51,18 @@ header nav {
justify-content: space-between; justify-content: space-between;
} }
body>nav { nav {
display: flex;
flex-basis: 20%;
max-width: 20%;
min-width: 20%;
float: left; float: left;
margin: 0 1px 0 0; margin: 0 1px 0 0;
border-right: 2px solid #eee; border-right: 2px solid #eee;
width: 350px; /* width: 350px; */
} }
nav a{ nav a{
/*
color: inherit;
*/
text-decoration: none; text-decoration: none;
color: #005386; color: #005386;
} }
@ -90,13 +71,6 @@ nav a:hover {
background-color: #ddd; background-color: #ddd;
} }
nav {
display: flex;
flex-basis: 20%;
max-width: 20%;
min-width: 20%;
}
nav ul { nav ul {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
@ -118,21 +92,21 @@ nav li a {
/* Other sections */ /* Other sections */
article{ article{
padding: 0.3em 0 0 0;
flex-basis: 70%; flex-basis: 70%;
max-width: 70%; max-width: 70%;
min-width: 70%; min-width: 70%;
padding-left: 1em; padding-left: 1em;
color: #333; color: #333;
/* padding: 0.3em 0 0 0; */
} }
footer { footer {
display: block; /* display: block; */
flex-grow: 1; flex-grow: 1;
flex-basis: 100%; flex-basis: 100%;
flex-shrink: 0; flex-shrink: 0;
justify-content: space-between; justify-content: space-between;
padding: 1em 0em 1em 1em; padding: 0.1em 0em 1em 1em;
border-top: 2px solid #eee border-top: 2px solid #eee
} }
@ -163,16 +137,10 @@ img {
} }
.img-frontpage-center { .img-frontpage-center {
display: block; width: 40%;
margin-left: auto;
margin-right: auto;
width: 500px;
} }
.img-medium-center { .img-medium-center {
display: block;
margin-left: auto;
margin-right: auto;
width: 50%; width: 50%;
} }
@ -211,20 +179,6 @@ code {
padding: 0.5em; padding: 0.5em;
} }
/*
pre, code {
display: block;
overflow-x:auto;
tab-width: 2;
line-height:1.7;
padding: 0.5em 0.5em 0.5em 0.5em;
margin-top: 1em;
margin-bottom: 1em;
margin: 2em;
max-width: 1100px !important;
background: #F0F0F0;
}*/
/* Lists */ /* Lists */
/* this aligns the sitemap */ /* this aligns the sitemap */
@ -276,10 +230,7 @@ th {
margin-left: 0; margin-left: 0;
} }
.img-frontpage-center { .img-frontpage-center {
display: block; width: 28%; /* 40% * 70%, so that the relative size stays the same*/
margin-left: auto;
margin-right: auto;
width: 300px;
} }
} }