-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathphpman.css
More file actions
98 lines (94 loc) · 6.63 KB
/
Copy pathphpman.css
File metadata and controls
98 lines (94 loc) · 6.63 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
/* phpMan Tokyo Night stylesheet */
/* Extracted from phpMan.php for external caching */
html {scroll-behavior:smooth;}
/* Tokyo Night color scheme */
body {color:#c0caf5;background:#1a1b26;font-family:monospace;font-size:14px;line-height:1.5;}
pre {font-family:inherit;font-size:inherit;}
b {color:#e0af68;background:#1a1b26;}
u {color:#9ece6a;background:#1a1b26;text-decoration:underline;}
a {color:#7aa2f7;}
#content-wrap {max-width:90%;margin-right:230px;}
/* alphabet index sidebar — desktop: compact vertical letters */
#alpha-sidebar {position:fixed;top:20px;right:10px;width:30px;z-index:100;}
#alpha-sidebar .alpha-index {display:flex;flex-direction:column;background:#24283b;border:1px solid #3b4261;border-radius:4px;overflow:hidden;}
#alpha-sidebar .alpha-index a {display:block;text-align:center;padding:0 2px;font-size:12px;color:#7aa2f7;text-decoration:none;line-height:1.7;}
#alpha-sidebar .alpha-index a:hover {background:#3b4261;color:#c0caf5;}
#alpha-sidebar .alpha-index a.alpha-empty {color:#3b4261;pointer-events:none;}
#alpha-toggle {cursor:default;display:none;}
#alpha-toggle .alpha-open-icon, #alpha-toggle .alpha-close-icon {display:none;}
#man-content h2 {font-size:14px;color:#7aa2f7;margin:16px 0 6px 0;border-bottom:1px solid #3b4261;padding-bottom:4px;}
#man-content pre {width:100%;overflow-x:auto;white-space:pre;}
#toc-sidebar {position:fixed;top:20px;right:10px;width:200px;max-height:90vh;overflow-y:auto;background:#24283b;border:1px solid #3b4261;padding:8px;font-size:14px;z-index:100;display:none;}
#toc-sidebar a {display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#a9b1d6;text-decoration:none;padding:2px 4px;border-radius:2px;}
#toc-sidebar a:hover {background:#3b4261;color:#c0caf5;}
#toc-sidebar a.toc-sub {padding-left:18px;color:#787c99;}
#toc-sidebar a.toc-sub:hover {color:#c0caf5;}
#toc-sidebar .toc-title {font-weight:bold;border-bottom:1px solid #3b4261;margin-bottom:4px;padding-bottom:2px;color:#c0caf5;}
#toc-toggle {cursor:default;}
#toc-toggle .toc-open-icon, #toc-toggle .toc-close-icon {display:none;}
#back-to-top {position:fixed;bottom:20px;right:20px;z-index:100;display:none;}
#back-to-top a {display:block;padding:8px 14px;background:#7aa2f7;color:#1a1b26;text-decoration:none;border-radius:6px;font-size:14px;font-family:monospace;}
#back-to-top a:hover {background:#89b4fa;}
body.ext-nav #toc-sidebar, body.ext-nav #back-to-top {display:block;}
form fieldset {border:1px solid #3b4261;}
form legend {color:#a9b1d6;}
input[type='text'] {background:#24283b;color:#c0caf5;border:1px solid #3b4261;padding:4px 6px;font-family:inherit;font-size:14px;}
input[type='submit'] {background:#7aa2f7;color:#1a1b26;border:none;padding:4px 12px;font-family:inherit;font-size:14px;cursor:pointer;border-radius:3px;}
input[type='submit']:hover {background:#89b4fa;}
input[type='radio'] {accent-color:#7aa2f7;}
.tldr-block {background:#24283b;border:1px solid #3b4261;border-radius:4px;margin:8px 0 16px 0;overflow:hidden;}
.tldr-header {padding:8px 12px;font-weight:bold;font-size:14px;color:#c0caf5;background:#1f2335;}
.tldr-source {font-weight:normal;font-size:12px;color:#787c99;margin-left:6px;}
.tldr-body {padding:4px 12px 8px 12px;}
.tldr-desc {color:#a9b1d6;font-style:italic;margin:4px 0 6px 0;}
.tldr-examples {list-style:none;padding:0;margin:0;}
.tldr-examples li {margin:6px 0;font-size:14px;color:#a9b1d6;}
.tldr-examples li code {font-size:14px;background:#1a1b26;color:#9ece6a;padding:1px 4px;border:1px solid #3b4261;border-radius:2px;display:inline-block;margin:2px 0;}
.tldr-examples li b {color:#e0af68;}
/* Code block — Tokyo Night bg_highlight variant */
.code-block {position:relative;margin:8px 0;background:#1f2335;border:1px solid #292e42;border-radius:4px;overflow:hidden;}
.code-block pre {margin:0;padding:10px 40px 10px 12px;background:transparent;}
.code-block .copy-btn {position:absolute;top:4px;right:4px;padding:2px 8px;background:#3b4261;color:#a9b1d6;border:1px solid #565f89;border-radius:3px;font-family:monospace;font-size:11px;cursor:pointer;opacity:0;transition:opacity .15s;z-index:5;white-space:nowrap;}
.code-block:hover .copy-btn {opacity:1;}
.code-block .copy-btn:hover {background:#565f89;color:#c0caf5;}
.code-block .copy-btn.copied {background:#9ece6a;color:#1a1b26;border-color:#9ece6a;}
/* Tables — scroll on overflow, prevent pre blocks from breaking layout */
table {display:block;overflow-x:auto;max-width:100%;border-collapse:collapse;}
th, td {padding:4px 8px;text-align:left;vertical-align:top;border-bottom:1px solid #292e42;}
th {color:#7aa2f7;font-weight:bold;}
td pre, td code {white-space:normal;word-break:break-word;font-size:13px;}
/* Mobile: max-width 1024px */
@media (max-width:1024px){
body.ext-nav #toc-sidebar{display:block !important;position:fixed;top:4px;right:4px;width:220px;max-height:calc(100vh - 12px);overflow-y:auto;z-index:200;border:1px solid #3b4261;box-shadow:-2px 2px 8px rgba(0,0,0,.4);background:#24283b;padding:6px 8px;font-size:14px;}
body.ext-nav #toc-sidebar a{display:none;}
body.toc-open #toc-sidebar a{display:block;}
body.toc-open #toc-sidebar .toc-subs{display:block;}
#toc-toggle{cursor:pointer;color:#c0caf5;font-size:14px;}
#toc-toggle:hover{color:#7aa2f7;}
#toc-toggle .toc-open-icon{display:inline;float:right;}
#toc-toggle .toc-close-icon{display:none;float:right;}
body.toc-open #toc-toggle .toc-open-icon{display:none;}
body.toc-open #toc-toggle .toc-close-icon{display:inline;float:right;}
#back-to-top{z-index:210;}
#content-wrap{margin-right:0;max-width:100%;padding:0 8px;}
body{font-size:12px;}
#man-content pre{white-space:pre-wrap;word-wrap:break-word;font-size:12px;line-height:1.4;}
#man-content ul{list-style:none;padding:0;margin:0 0 12px 0;}
#man-content li{padding:3px 0;border-bottom:1px solid #24283b;font-size:14px;line-height:1.5;}
#man-content li:last-child{border-bottom:none;}
#man-content h2{font-size:14px;color:#7aa2f7;margin:16px 0 6px 0;border-bottom:1px solid #3b4261;padding-bottom:4px;}
input[type='text']{width:100%;font-size:14px;padding:8px;box-sizing:border-box;}
input[type='submit']{font-size:14px;padding:10px 20px;min-height:44px;}
input[type='radio']{transform:scale(1.3);margin-right:4px;}
form p{display:flex;flex-wrap:wrap;gap:6px;align-items:center;}
form a{padding:6px 8px;display:inline-block;}
a{padding:4px 2px;}
p{font-size:12px;line-height:1.6;}
.tldr-block{margin:8px 0 16px 0;}
.tldr-header{font-size:14px;}
.tldr-body dt{font-size:12px;}
.tldr-body dd code{font-size:12px;}
.tldr-examples li{font-size:12px;}
.tldr-examples li code{font-size:12px;}
.code-block .copy-btn{opacity:1;padding:4px 10px;font-size:12px;}
}