From b507af1a8dafb3972c2aeb1917363cdf0932bbe3 Mon Sep 17 00:00:00 2001 From: TaehunPark Date: Mon, 31 Oct 2022 17:24:31 +0900 Subject: [PATCH] =?UTF-8?q?fix:leftMenu=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/resources/static/css/common.css | 18 +++++ .../templates/fragments/leftMenu.html | 70 +++++++++++++------ 2 files changed, 65 insertions(+), 23 deletions(-) diff --git a/src/main/resources/static/css/common.css b/src/main/resources/static/css/common.css index df682d4c..fb06e4d0 100644 --- a/src/main/resources/static/css/common.css +++ b/src/main/resources/static/css/common.css @@ -51,4 +51,22 @@ .modal-xxl{ --bs-modal-width : 1440px; +} + +/*사이드바 카테고리 트리*/ +.btn-toggle:hover, .btn-toggle:focus { + color: rgba(0, 0, 0, .85); + background-color: #d2f4ea; +} +.btn-toggle::before { + width: 1.25em; + line-height: 0; + content: url("/img/bootstrap-icons-1.9.1/caret-right-fill.svg"); + transition: transform .35s ease; + transform-origin: 0.5em 50%; +} +.btn-toggle[aria-expanded="true"]::before { + content: url("/img/bootstrap-icons-1.9.1/caret-down-fill.svg"); + /*왜 안돌까?*/ + /*transform: rotate(90deg);*/ } \ No newline at end of file diff --git a/src/main/resources/templates/fragments/leftMenu.html b/src/main/resources/templates/fragments/leftMenu.html index b33b3847..386092a9 100644 --- a/src/main/resources/templates/fragments/leftMenu.html +++ b/src/main/resources/templates/fragments/leftMenu.html @@ -4,36 +4,60 @@ - + \ No newline at end of file