소스 검색

Update style for debug template

Visman 3 년 전
부모
커밋
d15b75221a
2개의 변경된 파일13개의 추가작업 그리고 13개의 파일을 삭제
  1. 8 8
      app/templates/layouts/debug.forkbb.php
  2. 5 5
      public/style/ForkBB/style.css

+ 8 - 8
app/templates/layouts/debug.forkbb.php

@@ -2,23 +2,23 @@
       <h2>{!! __('Debug table') !!}</h2>
       <p id="id-fdebugtime">[ {!! __(['Querytime', num($p->time, 3), $p->numQueries]) !!} - {!! __(['Memory usage', size($p->memory)]) !!} {!! __(['Peak usage', size($p->peak)]) !!} ]</p>
 @if ($p->queries)
-      <table>
-        <thead>
+      <table id="fork-dgtable">
+        <thead id="fork-dgthead">
           <tr>
-            <th class="tcl" scope="col">{!! __('Query times') !!}</th>
-            <th class="tcr" scope="col">{!! __('Query') !!}</th>
+            <th class="f-tcl" scope="col">{!! __('Query times') !!}</th>
+            <th class="f-tcr" scope="col">{!! __('Query') !!}</th>
           </tr>
         </thead>
         <tbody>
     @foreach ($p->queries as $cur)
           <tr>
-            <td class="tcl">{{ num($cur[1], 3) }}</td>
-            <td class="tcr">{{ $cur[0] }}</td>
+            <td class="f-tcl">{{ num($cur[1], 3) }}</td>
+            <td class="f-tcr">{{ $cur[0] }}</td>
           </tr>
     @endforeach
           <tr>
-            <td class="tcl">{{ num($p->total, 3) }}</td>
-            <td class="tcr"></td>
+            <td class="f-tcl">{{ num($p->total, 3) }}</td>
+            <td class="f-tcr"></td>
           </tr>
         </tbody>
       </table>

+ 5 - 5
public/style/ForkBB/style.css

@@ -822,24 +822,24 @@ body,
   text-align: center;
 }
 
-#fork-debug > table {
+#fork-debug #fork-dgtable {
   width: 100%;
   border: 0.0625rem solid #AA7939;
   border-collapse: collapse;
   table-layout: fixed;
 }
 
-#fork-debug thead {
+#fork-dgtable #fork-dgthead {
   background-color: #F8F4E3;
 }
 
-#fork-debug td,
-#fork-debug th {
+#fork-dgtable .f-tcl,
+#fork-dgtable .f-tcr {
   padding: 0.3125rem 0.625rem;
   border-bottom: 0.0625rem solid #AA7939;
 }
 
-#fork-debug .tcl {
+#fork-dgtable .f-tcl {
   width: 5rem;
 }