Lindenii Project Forge
Login

server

Vireo IdP server

Hi… I am well aware that this diff view is very suboptimal. It will be fixed when the refactored server comes along!

Commit info
ID
d9c1ec898869abba663511af36a6839586bca12a
Author
Author date
Mon, 26 Feb 2024 11:48:59 +0100
Committer
Committer date
Mon, 26 Feb 2024 11:48:59 +0100
Actions
Add dark theme

Co-authored-by: ~ckyb
Closes: https://todo.sr.ht/~emersion/sinwon/28
body {
	font-family: sans-serif;
	margin: 0;
	color: #444;
}
main, #nav-inner {
	padding: 0 5px;
	max-width: 800px;
	margin: 0 auto;
}
main {
	padding-bottom: 20px;
}

nav {
	border-bottom: 1px solid #eee;
}
nav h1 {
	margin: 0;
	padding: 10px 0;
	font-size: 1.2em;
}
nav h1 a {
	color: inherit;
	text-decoration: none;
}

h2 {
	font-size: 1.2em;
}

table {
	border-collapse: collapse;
}
td, th {
	border: 1px solid rgb(208, 210, 215);
	padding: 5px;
}

button {
	border: 1px solid rgb(208, 210, 215);
	border-radius: 4px;
	padding: 6px 12px;
	margin: 4px 0;
	color: #444;
	background-color: transparent;
	cursor: pointer;
}
button:hover {
	background-color: rgba(0, 0, 0, 0.02);
}
button[type="submit"]:not(.btn-regular):first-of-type {
	background-color: rgb(0, 128, 0);
	border-color: rgb(0, 128, 0);
	color: white;
}
button[type="submit"]::not(.btn-regular):first-of-type:hover {
	background-color: rgb(0, 150, 0);
	border-color: rgb(0, 150, 0);
}

input[type="text"], input[type="password"], input[type="url"], textarea {
	border: 1px solid rgb(208, 210, 215);
	border-radius: 4px;
	padding: 6px;
	margin: 4px 0;
	color: #444;
}
input[type="text"]:focus, input[type="password"]:focus, input[type="url"]:focus, textarea:focus {
	outline: none;
	border-color: rgb(0, 128, 0);
}

label {
	display: block;
	margin: 15px 0;
}
label input[type="text"], label input[type="password"], label input[type="url"] {
	display: block;
	width: 100%;
	max-width: 350px;
	box-sizing: border-box;
}
label:has(input[type="radio"]) {
	margin: 5px 0;
}
label textarea {
	display: block;
	width: 100%;
	resize: vertical;
}

main.narrow {
	max-width: 400px;
}
main.narrow input {
	max-width: 100%;
}

@media (prefers-color-scheme: dark) {
	body {
		background: #212529;
		color: #f8f9fa;
	}

	nav {
		border-color: rgba(255, 255, 2555, 0.02);
	}

	a {
		color: #809fff;
	}

	button {
		color: #f8f9fa;
	}
	button:hover {
		background-color: rgba(255, 255, 255, 0.02);
	}

	input[type="text"], input[type="password"], input[type="url"], textarea {
		background-color: rgba(255, 255, 255, 0.05);
		color: inherit;
	}
}