X-Git-Url: https://git.r.bdr.sh/rbdr/r.bdr.sh/blobdiff_plain/20d294a5a0cb7d777007c75f07b4e72832509068..5a8ad39fd1ee45c264511d707d407f4babaae95d:/css/style.css?ds=inline diff --git a/css/style.css b/css/style.css index 5b3cfcf..33950a8 100644 --- a/css/style.css +++ b/css/style.css @@ -5,13 +5,13 @@ html { scroll-behavior: smooth } body { font-size: 1em; - font: max(1em, -apple-system-body); font-family: "Hoefler Text", "Times New Roman", serif; font-feature-settings: "liga" 1, "dlig" 1, "pnum" 1; line-height: 1.6; letter-spacing: 0.02em; padding: 2em; } +@supports (-webkit-touch-callout: none) { body { font: -apple-system-body } } aside { clear: both; padding: 2em 0; @@ -20,6 +20,7 @@ aside { background-color: #e8e8e8; color: #00f; } +.h2 { margin-top: 1em } @media only screen and (min-width: 500px) { body { overflow-x: auto } .columned { @@ -79,36 +80,35 @@ h3 { margin-top: 1em } -a { color: #00f } -.h2:nth-of-type(1) { - h2, h3, a { color: #00f } -} -.h2:nth-of-type(n+2):nth-of-type(-n+4) { - h2, h3, a { color: #EE0700 } -} +h2, h3, a { color: #00f } +[data-title="/index.html"] { + .h2:nth-of-type(n+2):nth-of-type(-n+4) { + h2, h3, a { color: #EE0700 } + } -.h2:nth-of-type(n+5):nth-of-type(-n+6) { - h2, h3, a { color: #398557 } -} + .h2:nth-of-type(n+5):nth-of-type(-n+6) { + h2, h3, a { color: #398557 } + } -.h2:nth-of-type(n+7):nth-of-type(-n+9) { - h2, h3, a { color: #6A5ACD } -} + .h2:nth-of-type(n+7):nth-of-type(-n+9) { + h2, h3, a { color: #6A5ACD } + } -.h2:nth-of-type(10) { - h2, h3, a { color: #A76905 } -} + .h2:nth-of-type(10) { + h2, h3, a { color: #A76905 } + } -.h2:nth-of-type(11) { - h2, h3, a { color: #1D76DB } -} + .h2:nth-of-type(11) { + h2, h3, a { color: #1D76DB } + } -.h2:nth-of-type(n+12):nth-of-type(-n+16) { - h2, h3, a { color: #D505C6 } -} + .h2:nth-of-type(n+12):nth-of-type(-n+16) { + h2, h3, a { color: #D505C6 } + } -.h2:nth-of-type(17) { - h2, h3, a { color: #6A788A } + .h2:nth-of-type(17) { + h2, h3, a { color: #6A788A } + } } .h2 a { @@ -156,11 +156,8 @@ canvas { background-color: #fff; border: 1px solid #fff; } - .h2:nth-of-type(1) { - h2, h3, a { color: #5dc1fd } - } - a { color: #5dc1fd } - .h2:nth-of-type(n+7):nth-of-type(-n+9) { + h2, h3, a { color: #5dc1fd } + [data-title="/index.html"] .h2:nth-of-type(n+7):nth-of-type(-n+9) { h2, h3, a { color: #675CFB } } pre { background-color: #222 }