diff --git a/pom.xml b/pom.xml index 0967737..e5116e3 100644 --- a/pom.xml +++ b/pom.xml @@ -24,6 +24,12 @@ + + + org.springframework.boot + spring-boot-starter-actuator + + org.springframework.boot diff --git a/src/main/resources/static/css/common.css b/src/main/resources/static/css/common.css index bc8e2e5..4342069 100644 --- a/src/main/resources/static/css/common.css +++ b/src/main/resources/static/css/common.css @@ -149,6 +149,9 @@ label,input,button,select,img { vertical-align:middle } #top_nav_wrap .h_center .util { display:flex; align-items:center; justify-content:space-between; width:100% } +#top_logo { position:relative } +#top_logo a { display:inline-block } +#top_logo img { width:180px; height:auto } #top_nav_wrap .h_center .h_left { display:flex; align-items:center } #top_nav.sub li>a { color:#fff } #top_nav.sub li ul a { color:#888 } @@ -174,6 +177,16 @@ label,input,button,select,img { vertical-align:middle } #topmenuM.dark #m_navBtn span:before, #topmenuM.dark #m_navBtn span:after { background-color:#222 } +/* 서브 페이지 모바일 헤더 */ +#hd.sub #topmenuM { + background-color:#fff; + box-shadow:0 0 12px rgba(0,0,0,0.05); +} +#hd.sub #m_navBtn span:before, +#hd.sub #m_navBtn span:after { + background-color:#222 !important; +} + #m_logo { position:relative } #m_logo a { display:inline-block } #m_logo img { width:150px } @@ -294,13 +307,24 @@ body.page-inquiry #m_navBtn.on span:after { background-color: #fff; } +/* 서브 페이지 PC 로고 교체 */ +#top_nav_wrap.sub #top_logo img { + content: url('/img/common/logo_d.png') !important; + display: inline-block !important; +} +/* 서브 페이지 모바일 로고 교체 */ +#hd.sub #m_logo img { + content: url('/img/common/logo_d.png') !important; + display: inline-block !important; +} + /* PC 로고 교체 */ body.page-inquiry #top_logo img { - content: url('/img/common/logo_d.png'); + content: url('/img/common/logo_d.png') !important; } /* 모바일 로고 교체 */ body.page-inquiry #m_logo img { - content: url('/img/common/logo_d.png'); + content: url('/img/common/logo_d.png') !important; } /* 헤더 반응형 */ diff --git a/src/main/resources/static/js/sub.js b/src/main/resources/static/js/sub.js index bf081b2..c090327 100644 --- a/src/main/resources/static/js/sub.js +++ b/src/main/resources/static/js/sub.js @@ -1,8 +1,9 @@ /* ========================== Head & Footer */ $.get("/include/header").done(function (html) { + // main 클래스를 sub로 미리 교체 + html = html.replace('class="main"', 'class="sub"'); $("#hd").html(html); - $("#top_nav_wrap").removeClass("main").addClass("sub"); }); $.get("/include/footer").done(function (html) { $("#ft").html(html);