main-site

Main site for niliara.net
git clone git://niliara.net/main-site
Log | Files | Refs

style.css (5101B)


      1 :root {
      2     --bg-dark: #000;
      3     --bg: #222;
      4     --bg-base: #333;
      5     --fg: #ccc;
      6     --link: #fff;
      7     --border: #777;
      8     --comment: #999;
      9     --ascii-b: #444;
     10 
     11     scrollbar-color: var(--link) var(--bg-dark);
     12     height: 100%;
     13 }
     14 
     15 .index {
     16     align-content: center;
     17 }
     18 
     19 body {
     20     background-color: var(--bg);
     21     color: var(--fg);
     22     padding: 1em;
     23 
     24     line-height: 1.6;
     25     font-size: 1.2em;
     26     padding: 0 10px;
     27     padding: 0em 10px;
     28     margin: 0 auto;
     29     margin-bottom: 8em;
     30 }
     31 
     32 @media only screen and (min-width: 600px) {
     33 .article {
     34     display: grid;
     35     grid-template-columns: 16em auto;
     36 }
     37 
     38 body {
     39     min-width: 1000px;
     40     width: 80%;
     41 }
     42 }
     43 
     44 @media only screen and (max-width: 600px) {
     45 body {
     46     min-width: 0;
     47     margin: 0;
     48 }
     49 
     50 main {
     51     padding: 0 !important;
     52     width: 100%;
     53 }
     54 
     55 .article main {
     56     padding-top: 0;
     57 }
     58 
     59 .sidenav h1 {
     60     font-size: 1.6em;
     61 }
     62 }
     63 
     64 h1 {
     65     margin: 0;
     66 }
     67 
     68 .sidenav {
     69     padding: 0;
     70     padding-top: 1em;
     71 }
     72 
     73 .sidenav ul {
     74     list-style-type: none;
     75     padding-left: 1em;
     76 }
     77 
     78 .sidenav li:hover {
     79     color: var(--link);
     80 }
     81 
     82 .sidenav a {
     83     display: block;
     84     padding: 0 0.6em;
     85 }
     86 
     87 .sidenav a.active {
     88     background-color: var(--bg-dark) !important;
     89 }
     90 
     91 .sidenav a:hover {
     92     background-color: var(--bg);
     93 }
     94 
     95 .sidenav p {
     96     margin: 0;
     97 }
     98 
     99 
    100 main {
    101     max-width: 1000px;
    102     padding: 3em;
    103 }
    104 
    105 main.index {
    106     margin: 0 auto;
    107 }
    108 
    109 h1.title {
    110     text-align: center;
    111     font-size: 3em;
    112     margin: 0.2em;
    113     margin-bottom: 0em;
    114 }
    115 
    116 div.icons {
    117     display: flex;
    118     justify-content: center;
    119     height: 1.6em;
    120     margin-bottom: 1.6em;
    121     gap: 1em;
    122 }
    123 
    124 div.icons svg {
    125     height: 100%;
    126     fill: var(--fg);
    127 }
    128 
    129 div.icons svg:hover {
    130     fill: var(--link);
    131 }
    132 
    133 pre a {
    134     color: inherit;
    135 }
    136 
    137 a {
    138     color: var(--link);
    139     font-weight: bold;
    140 }
    141 
    142 nav a {
    143     font-weight: normal;
    144 }
    145 
    146 nav h3 a {
    147     font-weight: bold;
    148 }
    149 
    150 p {
    151     text-align: justify;
    152     /*
    153     font-family: 'Brush Script MT', cursive;
    154     font-family: 'Times New Roman';
    155     text-align: center;
    156     */
    157 }
    158 
    159 a:not(:hover) {
    160     text-decoration: none;
    161 }
    162 
    163 .links {
    164     /* margin: 0 auto; */
    165     max-width: 400px;
    166     border: 2px solid var(--border);
    167 }
    168 
    169 .links:hover {
    170     border: 2px solid var(--comment);
    171 }
    172 
    173 .links ul {
    174     list-style: none;
    175     padding: 0em;
    176     margin: 0 auto;
    177 }
    178 
    179 .links li a {
    180     display: flex;
    181     justify-content: space-between;
    182     line-height: 2em;
    183     padding: 0 1em;
    184     gap: 1em;
    185 }
    186 
    187 .links li:hover {
    188     background-color: var(--bg-dark);
    189 }
    190 
    191 .links li h3 {
    192     text-align: left;
    193 }
    194 
    195 .links li span {
    196     text-align: right;
    197 }
    198 
    199 a.alt {
    200     text-decoration: none;
    201     text-align: center;
    202 
    203     justify-content: space-between;
    204 }
    205 
    206 a.alt h3 {
    207     font-size: 1em;
    208     color: var(--fg);
    209     font-weight: normal;
    210     text-align: left;
    211     margin: 0;
    212     display: inline;
    213 }
    214 
    215 a.alt:hover h3 {
    216     color: var(--link);
    217     text-decoration: underline;
    218 }
    219 
    220 a.alt:focus h3 {
    221     color: var(--link);
    222 }
    223 
    224 a.alt span {
    225     color: var(--comment);
    226 }
    227 
    228 span.ascii-border {
    229     color: var(--ascii-b);
    230     -webkit-user-select: none; /* Safari */
    231     -ms-user-select: none; /* IE 10 and IE 11 */
    232     user-select: none; /* Standard syntax */
    233 }
    234 
    235 .about {
    236     border: 1px var(--border) dashed;
    237     padding: 1em;
    238     margin: 1em 0;
    239 }
    240 
    241 pre:not(.nocode) {
    242     margin: 1em 0;
    243     padding: 0.8em;
    244     margin-bottom: 2em;
    245     border: 1px var(--border) solid;
    246 
    247     overflow: scroll;
    248 }
    249 
    250 pre, code {
    251     font-family: Iosevka !important;
    252 }
    253 
    254 div.ascii {
    255     width: 7em;
    256     margin: 0 auto;
    257 }
    258 
    259 div.ascii pre {
    260     width: 5.4em;
    261     margin: 0 auto;
    262 }
    263 
    264 div.ascii a {
    265     display: block;
    266     margin: 0 auto;
    267     text-align: center;
    268     margin-left:3.2em;
    269 }
    270 
    271 nav {
    272     display: flex;
    273     flex-wrap: wrap;
    274 
    275     gap: 1.2em;
    276 }
    277 
    278 nav.center {
    279     justify-content: center;
    280 }
    281 
    282 nav.center a {
    283     align-content: center;
    284 }
    285 
    286 div {
    287     margin: 0;
    288 }
    289 
    290 div.index {
    291     display: flex;
    292     flex-wrap: wrap;
    293     justify-content: center;
    294     gap: 10vw;
    295 }
    296 
    297 div.index div {
    298     display: inline-block;
    299     margin-bottom: 1em;
    300 }
    301 
    302 div.index h3 {
    303     margin: 0;
    304 }
    305 
    306 div.index ul {
    307     margin: 0.1em 0;
    308 }
    309 
    310 td {
    311     padding-right: 1em;
    312 }
    313 
    314 @font-face {
    315     font-family: Hasklig;
    316     src: url(Hasklig-Regular.ttf);
    317 }
    318 
    319 @font-face {
    320     font-family: Iosevka;
    321     src: url(/Iosevka-Regular.woff2);
    322 }
    323 
    324 
    325 .presentation {
    326     display: grid;
    327     grid-template-columns: 25% 75%;
    328     width: 100%;
    329     margin-bottom: 2em;
    330 }
    331 
    332 .presentation .ascii {
    333     width: 80%;
    334 }
    335 
    336 .presentation .ascii pre {
    337     display: block;
    338     float: right;
    339 }
    340 
    341 .projects {
    342     display: flex;
    343     flex-wrap: wrap;
    344     justify-content: space-between;
    345     gap: 1em;
    346 }
    347 
    348 .projects div {
    349     width: calc(50% - 2.5em);
    350     padding: 0 1em;
    351     background-color: var(--bg-dark);
    352 }
    353 
    354 .projects div h4 {
    355     margin-bottom: 0;
    356 }
    357 
    358 .projects div p {
    359     margin-top: 0.4em;
    360     margin-bottom: 1em;
    361 }
    362 
    363 .minititle {
    364     margin: 0;
    365 }
    366 
    367 img.banner {
    368     width: 80%;
    369     max-width: 800px;
    370     margin: 3em auto;
    371     display: block;
    372 }
    373 
    374 .tree {
    375     background-color: var(--bg-base);
    376     border: solid 2px var(--border);
    377     margin: 2em 0;
    378     padding: 1em;
    379     width: 100%;
    380 }
    381 
    382 .footer {
    383     color: var(--comment);
    384 }