diff --git a/css/aside.css b/css/aside.css index a4e36fe..75195e1 100644 --- a/css/aside.css +++ b/css/aside.css @@ -66,13 +66,13 @@ aside .wrap ul.list > li:nth-child(5) h3::before{ background-color: red; } aside .wrap ul.list > li:nth-child(6) h3::before{ - background-color: gold; + background-color: #7829EE; } aside .wrap ul.list > li:nth-child(7) h3::before{ background-color: cyan; } -aside .wrap ul.list > li:nth-child(9) h3::before{ - background-color: brown; +aside .wrap ul.list > li:nth-child(8) h3::before{ + background-color: #FF1A82; } aside .wrap ul.list > li h3 a { height: 100%; @@ -118,7 +118,6 @@ aside .wrap ul.list > li:nth-child(8) h3 a::before{ background-position-y: calc(-41px * 7); } aside .wrap ul.list > li div{ - display: none; } aside .wrap ul.list > li ul.listsub { position: absolute; @@ -167,13 +166,13 @@ aside .wrap ul.list > li:nth-child(5) ul.listsub::before{ background-color: red; } aside .wrap ul.list > li:nth-child(6) ul.listsub::before{ - background-color: gold; + background-color: #7829EE; } aside .wrap ul.list > li:nth-child(7) ul.listsub::before{ background-color: cyan; } aside .wrap ul.list > li:nth-child(8) ul.listsub::before{ - background-color: brown; + background-color: #FF1A82; } aside .wrap ul.list > li ul.listsub li { position: relative; diff --git a/css/header.css b/css/header.css index 96e29da..ca26b49 100644 --- a/css/header.css +++ b/css/header.css @@ -1,7 +1,24 @@ header { position: relative; - transition: 1s; } +.headerFix{ + position: fixed; + z-index: 1; + width: 100%; + background-color: white; + top: 0; + animation-name: down; + animation-duration: 0.5s; + animation-direction: reverse; + animation-fill-mode: forwards; + animation-timing-function: ease-out; +} +@keyframes down{ + 100%{ + top:-80px; + } +} + @keyframes headerdown{ 0%{ transform: translateY(-40px); @@ -27,15 +44,22 @@ header .wrap nav { align-items: center; } header.headerFix .wrap nav{ -grid-template-columns: auto auto auto; grid-template-rows: auto; +grid-template-columns: auto auto auto; +grid-template-rows: auto; } header .wrap nav h1 { grid-column: 1 / span 2; justify-self: center; line-height: 2; + width: 100%; + height: 44px; + display: flex; + justify-content: center; + align-content: center; } header.headerFix .wrap nav h1{ -grid-column: 1; justify-self: start; + grid-column: 1; + justify-self: start; } header .wrap nav h1::before{ content: ""; @@ -48,7 +72,7 @@ header .wrap nav h1::before{ top: 0; } header.headerFix .wrap nav h1::before{ -display: none; + display: none; } header .wrap nav h1:hover::before{ } @@ -59,6 +83,7 @@ header .wrap nav h1 a { height: 25px; background-image: url(../img/logo_hitejinro.png); position: relative; + margin: 0 auto; } header .wrap nav h1 a span { @@ -67,7 +92,6 @@ header .wrap nav ul.gnb{ display: flex; } header.headerFix .wrap nav ul.gnb{ - justify-self: center; } header .wrap nav ul.gnb li { @@ -85,25 +109,87 @@ header .wrap nav ul.gnb li a:hover{ } /* wgnb */ -header .wrap nav .wgnb{ +header .wrap nav .wgnb { display: block; position: absolute; - width: 90%; - height: 100vh; - left: -90%; - top: 0; + width: 100%; background-color: white; z-index: 1; - padding: 20px 20px 0 20px; + padding: 0 20px 0 20px; box-sizing: border-box; - transition: 1s; -/* display: none; */ + /* transition: 1s; */ + left: 0; + top: 120px; + background-color: rgba(18,83,250,0.98); + display: none; + height: 240px; } -.close{ - +header .wrap nav .wgnb *{ + color: white; +} +header .wrap nav .wgnb .center{ + max-width: 1200px; + margin: 0 auto; + position: relative; } .wgnbShow{ left: 0 !important; + display: block !important; +} +.close{ + display: block; + width: 32px; + height: 32px; + background-image: url(../img/close.svg); + background-size: contain; +} +header .wrap nav .wgnb .wsub{ + /*! padding-left:30px; */ + height: 240px; +} +header .wrap nav .wgnb .wsub:nth-child(2) ul.sub1{ + grid-template-columns: repeat(4,1fr); + grid-template-rows: auto; +} +header .wrap nav .wsub:nth-child(2) ul.sub1>li:nth-child(1){ + grid-column: 2; + grid-row: 1; +} +header .wrap nav .wsub:nth-child(2) ul.sub1 > li:nth-child(1) div{ + width: 80%; + font-size: 14px; + +} +header .wrap nav .wsub:nth-child(2) ul.sub1 > li:nth-child(1) div a{ + line-height: 1.4; + color: #ccc; +} +header .wrap nav .wsub:nth-child(2) ul.sub1>li:nth-child(2){ + grid-column: 3; + grid-row: 1; +} +header .wrap nav .wsub:nth-child(2) ul.sub1>li:nth-child(3){ + grid-column: 4; + grid-row: 1; +} +header .wrap nav .wsub:nth-child(2) ul.sub1 > li:nth-child(3) ul.sub2{ + flex-direction: column; +} +header .wrap nav .wgnb .wsub{ + display: none; + position: absolute; + left: 0; + top: 0; +} +header .wrap nav .wgnb h2{ + /*! display: block; */ + /*! line-height: 3; */ + /*! cursor: pointer; */ + /*! font-size: 19px; */ + /*! display: flex; */ + /*! justify-content: space-between; */ + /*! align-items: center; */ + /*! opacity: 0.7; */ } header .wrap nav .wgnb >a{ font-size: 0; @@ -111,21 +197,15 @@ header .wrap nav .wgnb >a{ height: 30px; background: url(../img/close.svg) no-repeat center /contain; } -header .wrap nav .wgnb .center{ - -} -header .wrap nav .wgnb .wsub{ - padding-left: 45px; -} header .wrap nav .wgnb h2{ - display: block; - line-height: 3; - cursor: pointer; - font-size: 19px; - display: flex; - justify-content: space-between; - align-items: center; - opacity: 0.7; + /*! display: block; */ + /*! line-height: 3; */ + /*! cursor: pointer; */ + /*! font-size: 19px; */ + /*! display: flex; */ + /*! justify-content: space-between; */ + /*! align-items: center; */ + /*! opacity: 0.7; */ } header .wrap nav .wgnb h2::after{ content: ""; @@ -141,23 +221,69 @@ header .wrap nav .wgnb h2.currentH2::after{ .currentH2{ color: blue; } -header .wrap nav .wgnb ul{ - display: none; +header .wrap nav .wgnb .wsub ul.sub1{ + display: grid; + grid-template-columns: repeat(7, 1fr); + grid-template-rows: repeat(3, 80px); text-align: left; - margin-left: -65px; - margin-right: -20px; - background-color: #eee; - padding-left: 65px; } -header .wrap nav .wgnb ul li{ - +header .wrap nav .wgnb ul.sub1 >li{ + transition: 0.3s; +} +header .wrap nav .wgnb ul.sub1 > li:nth-child(-n+3){ + margin-left:-20px; + padding-left: 20px; +} +header .wrap nav .wgnb ul.sub1 >li:hover{ + background-color: rgba(11, 79, 184, 0.6); +} +header .wrap nav .wgnb ul.sub1 >li:nth-child(n+4){ + border-left: 1px solid #ccc; + grid-row: 1 / span 3; +} +header .wrap nav .wgnb ul.sub1>li:nth-child(2){ + grid-column: 1; + grid-row: 2; +} +header .wrap nav .wgnb ul.sub1>li:nth-child(3){ + grid-column: 1; + grid-row: 3; } -header .wrap nav .wgnb ul li a{ - line-height: 3; +header .wrap nav .wgnb ul.sub1>li>a{ display: block; + line-height: 2.5; + padding-top: 20px; } -header .wrap nav .wgnb ul li:not(:first-child) a{ - border-top: 1px solid #ccc; +header .wrap nav .wgnb ul.sub1>li>a::before{ + content: ""; + display: block; + width: 20px; + border-top:1px solid #fff; +} +header .wrap nav .wgnb ul.sub1>li:nth-child(n+4) a{ + padding-left: 20px; +} +header .wrap nav .wgnb ul.sub1>li:not(:first-child)>a{ + padding-left: initial; +} +header .wrap nav .wgnb ul.sub2{ + +} +header .wrap nav .wsub:nth-child(2) ul.sub1 > li:nth-child(2) ul.sub2{ + flex-wrap: wrap; +} +header .wrap nav .wsub:nth-child(2) ul.sub1 > li:nth-child(2) ul.sub2 li{ + width: 40%; +} + +header .wrap nav .wgnb ul.sub2 li{ + +} +header .wrap nav .wgnb ul.sub2 li a{ + color: #ccc; + font-size: 14px; + line-height: 1.4; + font-weight: 300; } /* 기타메뉴 */ header .wrap nav ul.enb { @@ -184,22 +310,3 @@ header .wrap nav ul.enb li a:hover { header .wrap nav ul.enb li:nth-child(1) a::after,header .wrap nav ul.enb li:nth-child(2) a::after{ } -.headerFix{ - position: fixed; - z-index: 1; - width: 100%; - background-color: white; - top: 0; - animation-name: down; - animation-duration: 0.5s; - animation-direction: reverse; - animation-fill-mode: forwards; - animation-timing-function: ease-out; -} - -@keyframes down{ - to{ - top: -75px; - opacity: 0; - } -} \ No newline at end of file diff --git a/css/responsive.css b/css/responsive.css index 4f49db9..50d6ae6 100644 --- a/css/responsive.css +++ b/css/responsive.css @@ -2,7 +2,6 @@ @media screen and (max-width:1440px){ /* 헤더 */ body{ - padding-right: 100px; } header .wrap nav{ @@ -11,6 +10,8 @@ } header .wrap nav h1{ grid-column: 1; + grid-row: 1; + justify-self: auto; } header .wrap nav ul.gnb{ grid-column: 1 / span 2; @@ -18,10 +19,10 @@ justify-self: center; } header .wrap nav ul.enb{ - grid-column: 3; - grid-row: 1; - position: relative; - justify-self: center; + grid-column: 2; + grid-row: 1; + position: relative; + justify-self: end; } } @@ -45,6 +46,88 @@ header .wrap nav ul.enb{ display: none; } + header .wrap nav .wgnb{ + width: 80%; + height: 100vh; + left: -80%; + top: 0; + background-color: white; + transition: 1s; + display: block !important; + } + + .wgnbShow{ + left: 0 !important; + display: block !important; + } + header .wrap nav .wgnb >a{ + font-size: 0; + width: 30px; + height: 30px; + background: url(../img/close.svg) no-repeat center /contain; + } + header .wrap nav .wgnb .wsub{ + padding-left: 30px; + display: initial; + position: initial; + } + header .wrap nav .wgnb h2{ + display: block; + line-height: 3; + cursor: pointer; + font-size: 19px; + display: flex; + justify-content: space-between; + align-items: center; + opacity: 0.7; + color: #333; + } + header .wrap nav .wgnb h2::after{ + content: ""; + display: inline-block; + width: 30px; + height: 30px; + background: url(../img/more_down.svg) no-repeat center /contain; + transition: 0.5s; + } + header .wrap nav .wgnb h2.currentH2::after{ + transform: rotate(180deg); + } + .currentH2{ + color: blue; + } + header .wrap nav .wgnb ul{ + display: none; + text-align: left; + margin-left: -65px; + margin-right: -20px; + background-color: #eee; + padding-left: 65px; + } + header .wrap nav .wgnb .wsub ul.sub1{ + display: initial; + display: none; + } + header .wrap nav .wgnb ul.sub2{ + display: none; + } + header .wrap nav .wgnb ul li{ + + } + header .wrap nav .wgnb ul.sub1 > li:nth-child(n+4){ + border-left: none; + } + header .wrap nav .wgnb ul li a{ + line-height: 3; + display: block; + } + header .wrap nav .wgnb ul.sub1 > li > a{ + color: #333; + } + header .wrap nav .wgnb ul li:not(:first-child) a{ + border-top: 1px solid #ccc; + } +/* 추가1 */ header .wrap nav{ grid-template-columns: auto 1fr auto; grid-template-rows: 50px; @@ -69,7 +152,6 @@ cursor: pointer; } #product ul.list{ - grid-template-columns: auto auto auto; grid-template-rows: repeat(4, auto); row-gap: 20px; @@ -116,41 +198,33 @@ width: auto; display: block; } - aside .wrap ul.list > li div{ - display: none; - } - aside .wrap ul.list > li ul.listsub{ -/* display: none; */ - position: static; - height: auto; - display: flex; - flex-wrap: wrap; - background-color: #eee; + aside .wrap ul.list{ + text-align: left; + grid-template-rows: repeat(8,auto); } aside .wrap ul.list{ - text-align: left; - grid-template-rows: repeat(8,auto); + text-align: left; + grid-template-rows: repeat(8,auto); } - aside .wrap ul.list > li h3::before{ + aside .wrap ul.list > li h3::before{ display: none; } aside .wrap ul.list > li h3{ - height: auto; + height: initial; } aside .wrap ul.list > li h3 a{ flex-direction: row; justify-content: left; - font-size: 20px; - line-height: 3.5; + line-height: 4; + font-size: 17px; color: #333; - position: relative; } aside .wrap ul.list > li:not(:first-child) h3 a{ border-top: 1px solid #ccc; } aside .wrap ul.list > li h3 a::before{ - background-image: url(../img/aside/gnb_brand_menu.m.png); - } + background-image: url(../img/aside/gnb_brand_menu.m.png); + } aside .wrap ul.list > li h3 a::after{ content: ""; background: url(../img/아이콘/plus.png) no-repeat center /contain; @@ -160,6 +234,19 @@ position: absolute; right: 0; } + aside .wrap ul.list > li div{ + display: none; + } + aside .wrap ul.list > li ul.listsub{ +/* display: none; */ + position: static; + height: auto; + display: flex; + flex-wrap: wrap; + } + aside .wrap ul.list > li ul.listsub::before{ + display: none; + } aside .wrap ul.list > li ul.listsub li{ width: calc(100% / 3); } @@ -169,32 +256,9 @@ aside .wrap ul.list > li ul.listsub li a img{ width: 100%; } - aside .wrap ul.list > li ul.listsub::before{ - display: none; - } - .asideSliding{ - right: 0%; - } -/* 푸터 */ - footer div.wrap{ - padding-top: 20px; - } - footer div.wrap ul.fnb{ - margin-bottom: 20px; - } - footer div.wrap ul.fnb li a{ - - line-height: 2.2; - } - footer div.wrap address{ - font-size: 15px; - } - footer .btop{ - - right: 20px; - top: -245px; - } } + + /* ------------------768(960) --------------------*/ @media screen and (max-width:768px){ /* 버튼 */ @@ -228,7 +292,6 @@ font-size: 20px; } #product ul.list li p{ - font-size: 14px; letter-spacing: 0; padding: 5px 8px; @@ -252,8 +315,7 @@ footer div.wrap ul.fnb li ul.sublist{ display: none !important; } - - footer div.wrap ul.fnb{ + footer div.wrap ul.fnb{ text-align: left; } footer div.wrap ul.fnb{ @@ -263,7 +325,7 @@ line-height: 2.2; font-size: 13px; } - footer div.wrap ul.fnb2{ + footer div.wrap ul.fnb2{ justify-content: center; } footer div.wrap ul.fnb2 li{ diff --git a/header.html b/header.html new file mode 100644 index 0000000..ae5b821 --- /dev/null +++ b/header.html @@ -0,0 +1,194 @@ + +
+ +
\ No newline at end of file diff --git a/index.html b/index.html index d35de08..3b40c98 100644 --- a/index.html +++ b/index.html @@ -18,6 +18,15 @@ + +