personal-site/themes/theme/templates/style.css

243 lines
2.7 KiB
CSS
Raw Normal View History

2020-06-03 04:26:52 +00:00
html {
overflow-y: scroll;
}
2020-05-08 00:01:50 +00:00
body {
text-rendering: optimizeLegibility;
font-family: serif;
2020-05-09 22:17:01 +00:00
}
a {
text-decoration: none;
outline: none;
2020-05-08 00:01:50 +00:00
}
.info h1 {
2021-07-23 13:11:13 +00:00
font: 1.1rem/1.0 sans-serif;
}
.index h3 {
2021-07-23 13:11:13 +00:00
font: 1.1rem/1.5 serif;
}
2021-04-28 08:49:34 +00:00
.source {
2021-07-23 13:11:13 +00:00
font: 0.9rem/1.5 serif;
2021-04-28 08:49:34 +00:00
}
pre {
2021-07-23 13:11:13 +00:00
font-size: 0.9rem;
line-height: 1.2;
padding: 1rem;
2021-04-09 05:01:11 +00:00
overflow-x: auto;
}
:not(pre)>code {
padding: 0 2px;
2021-07-23 13:11:13 +00:00
font-size: 0.8rem;
}
2020-05-08 00:01:50 +00:00
.container {
2020-05-09 22:17:01 +00:00
max-width: 56rem;
2021-04-09 01:11:55 +00:00
margin: 2rem auto 12rem auto;
}
2021-07-23 13:11:13 +00:00
.footer {
font: 0.9rem/1.5 serif;
2021-04-09 01:11:55 +00:00
text-align: center;
2020-05-08 00:01:50 +00:00
}
2020-05-09 22:17:01 +00:00
.toc {
float: right;
padding: 0.75rem;
padding-top: 0;
margin-left: 0.75rem;
}
.toc ul {
padding-left: 1.2rem;
margin: 0;
2020-05-09 22:17:01 +00:00
}
.toc li {
margin-top: 0.75rem;
}
.content p.metadata {
2021-07-23 13:11:13 +00:00
font: 0.9rem/1.0 serif;
font-style: italic;
}
.content div.summary p {
2020-06-03 04:26:52 +00:00
margin-top: -0.5rem;
2021-07-23 13:11:13 +00:00
margin-left: 1.5rem;
2020-05-09 22:17:01 +00:00
}
2020-05-08 00:01:50 +00:00
.content {
2020-05-09 22:17:01 +00:00
max-width: 36rem;
}
2021-04-09 05:17:51 +00:00
.content-wide {
max-width: none;
}
2020-05-09 22:17:01 +00:00
.content p {
2021-07-23 13:11:13 +00:00
font: 1.1rem/1.5 serif;
2020-05-09 22:17:01 +00:00
}
2020-06-03 04:26:52 +00:00
.content ul {
2020-06-09 19:40:38 +00:00
padding-left: 1.1rem;
2020-06-03 04:26:52 +00:00
}
.content li {
2021-07-23 13:11:13 +00:00
font: 1.1rem/1.5 serif;
2020-05-08 00:01:50 +00:00
}
.content img {
width: 100%;
height: auto;
}
2021-04-09 05:52:30 +00:00
.content .aside {
display: inline;
float: left;
position: relative;
width: 8rem;
margin-left: -9rem;
2021-07-23 13:11:13 +00:00
font-size: 0.9rem;
2021-04-09 05:52:30 +00:00
}
2021-04-27 01:14:09 +00:00
.toclink:not(:hover) {
border-bottom: none;
}
2020-05-09 22:17:01 +00:00
@media screen and (min-width:36rem) {
2020-05-08 00:01:50 +00:00
.content {
margin-left: 10rem;
}
2021-05-30 05:00:35 +00:00
.bar {
margin-top: 2px;
float: left;
width: 8rem;
text-align: right;
white-space: nowrap;
2021-05-30 05:00:35 +00:00
}
.bar .me {
width: 100%;
display: block;
}
.bar .info {
2021-05-30 05:22:33 +00:00
margin-top: 1.75rem;
2021-05-30 05:00:35 +00:00
}
.bar .contact-icons a {
border-bottom: none;
}
.bar .contact-icons img {
width: 1.25rem;
height: 1.25rem;
margin-left: 0.5rem;
2020-05-08 00:01:50 +00:00
}
}
2020-05-09 22:17:01 +00:00
@media screen and (max-width:36rem) {
2021-05-30 05:00:35 +00:00
.bar {
overflow: auto;
margin-top: -0.5rem;
}
.bar .me {
float: left;
height: 6.5rem;
width: auto;
}
.bar .info {
float: left;
2021-05-30 05:22:33 +00:00
margin-top: 0.5rem;
2021-05-30 05:00:35 +00:00
margin-left: 1.5rem;
}
.bar .contact-icons {
margin-top: 1rem;
margin-left: 0.25rem;
margin-bottom: 0;
}
.bar .contact-icons a {
border-bottom: none;
}
.bar .contact-icons img {
2021-05-30 05:22:33 +00:00
width: 1.25rem;
height: 1.25rem;
2021-05-30 05:00:35 +00:00
margin-right: 1rem;
}
2020-05-08 00:01:50 +00:00
}
2020-06-09 19:40:38 +00:00
2020-11-02 05:05:25 +00:00
body {
background-color: #eee;
2020-11-02 05:05:25 +00:00
color: #000;
}
2020-11-02 05:05:25 +00:00
a {
color: #000;
border-bottom: 1px solid #000;
2020-06-09 19:40:38 +00:00
}
2020-11-02 05:05:25 +00:00
pre {
background-color: #ddd;
2020-11-02 05:05:25 +00:00
}
2021-04-09 05:01:11 +00:00
:not(pre)>code {
background-color: #ddd;
}
2020-11-02 05:05:25 +00:00
.toc {
background-color: #ddd;
2020-11-02 05:05:25 +00:00
}
.content p.metadata {
color: #555;
}
@media (prefers-color-scheme: dark) {
body {
background-color: #000;
color: #eee;
2020-11-02 05:05:25 +00:00
}
a {
color: #eee;
border-bottom: 1px solid #eee;
2020-11-02 05:05:25 +00:00
}
pre {
background-color: #222;
}
2021-04-09 05:01:11 +00:00
:not(pre)>code {
background-color: #222;
}
2020-11-02 05:05:25 +00:00
.toc {
background-color: #222;
}
.content p.metadata {
color: #aaa;
}
.content img {
filter: brightness(75%);
}
.contact-icons img {
filter: invert(1);
}
}