Repository navigation
Expand file tree
/
Copy pathruizi.css
More file actions
139 lines (110 loc) · 9.5 KB
/
Copy pathruizi.css
File metadata and controls
139 lines (110 loc) · 9.5 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
/*-----公用部分start 随缘 -------*/
*{-webkit-box-sizing: border-box;-moz-box-sizing: border-box;box-sizing: border-box;-webkit-transition: all .5s;-moz-transition: all .5s;transition: all .5s;}
body{-webkit-text-size-adjust: 100%;background-color:#36465d;color: #f0f0f0;margin: 0;-webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;font-family: -apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol;}
html{font-size: 14px;}
input,textarea {outline: 0;resize: none;-webkit-appearance:none;}
ol,ul {list-style: none;margin: 0;padding: 0;}
table {border-collapse: collapse;border-spacing: 0}
tr,td,th{border: 1px solid #888;}
a{color: #fff;text-decoration: none;}
a:hover{color: #f92672;}
blockquote{border-left: .2rem solid #f92672;margin: 1rem 0 .3rem 0;padding: 0 0 0 .3rem;}
pre{overflow-x: auto;font-size: 80%;}
code{-moz-border-radius: 5px;border-radius: 5px;font-family: SFMono-Regular,Consolas,Liberation Mono,Menlo,Courier,monospace;color: #fff;overflow-x: auto;padding: .2rem .5rem;background: #29303a;font-size: 80%;}
article{width: 100%;}
time{font-size: 12px;}
/*导航*/
#btn-bar{float: right;position: fixed;top: 0.35rem;right: 0.5rem;cursor: pointer;width: 2rem;display: none;}
#btn-bar span{width: 100%;height: 0.2rem; background: #fff;display: block;margin: 0.2rem 0;}
#btn-barinp{position: fixed;top: 0.5rem;right: 0;display: none;}
header{position: fixed;top: 0;left: 0;z-index: 10;width: 70%;right: 0;margin: 0 auto;background-color: #36465d;
display: -webkit-box;
display: -moz-box;
display: -ms-flexbox;
display: flex;-webkit-box-pack: justify;-moz-box-pack: justify;-ms-flex-pack: justify;justify-content: space-between;padding: .2rem;-webkit-box-align: center;-moz-box-align: center;-ms-flex-align: center;align-items: center;-webkit-box-shadow: 0 0 0 1px hsla(0,0%,100%,.13);-moz-box-shadow: 0 0 0 1px hsla(0,0%,100%,.13);box-shadow: 0 0 0 1px hsla(0,0%,100%,.13);}
nav{overflow: hidden;display: -webkit-box;display: -moz-box;display: -ms-flexbox;display: flex;}
nav a{padding: 0 .2rem;display: -webkit-box;display: -moz-box;display: -ms-flexbox;display: flex;}
.search-input{background: transparent;border: none;-webkit-box-shadow: 0 0 0 1px hsla(0,0%,100%,.5);-moz-box-shadow: 0 0 0 1px hsla(0,0%,100%,.5);box-shadow: 0 0 0 1px hsla(0,0%,100%,.5);color: #fff;-moz-border-radius: 2px;border-radius: 2px;width: 20%;}
/*总box*/
.container{width: 70%;margin: 0 auto;margin-top: 3rem;
display: -webkit-box;display: -moz-box;display: -ms-flexbox;display: flex;-webkit-box-pack: start;-moz-box-pack: start;-ms-flex-pack: start;justify-content: flex-start;
overflow: auto;
}
/*文章,列表*/
.index{display: -webkit-box;display: -moz-box;display: -ms-flexbox;display: flex;-webkit-box-orient: vertical;-webkit-box-direction: normal;-moz-box-orient: vertical;-moz-box-direction: normal;-ms-flex-direction: column;flex-direction: column;}
.index article i{width: .3rem;height: .3rem;background: #f0f0f0;margin-right: .2rem;}
.index article time{margin-right: .6rem;width: 4.5rem;}
.index article{margin: .1rem 0;display: -webkit-box;display: -moz-box;display: -ms-flexbox;display: flex;-webkit-box-pack: start;-moz-box-pack: start;-ms-flex-pack: start;justify-content: flex-start;-webkit-box-align: center;-moz-box-align: center;-ms-flex-align: center;align-items: center;}
.cate article time{width: auto;}
/*post详情*/
.post aside{position: fixed;left: 4%;top: 10%;-webkit-box-orient: vertical;-webkit-box-direction: normal;-moz-box-orient: vertical;-moz-box-direction: normal;-ms-flex-direction: column;flex-direction: column;white-space: nowrap;}
.post aside{overflow: hidden;display: -webkit-box;display: -moz-box;display: -ms-flexbox;display: flex;}
.post aside a{padding: 0 .2rem;display: -webkit-box;display: -moz-box;display: -ms-flexbox;display: flex;}
.post aside a span{color: #ccc;-ms-flex-item-align: end;align-self: flex-end;}
.post aside .itema{padding-left: 1.5rem;}
.post h3{cursor: pointer;}
/*footer*/
footer{width: 70%;margin: 1rem auto 0 auto;}
#top{position: fixed;right: 2rem;bottom: 2rem;width: 2rem;height: 2rem;text-align: center;cursor: pointer;
-moz-border-radius: 100%;
border-radius: 100%;border:0.1rem solid #9da6af;line-height: 2rem;}
#top:hover{background: hsla(0, 0%, 70%, 0.5);}
footer{text-align: center;}
footer p{margin: 0;font-size: 12px;}
/*pagination*/
.pagination{display: -webkit-box;display: -moz-box;display: -ms-flexbox;display: flex;-ms-flex-item-align: center;align-self: center;-webkit-box-align: center;-moz-box-align: center;-ms-flex-align: center;align-items: center;-ms-flex-pack: distribute;justify-content: space-around;width: 10rem;margin-top: 1rem;}
.pagination a{-webkit-box-shadow: 0 0 0 1px hsla(0,0%,100%,.13);-moz-box-shadow: 0 0 0 1px hsla(0,0%,100%,.13);box-shadow: 0 0 0 1px hsla(0,0%,100%,.13);padding: 0.1rem .2rem;-moz-border-radius: 5px;border-radius: 5px;}
@media (max-width: 1024px){
/*缩小后导航高度0点击后展示*/
#btn-bar{display: -webkit-box;display: -moz-box;display: -ms-flexbox;display: flex;-webkit-box-orient: vertical;-webkit-box-direction: normal;-moz-box-orient: vertical;-moz-box-direction: normal;-ms-flex-direction: column;flex-direction: column;}
input[type='checkbox']:checked ~ nav{height: auto;width: 90%;-ms-flex-wrap: wrap;flex-wrap: wrap;}
header{padding: .5rem 0;display: -webkit-box;display: -moz-box;display: -ms-flexbox;display: flex;-webkit-box-orient: vertical;-webkit-box-direction: normal;-moz-box-orient: vertical;-moz-box-direction: normal;-ms-flex-direction: column;flex-direction: column;width: 100%;}
nav{display: -webkit-box;display: -moz-box;display: -ms-flexbox;display: flex;height: 0rem;width: 100%;}
nav a{padding: .5rem;-ms-flex-item-align: center;-ms-grid-row-align: center;align-self: center;}
/**otherlinks**/
.container{width: 98%;}
footer{width: 100%;margin: 1rem auto 0 auto;}
/*notes详情页*/
.post{display: block;}
.post aside{position: fixed;left: 0;background: #36465d;height: 100%;top: 0;padding-top: 3rem;-webkit-box-shadow: 0 0 1px #fff;-moz-box-shadow: 0 0 1px #fff;box-shadow: 0 0 1px #fff;}
.search-input{display: none;}
}
/*Monokai Sublime style. Derived from Monokai by noformnocontent http://nn.mit-license.org/*/
.hljs {display: block;overflow-x: auto;padding: 0.5em;background: #29303a;}
.hljs,.hljs-tag,.hljs-subst {color: #f8f8f2;}
.hljs-strong,.hljs-emphasis {color: #a8a8a2;}
.hljs-bullet,.hljs-quote,.hljs-number,.hljs-regexp,.hljs-literal,.hljs-link {color: #ae81ff;}
.hljs-code,.hljs-title,.hljs-section,.hljs-selector-class {color: #a6e22e;}
.hljs-strong {font-weight: bold;}
.hljs-emphasis {font-style: italic;}
.hljs-keyword,.hljs-selector-tag,.hljs-name,.hljs-attr {color: #f92672;}
.hljs-symbol,.hljs-attribute {color: #66d9ef;}
.hljs-params,.hljs-class .hljs-title {color: #f8f8f2;}
.hljs-string,.hljs-type,.hljs-built_in,.hljs-builtin-name,.hljs-selector-id,.hljs-selector-attr,.hljs-selector-pseudo,.hljs-addition,.hljs-variable,.hljs-template-variable {color: #e6db74;}
.hljs-comment,.hljs-deletion,.hljs-meta {color: #9da6af;}
/*doc*/
.icon.outbound {color: #aaa;display: inline-block}
.sidebar-button {cursor: pointer;display: none;position: fixed;top: .6rem;left: 1rem;}
.sidebar-button .icon {display: block;width: 1.25rem;height: 1.25rem}
.sidebar-group.is-sub-group>.sidebar-group-items {padding-left: 1rem}
.sidebar-group.is-sub-group>.sidebar-group-items>li>.sidebar-link {font-size: .95em;border-left: none}
.sidebar-group-items {-webkit-transition: height .1s ease-out;-moz-transition: height .1s ease-out;transition: height .1s ease-out;font-size: .95em;overflow: hidden}
.sidebar .sidebar-sub-headers {padding-left: 1rem;font-size: .95em}
a.sidebar-link {font-size:1rem;font-weight: 400;display: inline-block;color: #fff;border-left: .2rem solid transparent;padding:0 0 0 1rem;margin: .2rem 0;width: 100%;-webkit-box-sizing: border-box;-moz-box-sizing: border-box;box-sizing: border-box}
a.sidebar-link:hover {color: #f92672;}
a.sidebar-link.active {font-weight: 600;color: #f92672;border-left-color: #f92672;}
.sidebar-group a.sidebar-link {padding-left: 2rem}
.sidebar-sub-headers a.sidebar-link {padding-top: .25rem;padding-bottom: .25rem;border-left: none}
.sidebar-sub-headers a.sidebar-link.active {font-weight: 500}
.sidebar ul {padding: 0;margin: 0;list-style-type: none}
.sidebar a {display: inline-block}
.content {width: 80%;margin: 0 auto 0 15%;padding: 3rem 2.5rem;}
.sidebar-mask {z-index: 9;width: 100vw;height: 100vh;display: none;position: fixed;top: 0;left: 0;}
.theme-container.sidebar-open .sidebar-mask {display: block}
.sidebar {font-size: 16px;width: 15%;position: fixed;z-index: 10;margin: 0;top: 3.6rem;left: 0;bottom: 0;-webkit-box-sizing: border-box;-moz-box-sizing: border-box;box-sizing: border-box;border-right: 1px solid #eaecef;overflow-y: auto}
@media (max-width: 1024px){.theme-container.no-sidebar .sidebar {display: none}
.sidebar {width: 60%;top: 0;padding-top: 3rem;-webkit-transform: translateX(-100%);-moz-transform: translateX(-100%);-ms-transform: translateX(-100%);transform: translateX(-100%);-webkit-transition: -webkit-transform .2s ease;transition: -webkit-transform .2s ease;-moz-transition: transform .2s ease, -moz-transform .2s ease;transition: transform .2s ease;transition: transform .2s ease, -webkit-transform .2s ease, -moz-transform .2s ease;background: #36465d;}
.theme-container.sidebar-open .sidebar {-webkit-transform: translateX(0);-moz-transform: translateX(0);-ms-transform: translateX(0);transform: translateX(0)}
.content:not(.custom){width: 98%;margin:0 auto;padding: 3rem 0;}
.sidebar-button {display: block;z-index:99}
}