Update design

This commit is contained in:
Chris Dill 2024-10-17 11:26:46 +01:00
parent 0cd35ad084
commit edd0f40e17
6 changed files with 81 additions and 69 deletions

View File

@ -6,7 +6,12 @@
<meta name="theme-color" content="#1f2124" /> <meta name="theme-color" content="#1f2124" />
<meta name="description" content="Software development team" /> <meta name="description" content="Software development team" />
<link rel="stylesheet" href="/css/styles.css" /> <link rel="stylesheet" href="/css/styles.css" />
<link rel="icon" type="image/png" href="/images/favicon.ico" /> <link
rel="icon"
type="image/png"
href="/images/favicon.png"
sizes="96x96"
/>
<link rel="preload" as="image" href="/images/bluenebula.webp" /> <link rel="preload" as="image" href="/images/bluenebula.webp" />
%sveltekit.head% %sveltekit.head%
</head> </head>

View File

@ -17,11 +17,6 @@
</header> </header>
<style> <style>
a {
font-size: 1rem;
text-align: center;
}
nav { nav {
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
@ -39,15 +34,19 @@
margin-top: 8px; margin-top: 8px;
margin-bottom: 8px; margin-bottom: 8px;
padding: 0; padding: 0;
gap: 20px;
} }
ul li a { a {
margin: 0;
border-bottom: 2px solid transparent;
color: var(--link-color);
text-decoration: none; text-decoration: none;
transition: color 0.1s linear; text-align: center;
padding: 4px 12px;
} }
ul li a:hover { a:hover {
border-bottom: 2px solid var(--line); border-bottom: 2px solid var(--link-color);
text-decoration: none;
} }
</style> </style>

View File

@ -13,7 +13,7 @@
footer { footer {
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
border-top: 2px solid var(--border); border-top: 2px solid var(--border-color);
color: var(--text); color: var(--text);
margin-top: 30px; margin-top: 30px;
margin-bottom: 30px; margin-bottom: 30px;

View File

@ -1,16 +1,16 @@
/* theming */
:root { :root {
--text: #ededed; --text: #ededed;
--background: #1f2124; --background: #1a1e22;
--primary: #133b6e;
--secondary: #3869b3;
--accent: #cc99ff;
--highlight: #cc99ff;
} }
:root { :root {
--headings: var(--text); --border-color: var(--accent);
--link: var(--highlight); --headings-color: var(--text);
--border: #b5b5b5; --link-color: var(--highlight);
--line: #ffffff;
--link: #cc99ff;
--link-hover: #ffffff;
} }
body { body {
@ -25,19 +25,9 @@ body {
margin: 0 auto; margin: 0 auto;
} }
h1,
h2,
h3,
h4,
h5 {
font-weight: 700;
}
html {
font-size: 100%;
} /* 16px */
html { html {
min-height: 100%;
scroll-behavior: smooth;
font-size: 100%; font-size: 100%;
} /* 16px */ } /* 16px */
@ -65,55 +55,52 @@ small {
font-size: 0.667rem; /* 10.72px */ font-size: 0.667rem; /* 10.72px */
} }
hr {
background-color: var(--line);
}
/* layout */
body {
background-color: var(--background);
line-height: 1.6;
}
h1, h1,
h2, h2,
h3, h3,
h4, h4,
h5 { h5,
color: var(--headings); h6 {
line-height: 1.2;
margin-top: 24px; margin-top: 24px;
margin-bottom: 8px; margin-bottom: 8px;
color: var(--headings-color);
color: var(--headings);
font-weight: bold;
line-height: 1.2; line-height: 1.2;
margin-top: 0; font-weight: 700;
margin-bottom: 0.5rem;
} }
header { p {
padding-top: 4px; margin-top: 8px;
padding-bottom: 4px;
} }
a { table {
text-decoration: none; margin-bottom: 1rem;
color: var(--link); width: 100%;
transition: color 0.1s linear; border: 0 solid var(--border-color);
border-collapse: collapse;
} }
a:hover { td,
color: var(--link-hover); th {
text-decoration: none; padding: 0.25rem 0.5rem;
border-color: inherit;
border-style: solid;
border-width: 1px;
}
th {
text-align: left;
}
thead th {
border-bottom-color: currentColor;
} }
.container { .container {
max-width: 800px;
width: 100%; width: 100%;
padding-right: 15px;
padding-left: 15px;
margin-right: auto; margin-right: auto;
margin-left: auto; margin-left: auto;
padding: 10px;
} }
@media (min-width: 576px) { @media (min-width: 576px) {
@ -140,18 +127,39 @@ a:hover {
} }
} }
.link { hr {
text-decoration: none; background-color: var(--border-color);
transition: color 0.1s linear;
padding: 4px 12px;
} }
.link:hover { blockquote {
border-bottom: 2px solid var(--line); border-left: 4px solid var(--border-color);
margin-left: 0px;
padding-left: 10px;
}
a {
border-bottom: 2px solid transparent;
color: var(--link-color);
text-decoration: none;
}
a:hover {
border-bottom: 2px solid var(--link-color);
text-decoration: none;
} }
main { main {
margin-top: 20px; color: var(--text);
font-size: 1rem;
}
main img {
max-width: 100%;
}
header {
padding-top: 4px;
padding-bottom: 4px;
} }
section { section {

Binary file not shown.

Before

Width:  |  Height:  |  Size: 15 KiB

BIN
static/images/favicon.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 243 KiB