Last active
September 21, 2023 08:23
-
-
Save haanamomo/8faf4c075a493855e208e2ad40e12134 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
* { | |
margin: 0; | |
padding: 0; | |
box-sizing: border-box; | |
} | |
/* Global styles */ | |
body { | |
font-family: "Helvetica Neue", Arial, sans-serif; | |
font-size: 16px; | |
line-height: 1.5; | |
display: flex; | |
flex-direction: row; | |
} | |
a { | |
text-decoration: none; | |
color: #333; | |
} | |
a:hover { | |
color: #666; | |
} | |
/* Layout styles */ | |
.container { | |
flex: 1; | |
display: flex; | |
flex-direction: column; | |
min-height: 100vh; | |
overflow-x: auto; | |
} | |
.sidebar { | |
min-width: 200px; | |
width: 15vw; | |
background-color: #fff; | |
border-right: 1px solid #ddd; | |
padding: 1rem 0; | |
} | |
#blogs { | |
flex: 1; | |
background-color: #fff; | |
padding: 40px; | |
} | |
header { | |
background-color: #333; | |
color: #fff; | |
padding: 1rem; | |
text-align: center; | |
} | |
h1, | |
h2, | |
h3 { | |
margin-top: 0; | |
} | |
.blog-title { | |
font-size: 1.5rem; | |
margin-bottom: 1rem; | |
margin-left: 1rem; | |
} | |
.blog-link { | |
display: block; | |
padding: 0.5rem; | |
padding-left: 1rem; | |
border-bottom: 1px solid #ddd; | |
} | |
.blog-link:last-child { | |
border-bottom: none; | |
} | |
.blog-link.active { | |
background-color: #f2f2f2; | |
} | |
article { | |
margin-bottom: 3rem; | |
} | |
.hidden { | |
display: none; | |
} | |
/* GitHub 主题样式 */ | |
article { | |
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, | |
sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; | |
line-height: 1.5; | |
color: #24292e; | |
background-color: #fff; | |
margin: 0; | |
padding: 0; | |
} | |
article a { | |
color: #0366d6; | |
text-decoration: none; | |
} | |
article a:hover { | |
text-decoration: underline; | |
} | |
article h1, | |
article h2, | |
article h3, | |
article h4, | |
article h5, | |
article h6 { | |
margin-top: 24px; | |
margin-bottom: 16px; | |
font-weight: 600; | |
line-height: 1.25; | |
} | |
article h1 { | |
font-size: 32px; | |
} | |
article h2 { | |
margin-top: 0; | |
font-size: 24px; | |
} | |
article h3 { | |
font-size: 20px; | |
} | |
article h4 { | |
font-size: 16px; | |
} | |
article h5 { | |
font-size: 14px; | |
} | |
article h6 { | |
font-size: 12px; | |
} | |
article p { | |
margin-top: 8px; | |
margin-bottom: 8px; | |
line-height: 1.6; | |
} | |
article ul, | |
article ol { | |
margin-top: 0; | |
margin-bottom: 16px; | |
} | |
article li { | |
margin-top: 8px; | |
margin-bottom: 8px; | |
} | |
article table { | |
border-collapse: collapse; | |
width: 100%; | |
margin-top: 16px; | |
margin-bottom: 16px; | |
} | |
article table th, | |
article table td { | |
border: 1px solid #dfe2e5; | |
padding: 6px 13px; | |
} | |
article table th { | |
font-weight: 600; | |
} | |
article img { | |
max-width: 100%; | |
height: auto; | |
} | |
article code { | |
background-color: rgba(243, 243, 243); | |
font-family: SFMono-Regular, Consolas, Liberation Mono, Menlo, monospace; | |
font-size: 14px; | |
padding: 0.2em 0.4em; | |
border-radius: 3px; | |
} | |
article pre { | |
font-family: SFMono-Regular, Consolas, Liberation Mono, Menlo, monospace; | |
font-size: 14px; | |
background-color: rgba(243, 243, 243); | |
padding: 8px; | |
margin: 8px 0; | |
border-radius: 3px; | |
overflow: auto; | |
} | |
article pre code { | |
display: block; | |
padding: 0; | |
margin: 0; | |
} | |
article blockquote { | |
margin: 0; | |
margin-left: 1em; | |
padding-left: 1em; | |
border-left: 4px solid #dfe2e5; | |
color: #6a737d; | |
} | |
article hr { | |
border: 0; | |
border-bottom: 1px solid #dfe2e5; | |
margin: 24px 0; | |
} | |
article kbd { | |
font-family: SFMono-Regular, Consolas, Liberation Mono, Menlo, monospace; | |
font-size: 14px; | |
background-color: #fafbfc; | |
border: 1px solid #d1d5da; | |
border-radius: 3px; | |
box-shadow: inset 0 -1px 0 #d1d5da; | |
padding: 4px 8px; | |
display: inline-block; | |
line-height: 1; | |
} | |
article mark { | |
background-color: #fffbdd; | |
padding: 0.2em 0.4em; | |
border-radius: 2px; | |
color: #333; | |
} | |
article .del { | |
color: #cb2431; | |
} | |
article .ins { | |
background-color: #add8e6; | |
} | |
article .highlight { | |
background-color: yellow; | |
} | |
footer { | |
display: flex; | |
flex-wrap: wrap; | |
justify-content: space-between; | |
padding: 20px 30px; | |
background-color: #333; | |
color: #fff; | |
margin-top: auto; | |
height: 9rem; | |
} | |
.footer-column { | |
flex-basis: calc(50% - 15px); | |
} | |
.footer-column ul { | |
list-style: none; | |
margin: 0; | |
padding: 0; | |
} | |
.footer-column li { | |
margin-bottom: 4px; | |
} | |
.footer-column a { | |
color: white; | |
text-decoration: none; | |
} | |
.footer-column a:hover { | |
text-decoration: underline; | |
} | |
/* Media queries */ | |
@media screen and (min-width: 768px) { | |
.container { | |
flex-direction: column; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment