-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathprestyles.css
More file actions
101 lines (88 loc) · 1.8 KB
/
prestyles.css
File metadata and controls
101 lines (88 loc) · 1.8 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
/* Base styles */
html, body {
margin: 0;
height: 100%;
overflow: hidden;
font-size: 16px; /* Base font size for better scaling */
}
pre {
overflow: auto;
max-height: 93.1vh;
width: 100%;
border-radius: 1px; /* Prevents bad clipping in Chrome */
font-size: 0.875rem; /* Smaller font size for code */
}
#content {
position: absolute;
top: 0; right: 0; left: 0; bottom: 40px; /* Increased bottom margin for header */
}
#header {
position: absolute;
bottom: 0;
height: auto; /* Allow header to expand */
min-height: 20px;
left: 0;
right: 0;
padding: 10px;
display: flex;
flex-wrap: wrap;
justify-content: space-between;
align-items: center;
}
a {
display: inline-block;
margin: 5px 10px 5px 0;
text-decoration: none;
color: inherit;
}
a:after {
content: '';
padding-right: 10px;
margin-left: 10px;
border-right: 1px solid;
border-color: inherit;
}
a:last-of-type:after {
border: none;
padding-right: 0;
margin-left: 0;
}
pre:not(:empty){
max-height:47vh;
}
/* Media queries for responsiveness */
@media screen and (max-width: 768px) {
pre {
max-height: 90.1vh;
font-size: 0.75rem; /* Even smaller font size for code on medium screens */
}
pre:not(:empty){
max-height:47vh;
}
#content {
bottom: 60px; /* More space for header on medium screens */
}
}
@media screen and (max-width: 360px) {
pre {
max-height: 93.1vh;
font-size: 0.6875rem; /* Smallest font size for code on small screens */
padding-bottom: 3px;
}
pre:not(:empty){
max-height:47vh;
}
#content {
bottom: 80px; /* Even more space for header on small screens */
}
#header {
flex-direction: column;
align-items: flex-start;
}
a {
margin: 5px 0;
}
a:after {
display: none; /* Remove dividers on small screens */
}
}