mirror of
https://github.com/xlucn/PAT.git
synced 2026-10-03 00:23:15 +08:00
127 lines
2.2 KiB
CSS
127 lines
2.2 KiB
CSS
/* Turn on word wrap. e.g. in Basic 1094 there is a long number */
|
|
p {
|
|
word-wrap: break-word;
|
|
}
|
|
|
|
/* Remove unwanted margins, paddings and borders in rouge code highlighter
|
|
* after enabled the line number */
|
|
div.highlight{
|
|
margin: 0px;
|
|
}
|
|
.rouge-table{
|
|
width: 0;
|
|
margin: 0px;
|
|
border: 0px;
|
|
}
|
|
.rouge-gutter.gl{
|
|
border-left: 0px;
|
|
padding: 0px;
|
|
border-right: 2px solid #e8e8e8;
|
|
border-top: 0px;
|
|
border-bottom: 0px;
|
|
text-align: right;
|
|
color: gray;
|
|
}
|
|
.rouge-code{
|
|
border: 0px;
|
|
padding: 0px;
|
|
}
|
|
.lineno{
|
|
margin-bottom: 0px;
|
|
border: 0px;
|
|
}
|
|
.rouge-code pre{
|
|
margin-bottom: 0px;
|
|
border: 0px;
|
|
}
|
|
.highlight code{
|
|
border: 0px;
|
|
}
|
|
pre, code{
|
|
font-size: 13px;
|
|
tab-size: 4;
|
|
}
|
|
|
|
/* post meta */
|
|
.meta-tags, .meta-category, .meta-date {
|
|
display: inline-block;
|
|
margin: 3px 4px;
|
|
padding: 0px 4px;
|
|
}
|
|
.meta-category, .meta-tags, .meta-category: visited, .meta-tags:visited {
|
|
padding: 0px 12px;
|
|
background-color: #2a7ae21a;
|
|
border-radius: 4px;
|
|
color: #2a7ae2;
|
|
}
|
|
.meta-category: hover, .meta-tags:hover {
|
|
text-decoration: none;
|
|
background-color: #2a7ae2;
|
|
color: white;
|
|
}
|
|
.fa, .fas, .fab {
|
|
vertical-align: middle;
|
|
margin-right: 0.5em;
|
|
}
|
|
|
|
/* post list */
|
|
.post-list-title {
|
|
margin-top: 16px;
|
|
margin-bottom: 0px;
|
|
}
|
|
|
|
/* tags page */
|
|
.tagnames {
|
|
margin-bottom: 16px;
|
|
margin-left: 16px;
|
|
}
|
|
.tags-title {}
|
|
.tag-string-h2 {
|
|
display: inline-block;
|
|
}
|
|
.tags hr {
|
|
color: rgba(200, 200, 200, 0.5);
|
|
margin-bottom: 16px;
|
|
}
|
|
.gotop {
|
|
display: inline-block;
|
|
margin-left: 8px;
|
|
}
|
|
|
|
/* header links */
|
|
.page-link: hover, .site-title:hover{
|
|
text-decoration: none;
|
|
color: #2a7ae2;
|
|
}
|
|
/* fixed header */
|
|
.site-header{
|
|
position: fixed;
|
|
width: 100%;
|
|
background-color: white;
|
|
z-index: 100;
|
|
box-shadow: 0 1px 6px 0 rgba(32,33,36,0.28); /* same as google.com */
|
|
}
|
|
main{
|
|
margin-top: 60px;
|
|
}
|
|
@media screen and (max-width: 600px){
|
|
.site-nav{
|
|
position: fixed;
|
|
}
|
|
}
|
|
.anchor { /* move anchor up */
|
|
position: relative;
|
|
top: -72px;
|
|
visibility: hidden;
|
|
}
|
|
|
|
/* favicon beside site title */
|
|
.favicon{
|
|
margin-right: 8px;
|
|
vertical-align: middle;
|
|
}
|
|
.site-title span{
|
|
padding-top: 4px;
|
|
vertical-align: middle;
|
|
}
|