maggioni.xyz/_site/css/main.css

250 lines
6.7 KiB
CSS

/* vim: set ts=2 sw=2 et tw=80: */
/* Reset some basic elements */
body, h1, h2, h3, h4, h5, h6, p, blockquote, pre, hr, dl, dd, ol, ul, figure { margin: 0; padding: 0; }
/* Basic styling */
body { font-weight: 200; font-size: 18px; line-height: 1.5; font-family: monospace; color: #333; background-color: #FAFAFA; }
/* Images */
img { max-width: 100%; vertical-align: middle; }
/* Lists */
ul, ol { margin-left: 30px; }
/* Disable margin for lists */
li > ul, li > ol { margin-bottom: 0; }
/* Headings */
h1, h2, h3, h4, h5, h6 { font-weight: 200; }
/* Links */
a { color: #08E; text-decoration: none; }
a:visited { color: #C0B; }
a:hover { text-decoration: underline; }
/** Blockquotes */
blockquote { color: #828282; border-left: 4px solid #e8e8e8; font-size: 18px; letter-spacing: -1px; font-style: italic; margin: 1rem 0; padding: 1em; }
blockquote > :last-child { margin-bottom: 0; }
/* do not put padding around the table with line numbers and the code */
code table { margin: -8px -12px; }
pre table.rouge-table td { padding: 0; }
pre { padding: 8px 12px; overflow-x: auto; }
pre > code { border: 0; padding-right: 0; padding-left: 0; }
/* pull a nice monospace font from the internets, plus set font and background */
pre, code { font-size: 0.95rem; background: #EEE; }
/* Disable borders between line numbers and code when line numbers are shown */
code .rouge-table, code .rouge-table td { border: 0; border-radius: 0; }
code .rouge-table { border-spacing: 0; border-collapse: collapse; }
/** Basic layout rules */
/* Padding for the main content in the page */
.container { padding: .4rem 2em; }
/* Header sizes */
/** General style for the content inside main */
/* separate article metadata to the article itself with some space */
article .post-header { margin-bottom: 3rem; }
/* put some space at the end of each article and at the end of each section */
main article, main section { margin-bottom: 2rem; }
/* justify text */
p { text-align: justify; }
/* put a space between paragraphs and images */
p, figure { margin-top: 1.2rem; }
/* the first paragraph has no space at the top (since that is provided by either main or h? */
p:first-child { margin-top: 0; }
/* make strongly emphasized elements REALLY STRONG */
strong { background: #FAA; }
/* vim: set ts=2 sw=2 et tw=80: */
body { background-color: #FAFAFA; font-family: 'IBM Plex Mono', monospace; display: flex; min-height: 100vh; flex-direction: column; }
main { flex: 1 0 auto; }
.navbar-list .navbar-item { text-transform: uppercase; font-weight: 400; margin: 1em; }
ul.navbar-list { margin-bottom: 2rem; }
.header { border-bottom: 1px solid black; }
.header .head.navbar { display: flex; }
.header .head.navbar h1 { flex: 2; font-size: 1.5rem; margin-bottom: .25rem; display: inline; margin: 0; }
.header .head.navbar .links { flex: 1 fit-content; white-space: nowrap; line-height: 2.3rem; text-align: right; height: 100%; padding-left: 1rem; padding-right: 1rem; border-left: 1px solid #555; }
.header .head.navbar .links a { font-weight: bold; text-transform: uppercase; padding: 0 .5rem; }
@media (max-width: 700px) { .navbar-list .navbar-item { width: calc(100% - 2em); } }
ul.post-list, ul.navbar-list { list-style-type: none; margin-left: 0; margin-right: 0; }
ul.post-list li { padding-top: 2rem; }
ul.post-list li:first-child { padding-top: 0; }
.header, footer { background-color: #EEE; }
footer { padding-top: 1rem; }
footer .author { text-align: center; text-transform: uppercase; }
.container { padding-top: 1rem; padding-bottom: 1rem; }
.icons { text-align: center; }
a.icon { display: inline-table; background-color: rgba(255, 255, 255, 0.5); border-radius: 1.75em; width: 3.5em; height: 3.5em; text-align: center; line-height: 3.5em; margin: .5em; color: white; cursor: pointer; }
/* Disable underlining in icon links inside the footer */
a.icon:link, a.icon:hover, a.icon:visited, a.icon:active { text-decoration: none; }
/* Light up footer icon links when hovering */
a.icon:hover { background-color: #bbbbbb; }
a.icon i.fa { font-size: 2em; display: table-cell; vertical-align: middle; }
/* Utility class for centering block elements */
.block-center { display: block; margin: auto; }
/** Syntax highlighting styles */
.highlight { background: #EEE; border: 3px solid #DDD; }
.highlighter-rouge .highlight { background: #eef; }
.highlight td.code > pre { background: #222; }
.highlight pre.lineno { background: #111; text-align: right; }
.highlight .c { color: #777; font-style: italic; }
.highlight .err { color: #a61717; background-color: #e3d2d2; }
.highlight .k { font-weight: bold; }
.highlight .o { font-weight: bold; }
.highlight .cm { color: #998; font-style: italic; }
.highlight .cp { color: #999; font-weight: bold; }
.highlight .c1 { color: #998; font-style: italic; }
.highlight .cs { color: #999; font-weight: bold; font-style: italic; }
.highlight .gd { color: #000; background-color: #fdd; }
.highlight .gd .x { color: #000; background-color: #faa; }
.highlight .ge { font-style: italic; }
.highlight .gr { color: #a00; }
.highlight .gh { color: #999; }
.highlight .gi { color: #000; background-color: #dfd; }
.highlight .gi .x { color: #000; background-color: #afa; }
.highlight .go { color: #888; }
.highlight .gp { color: #555; }
.highlight .gs { font-weight: bold; }
.highlight .gu { color: #aaa; }
.highlight .gt { color: #a00; }
.highlight .kc { font-weight: bold; }
.highlight .kd { font-weight: bold; }
.highlight .kp { font-weight: bold; }
.highlight .kr { font-weight: bold; }
.highlight .kt { color: #458; font-weight: bold; }
.highlight .m { color: #099; }
.highlight .s { color: #d14; }
.highlight .na { color: #008080; }
.highlight .nb { color: #00a6d3; }
.highlight .nc { color: #458; font-weight: bold; }
.highlight .no { color: #008080; }
.highlight .ni { color: #800080; }
.highlight .ne { color: #900; font-weight: bold; }
.highlight .nf { color: #900; font-weight: bold; }
.highlight .nn { color: #555; }
.highlight .nt { color: #0000d0; }
.highlight .nv { color: #0BB; }
.highlight .ow { font-weight: bold; }
.highlight .w { color: #bbb; }
.highlight .mf { color: #099; }
.highlight .mh { color: #099; }
.highlight .mi { color: #099; }
.highlight .mo { color: #099; }
.highlight .sb { color: #f54; }
.highlight .sc { color: #f54; }
.highlight .sd { color: #f54; }
.highlight .s2 { color: #f54; }
.highlight .se { color: #f54; }
.highlight .sh { color: #f54; }
.highlight .si { color: #f54; }
.highlight .sx { color: #f54; }
.highlight .sr { color: #009926; }
.highlight .s1 { color: #f54; }
.highlight .ss { color: #990073; }
.highlight .bp { color: #999; }
.highlight .vc { color: #008080; }
.highlight .vg { color: #008080; }
.highlight .vi { color: #008080; }
.highlight .il { color: #099; }
/*# sourceMappingURL=main.css.map */