diff --git a/resources/beike/shop/default/css/app.scss b/resources/beike/shop/default/css/app.scss index e4fe994f..cb0c0bf6 100644 --- a/resources/beike/shop/default/css/app.scss +++ b/resources/beike/shop/default/css/app.scss @@ -26,7 +26,7 @@ $primary: #fd560f; @import './order-success'; @import './page-account-order'; @import './page-account-address'; -@import './page-list'; +@import './page-brands'; @import './home'; @import './module/module-image-plus'; @import './module/module-brand'; diff --git a/resources/beike/shop/default/css/page-list.scss b/resources/beike/shop/default/css/page-brands.scss similarity index 65% rename from resources/beike/shop/default/css/page-list.scss rename to resources/beike/shop/default/css/page-brands.scss index 8538ecd9..cf5c9d3f 100644 --- a/resources/beike/shop/default/css/page-list.scss +++ b/resources/beike/shop/default/css/page-brands.scss @@ -8,7 +8,7 @@ * @LastEditTime 2022-09-16 20:56:17 */ -body.page-list { +body.page-brands { .brand-item { display: flex; align-items: center; // flex-start | center @@ -23,28 +23,45 @@ body.page-list { } } - li { - list-style: none; + .brand-list { + li { + list-style: none; - a{ - color: #242424; - text-decoration: none; - } - } - - .curser { - cursor: pointer; - - >li>a { - display: block; - color: #242424; - transition: all .5s; - margin: 0 auto; - - &:hover { + a { + color: #242424; text-decoration: none; - background-color: #eee; } } } -} \ No newline at end of file + + .curser-list { + cursor: pointer; + + @media (max-width: 768px) { + display: block; + + li { + display: inline-block; + margin-bottom: 6px; + + & + .list-group-item { + border-left: 1px solid #e4e4e4; + } + } + } + + >li>a { + color: #242424; + transition: all .3s; + text-decoration: none; + + &:hover { + background-color: #eee; + } + + &:active { + background-color: #aaa; + } + } + } +} diff --git a/themes/default/brand/list.blade.php b/themes/default/brand/list.blade.php index f8d23da1..e2fea4e1 100644 --- a/themes/default/brand/list.blade.php +++ b/themes/default/brand/list.blade.php @@ -1,26 +1,23 @@ @extends('layout.master') -@section('body-class', 'page-list') +@section('body-class', 'page-brands') @section('content')
- + +

{{ __('shop/brands.index') }}

-
-

{{ __('shop/brands.index') }}

-
- -