Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/phabricator
Path: blob/master/webroot/rsrc/css/layout/phabricator-source-code-view.css
12241 views
1
/**
2
* @provides phabricator-source-code-view-css
3
*/
4
5
.phabricator-source-code-container {
6
overflow-x: auto;
7
overflow-y: hidden;
8
border: 1px solid {$paste.border};
9
}
10
11
.phui-oi .phabricator-source-code-container {
12
margin-left: 8px;
13
}
14
15
.phabricator-source-code {
16
white-space: pre-wrap;
17
padding: 2px 8px 1px;
18
width: 100%;
19
background: #ffffff;
20
}
21
22
.phabricator-source-line {
23
background-color: {$paste.highlight};
24
text-align: right;
25
border-right: 1px solid {$paste.border};
26
color: {$sh-yellowtext};
27
white-space: nowrap;
28
}
29
30
.phabricator-source-line > a::before {
31
/* Render the line numbers as a pseudo-element so they don't get copied. */
32
content: attr(data-n);
33
}
34
35
th.phabricator-source-line a,
36
th.phabricator-source-line span {
37
display: block;
38
padding: 2px 6px 1px 12px;
39
}
40
41
th.phabricator-source-line a {
42
color: {$darkbluetext};
43
}
44
45
th.phabricator-source-line a:hover {
46
background: {$paste.border};
47
text-decoration: none;
48
}
49
50
.phabricator-source-coverage-highlight .phabricator-source-code,
51
.phabricator-source-highlight .phabricator-source-code {
52
background: {$paste.highlight};
53
}
54
55
.phabricator-source-coverage-highlight .phabricator-source-line,
56
.phabricator-source-highlight .phabricator-source-line {
57
background: {$paste.border};
58
}
59
60
.phabricator-source-code-summary {
61
padding-bottom: 8px;
62
}
63
64
/* If a Paste has enormously long lines, truncate them in the summary on the
65
list page. They'll be fully visible on the Paste itself. */
66
.phabricator-source-code-summary .phabricator-source-code-container {
67
overflow-x: hidden;
68
}
69
70
.phabricator-source-code-summary .phabricator-source-code {
71
white-space: nowrap;
72
}
73
74
75
.phabricator-source-blame-skip,
76
.phabricator-source-blame-info {
77
-moz-user-select: -moz-none;
78
-khtml-user-select: none;
79
-webkit-user-select: none;
80
-ms-user-select: none;
81
user-select: none;
82
}
83
84
.phabricator-source-blame-skip {
85
min-width: 28px;
86
border-right: 1px solid {$thinblueborder};
87
}
88
89
.phabricator-source-blame-info {
90
white-space: nowrap;
91
min-width: 130px;
92
border-right: 1px solid {$paste.border};
93
padding-right: 8px;
94
95
vertical-align: middle;
96
color: #ffffff;
97
}
98
99
.phabricator-source-blame-info a {
100
color: {$darkbluetext};
101
text-shadow: 1px 1px rgba(0, 0, 0, 0.05);
102
}
103
104
.phabricator-source-blame-skip a {
105
/* Give the user a larger click target. */
106
display: block;
107
padding: 2px 8px;
108
}
109
110
.phabricator-source-blame-skip a .phui-icon-view {
111
color: {$darkbluetext};
112
}
113
114
.device-desktop .phabricator-source-blame-skip a:hover {
115
background: {$bluebackground};
116
}
117
118
.phabricator-source-blame-author {
119
display: inline-block;
120
vertical-align: middle;
121
padding: 0;
122
margin: 0 6px 0 8px;
123
width: 16px;
124
height: 16px;
125
background-size: 100% 100%;
126
background-repeat: no-repeat;
127
}
128
129
th.phabricator-source-coverage {
130
padding: 0 8px;
131
border-left: 1px solid {$thinblueborder};
132
background: {$lightgreybackground};
133
cursor: w-resize;
134
}
135
136