mirror of
https://github.com/zyllian/webdog.git
synced 2025-01-18 03:32:21 -08:00
212 lines
2.7 KiB
SCSS
212 lines
2.7 KiB
SCSS
@import "./themes/pinkle.scss";
|
|
|
|
body {
|
|
font-family: sans-serif;
|
|
margin: 0;
|
|
background-color: var(--bg-color);
|
|
color: var(--text-color);
|
|
height: 100vh;
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
header.main-header {
|
|
display: block;
|
|
padding: 4px;
|
|
background-color: var(--accent-color);
|
|
color: var(--accent-text-color);
|
|
display: flex;
|
|
gap: 4px;
|
|
|
|
a {
|
|
color: inherit;
|
|
}
|
|
|
|
.spacer {
|
|
margin-left: auto;
|
|
}
|
|
}
|
|
|
|
a {
|
|
text-decoration: none;
|
|
color: var(--link-color);
|
|
|
|
&:hover,
|
|
&:focus {
|
|
text-decoration: underline;
|
|
}
|
|
}
|
|
|
|
#content {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
|
|
main.page {
|
|
$width: 8px;
|
|
$max-width: 700px;
|
|
|
|
margin: 0 $width $width $width;
|
|
width: calc(100% - $width * 2);
|
|
max-width: $max-width;
|
|
}
|
|
|
|
.index-info {
|
|
margin: 8px;
|
|
}
|
|
}
|
|
|
|
hr {
|
|
width: calc(100% - 2px);
|
|
}
|
|
|
|
footer#footer {
|
|
margin: 8px;
|
|
}
|
|
|
|
abbr {
|
|
cursor: help;
|
|
}
|
|
|
|
.blog-post-list {
|
|
.post {
|
|
p {
|
|
margin: 0;
|
|
}
|
|
|
|
.title {
|
|
font-size: 1.2rem;
|
|
}
|
|
|
|
.short-desc {
|
|
font-size: 0.9rem;
|
|
font-style: italic;
|
|
|
|
&:before {
|
|
content: "└ ";
|
|
}
|
|
}
|
|
|
|
.timestamp {
|
|
font-style: italic;
|
|
}
|
|
}
|
|
}
|
|
|
|
.blog-post {
|
|
margin-top: 16px;
|
|
margin-left: auto;
|
|
margin-right: auto;
|
|
max-width: max(1000px, 40%);
|
|
|
|
.title,
|
|
.tags-title {
|
|
margin: 0;
|
|
}
|
|
|
|
.timestamp {
|
|
display: block;
|
|
margin-bottom: 2px;
|
|
}
|
|
|
|
.header-image-wrapper {
|
|
color: var(--accent-text-color-neutral);
|
|
background-color: var(--accent-color-neutral);
|
|
font-style: italic;
|
|
font-size: 1.2rem;
|
|
margin-bottom: 8px;
|
|
|
|
.short-desc {
|
|
margin: 0;
|
|
padding: 8px;
|
|
}
|
|
|
|
.header-image {
|
|
width: 100%;
|
|
max-height: 60vh;
|
|
object-fit: cover;
|
|
object-position: 50% 50%;
|
|
}
|
|
}
|
|
|
|
.content {
|
|
text-indent: 1rem;
|
|
|
|
h1,
|
|
h2,
|
|
h3,
|
|
h4,
|
|
h5,
|
|
h6 {
|
|
text-indent: 0;
|
|
}
|
|
|
|
.image {
|
|
width: 100%;
|
|
padding: 8px;
|
|
background-color: var(--accent-color);
|
|
text-indent: 0;
|
|
box-sizing: border-box;
|
|
margin: 8px;
|
|
|
|
&.w50 {
|
|
width: 50%;
|
|
}
|
|
|
|
img {
|
|
width: 100%;
|
|
}
|
|
|
|
span {
|
|
color: var(--accent-text-color);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
.docs-links {
|
|
margin-top: 8px;
|
|
margin-bottom: -8px;
|
|
}
|
|
|
|
.float-left {
|
|
float: left;
|
|
}
|
|
|
|
.float-right {
|
|
float: right;
|
|
}
|
|
|
|
.flex-spacer {
|
|
flex-grow: 1;
|
|
}
|
|
|
|
.wd-codeblock {
|
|
position: relative;
|
|
tab-size: 2;
|
|
|
|
.copy {
|
|
display: none;
|
|
opacity: 0;
|
|
z-index: 1;
|
|
position: absolute;
|
|
top: 0;
|
|
right: 0;
|
|
transition: opacity linear 0.1s;
|
|
|
|
&:focus {
|
|
transition: none;
|
|
opacity: 1;
|
|
}
|
|
}
|
|
|
|
&:hover .copy,
|
|
&:focus .copy {
|
|
opacity: 1;
|
|
}
|
|
|
|
& > pre {
|
|
padding: 8px;
|
|
overflow: auto;
|
|
}
|
|
}
|