new-web

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

main.css (2042B)


      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(12px + 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     font-size: 1em;
     54     color: var(--highlight);
     55 }
     56 
     57 a {
     58     color: inherit;
     59     padding-top: 0.14em;
     60     font-weight: bold;
     61 }
     62 
     63 a:hover {
     64     text-decoration: none;
     65     color: var(--bg);
     66     background-color: var(--fg);
     67 }
     68 
     69 nav a {
     70 }
     71 
     72 button {
     73 }
     74 
     75 
     76 .title {
     77     font-size: 1.5em;
     78     font-color: var(--highlight);
     79     display: inline;
     80     padding: 0.2em;
     81 
     82     color: var(--bg);
     83     background-color: var(--highlight);
     84 
     85     position: relative;
     86     margin-right: 100px;
     87 }
     88 
     89 .title a {
     90     text-decoration: none !important;
     91     padding: none !important;
     92     color: inherit !important;
     93     background-color: transparent !important;
     94 }
     95 
     96 .title::after {
     97     content: "";
     98     position: absolute;
     99     left: 100%;
    100     top: 0;
    101     height: 100%;
    102     width: 100px;
    103 
    104     background: repeating-linear-gradient(
    105         to right,
    106         var(--highlight) 0,
    107         var(--highlight) 1px,
    108         transparent 1px,
    109         transparent 8px
    110     );
    111 }
    112 
    113 
    114 ul {
    115     list-style-type: none;
    116     padding-left: 1.5em;
    117     margin: 0;
    118 }
    119 
    120 ul li:before {
    121     content: "";
    122     border-color: var(--fg);
    123     border-style: solid;
    124     border-width: 0.35em 0 0.35em 0.45em;
    125     display: block;
    126 
    127     height: 0;
    128     width: 0;
    129     left: -1em;
    130     top: 0.9em;
    131     position: relative;
    132 }
    133 
    134 code {
    135     background-color: var(--bg);
    136     display: block;
    137     margin: 2em 0;
    138 }