79 lines
1.4 KiB
SCSS
79 lines
1.4 KiB
SCSS
//.language-yaml {
|
|
pre {
|
|
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%;
|
|
overflow-x: auto;
|
|
overflow-y: auto;
|
|
min-height: 3rem; /* Maintains a consistent height */
|
|
padding: 0.5rem;
|
|
margin: 0.5rem 0;
|
|
border-radius: 5px;
|
|
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 */
|
|
}
|
|
|
|
.project-wrapper {
|
|
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 {
|
|
text-align: left;
|
|
}
|
|
}
|
|
|
|
.link-back {
|
|
margin: 2rem 0;
|
|
}
|
|
|
|
.copy-code-wrapper {
|
|
position: relative;
|
|
}
|
|
|
|
.copy-code {
|
|
position: absolute;
|
|
top: .5rem;
|
|
right: .5rem;
|
|
cursor: pointer;
|
|
background-color: #1b1f26;
|
|
padding: .3rem ;
|
|
border-radius: 5px;
|
|
}
|
|
|
|
@media (max-width: 768px) {
|
|
.project-wrapper {
|
|
max-width: 100%;
|
|
padding: 1rem;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 480px) {
|
|
.project-wrapper {
|
|
padding: 5px;
|
|
}
|
|
}
|
|
|