소스 검색

样式调整

jqh 5 년 전
부모
커밋
cbbd331063

+ 9 - 1
resources/assets/dcat-admin/main.css

@@ -835,7 +835,7 @@ input.label {
     letter-spacing: .05em;
 }
 .table-header-default.table>thead>tr>th {
-    border-bottom: 2px solid #f4f4f4;
+    border-bottom: 1px solid #f4f4f4;
 }
 .table>thead:first-child>tr:first-child>th:first-child {
     padding-left: 18px;
@@ -2163,6 +2163,14 @@ div.layui-layer-btn{
     display:inline!important;
 }
 
+.grid-column-header a {
+    color: rgba(0, 0, 0, 0.5)!important;
+    font-size: 13px;
+}
+.grid-column-header a:hover,.grid-column-header a.active {
+    color: var(--font)!important;
+}
+
 
 /*!
  * Waves v0.7.6

파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 0 - 0
resources/assets/dcat-admin/main.min.css


+ 1 - 1
src/Grid/Column/Filter/Between.php

@@ -146,7 +146,7 @@ JS;
         $this->addScript();
 
         $value = $this->getFilterValue(['start' => '', 'end' => '']);
-        $active = empty(array_filter($value)) ? '' : 'text-yellow';
+        $active = empty(array_filter($value)) ? '' : 'active';
 
         return <<<EOT
 &nbsp;<span class="dropdown" style="position:absolute">

+ 1 - 1
src/Grid/Column/Filter/Checkbox.php

@@ -36,7 +36,7 @@ JS;
         $this->addScript();
 
         $allCheck = (count($value) == count($this->options)) ? 'checked' : '';
-        $active = empty($value) ? '' : 'text-yellow';
+        $active = empty($value) ? '' : 'active';
 
         $allId = 'filter-all-'.Str::random(5);
 

+ 1 - 1
src/Grid/Column/Filter/Input.php

@@ -42,7 +42,7 @@ JS;
 
         $value = $this->getFilterValue();
 
-        $active = empty($value) ? '' : 'text-yellow';
+        $active = empty($value) ? '' : 'active';
 
         return <<<EOT
 &nbsp;<span class="dropdown" style="position: absolute">

+ 3 - 1
src/Grid/Column/HasHeader.php

@@ -102,7 +102,7 @@ trait HasHeader
      */
     public function renderHeader()
     {
-        return collect($this->headers)->map(function ($item) {
+        $headers = collect($this->headers)->map(function ($item) {
             if ($item instanceof Renderable) {
                 return $item->render();
             }
@@ -113,5 +113,7 @@ trait HasHeader
 
             return (string) $item;
         })->implode('');
+
+        return "<span class='grid-column-header'>$headers</span>";
     }
 }

+ 1 - 1
src/Grid/Header.php

@@ -123,6 +123,6 @@ class Header extends Widget
     {
         $headers = implode(' ', $this->html);
 
-        return "<th {$this->formatHtmlAttributes()}>{$this->label}{$headers}</th>";
+        return "<th {$this->formatHtmlAttributes()}>{$this->label}<span class='grid-column-header'>{$headers}</span></th>";
     }
 }

이 변경점에서 너무 많은 파일들이 변경되어 몇몇 파일들은 표시되지 않았습니다.