12 Commits

Author SHA1 Message Date
Susam Pal
d506432394 Use green and amber to color code and output 2022-11-06 10:02:40 +00:00
Susam Pal
54f1f6d2b4 Set background for dark color theme to #111 2021-09-11 10:38:04 +05:30
Susam Pal
7988e4d738 Increase top margin of heading elements to 1.25em 2021-09-11 10:36:10 +05:30
Susam Pal
3dfad23d76 Make link color scheme closer to browser defaults 2021-04-20 15:48:13 +05:30
Susam Pal
f23895e4b9 Use unitless line-height for heading elements
Prior to this fix, the line-height of heading elements is set to 1.2em.
This leads to an issue when the font-size of heading anchor element is
reduced as shown in the following example:

    <!DOCTYPE html>
    <html lang="en">
    <head>
      <title>Test</title>
      <meta charset="UTF-8">
      <meta name="viewport" content="width=device-width, intial-scale=1">
      <link rel="stylesheet" href="sp.css">
      <style>
        h2 {background: lightblue}
        div {background: orange; display: inline-block}
        p {background: lightgreen}
        .b a:empty {font-size: small}
      </style>
    </head>
    <body>
      <div class="a"><h2>Foo<a href="#"></a></h2><p>Bar</p></div>
      <div class="b"><h2>Foo<a href="#"></a></h2><p>Bar</p></div>
    </body>
    </html>

The smaller font-size for the anchor element within class "b" leads to a
larger overall size for the heading element as explained at
<https://stackoverflow.com/a/21575694>. Set the line-height of heading
elements to the unitless number 1.2 to resolve this issue.
2020-12-31 21:21:24 +05:30
Susam Pal
ff15568888 Add light borders for table cells 2020-12-29 17:28:29 +05:30
Susam Pal
9db9513bab Do not reduce code font size artificially 2020-12-10 00:13:17 +05:30
Susam Pal
133547da2d Add support for heading anchor links 2020-12-10 00:13:00 +05:30
Susam Pal
30aa912966 Use :hover/:active style for :focus too 2020-12-06 18:16:39 +05:30
Susam Pal
bf90ecc788 Add support for dark color theme 2020-12-06 14:35:52 +05:30
Susam Pal
93b1253798 Add left and right padding for body 2020-11-30 19:40:14 +05:30
Susam Pal
b7119247ee Add sp.css 2020-11-29 23:06:44 +05:30