view css/style.css @ 92:a143c3991472

navigation: fix navbar implementation
author Paper <paper@paper.us.eu.org>
date Wed, 19 Jun 2024 04:54:19 -0400
parents 60f77a3de847
children caa6f0e136c8
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 {
	display: flex;

	background-color: rgba(0, 0, 0, 0.6);
	color: white;

	padding: 5px;

	justify-content: space-between;
}

.navbar-group {
	display: flex;
}

.project-quip {
	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;
}

/* this uglifies the HTML, but it was already fairly ugly to begin with */
.catchall {
	margin: 0 auto;
	padding: 1em 1em;
}

/* creates a box to store text or whatever in */
.content {
	background-color: rgba(0, 0, 0, 0.6);

	max-width: 750px;

	margin: 0 auto;
	padding: 1em 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;
	align-items: center;
	justify-content: center;
}

.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;
}

.project-quip {
	text-align: right;
}

.align-right,
.blog-date-right {
	float: inline-end;
}

.center-image {
	display: block;
	margin-left: auto;
	margin-right: auto;
	width: 100%;
	height: auto;
}

.plugs-list {
	display: flex;
	width: 100%;

	flex-wrap: wrap;
	justify-content: center;

	/* column-gap: 4px; */
	row-gap: 0.5em;
}

.plugs-list-item {
	display: block;

	width: 88px;
	height: 31px;

	opacity: 80%;
	image-rendering: pixelated;
}

.plugs-list-item:hover {
	opacity: 100%;
}

.code-block {
	overflow-x: scroll;
	background-color: rgba(0, 0, 0, 0.6);
	padding: 0.5em;
}