Web/style/style.css
Ell c273165944
All checks were successful
/ web (push) Successful in 31s
various improvements
- use flex for the footer
- remove the seasonal banner
- make the cookie notif floating
2024-08-14 13:09:09 +02:00

280 lines
4.1 KiB
CSS

html {
scroll-padding-top: 136px;
position: relative;
}
body {
font-family: "Roboto", sans-serif;
background-color: #e1e1e1;
display: flex;
flex-direction: column;
min-height: 100vh;
}
code {
font-family: "JetBrains Mono", monospace;
font-variant-ligatures: none;
}
h1, h2, h3, h4, h5, h6, .nav-item {
font-family: "Roboto Slab", serif;
}
.main {
margin-top: 66px;
margin-bottom: 40px;
flex: 1;
}
.list-display {
max-width: 850px;
display: block;
margin-top: 40px;
margin-left: auto;
margin-right: auto;
padding: 50px 60px;
background-color: white;
}
.project {
margin-top: 50px;
}
.jumbotron {
max-width: 850px;
margin: 40px auto 0;
background-color: white;
}
.project-image {
position: absolute;
right: -30px;
top: -30px;
width: 80px;
height: auto;
}
.project-status {
float: right;
margin-right: calc(60px - 1.25rem);
margin-left: 10px;
margin-bottom: 10px;
}
.blog-meta {
text-align: right;
float: right;
margin-left: 10px;
margin-bottom: 10px;
}
.social-button {
width: 175px;
margin: 10px;
line-height: 40px;
}
.social-image {
width: 40px;
height: 40px;
float: left;
}
#social-list {
margin-bottom: 20px;
}
#social-list {
text-align: center;
}
.blog-cat-button {
padding: 0;
margin-right: 15px;
}
#blog-archive-button {
display: block;
position: relative;
margin-top: 20px;
margin-left: auto;
margin-right: 0;
padding: 0;
}
#blog-archive {
display: none;
}
.title-button:link,
.title-button:visited {
color: black;
text-decoration: none;
}
.title-button:hover,
.title-button:active {
color: rgb(73, 73, 73);
text-decoration: none;
}
.blog-entry {
margin-top: 20px;
}
.blog-discuss {
margin-top: 15px;
}
.navbar {
margin-left: auto;
margin-right: auto;
max-width: 1000px;
}
.footer {
margin-left: auto;
margin-right: auto;
width: 100%;
max-width: 1000px;
background-color: #f8f9fa;
padding: 0.5em 15px;
display: flex;
flex-direction: row;
}
.footer-section {
margin-top: 0.5em;
margin-bottom: 0.5em;
flex: 1;
align-self: center;
}
.card-link {
margin-left: 0 !important;
margin-right: 10px;
margin-bottom: 10px;
}
#discord-widget {
display: block;
margin: auto;
}
.discord-landing {
display: block;
margin-top: 10px;
width: 100%;
text-align: center;
font-style: italic;
}
.blog-isolated {
position: relative;
}
.blog-isolated-status {
bottom: 0 !important;
right: 0 !important;
}
.reading-mode {
position: absolute;
right: 20px;
top: 15px;
}
blockquote {
margin-left: 1em;
margin-right: 2em;
padding-left: 0.5em;
border-left: 4px solid rgba(0, 0, 0, 0.2);
}
hr {
border-top: 2px solid rgba(0, 0, 0, 0.2);
}
.highlight {
border-radius: 10px;
}
pre.highlight {
padding: 15px;
}
.support-entry {
margin-top: 20px;
}
.post-content img {
width: 100%;
height: auto;
}
.footnotes::before {
content: "";
display: block;
margin-top: 1rem;
margin-bottom: 1rem;
border-top: 2px solid rgba(0, 0, 0, 0.2);
}
#cookieinfo {
position: fixed;
top: 86px;
left: 0;
right: 0;
max-width: 650px;
margin-left: auto;
margin-right: auto;
z-index: 500;
}
@media (max-width: 768px) {
.container {
max-width: none;
}
.list-display,
.jumbotron {
width: auto;
padding-left: 20px;
padding-right: 20px;
}
.reading-mode {
position: relative;
right: auto;
top: auto;
}
}
@media (max-width: 510px) {
.social-button {
width: fit-content;
overflow: hidden;
text-indent: -99999px;
margin: 5px;
}
.project-image {
right: -18px;
top: -18px;
width: 50px;
}
.project-status {
float: right;
margin-right: calc(35px - 1.25rem);
}
.footer {
flex-direction: column;
}
.footer-section {
width: 100%;
}
}