alemauri.eu/src/styles.css

167 lines
2.1 KiB
CSS
Raw Normal View History

/* GLOBAL */
:root {
--bg: #282828;
--bg-code: #1d2021;
--bg-alt: #32302f;
--fg: #ebdbb2;
--fg-code: #fbf1c7;
--fg-alt: #d5c4a1;
--fg-link: #d79921;
2021-06-08 12:08:13 +02:00
font-family: sans-serif;
}
body {
background-color: var(--bg);
color: var(--fg);
2021-06-11 18:08:08 +02:00
max-width: 920px;
2020-10-28 20:34:55 +01:00
margin: 0 auto;
2021-06-11 18:08:08 +02:00
padding: 1rem;
}
html {
/* background-color: #696969;*/
scroll-behavior: smooth;
2020-08-08 17:03:29 +02:00
}
/* TABLES */
2020-08-08 17:03:29 +02:00
table, th, td {
2020-10-28 20:34:55 +01:00
border-collapse: collapse;
2020-08-08 17:03:29 +02:00
margin-left: auto;
margin-right: auto;
text-align: left;
width: 70%;
}
th, td {
padding-top: 10px;
padding-bottom: 10px;
padding-left: 20px;
padding-right: 20px;
}
th {
border-bottom: 1px solid var(--fg);
2020-08-08 17:03:29 +02:00
}
tr:nth-child(odd) {
background-color: var(--bg-alt);
2020-08-08 17:03:29 +02:00
}
/* CODE */
pre {
background-color: var(--bg-code);
color: var(--fg-code);
2020-10-28 20:34:55 +01:00
font-size: medium;
font-family: monospace;
tab-size: 8;
2020-10-28 20:34:55 +01:00
padding: 4px;
}
/*
:not(pre) > code {
background-color: #f9f4d7;
color: #504945;
}
*/
/* LISTS */
2020-08-14 00:47:35 +02:00
li {
2020-10-28 20:34:55 +01:00
font-size: medium;
2020-08-14 00:47:35 +02:00
}
2021-06-08 12:08:13 +02:00
ol, ul {
margin-left: 8%;
padding-left: 0px;
}
::marker {
font-weight: bold;
}
/* PARAGRAPHS */
2020-08-08 17:03:29 +02:00
p {
2020-10-28 20:34:55 +01:00
font-size: medium;
2020-08-14 00:47:35 +02:00
padding-left: 20px;
padding-right: 20px;
2020-08-08 17:03:29 +02:00
}
/* HEADINGS */
h1, h3, h5 {
text-decoration: underline;
2020-08-08 17:03:29 +02:00
}
h2, h4, h6 {
background-color: var(--bg-alt);
2020-08-08 17:03:29 +02:00
}
2020-10-28 20:34:55 +01:00
h1 { font-size: xx-large; }
h2 { font-size: x-large; }
h3 { font-size: large; }
h4, h5, h6 {
font-size: medium;
font-weight: bold;
}
/* LINKS */
a {
color: var(--fg-link);
2020-08-14 00:47:35 +02:00
}
/* FOOTER */
2020-08-08 17:03:29 +02:00
footer {
border: 1px solid var(--fg);
2020-08-08 17:03:29 +02:00
}
footer p {
2020-10-28 20:34:55 +01:00
font-size: x-small;
margin: 0;
2020-08-08 17:03:29 +02:00
padding: 10px;
}
2020-08-12 01:51:31 +02:00
/* HEADER */
2020-08-12 01:51:31 +02:00
#thumb {
border-radius: 50%;
bottom: 0;
2020-10-28 20:34:55 +01:00
height: auto;
2020-08-12 01:51:31 +02:00
left: 0;
margin: auto;
2020-10-28 20:34:55 +01:00
max-width: 80%;
max-height: 80%;
right: 0;
top: 0;
position: absolute;
width: auto;
2020-08-12 01:51:31 +02:00
}
#thumb-container {
float: left;
2020-10-28 20:34:55 +01:00
height: 80px;
2020-08-12 01:51:31 +02:00
padding-right: 40px;
2020-10-28 20:34:55 +01:00
position: relative;
width: 80px;
2020-08-12 01:51:31 +02:00
}
2021-03-29 13:27:48 +02:00
@media (max-width: 550px) {
#thumb-container {
display: none;
}
}
2020-08-12 01:51:31 +02:00
#links {
float: left;
overflow: vsible;
2020-08-12 01:51:31 +02:00
}
#links a {
2020-10-28 20:34:55 +01:00
font-weight: bold;
2020-08-12 01:51:31 +02:00
letter-spacing: normal;
padding-right: 10px;
}
.header {
2020-10-28 20:34:55 +01:00
border: 1px solid var(--fg);
font-size: medium;
2020-08-12 01:51:31 +02:00
height: 80px;
line-height: 80px;
2020-10-28 20:34:55 +01:00
text-align: left;
2021-03-29 13:27:48 +02:00
overflow: auto;
2020-08-12 01:51:31 +02:00
}