web

A collection of scripts used to generate this website
git clone https://erai.gay/code/web/
Log | Files | Refs | LICENSE

style.css (2471B)


      1 html {
      2   scrollbar-gutter: stable;
      3   margin: 0.5em 1em;
      4 }
      5 
      6 body {
      7   line-height: 1.4;
      8   color: #252525;
      9   font-family: sans-serif;
     10   margin: 0px auto;
     11   max-width: 45em;
     12 }
     13 
     14 h1, h2 {
     15   border-bottom: 1pt solid #888888;
     16 }
     17 
     18 .title {
     19   border-bottom: 1pt solid #888888;
     20   margin-top: 0.7em;
     21   margin-bottom: 0.7em;
     22   font-size: 2em;
     23   font-family: serif;
     24 }
     25 
     26 footer {
     27   border-top: 1pt solid #888888;
     28   margin: 1em 0px;
     29   padding-top: 1em;
     30 }
     31 
     32 h1, h2, h3, h4, h5, h6 {
     33   font-family: serif;
     34   font-weight: 300;
     35 }
     36 
     37 header {
     38   margin: 1em 0px;
     39   text-align: left;
     40 }
     41 
     42 header ul.links {
     43   display: flex;
     44   flex-wrap: wrap;
     45   padding: 0;
     46   margin: -.5em 0px;
     47 }
     48 
     49 header ul.links>li {
     50   flex: 1;
     51   list-style: none;
     52   text-align: center;
     53 }
     54 
     55 header ul.links>li a {
     56   color: #252525;
     57   display: block;
     58 }
     59 
     60 article {
     61   margin: 1em 0px;
     62   text-align: left;
     63 }
     64 
     65 a {
     66   color: #4070c0;
     67   text-decoration: none;
     68 }
     69 
     70 a:visited {
     71   color:#4007c0;
     72 }
     73 
     74 a:hover {
     75   color:#cc0f50;
     76   text-decoration: underline;
     77 }
     78 
     79 footer {
     80   clear: both;
     81   text-align: center;
     82 }
     83 
     84 pre {
     85   white-space: pre-wrap;
     86   font-family: monospace;
     87   background-color: #f4f4ff;
     88   color: #000000;
     89 }
     90 
     91 pre {
     92   padding: 1em;
     93   margin-left: 0em;
     94   overflow: auto;
     95   border-radius: 4pt;
     96 }
     97 
     98 th, td {
     99   text-align: center;
    100   padding: 0.25em;
    101   border: 1px solid #888888;
    102   vertical-align: center;
    103 }
    104 
    105 .l {
    106   text-align: left;
    107 }
    108 
    109 .r {
    110   text-align: right;
    111 }
    112 
    113 .c {
    114   text-align: center;
    115 }
    116 
    117 table {
    118   border-collapse: collapse;
    119   margin: 1em auto;
    120 }
    121 
    122 pre .prompt {
    123   user-select: none;
    124 }
    125 
    126 blockquote {
    127   border-left: #d0d0ff 4pt solid;
    128   padding: 4pt;
    129   margin: 1em 0px;
    130 }
    131 
    132 img {
    133   display: inline-block;
    134 }
    135 
    136 .pfp {
    137   display: inline-block;
    138   margin: 1em;
    139   width: 200px;
    140   height: 200px;
    141   overflow: hidden;
    142   border: 0px solid #000000;
    143   border-radius: 1em;
    144 }
    145 
    146 p {
    147   text-align: justify;
    148   line-height: 125%;
    149 }
    150 
    151 @media (max-width: 550px) {
    152   .row {
    153     display: block;
    154   }
    155 }
    156 
    157 @media (min-width: 550px) {
    158   .row {
    159     display: flex;
    160     flex-wrap: wrap;
    161   }
    162 }
    163 
    164 .col {
    165   flex: 1;
    166   align-self: center;
    167 }
    168 
    169 .pad {
    170   padding: 1em 2em;
    171 }
    172 
    173 .linkboard {
    174   margin: 0.75em 0px;
    175 }
    176 
    177 .nogrow {
    178   flex-grow: 0;
    179 }
    180 
    181 @media (prefers-color-scheme: dark) {
    182   body {
    183     background-color: #202020;
    184     color: #eeeeee;
    185   }
    186 
    187   code, pre {
    188     background-color: #1e1e33;
    189     color: #eeeeee;
    190   }
    191 
    192   header ul.links>li a {
    193     color: #eeeeee;
    194   }
    195 
    196   a {
    197     color: #8ea5cc;
    198   }
    199 
    200   a:visited {
    201     color: #8466cc;
    202   }
    203 
    204   th, td {
    205     border: 1px solid #888888;
    206   }
    207 }