webdog/site/sass/index.scss

213 lines
2.7 KiB
SCSS
Raw Permalink Normal View History

2023-11-13 12:41:37 -08:00
@import "./themes/pinkle.scss";
2021-08-17 09:59:34 -07:00
body {
font-family: sans-serif;
margin: 0;
2021-08-19 14:26:26 -07:00
background-color: var(--bg-color);
color: var(--text-color);
height: 100vh;
2024-10-29 11:12:36 -07:00
display: flex;
flex-direction: column;
2021-08-17 09:59:34 -07:00
}
2021-08-19 12:52:42 -07:00
header.main-header {
display: block;
padding: 4px;
2021-08-19 14:26:26 -07:00
background-color: var(--accent-color);
color: var(--accent-text-color);
2021-10-15 12:28:16 -07:00
display: flex;
gap: 4px;
a {
color: inherit;
}
.spacer {
margin-left: auto;
}
2021-08-19 12:52:42 -07:00
}
a {
text-decoration: none;
color: var(--link-color);
2021-08-19 12:52:42 -07:00
2021-08-19 13:43:45 -07:00
&:hover,
&:focus {
text-decoration: underline;
}
2021-08-19 12:52:42 -07:00
}
2023-11-13 18:14:40 -08:00
#content {
display: flex;
flex-direction: column;
align-items: center;
2023-11-13 18:14:40 -08:00
main.page {
$width: 8px;
$max-width: 700px;
margin: 0 $width $width $width;
width: calc(100% - $width * 2);
max-width: $max-width;
2023-11-13 18:14:40 -08:00
}
.index-info {
margin: 8px;
}
2021-08-19 12:52:42 -07:00
}
2022-10-03 00:46:59 -07:00
2024-10-29 11:12:36 -07:00
hr {
2024-11-04 17:15:49 -08:00
width: calc(100% - 2px);
2024-10-29 11:12:36 -07:00
}
footer#footer {
margin: 8px;
}
2022-10-03 00:46:59 -07:00
abbr {
cursor: help;
}
2022-12-14 21:39:19 -08:00
2023-06-09 21:55:04 -07:00
.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;
}
2023-06-09 21:55:04 -07:00
}
}
.blog-post {
2024-07-08 22:52:10 -07:00
margin-top: 16px;
2023-06-09 21:55:04 -07:00
margin-left: auto;
margin-right: auto;
max-width: max(1000px, 40%);
.title,
.tags-title {
margin: 0;
}
2024-10-23 20:03:06 -07:00
.timestamp {
display: block;
margin-bottom: 2px;
}
2023-06-09 21:55:04 -07:00
.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;
}
2024-07-08 22:52:10 -07:00
.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);
}
}
2023-06-09 21:55:04 -07:00
}
}
2024-06-25 16:31:26 -07:00
.docs-links {
margin-top: 8px;
margin-bottom: -8px;
}
2024-07-08 22:52:10 -07:00
.float-left {
float: left;
}
.float-right {
float: right;
}
2024-10-29 11:12:36 -07:00
.flex-spacer {
flex-grow: 1;
}
.wd-codeblock {
position: relative;
2025-01-15 01:20:54 -08:00
tab-size: 2;
.copy {
display: none;
2024-11-08 20:18:39 -08:00
opacity: 0;
z-index: 1;
position: absolute;
top: 0;
right: 0;
2024-11-08 20:18:39 -08:00
transition: opacity linear 0.1s;
&:focus {
transition: none;
opacity: 1;
}
}
&:hover .copy,
&:focus .copy {
opacity: 1;
}
& > pre {
padding: 8px;
overflow: auto;
}
}