-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathself.css
108 lines (101 loc) · 1.99 KB
/
self.css
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
.div-copy-code {
position:absolute;
right:6px;
top:4px;
/* border:1px solid; */
}
.btn-copy-code {
transition:all .3s;
opacity:0.8;
/* position:absolute; */
color:#ddd;
background-color:transparent;
/* right:6px; */
/* top:4px; */
left:5px;
margin-left:5px;
font-size:10px;
line-height:12px;
padding:3px 5px;
border:1px solid;
}
article pre {
-webkit-box-sizing: border-box;
box-sizing: border-box;
margin: 20px 0;
position: relative;
background: #282c34;
}
article pre::before {
content: "";
background: #282c34;
height: 32px;
margin-bottom: 0;
display: block;
}
article pre::after {
content: " ";
position: absolute;
border-radius: 50%;
background: #ff5f56;
width: 12px;
height: 12px;
top: 0;
left: 12px;
margin-top: 12px;
-webkit-box-shadow: 20px 0 #ffbd2e, 40px 0 #27c93f;
box-shadow: 20px 0 #ffbd2e, 40px 0 #27c93f;
}
article pre code {
position: relative;
padding: 0 5px;
display: inline-block;
padding-left: 20px !important;
border: none;
border-radius: 3;
font-size: 100%;
overflow-y:auto;
max-height:500px;
}
.take-pic{
overflow-y:unset;
max-height:99999px;
}
/* for block of numbers */
.hljs-ln-numbers {
-webkit-touch-callout: none;
-webkit-user-select: none;
-khtml-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
/*! text-align: center; */
/*! color: #ccc; */
vertical-align: top;
color: #5c6370;
/*position: absolute;*/
/*! top: 0.5em; */
/*! bottom: 0.5em; */
/*! left: 0; */
text-align: left;
/*! clip: rect(-100px 2em 9999px 0); */
clip: rect(-100px 5ch 9999px 0);
overflow: hidden;
padding: 1px 0;
/*! padding-left: 12px; */
background: #282c34;
padding-left: 10px;
}
/* for block of code */
.hljs-ln-code {
padding-left: 10px;
}
.hljs-ln td {
/*padding-left: 20px !important;*/
}
/*行内的代码生成效果*/
.post-content p code,.post-content li code {
color:#C13;
background:#F0F0EC;
padding:2px 4px;
}