This commit is contained in:
commit
7d7651c303
1 changed files with 569 additions and 0 deletions
278
static/global.css
Executable file
278
static/global.css
Executable file
|
|
@ -0,0 +1,278 @@
|
|||
:root {
|
||||
--background-color: #212529;
|
||||
--text-color: #ededed;
|
||||
--primary-color: #133b6e;
|
||||
--accent-color: #dc7c28;
|
||||
--link-color: #569cd6;
|
||||
--border1-color: #dc7c28;
|
||||
--border2-color: #3d444d;
|
||||
}
|
||||
|
||||
body {
|
||||
box-sizing: border-box;
|
||||
background-color: var(--background-color);
|
||||
color: var(--text-color);
|
||||
font-family: sans-serif;
|
||||
font-weight: 400;
|
||||
line-height: 1.5;
|
||||
margin: 0 auto;
|
||||
}
|
||||
|
||||
html {
|
||||
min-height: 100%;
|
||||
scroll-behavior: smooth;
|
||||
font-size: 100%;
|
||||
}
|
||||
|
||||
h1 {
|
||||
font-size: 1.8rem;
|
||||
}
|
||||
|
||||
h2 {
|
||||
font-size: 1.5rem;
|
||||
}
|
||||
|
||||
h3 {
|
||||
font-size: 1.25rem;
|
||||
}
|
||||
|
||||
h4 {
|
||||
font-size: 1.1rem;
|
||||
}
|
||||
|
||||
h5 {
|
||||
font-size: 1rem;
|
||||
}
|
||||
|
||||
small {
|
||||
font-size: 0.667rem; /* 10.72px */
|
||||
}
|
||||
|
||||
h1,
|
||||
h2,
|
||||
h3,
|
||||
h4,
|
||||
h5,
|
||||
h6 {
|
||||
margin-top: 24px;
|
||||
margin-bottom: 10px;
|
||||
color: var(--text-color);
|
||||
line-height: 1.2;
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
p {
|
||||
margin-top: 8px;
|
||||
}
|
||||
|
||||
ul {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
list-style: none;
|
||||
padding-left: 0;
|
||||
margin-top: 0;
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
ul,
|
||||
ol {
|
||||
list-style-position: inside;
|
||||
padding-left: 0px;
|
||||
}
|
||||
|
||||
ul {
|
||||
list-style-type: disc;
|
||||
}
|
||||
|
||||
ul ul {
|
||||
list-style-type: disc;
|
||||
padding-left: 10px;
|
||||
}
|
||||
|
||||
.container {
|
||||
max-width: 34rem;
|
||||
width: 100%;
|
||||
margin-right: auto;
|
||||
margin-left: auto;
|
||||
padding: 10px;
|
||||
}
|
||||
|
||||
@media (min-width: 576px) {
|
||||
.container {
|
||||
width: 540px;
|
||||
}
|
||||
}
|
||||
|
||||
@media (min-width: 768px) {
|
||||
.container {
|
||||
width: 720px;
|
||||
}
|
||||
}
|
||||
|
||||
@media (min-width: 992px) {
|
||||
.container {
|
||||
width: 960px;
|
||||
}
|
||||
}
|
||||
|
||||
@media (min-width: 1200px) {
|
||||
.container {
|
||||
width: 1140px;
|
||||
}
|
||||
}
|
||||
|
||||
hr {
|
||||
background-color: var(--border1-color);
|
||||
}
|
||||
|
||||
blockquote {
|
||||
border-left: 4px solid var(--border1-color);
|
||||
margin-left: 0px;
|
||||
padding-left: 10px;
|
||||
}
|
||||
|
||||
a {
|
||||
border-bottom: 2px solid transparent;
|
||||
color: var(--link-color);
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
a:hover {
|
||||
border-bottom: 2px solid var(--link-color);
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
main {
|
||||
color: var(--text-color);
|
||||
font-size: 1rem;
|
||||
}
|
||||
|
||||
main img {
|
||||
max-width: 100%;
|
||||
}
|
||||
|
||||
/* code blocks */
|
||||
figure {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
pre {
|
||||
padding: 8px;
|
||||
border: 1px solid var(--border2-color);
|
||||
}
|
||||
|
||||
pre code {
|
||||
overflow-x: scroll;
|
||||
display: block;
|
||||
border-radius: 0;
|
||||
color: #e1e4e8;
|
||||
}
|
||||
|
||||
.title h1 {
|
||||
margin-top: 0px;
|
||||
margin-bottom: 0px;
|
||||
}
|
||||
|
||||
/* header/footer */
|
||||
header {
|
||||
color: var(--text-color);
|
||||
margin-bottom: 5px;
|
||||
}
|
||||
|
||||
nav {
|
||||
max-width: 1200px;
|
||||
margin: 0 auto;
|
||||
}
|
||||
|
||||
nav ul {
|
||||
list-style-type: none;
|
||||
flex-direction: row;
|
||||
gap: 25px;
|
||||
}
|
||||
|
||||
nav li {
|
||||
font-weight: bold;
|
||||
padding-top: 2px;
|
||||
padding-bottom: 2px;
|
||||
}
|
||||
|
||||
footer {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
margin-top: 20px;
|
||||
margin-bottom: 20px;
|
||||
padding-top: 10px;
|
||||
padding-bottom: 10px;
|
||||
border-top: 3px solid var(--border1-color);
|
||||
color: var(--text-color);
|
||||
}
|
||||
|
||||
|
||||
/* blog-list */
|
||||
.blog-list {
|
||||
flex-direction: column;
|
||||
gap: 5px;
|
||||
margin-top: 0;
|
||||
margin-bottom: 10px;
|
||||
list-style: none;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.blog-item {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 2px;
|
||||
padding: 6px 0px;
|
||||
}
|
||||
|
||||
.blog-item a {
|
||||
font-size: 1.063rem;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.blog-item-meta {
|
||||
font-size: 0.875rem;
|
||||
}
|
||||
|
||||
|
||||
/* index content */
|
||||
.index-content .title {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 16px;
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
|
||||
.index-content .title img {
|
||||
width: 64px;
|
||||
height: 64px;
|
||||
border-radius: 5px;
|
||||
}
|
||||
|
||||
|
||||
/* blog content */
|
||||
.blog-content .title {
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
|
||||
|
||||
/* blog-page content */
|
||||
.blog-page-content .title {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 4px;
|
||||
border-bottom: 3px solid var(--border1-color);
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
|
||||
.blog-page-content .title h1 {
|
||||
margin-top: 0px;
|
||||
margin-bottom: 0px;
|
||||
}
|
||||
|
||||
.blog-page-content .title span {
|
||||
margin-bottom: 10px;
|
||||
font-size: 0.875rem;
|
||||
font-weight: normal;
|
||||
color: var(--text-color);
|
||||
}
|
||||
Loading…
Reference in a new issue