home/static/css/style.css

188 lines
2.5 KiB
CSS
Raw Normal View History

2024-08-29 11:11:19 +00:00
/* dark mode */
@media (prefers-color-scheme: dark) {
html{
background-color: #2d2a2e;
color: #f7f6f3;
}
a {
color: #ac9c6d;
}
header {
2024-08-29 11:22:50 +00:00
background: #2d2a2e;
2024-08-29 11:11:19 +00:00
border-bottom: 2px dotted #f7f6f3;
}
header a {
color: #f7f6f3;
}
}
/* light mode */
@media (prefers-color-scheme: light) {
html{
background-color: #f7f6f3;
color: #2d2a2e;
}
a {
color: #846b1f;
}
header {
2024-08-29 11:23:50 +00:00
background: #f7f6f3;
2024-08-29 11:11:19 +00:00
border-bottom: 2px dotted #2d2a2e;
}
header a {
color: #2d2a2e;
}
2024-08-28 10:19:58 +00:00
}
2024-08-27 23:06:37 +00:00
body {
2024-08-29 08:56:51 +00:00
max-width: 60%;
2024-08-27 23:06:37 +00:00
margin: auto;
padding: .2em;
2024-08-29 11:22:50 +00:00
padding-top: 0;
2024-08-27 23:06:37 +00:00
line-height: 1.5em;
2024-08-29 19:33:13 +00:00
font-size: 24px;
2024-08-27 23:06:37 +00:00
}
h1 {
line-height: 1.5em;
}
2024-08-28 10:19:58 +00:00
ul {
list-style-type: none;
2024-08-27 23:06:37 +00:00
}
2024-08-28 10:19:58 +00:00
.menu{
text-align: center;
2024-08-27 23:06:37 +00:00
}
2024-08-28 10:19:58 +00:00
.menu li {
display: inline-block;
}
2024-08-27 23:06:37 +00:00
.pull-left {
float: left
}
2024-08-28 10:19:58 +00:00
2024-08-27 23:06:37 +00:00
.pull-right {
float: right
}
a {
text-decoration: none;
}
a:hover {
text-decoration: underline;
}
/* Adjust background at your leisure! */
header {
2024-08-29 11:22:50 +00:00
position: fixed;
width: 60%;
2024-08-31 11:10:57 +00:00
height: 2.2rem;
2024-08-29 19:33:13 +00:00
font-size: 1.2rem;
2024-08-28 10:19:58 +00:00
}
.menu a {
text-decoration: none;
padding: 5px;
border-radius: 5px;
border-style: dotted;
border-width: 1px;
margin: 20px 0px 20px 0px;
2024-08-27 23:06:37 +00:00
}
header ul,
header ol {
margin: 0;
padding: 0;
list-style: none
}
header nav {
padding: 0 0.5rem
}
header a {
line-height: 1.75rem;
padding: 0 0.5rem
}
2024-08-28 10:19:58 +00:00
footer {
text-align: center;
}
2024-08-27 23:06:37 +00:00
/* Code Boxes */
pre {
border: 2px solid #EBC3DB;
padding: 1em;
overflow-x: auto;
}
pre code { background: none; }
code {
background-color: light-dark(#D6D6D6, #888);
border-radius: 3px;
padding: 0.2em;
overflow-x: auto;
}
/* Images, tables, misc. */
img, iframe, video {
max-width: 100%;
height: auto;
display: block;
margin-left: auto;
margin-right: auto;
}
main {
hyphens: auto;
max-width: 650px;
margin-left: auto;
margin-right: auto;
line-height: 1.7em;
hyphens: auto;
display: block;
font-size: 1.1em;
}
2024-08-28 10:19:58 +00:00
2024-08-27 23:06:37 +00:00
main a {
font-weight: bold;
}
.content-wrapper {
2024-08-29 11:22:50 +00:00
padding: 40px 12px 0px 12px;
2024-08-27 23:06:37 +00:00
}
#personal {
min-width: 40px;
2024-08-28 18:24:07 +00:00
max-width: 270px;
2024-08-27 23:06:37 +00:00
float: right;
padding: 10px;
display: block;
}
2024-08-28 10:19:58 +00:00
/* Small devices */
2024-08-29 12:37:52 +00:00
@media only screen and (max-width : 575px) {
body {
max-width: 100%;
2024-08-29 19:33:13 +00:00
font-size: 19px;
2024-08-29 12:37:52 +00:00
}
2024-08-28 10:19:58 +00:00
#personal {
2024-08-27 23:06:37 +00:00
min-width: 40px;
2024-08-29 19:42:17 +00:00
max-width: 180px;
2024-08-27 23:06:37 +00:00
float: center;
2024-08-29 19:33:13 +00:00
padding: 0px 0px 0px 0px;
2024-08-27 23:06:37 +00:00
display: block;
}
2024-08-29 12:37:52 +00:00
header {
width: 100%;
}
2024-09-01 20:06:07 +00:00
header a {
padding: 0px;
2024-09-01 20:09:04 +00:00
margin-right: 5px;
2024-09-01 20:06:07 +00:00
}
2024-08-29 12:37:52 +00:00
.content-wrapper {
padding: 40px 0px 10px 10px;
}
2024-08-27 23:06:37 +00:00
}