Mercurial > web
view css/style.css @ 81:eb3bbc61bc17
Use flexbox for lots more things
this should make stuff actually work on safari. HOPEFULLY.
author | Paper <paper@paper.us.eu.org> |
---|---|
date | Mon, 20 May 2024 04:00:58 -0400 |
parents | 815c0da68384 |
children | b98a84a0afb2 |
line wrap: on
line source
/* remove stupid default margin */ html, body { margin: 0px; padding: 0px; } /* body-wide font choice */ body { color: white; font-family: sans-serif; } /* makes links look good site-wide; not a fan of * making them purple after being visited, so disable * it here */ a.prettylink:link, a.prettylink:visited { color: #3395ff; text-decoration: none; } a.prettylink:hover { text-decoration: underline; } a.prettylink:active { color: hotpink; } /* navbar */ .navbar { display: flex; background-color: rgba(0, 0, 0, 0.6); color: white; padding: 5px; } .project-quip, .navbar-right { margin-left: auto; } .navbar-item { color: gray; } .navbar-item-active { color: white; } .navbar-item, .navbar-item-active { text-decoration: none; margin-left: 5px; margin-right: 5px; } .navbar-item:hover, .navbar-item-active:hover { text-decoration: underline; color: white; } /* generic drop shadows that I heavily use 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); } /* fuck off */ h1, h2 { margin: 0; } /* creates a box to store text or whatever in */ .content { background-color: rgba(0, 0, 0, 0.6); margin-inline: max(1em, 50% - 46.88em/2); /* essentially equivalent to `margin: auto;` * except it has a minimum value of 1em to make it * look nice on mobile */ padding: 1em; } /* headers */ .header { display: flex; flex-wrap: wrap; /* wrap text, useful on mobile */ align-items: center; text-align: center; justify-content: center; } /* projects/index.html */ .project-title-container { display: flex; } .project-title { font-weight: bold; } .project-separator { margin: 1px 0px; } .index-socials-list, /* woah! */ .project-downloads { margin: 0px; list-style: square; } /* index.html */ .title { display: inline-block; vertical-align: middle; /* 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; } .project-quip, .blog-footer, .blog-date-right { font-size: smaller; } .align-right, .blog-date-right { float: inline-end; }