Debian Codegraph @

resources/src/mediawiki.debug/debug.less

raw
1 @import 'mediawiki.skin.variables.less';
2
3 .mw-debug {
4 width: 100%;
5 background-color: @background-color-notice-subtle;
6 border-top: 1px solid @border-color-base;
7
8 pre {
9 /* TODO: Re-evaluate whether we should keep this over-ride or switch to ems */
10 /* stylelint-disable-next-line declaration-property-unit-disallowed-list */
11 font-size: 11px;
12 padding: 0;
13 margin: 0;
14 background: none;
15 border: 0;
16 }
17
18 table {
19 border-spacing: 0;
20 width: 100%;
21 table-layout: fixed;
22
23 tr {
24 background-color: @background-color-base;
25
26 &:nth-child( even ) {
27 background-color: @background-color-interactive-subtle;
28 }
29 }
30
31 td,
32 th {
33 padding: 4px 10px;
34 }
35
36 td {
37 border-bottom: 1px solid @border-color-muted;
38 word-wrap: break-word;
39
40 /* stylelint-disable-next-line selector-class-pattern */
41 &.nr {
42 text-align: right;
43 }
44
45 /* stylelint-disable-next-line selector-class-pattern */
46 span.stats {
47 color: @color-placeholder;
48 }
49 }
50 }
51
52 ul {
53 margin: 0;
54 list-style: none;
55 }
56
57 li {
58 padding: 4px 0;
59 width: 100%;
60 }
61 }
62
63 .mw-debug-bits {
64 text-align: center;
65 border-bottom: 1px solid @border-color-base;
66 }
67
68 .mw-debug-bit {
69 display: inline-block;
70 padding: 10px 5px;
71 /* TODO: Re-evaluate whether we should keep this over-ride or switch to ems */
72 /* stylelint-disable-next-line declaration-property-unit-disallowed-list */
73 font-size: 13px;
74 }
75
76 .mw-debug-panelink {
77 background-color: @background-color-notice-subtle;
78 border-right: 1px solid @border-color-subtle;
79
80 &:first-child {
81 border-left: 1px solid @border-color-subtle;
82 }
83
84 &:hover {
85 background-color: @background-color-button-quiet--hover;
86 cursor: pointer;
87 }
88
89 /* stylelint-disable-next-line selector-class-pattern */
90 &.current {
91 background-color: @background-color-button-quiet--active;
92 }
93 }
94
95 a.mw-debug-panelabel,
96 a.mw-debug-panelabel:visited {
97 color: @color-emphasized;
98 }
99
100 .mw-debug-pane {
101 height: 300px;
102 overflow: scroll;
103 display: none;
104 font-family: monospace, monospace;
105 /* TODO: Re-evaluate whether we should keep this over-ride or switch to ems */
106 /* stylelint-disable-next-line declaration-property-unit-disallowed-list */
107 font-size: 11px;
108 background-color: @background-color-progressive-subtle;
109 box-sizing: border-box;
110 }
111
112 #mw-debug-pane-debuglog,
113 #mw-debug-pane-request {
114 padding: 20px;
115 }
116
117 #mw-debug-pane-request {
118 table {
119 width: 100%;
120 margin: 10px 0 30px;
121 }
122
123 tr,
124 th,
125 td,
126 table {
127 border: 1px solid @border-color-subtle;
128 border-collapse: collapse;
129 margin: 0;
130 }
131
132 th,
133 td {
134 /* TODO: Re-evaluate whether we should keep this over-ride or switch to ems */
135 /* stylelint-disable-next-line declaration-property-unit-disallowed-list */
136 font-size: 12px;
137 padding: 8px 10px;
138 }
139
140 th {
141 background-color: @background-color-warning-subtle;
142 font-weight: bold;
143 }
144
145 td {
146 background-color: @background-color-transparent;
147 }
148 }
149
150 #mw-debug-console tr td {
151 &:first-child {
152 font-weight: bold;
153 vertical-align: top;
154 }
155
156 &:last-child {
157 vertical-align: top;
158 }
159 }
160
161 .mw-debug-console-log {
162 background-color: @background-color-content-added;
163 }
164
165 .mw-debug-console-warn {
166 background-color: @background-color-warning-subtle;
167 }