diff options
| author | Charles <sircharlesaze@gmail.com> | 2020-07-25 19:19:51 +0200 |
|---|---|---|
| committer | Charles <sircharlesaze@gmail.com> | 2020-07-25 19:19:51 +0200 |
| commit | 64e235f7cbfc389375b6ce42b5ef30a3c21e91d3 (patch) | |
| tree | a09af0a0ef949eff8804878912424ec9234d3d84 /style.css | |
| parent | 4ddc0c0c382c0e12c5d7a900eaa739660c80ed77 (diff) | |
| download | cacharle.xyz-64e235f7cbfc389375b6ce42b5ef30a3c21e91d3.tar.gz cacharle.xyz-64e235f7cbfc389375b6ce42b5ef30a3c21e91d3.tar.bz2 cacharle.xyz-64e235f7cbfc389375b6ce42b5ef30a3c21e91d3.zip | |
Added a style sheet that's prettier
Diffstat (limited to 'style.css')
| -rw-r--r-- | style.css | 176 |
1 files changed, 159 insertions, 17 deletions
@@ -1,29 +1,171 @@ -@font-face { - font-family: "Roboto"; - src: url("font/Roboto-Regular.ttf"); +/*****************************************************************************/ +/* Credit: https://github.com/markdowncss/retro +/*****************************************************************************/ + +pre, code { + font-family: Menlo, Monaco, "Courier New", monospace; } -body { - font-family: "Roboto"; - background-color: #212121; - color: #F5F5F5; +pre { + padding: .5rem; + line-height: 1.25; + overflow-x: scroll; } -a { - color: #1E88E5; - text-decoration: none; +@media print { + *, + *:before, + *:after { + background: transparent !important; + color: #000 !important; + box-shadow: none !important; + text-shadow: none !important; + } + + a, a:visited { + text-decoration: underline; + } + + /* a[href]:after { */ + /* content: " (" attr(href) ")"; */ + /* } */ + /* */ + /* abbr[title]:after { */ + /* content: " (" attr(title) ")"; */ + /* } */ + /* */ + /* a[href^="#"]:after, */ + /* a[href^="javascript:"]:after { */ + /* content: ""; */ + /* } */ + + pre, blockquote { + border: 1px solid #999; + page-break-inside: avoid; + } + + thead { + display: table-header-group; + } + + tr, img { + page-break-inside: avoid; + } + + img { + max-width: 100% !important; + } + + p, + h2, + h3 { + orphans: 3; + widows: 3; + } + + h2, + h3 { + page-break-after: avoid; + } } -td, th { - padding: 2px; +a, a:visited { + color: #01ff70; } -div#page-wrapper { - margin-left: 30px; - margin-right: 30px; +a:hover, a:focus, a:active { + color: #2ecc40; +} + +html { + font-size: 10px; +} + +@media screen and (min-width: 32rem) and (max-width: 48rem) { + html { + font-size: 13px; + } +} + +@media screen and (min-width: 48rem) { + html { + font-size: 14px; + } +} + +body { + line-height: 1.85; +} + +p { + font-size: 1rem; + margin-bottom: 1.3rem; +} + +h1 h2, h3, h4 { + margin: 1.414rem 0 .5rem; + font-weight: inherit; + line-height: 1.42; } h1 { - text-align: center; - text-decoration: underline; + margin-top: 0; + font-size: 2.5rem; +} + +h2 { + font-size: 2.1rem; +} + +h3 { + font-size: 1.8rem; +} + +h4 { + font-size: 1.6rem; +} + +h5 { + font-size: 1.4rem; +} + +h6 { + font-size: 1.2rem; +} + +small { + font-size: .707em; +} + +/* https://github.com/mrmrs/fluidity */ + +img, canvas, iframe, video, svg, select, textarea { + max-width: 100%; +} + +html, body { + background-color: #222; + min-height: 100%; +} + +html { + font-size: 16px; +} + +body { + color: #fafafa; + font-family: "Courier New"; + line-height: 1.45; + margin: 6rem auto 1rem; + max-width: 48rem; + padding: .25rem; +} + +pre { + background-color: #333; +} + +blockquote { + border-left: 3px solid #01ff70; + padding-left: 1rem; } |
