meta: Big update
- Update design - Add new logo - All posts in a single category - New draft: Selbst Hosting
This commit is contained in:
parent
fa8cf1f9cd
commit
bc23423206
33 changed files with 355 additions and 240 deletions
|
|
@ -1,164 +1,152 @@
|
|||
:root {
|
||||
font-size: calc(1rem + 0.25vw);
|
||||
--red: oklch(65% 0.25 30);
|
||||
--blue1: oklch(50% 0.1 230);
|
||||
--blue2: oklch(40% 0.1 230);
|
||||
--light-gray: oklch(95% 0 0);
|
||||
--white1: oklch(100% 0 0);
|
||||
--text1: oklch(20% 0 0);
|
||||
--text2: oklch(50% 0 0);
|
||||
--text3: oklch(70% 0 0);
|
||||
--code-bg: #faf3eb;
|
||||
}
|
||||
color-scheme: light dark;
|
||||
|
||||
code {
|
||||
background: var(--code-bg);
|
||||
border-radius: 0.3em;
|
||||
padding: 0.1em 0.2em;
|
||||
font-size: 0.9em;
|
||||
}
|
||||
|
||||
.highlight {
|
||||
background: var(--code-bg);
|
||||
border-radius: 0.3rem;
|
||||
padding: 0.5em 0.5em;
|
||||
margin: 1rem 0;
|
||||
overflow: auto;
|
||||
|
||||
& code {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
& pre {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
--red: #df3f65;
|
||||
--orange: #e59235;
|
||||
--yellow: #ebc343;
|
||||
--green: #7dcc50;
|
||||
--blue: #4ea1e6;
|
||||
--violet: #b771d0;
|
||||
--brown: #967e5e;
|
||||
--border: #d7d7d5;
|
||||
--serif: Athelas, Garamond, "EB Garamond", serif;
|
||||
--sans-serif: "Helvetica Neue", Helvetica, Arial, sans-serif;
|
||||
}
|
||||
|
||||
body {
|
||||
color: var(--text);
|
||||
background: var(--background);
|
||||
font-family: "EB Garamond", Constantia, "Lucida Bright", Lucidabright,
|
||||
"Lucida Serif", Lucida, "DejaVu Serif", "Bitstream Vera Serif",
|
||||
"Liberation Serif", Athelas, Georgia, serif;
|
||||
font-family: var(--sans-serif);
|
||||
font-variant-numeric: oldstyle-nums;
|
||||
line-height: 1.5;
|
||||
margin: auto;
|
||||
padding: 1rem;
|
||||
max-width: 80ch;
|
||||
color: light-dark(black, white);
|
||||
background-color: light-dark(white, black);
|
||||
}
|
||||
|
||||
main {
|
||||
margin: 1rem auto;
|
||||
max-width: 70ch;
|
||||
font-weight: normal;
|
||||
}
|
||||
|
||||
header {
|
||||
border-bottom: 1px solid var(--text3);
|
||||
margin-bottom: 1rem;
|
||||
|
||||
& nav {
|
||||
& ul {
|
||||
font-size: 1.25rem;
|
||||
list-style: none;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
padding: 0;
|
||||
|
||||
.active {
|
||||
text-decoration: underline;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
p {
|
||||
padding: 0;
|
||||
margin-top: 0;
|
||||
text-align: justify;
|
||||
text-justify: inter-word;
|
||||
}
|
||||
|
||||
article > p:nth-of-type(2)::first-letter {
|
||||
font-size: 3rem;
|
||||
float: left;
|
||||
line-height: 2.9rem;
|
||||
padding-right: 0.2rem;
|
||||
}
|
||||
|
||||
a {
|
||||
color: var(--red);
|
||||
color: var(--blue);
|
||||
text-decoration: none;
|
||||
|
||||
&:hover {
|
||||
text-decoration-color: var(--blue);
|
||||
text-decoration: underline;
|
||||
}
|
||||
}
|
||||
|
||||
article {
|
||||
line-height: 1.5;
|
||||
text-align: justify;
|
||||
text-justify: inter-word;
|
||||
& img {
|
||||
width: 100%;
|
||||
}
|
||||
> p:nth-of-type(2)::first-letter {
|
||||
font-size: 3.3rem;
|
||||
float: left;
|
||||
line-height: 3rem;
|
||||
padding-right: 0.2rem;
|
||||
}
|
||||
& p {
|
||||
font-family: var(--serif);
|
||||
}
|
||||
& ul {
|
||||
font-family: var(--serif);
|
||||
}
|
||||
}
|
||||
|
||||
h1 {
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
font-size: 2rem;
|
||||
font-weight: normal;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
h2 {
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
font-size: 1.75rem;
|
||||
font-weight: normal;
|
||||
}
|
||||
|
||||
h3 {
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
font-size: 1.5rem;
|
||||
font-weight: normal;
|
||||
}
|
||||
|
||||
time {
|
||||
font-size: 1rem;
|
||||
float: right;
|
||||
color: var(--blue2);
|
||||
float: top right;
|
||||
}
|
||||
|
||||
table {
|
||||
border-collapse: collapse;
|
||||
width: 90%;
|
||||
margin: 5%;
|
||||
|
||||
& th {
|
||||
text-align: left;
|
||||
border-bottom: 1px solid var(--text1);
|
||||
border-bottom: 1px solid;
|
||||
}
|
||||
}
|
||||
|
||||
img {
|
||||
width: 100%;
|
||||
.title {
|
||||
color: light-dark(black, white);
|
||||
font-family: var(--serif);
|
||||
font-weight: bold;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
font-size: 1.5rem;
|
||||
& svg {
|
||||
height: 1.5rem;
|
||||
margin: 0.5rem;
|
||||
vertical-align: middle;
|
||||
fill: light-dark(black, white);
|
||||
}
|
||||
}
|
||||
|
||||
header {
|
||||
border-bottom: 1px solid var(--border);
|
||||
font-size: 1.25rem;
|
||||
font-family: var(--serif);
|
||||
font-weight: bold;
|
||||
& nav {
|
||||
& ul {
|
||||
display: flex;
|
||||
justify-content: space-evenly;
|
||||
list-style: none;
|
||||
padding: 0 0.5rem;
|
||||
|
||||
& a {
|
||||
color: light-dark(black, white);
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.active {
|
||||
text-decoration: underline;
|
||||
text-decoration-color: var(--blue);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
footer {
|
||||
border-top: 1px solid var(--text3);
|
||||
margin-top: 1rem;
|
||||
|
||||
& p {
|
||||
font-family: var(--serif);
|
||||
border-top: 1px solid var(--border);
|
||||
& ul {
|
||||
display: flex;
|
||||
justify-content: space-around;
|
||||
list-style: none;
|
||||
font-size: 0.75rem;
|
||||
padding: 1rem;
|
||||
text-align: center;
|
||||
color: var(--text2);
|
||||
|
||||
& a {
|
||||
color: var(--text2);
|
||||
text-decoration: none;
|
||||
&:hover {
|
||||
text-decoration: none;
|
||||
}
|
||||
}
|
||||
& svg {
|
||||
height: 0.75rem;
|
||||
width: 0.75rem;
|
||||
padding: 0.1rem;
|
||||
vertical-align: middle;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.list {
|
||||
color: var(--text1);
|
||||
|
||||
color: light-dark(black, white);
|
||||
& h2 {
|
||||
margin-top: 2rem;
|
||||
margin-top: 1.25rem;
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
.lead {
|
||||
margin: 0;
|
||||
font-size: 1rem;
|
||||
|
|
@ -174,22 +162,34 @@ footer {
|
|||
justify-content: space-between;
|
||||
padding: 0 1rem;
|
||||
font-size: 0.75rem;
|
||||
|
||||
& li {
|
||||
padding: 0rem 0.3rem;
|
||||
border: 1px solid var(--text1);
|
||||
border-radius: 0.3rem;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.title {
|
||||
font-size: 2rem;
|
||||
margin-bottom: 0.5rem;
|
||||
}
|
||||
|
||||
.lead {
|
||||
font-family: var(--sans-serif);
|
||||
text-align: center;
|
||||
font-size: 1.5rem;
|
||||
margin-bottom: 1rem;
|
||||
}
|
||||
|
||||
code {
|
||||
border-radius: 0.3em;
|
||||
padding: 0.1em 0.2em;
|
||||
font-size: 0.9em;
|
||||
}
|
||||
|
||||
.highlight {
|
||||
background: light-dark(var(--border), gray);
|
||||
border-radius: 0.3rem;
|
||||
padding: 0.5em 0.5em;
|
||||
margin: 1rem 0;
|
||||
overflow: auto;
|
||||
& code {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
& pre {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue