2024-10-17 13:59:25 +02:00
|
|
|
//.language-yaml {
|
|
|
|
pre {
|
2024-12-14 23:03:19 +01:00
|
|
|
display: flex; /* Enables flexbox */
|
|
|
|
align-items: center; /* Vertically centers the content */
|
|
|
|
justify-content: space-between; /* Allows space for the copy button on the right */
|
|
|
|
max-width: 100%;
|
2024-10-14 01:15:41 +02:00
|
|
|
overflow-x: auto;
|
2024-12-14 23:03:19 +01:00
|
|
|
overflow-y: auto;
|
|
|
|
min-height: 3rem; /* Maintains a consistent height */
|
|
|
|
padding: 0.5rem;
|
|
|
|
margin: 0.5rem 0;
|
2024-10-14 16:10:17 +02:00
|
|
|
border-radius: 5px;
|
2024-12-14 23:03:19 +01:00
|
|
|
white-space: pre; /* Keeps code formatting */
|
|
|
|
box-sizing: border-box; /* Includes padding in width calculation */
|
|
|
|
}
|
|
|
|
|
|
|
|
code {
|
|
|
|
display: inline-block;
|
|
|
|
word-break: break-word; /* Prevents long words from breaking the layout */
|
|
|
|
white-space: pre-wrap; /* Allows wrapping of long strings */
|
2024-10-14 01:15:41 +02:00
|
|
|
}
|
2023-08-29 10:08:14 +02:00
|
|
|
|
2024-02-23 03:06:08 +01:00
|
|
|
.project-wrapper {
|
2024-10-14 01:15:41 +02:00
|
|
|
max-width: 900px;
|
|
|
|
margin: 0 auto;
|
|
|
|
padding: 20px;
|
|
|
|
|
|
|
|
h1 {
|
|
|
|
margin-top: 2.5rem;
|
|
|
|
margin-bottom: 1rem;
|
|
|
|
}
|
|
|
|
|
|
|
|
h2 {
|
|
|
|
margin-top: 1.5rem;
|
|
|
|
margin-bottom: 1rem;
|
|
|
|
}
|
|
|
|
|
|
|
|
h3, h4, h5, h6, p {
|
|
|
|
margin-top: 1rem;
|
|
|
|
margin-bottom: 1rem;
|
|
|
|
}
|
|
|
|
|
|
|
|
p {
|
2024-10-14 19:24:42 +02:00
|
|
|
text-align: left;
|
2024-10-14 01:15:41 +02:00
|
|
|
}
|
2023-08-29 10:08:14 +02:00
|
|
|
}
|
2024-10-14 01:15:41 +02:00
|
|
|
|
2024-10-14 16:52:45 +02:00
|
|
|
.link-back {
|
|
|
|
margin: 2rem 0;
|
|
|
|
}
|
|
|
|
|
2024-10-15 11:11:08 +02:00
|
|
|
.copy-code-wrapper {
|
|
|
|
position: relative;
|
|
|
|
}
|
|
|
|
|
|
|
|
.copy-code {
|
|
|
|
position: absolute;
|
|
|
|
top: .5rem;
|
|
|
|
right: .5rem;
|
|
|
|
cursor: pointer;
|
|
|
|
background-color: #1b1f26;
|
|
|
|
padding: .3rem ;
|
|
|
|
border-radius: 5px;
|
|
|
|
}
|
|
|
|
|
2024-10-14 01:15:41 +02:00
|
|
|
@media (max-width: 768px) {
|
|
|
|
.project-wrapper {
|
|
|
|
max-width: 100%;
|
2024-10-14 16:10:17 +02:00
|
|
|
padding: 1rem;
|
2024-10-14 01:15:41 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@media (max-width: 480px) {
|
|
|
|
.project-wrapper {
|
|
|
|
padding: 5px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|