-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
48 lines (43 loc) · 1.14 KB
/
style.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
<style>
.entry-content pre {
color: #fff;
font-size: 1em;
white-space: pre; /* Change from pre-wrap to pre */
background-color: #212529;
border-color: #f2f0f0;
border-style: solid;
border-width: 3px;
border-radius: 3px;
font-family: monospace, monospace;
line-height: 1.625;
margin: 30px 0;
overflow-x: auto; /* Ensure horizontal scrolling */
overflow-y: hidden;
padding: 10px 10px 10px 18px;
word-wrap: normal; /* Ensures word-wrap doesn't break lines */
}
pre {
background: rgba(0, 0, 0, 0.05);
font-family: inherit;
font-size: 16px;
line-height: normal;
margin-bottom: 1.5em;
padding: 20px;
overflow-x: auto; /* Allow horizontal scrolling */
max-width: 100%;
}
code {
padding: 2px 4px;
font-size: 90%;
color: #c7254e;
background-color: #f9f2f4;
border-radius: 4px;
}
@media screen and (max-width: 600px) {
.entry-content pre {
font-size: 0.9em; /* Slightly reduce font size on smaller screens */
padding: 10px; /* Adjust padding for smaller screens */
overflow-x: auto; /* Ensure horizontal scrolling */
}
}
</style>