-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyles.css
184 lines (152 loc) · 3.32 KB
/
styles.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
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
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
body {
font-family: Arial, sans-serif;
background-color: #222;
color: #fff;
margin: 0;
padding: 0;
}
h1 {
color: #fff;
text-align: center;
margin-top: 20px;
margin-bottom: 20px;
padding-bottom: 20px;
}
h1:hover {
cursor: pointer;
}
a.noblue {
color: inherit; /* This will make the color the same as its parent element */
text-decoration: none; /* This will remove underlines or other text decorations */
}
.info {
margin: 10px;
padding: 10px;
background-color: rgba(0, 0, 0, 0.3);
border-radius: 5px;
position: relative;
}
p {
margin-left: 10px;
padding: 0;
padding-top: 15px;
}
.info p {
margin: 5px;
padding: 0;
}
a {
color: #007bff;
text-decoration: none;
}
a:hover {
text-decoration: underline;
}
.pre-container {
margin: 10px;
}
/*
pre {
position: relative;
margin: 10px;
padding: 10px;
border-radius: 5px;
background-color: #333;
color: #fff;
font-family: monospace;
overflow: auto;
border: 1px solid rgba(255, 255, 255, 0.5);
}
*/
.info::before {
content: "";
position: absolute;
width: 27.5px;
height: 27.5px;
top: 1px;
right: 1px; /* Position at the top right corner */
border: none;
padding: 1px 1px;
border-radius: 5px;
cursor: pointer;
background-image: url('info.png'); /* Replace with the correct path */
background-size: 17.5px; /* Adjust the size of the icon */
background-repeat: no-repeat;
background-position: center;
}
.copy-button {
display: none;
z-index: 4;
position: absolute;
width: 27.5px;
height: 27.5px;
top: 5px;
right: 5px;
background-color: #00000050;
border: none;
padding: 5px 5px;
border-radius: 5px;
cursor: pointer;
background-image: url('copy-content.svg'); /* Replace with the correct path */
background-size: 12.5px;
background-repeat: no-repeat;
background-position: center;
overflow: visible;
/* Add pseudo-elements for the tooltip */
}
.copy-button::before {
content: 'Click to Copy';
position: relative;
top: -1.5px;
left: -100px;
transform: translateX(-50%);
background-color: #00000043;
color: #fff;
padding: 5px;
font-size: 12px;
opacity: 0;
pointer-events: none;
transition: opacity 0.3s ease-in-out;
overflow:visible ;
z-index: 100; /* Ensure tooltip appears above the button */
border-radius: 5px;
overflow-y:hidden;
}
pre, code {
overflow-x:hidden;
}
.copy-button::after {
width: 10px;
display: none;
}
.copy-button:hover::before {
opacity: 1;
}
/* Hide scrollbar buttons */
::-webkit-scrollbar-button {
display: none;
}
/* Track */
::-webkit-scrollbar-track {
background-color: #333; /* Darker grey color */
}
/* Handle */
::-webkit-scrollbar-thumb {
background-color: #777; /* Even darker grey color */
border-radius: 5px; /* Rounded corners for the scrollbar handle */
}
/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
background-color: #888; /* Lighter grey color when hovering */
}
/* Make the scrollbar slimmer */
::-webkit-scrollbar {
width: 10px; /* Adjust this value to make it slimmer or wider */
}
/* Make the scrollbar track area slimmer */
::-webkit-scrollbar-track-piece {
background-color: transparent; /* Make the track area transparent */
}
.element-with-scrollbar {
display: none;
}