/* Fonts */ /* Non-default fonts added significant time to first initial load. * Code can still be found in git commit c34f6241 */ /* @import url("https://cdn.jsdelivr.net/gh/aaaakshat/cm-web-fonts@latest/fonts.css"); body { font-family: "Computer Modern Serif", serif; } */ @import url("https://fonts.googleapis.com/css2?family=Roboto+Mono:ital,wght@0,100..700;1,100..700&display=swap"); /* Body */ body { display: flex; flex-wrap: wrap; /* Web safe fonts: font-family: "Georgia", 'serif'; font-family: "Garamond", 'serif'; font-family: 'Times New Roman'; More fonts: font-family: 'Source Serif Pro'; font-family: "Computer Modern Serif", serif; font-family: 'charter'; font-family: "Georgia", 'serif'; font-family: "Georgia", 'serif'; */ font-family: "Roboto Mono", 'monospace'; font-size: 25px; background-color: #fcfcfc; color: #333; } * { /* incorporates the padding and borders into the object size*/ box-sizing: border-box; } /* header */ header { flex-basis: 100%; border-bottom: 2px solid #eee; } header h1 { margin: 0.5em 0 0.5em 0.7em; color:#333; } header a { text-decoration: none; color: #333; } header h1 span { margin-left: 0em; color: #555; /* font-size: 70%; font-style: italic; */ } header nav { /* Not used by me, but used by suckless.org */ display: flex; justify-content: space-between; } /* Header */ h1 { line-height: 110%; } /* Navigation bar */ nav { display: flex; flex-basis: 20%; max-width: 20%; min-width: 20%; float: left; margin: 0 1px 0 0; border-right: 2px solid #eee; /* width: 350px; */ } nav a{ text-decoration: none; /* color: #005386; */ color: #333; } nav a:hover { background-color: #ddd; } nav ul { display: flex; flex-direction: column; list-style-type: none; list-style-position: outside; padding-left: 0; } nav li ul { padding-left: 0.6em; } nav li a { display: block; margin: 0; padding: 0.3em 2em 0.8ex 1em; } /* article */ article{ flex-basis: 70%; max-width: 70%; min-width: 70%; padding-left: 1em; color: #333; line-height: 140%; /* padding: 0.3em 0 0 0; */ } /* footer */ footer { display: none; /* display: block; */ /* flex-grow: 1; flex-basis: 100%; flex-shrink: 0; justify-content: space-between; padding: 0.1em 0em 1em 1em; border-top: 2px solid #eee */ } /* links */ a { /* color: #005386; */ color: #333; } /* Images and figures */ figure figcaption { display: block; margin-left: auto; margin-right: auto; } figcaption { text-align: center; font-size: 16px; } .img-frontpage-center, .img-medium-center, img { display: block; margin-left: auto; margin-right: auto; } img { width: 80%; } .img-frontpage-center { width: 40%; } .img-medium-center { width: 50%; } /* Block quotes */ blockquote{ width:60%; margin: 5px auto; /* color: #555555; */ color: #333; padding: 1.2em 30px 1.2em 75px; /* border-left: 8px solid #005386 ; */ border-left: 8px solid #333; line-height:1.3; position: relative; background: #F0F0F0; } blockquote::before{ font-family:Arial; content: "\201C"; /* color:#005386; */ color: #333; font-size:4em; position: absolute; left: 10px; top:-10px; } /* Code bloocks */ pre { background-color: #eeeeee; border: 2px solid; overflow-x: auto; } pre, code { display: block; padding: 0.5em; } /* Lists */ /* this aligns the sitemap */ ul { margin-left: 15px; } li{ list-style-position: outside; /* list-style-type: '- ' /* ndash, a*/ } /* Tables */ /* old style: table { border-collapse: collapse; margin-left: auto; margin-right: auto; margin-top: 1em; margin-bottom: 1em; } td, th { border: 1px solid var(--border); text-align: left; padding: 0.5rem; } th { background: var(--accent-bg); font-weight: bold; } */ table { /* border: 3px solid #005386; */ border: 3px solid #333; border-collapse: collapse; table-layout: fixed; text-align: left; width: 100%; table-layout: auto; } table thead { /* position: sticky; top: 0; */ } table tbody tr:nth-child(even) { /* background: #E9F1F4; */ background: #ededed; } table th { /* background: #005386; */ background: #333; color: #fcfcfc; font-weight: bold; } table th, table td { padding: 1em 1em 1em 1em; /* border: 3px solid #005386; */ } /* Newsletter stuff */ .subscribe-button { /* background: #0055d4; */ background: #333; padding: 15px 30px; border-radius: 3px; border: 0; cursor: pointer; text-decoration: none; color: #ffff; display: inline-block; min-width: 150px; font-size: 20px; text-align: center; } .subscribe-input { padding: 10px 15px; border: 1px solid #888; border-radius: 3px; width: 33%; box-shadow: 2px 2px 0 #f3f3f3; border: 1px solid #ddd; font-size: 20px; } input:focus { border-color: #0055d4; } input:focus::placeholder { color: transparent; } /* Figcaptions for markdown * Per */ img + em { display: block; text-align: center; font-size: 1em; } /* Isso comments */ /* You can see the general comments style: */ .isso-textarea, #isso-postbox-author, #isso-postbox-email, #isso-postbox-website, .isso-post-action > input { font-size: 20px; } .isso-textarea { height: 15em; resize: vertical !important; } /* Set image-frontpage-center size across devices */ @media screen and (max-width: 1000px) { body { display: block; font-size: 25px; line-height: 140%; } .img-frontpage-center { width: 60%; /* 700px * 0.6 = 420px */ } } @media screen and (min-width: 1000px) and (max-width: 1500px) { .img-frontpage-center { width: 420px } } @media screen and (min-width: 1500px) { .img-frontpage-center { width: 40%; /* 1500px * 0.7 (article) * 0.4 = 420px */ } } /* General media stuff */ @media screen and (max-width: 1500px) { body { display: block; } .hidden-mobile { display: none; } article { flex-basis: 100%; max-width: 100%; min-width: 100%; padding: 5px; } header h1 { margin-left: 0; } } @media screen and (min-width: 1500px) { .hide-not-mobile { display: none; } }