Mercurial > web
view css/style.css @ 72:ff98f97603ca
*: giant redesign
I decided to go from a largely carrd-inspired design to something more
deserving of the title "website". I also removed much of the old, very
crusty HTML and CSS that I had written almost 2 years ago now O_o
author | Paper <mrpapersonic@gmail.com> |
---|---|
date | Fri, 15 Dec 2023 18:56:52 -0500 |
parents | 2e645b936727 |
children | c8ea71d9d102 |
line wrap: on
line source
/* body-wide font choice and stuff */ body { color: white; font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; } .header { text-align: center; justify-content: center; } .title { text-align: center; display: inline-block; /* dumb little hack to get this to render properly on mobile */ padding: 0 0.75em; } .avatar { display: inline-block; border: 4px solid black; width: 200px; height: auto; } .content { background-color: rgba(0, 0, 0, 0.5); /* essentially equivalent to `margin: auto;` * except it has a minimum value of 1em to make it * look nice on mobile */ margin-inline: max(1em, 50% - 46.88em/2); margin-top: 1em; padding: 1em 1.5em; } /* generic drop shadows I heavily use these in... everything, * so having them as their own classes is pretty nice :) */ .drop-shadow-text { text-shadow: 0.125em 0.125em 0.125em rgba(0, 0, 0, 0.5); } .drop-shadow-box { box-shadow: 0.125em 0.125em 0.625em rgba(0, 0, 0, 0.5); }