-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcode-block.css
More file actions
114 lines (114 loc) · 2.49 KB
/
Copy pathcode-block.css
File metadata and controls
114 lines (114 loc) · 2.49 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
.code-container {
position: relative;
}
.code-container:hover .copy-button,
.code-container .copy-button:focus,
.code-container:hover .fold-button,
.code-container .fold-button:focus {
opacity: 1;
}
.fold-button {
cursor: pointer;
border-radius: 0 0 0 0;
display: inline-block;
font-weight: bold;
line-height: 1.8;
opacity: 0;
outline: 0;
padding: 6px 15px;
position: absolute;
vertical-align: middle;
white-space: nowrap;
font-size: 1rem;
color: var(--default-text-color);
-moz-user-select: none;
-ms-user-select: none;
-webkit-user-select: none;
user-select: none;
background: var(--scond-background-color);
border: 0;
right: 40px;
top: 0;
}
.copy-button {
cursor: pointer;
border-radius: 0 $redefine-border-radius-large 0 0;
display: inline-block;
font-weight: bold;
line-height: 1.8;
opacity: 0;
outline: 0;
padding: 6px 15px;
position: absolute;
vertical-align: middle;
white-space: nowrap;
font-size: 1rem;
color: var(--default-text-color);
-moz-user-select: none;
-ms-user-select: none;
-webkit-user-select: none;
user-select: none;
background: var(--scond-background-color);
border: 0;
right: 0;
top: 0;
}
.code-container {
background: var(--third-background-color);
border-radius: $redefine-border-radius-large;
box-shadow: var(--redefine-box-shadow-flat);
padding-top: 40px;
margin-top: 10px;
margin-bottom: 1.2rem;
position: relative;
}
.code-container figcaption {
font-weight: bold;
font-size: 16px;
position: absolute;
top: 12px;
left: 50%;
transform: translateX(-50%);
}
.code-container figcaption a {
margin-left: 10px;
}
.code-container::before {
position: absolute;
content: attr(data-rel);
line-height: 38px;
border-radius: $redefine-border-radius-full;
box-shadow: none;
height: 12px;
left: 12px;
position: absolute;
width: auto;
margin-left: 80px;
top: 0;
color: var(--default-text-color);
font-weight: bold;
font-size: 16px;
}
.code-container .folded {
height: 0 !important;
}
.code-container .folded figure {
height: 0 !important;
width: 0 !important;
overflow: hidden !important;
}
.code-container::after {
content: ' ';
position: absolute;
-webkit-border-radius: $redefine-border-radius-full;
border-radius: $redefine-border-radius-full;
background: #fc625d;
width: 12px;
height: 12px;
top: 0;
left: 20px;
margin-top: 13px;
-webkit-box-shadow: 20px 0px #fdbc40, 40px 0px #35cd4b;
box-shadow: 20px 0px #fdbc40, 40px 0px #35cd4b;
z-index: 3;
}