new-web

No description
git clone git://niliara.net/new-web
Log | Files | Refs

style.css (1872B)


      1 :root {
      2     --bg: #040a02;
      3     --fg: #aad0c1;
      4     --highlight: #ccf0e9;
      5 }
      6 
      7 :root, body {
      8     min-height: 100%;
      9     width: 100%;
     10 
     11     margin: 0;
     12     padding: 0;
     13 
     14     background-color: var(--bg);
     15 }
     16 
     17 body {
     18     font-size: calc(8px + 1vmin);
     19     font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
     20     line-height: 1.5;
     21 
     22     width: 90%;
     23     max-width: 1000px;
     24     margin: 0 auto;
     25 
     26     color: var(--fg);
     27 }
     28 
     29 main {
     30     padding: 2em;
     31 }
     32 
     33 @media (max-width: 600px) {
     34     body {
     35         font-size: calc(10px + 1vmin);
     36     }
     37 
     38     main {
     39         padding: 1em;
     40     }
     41 }
     42 
     43 header {
     44     margin-bottom: 3em;
     45 }
     46 
     47 nav {
     48     display: flex;
     49     gap: 1em;
     50 }
     51 
     52 h1, h2, h3, h4, a, pre {
     53     color: var(--highlight);
     54 }
     55 
     56 a {
     57     color: inherit;
     58     padding-top: 0.14em;
     59     font-weight: bold;
     60 }
     61 
     62 a:hover {
     63     text-decoration: none;
     64     color: var(--bg);
     65     background-color: var(--fg);
     66 }
     67 
     68 nav a {
     69 }
     70 
     71 button {
     72 }
     73 
     74 
     75 .title {
     76     display: inline;
     77     padding: 0.2em;
     78 
     79     color: var(--bg);
     80     background-color: var(--highlight);
     81 
     82     position: relative;
     83     margin-right: 100px;
     84 }
     85 
     86 .title a {
     87     text-decoration: none !important;
     88     padding: none !important;
     89     color: inherit !important;
     90     background-color: transparent !important;
     91 }
     92 
     93 .title::after {
     94     content: "";
     95     position: absolute;
     96     left: 100%;
     97     top: 0;
     98     height: 100%;
     99     width: 100px;
    100 
    101     background: repeating-linear-gradient(
    102         to right,
    103         #fff 0,
    104         #fff 1px,
    105         transparent 1px,
    106         transparent 8px
    107     );
    108 }
    109 
    110 
    111 ul {
    112     list-style-type: none;
    113     padding-left: 1.5em;
    114     margin: 0;
    115 }
    116 
    117 ul li:before {
    118     content: "";
    119     border-color: transparent var(--fg);
    120     border-style: solid;
    121     border-width: 0.35em 0 0.35em 0.45em;
    122     display: block;
    123 
    124     height: 0;
    125     width: 0;
    126     left: -1em;
    127     top: 0.9em;
    128     position: relative;
    129 }