dbnt.co.kr2019/css/style.scss

1292 lines
39 KiB
SCSS

$mainColor :#0061a9;
$mainColor2 : #707070;
.clearfix {
*zoom : 1;
}
.clearfix:after {
clear: both;
display: block;
content: "";
}
.hidden {
text-indent: -99999px;
width: 0;
height: 0;
}
#wrap {
width: 100%;
}
/*기본 세팅*/
@mixin innerSet ( $width, $margin){
width : $width;
margin : $margin;
}
section {
>.mainBanner {
overflow: hidden;
position: relative;
width: 100%;
height: 300px;
//background: url(../images/mvisual_02.jpg);
//background: url(../images/banner_01.png);
background-position: 50% 80%;
background-size: cover;
background-repeat: no-repeat;
>.mainBannerCont {
width: 100%;
>.inner {
width: 100%;
height: 510px;
>ul {
>li{
position: absolute;
top: 0;
left: 0;
float:left;
height: 300px;
width:100%;
text-align: center;
&:nth-child(1) {
background-image: url(../images/banner_01.png);
background-position: 50% 0%;
}
&:nth-child(2) {
background-image: url(../images/car2.png);
background-position: 50% 40%;
background-size: 50% cover;
}
&:nth-child(3) {
background-image: url(../images/dbnt.jpg);
background-position: 50% 0%;
background-repeat: no-repeat;
background-size: cover;
>dl {
dt {
margin-top: -90px;
text-indent: -99999px;
width: 100%;
height: 390px;
background-image: url(../images/dbnt_text.png);
background-position: 50% 80%;
background-repeat: no-repeat;
background-size: cover;
}
}
}
>dl {
margin-top: 0px;
color: #fff;
width: 100%;
padding: 10px 0;
background-color: rgba(000,000,000,0.5);
>dt {
margin-bottom: 0px;
font-size: 40px;
font-weight: 600;
}
>dd {
line-height: 3.5em;
font-size: 20px;
font-weight: normal;
}
}
}
}//end of mainBanner > inner > ul
}//end of mainBanner > inner
}//end of mainBannerCont
}//end of mainBanner
>.mainIndustries {
width: 1200px;
margin: 0 auto 60PX;
>p {
position: relative;
padding-top : 40px;
text-align: center;
font-size: 22px;
color: #000;
&:after {
position: absolute;
bottom: -20px;
left: 50%;
margin-left : -50px;
width: 100px;
height: 3px;
background-color: #000;
content: "";
}
}
ul {
padding-top: 40px;
>li {
overflow: hidden;
float: left;
width: 230px;
height: 230px;
margin-left: 125px;
border-radius: 300px;
>a {
display: block;
height: 230px;
transition: 0.3s;
>dl {
height: 100%;
transform: translateY(50%);
text-align: center;
color: #fff;
>dt {
margin-top: -10px;
font-size: 30px;
}
>dd {
margin-bottom: 20px;
line-height: 1.9em;
transition: 0.3s;
&:nth-child(2) {
position: absolute;
top: -170px;
width: 100%;
height: 350px;
background-position: 50% 50%;
z-index: 0;
}
}
}
}
&:nth-child(1) {
background: url(../images/btn_main01.jpg);
background-position: 0% 0%;
background-repeat: no-repeat;
background-size: cover;
dd {
&:last-child {
}
}
}
&:nth-child(2) {
background: url(../images/asd_01.jpg);
background-position: 10% 100%;
background-repeat: no-repeat;
background-size: cover;
dd {
&:last-child {
}
}
}
&:nth-child(3) {
background: url(../images/tt.jpg);
background-position: 50% 50%;
background-repeat: no-repeat;
background-size: cover;
dd {
&:last-child {
}
}
}
}//end of mainIndustries > ul > li
}//end of mainIndustries > ul
}//end of mainIndustries
>.mainOverView {
margin-top : 100px;
padding: 60px 0;
background-color: #efefef;
>.inner {
@include innerSet(1200px,0 auto );
>ul {
>li {
float:left;
&:nth-child(2) {
position: relative;
float :right;
margin-top : 90px;
margin-right : 80px;
background-color: lightblue;
width: 300px;
text-align: center;
&:after {
position: absolute;
top: -100px;
left: -100px;
width: 100px;
height: 100px;
content : '';
background: url(../images/dot_l.PNG);
background-repeat: no-repeat;
background-position: 50% 50%;
background-size: 100%;
}
&:before {
position: absolute;
top: -100px;
left: 300px;
width: 100px;
height: 100px;
content : '';
background: url(../images/dot_r.PNG);
background-repeat: no-repeat;
background-position: 50% 50%;
background-size: 100%;
}
>a {
display: block;
font-size: 16px;
padding: 15px 50px;
background-color: $mainColor;
color: #fff;
}
}
>dl {
>dt {
position: relative;
margin-bottom: 50px;
font-size: 25px;
&::after {
position: absolute;
top: 40px;
left: 0;
width: 400px;
border: 1px solid $mainColor;
content: '';
}
}
>dd {
line-height: 1.5em;
font-size: 35px;
&:nth-child(3) {
font-size: 15px;
color: #666666;
}
}
}
}
}
}//END
}//end of mainOverView
.mainRND {
position: relative;
margin-bottom: 0px;
width: 100%;
height: 190px;
background: url(../images/www.jpg);
background-attachment: fixed;
background-size: cover;
background-position: 50% 50%;
background-repeat: no-repeat;
z-index: 0;
>h2 {
&:after {
//display: none;
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 190px;
background-color: $mainColor2;
opacity: 0.4;
content: '';
z-index: -1;
}
}
>ul {
width: 1200px;
margin: 50px auto 0;
text-align: center;
color: #fff;
z-index: 10 !important;
>li {
font-size: 30px;
z-index: 10;
&:last-child {
margin-top: 20px;
>a {
padding: 10px 60px;
background-color: #777;
font-size: 15px;
color: #fff;
z-index: 9999;
transition: 0.3s;
&:hover {
background-color: $mainColor;
}
}
}
}
}
}//end of mainRND
}//end of section
/*
********************************************
**************index.html의 css**************
********************************************
*/
/*서브 페이지 레이아웃*/
.subBanner {
width: 100%;
height: 200px;
background: url(../images/company_b.jpg);
background-repeat: no-repeat;
background-size: cover;
background-position: 50% 50%;
>.inner {
@include innerSet(1200px, 0 auto);
>.subBannerInfo {
>ul {
margin-top : 90px;
float:right;
text-align: right;
width: 600px;
>li {
color: #fff;
line-height: 1.9em;
cursor: default;
&:nth-child(1) {
font-size: 28px;
}
&:nth-child(2) {
position: relative;
font-size: 15px;
&:after {
position: absolute;
top: -10px;
right : 0;
width: 200px;
border: 1px solid #fff;
content : "";
}
}
}
}
}
}//end of subBanner > inner
}//end of subBanner
.siteIndex {
padding: 7.5px 0;
border-bottom: 1px solid #dddddd;
>.inner {
@include innerSet(1200px, 0 auto);
}
}//end of siteIndex
.sitemapContainer {
@include innerSet(1200px, 0 auto);
>ul {
width: 100%;
margin-top: 100px;
>li {
float:left;
&:nth-child(1) {
width: 300px;
>dl{
text-align: right;
>dt {
font-size: 50px;
color: $mainColor;
}
>dd {
font-size: 25px;
color: #666;
}
}
}//left sitemap
&:nth-child(2) {
margin-bottom: 90px;
width: 900px;
>dl {
position: relative;
float: left;
padding-left: 90px;
width: 300px;
height: 150px;
padding-bottom: 80px;
&:after {
position: absolute;
bottom: 40px;
left: 90px;
content:"";
width: 300px;
height: 4px;
background-color: #ddd;
}
&:nth-child(1) {
>dt {
&:after {
position: absolute;
top: 10px;
left: 100px;
font-size: 13px;
color: #777;
content:"Company";
}
}
} //회사소개 dl
&:nth-child(2) {
>dt {
&:after {
position: absolute;
top: 10px;
left: 100px;
font-size: 13px;
color: #777;
content:"Business";
}
}
} //산업분야 dl
&:nth-child(3) {
>dt {
&:after {
position: absolute;
top: 10px;
left: 100px;
font-size: 13px;
color: #777;
content:"Reference";
}
}
} //연구과제 dl
&:nth-child(4) {
>dt {
&:after {
position: absolute;
top: 10px;
left: 100px;
font-size: 13px;
color: #777;
content:"Contact Us";
}
}
} //기타 dl
dt {
position: relative;
margin-bottom: 20px;
font-size: 25px;
font-weight: 600;
color: #000;
&:after {
font-weight: 500;
}
&:before {
position: absolute;
top: 30px;
left: 0px;
width: 300px;
height: 3px;
background-color: $mainColor;
font-size: 50px;
content:"";
}
}
dd {
position: relative;
margin-left: 35px;
line-height: 2em;
>a {
color: #000;
}
}
}
}// sitemap menu
}//end of sitemapContainer ul li
}//end of sitemapContainer ul
}//end of sitemapContainer
@media screen and (max-width:768px) { // end of mainPage section css 768
section {
>.mainBanner {
width: 100%;
height: 280px;//510px
background: url(../images/mvisual_02.jpg);
background-position: 50% 15%;
background-size: cover;
background-repeat: no-repeat;
>.mainBannerCont {
width: 100%;
>.inner {
@include innerSet(100%, 0 );// 1200px auto
>ul {
margin-top : 0px;// 70px
>li{
float: inherit;;//left
height: 100%;//480px
width: 100%;//520px
text-align: center;
&:nth-child(3) {
>dl {
dt {
margin-top: -40px;
text-indent: -99999px;
width: 100%;
height: 160px;
background-image: url(../images/dbnt_m.png);
background-position: 50% 50%;
background-repeat: no-repeat;
background-size: 80%;
}
}
}
>dl {
margin-top: -50px;
color: #fff;
width: 100%;
padding: 10px 0px;
background-color: rgba(000,000,000,0.5);
>dt {
margin-bottom: 10px;//0px
font-size: 23px;//30px
font-weight: 600;
}
>dd {
line-height: 1.7em;//3.5px
font-size: 13px;//17px
font-weight: normal;
padding: 0 10px;
}
}
}
}//end of mainBanner > inner > ul
}//end of mainBanner > inner
}//end of mainBannerCont
}//end of mainBanner
>.mainIndustries {
width: 100%;//1200px
margin: 0 auto 0PX;//0 auto 90px
>p {
position: relative;
padding-top : 80px;
text-align: center;
font-size: 18px;
color: #000;
&:after {
position: absolute;
bottom: -20px;
left: 50%;
margin-left : -50px;
width: 100px;
height: 3px;
background-color: #000;
content: "";
}
}
ul {
padding-top: 80px;
>li {
overflow: hidden;
float: inherit;//left
width: 100%;
height: 200px;//300px
margin-left: 0px;//75px
border-radius: 0px;//300px
>a {
display: block;
height: 200px;//300px
transition: 0.3s;
>dl {
height: 100%;
transform: translateY(50%);
text-align: center;
color: #fff;
>dt {
margin-top: -10px;
font-size: 20px;
}
>dd {
margin-bottom: 20px;
line-height: 1.9em;
transition: 0.3s;
&:nth-child(2) {
position: absolute;
top: -170px;
width: 100%;
height: 350px;
background-position: 50% 50%;
z-index: 0;
}
}
}
}
&:nth-child(1) {
background: url(../images/btn_main01.jpg);
background-position: 0% 0%;
background-repeat: no-repeat;
background-size: cover;
dd {
&:last-child {
}
}
}
&:nth-child(2) {
background: url(../images/asd_01.jpg);
background-position: 10% 100%;
background-repeat: no-repeat;
background-size: cover;
dd {
&:last-child {
}
}
}
&:nth-child(3) {
background: url(../images/tt.jpg);
background-position: 50% 50%;
background-repeat: no-repeat;
background-size: cover;
dd {
&:last-child {
}
}
}
}//end of mainIndustries > ul > li
}//end of mainIndustries > ul
}//end of mainIndustries
>.mainOverView {
margin-top : 100px;
padding: 60px 0;
background-color: #efefef;
>.inner {
@include innerSet(1200px,0 auto );
>ul {
>li {
float:left;
&:nth-child(2) {
position: relative;
float :right;
margin-top : 90px;
margin-right : 80px;
background-color: lightblue;
width: 300px;
text-align: center;
&:after {
position: absolute;
top: -100px;
left: -100px;
width: 100px;
height: 100px;
content : '';
background: url(../images/dot_l.PNG);
background-repeat: no-repeat;
background-position: 50% 50%;
background-size: 100%;
}
&:before {
position: absolute;
top: -100px;
left: 300px;
width: 100px;
height: 100px;
content : '';
background: url(../images/dot_r.PNG);
background-repeat: no-repeat;
background-position: 50% 50%;
background-size: 100%;
}
>a {
display: block;
font-size: 16px;
padding: 15px 50px;
background-color: $mainColor;
color: #fff;
}
}
>dl {
>dt {
position: relative;
margin-bottom: 50px;
font-size: 25px;
&::after {
position: absolute;
top: 40px;
left: 0;
width: 400px;
border: 1px solid $mainColor;
content: '';
}
}
>dd {
line-height: 1.5em;
font-size: 35px;
&:nth-child(3) {
font-size: 15px;
color: #666666;
}
}
}
}
}
}//END
}//end of mainOverView
.mainRND {
position: relative;
margin-bottom: 0px;//20px
width: 100%;
height: 200px;//230px
background: url(../images/www.jpg);
background-attachment: fixed;
background-size: cover;
background-position: 50% 50%;
background-repeat: no-repeat;
z-index: 0;
>h2 {
&:after {
//display: none;
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 200px;
background-color: $mainColor2;
opacity: 0.4;
content: '';
z-index: -1;
}
}
>ul {
width: 100%;//1200px
margin: 60px auto 0;
text-align: center;
color: #fff;
z-index: 10 !important;
>li {
font-size: 20px;
z-index: 10;
&:last-child {
margin-top: 20px;
>a {
padding: 10px 60px;
background-color: #777;
font-size: 15px;
color: #fff;
z-index: 9999;
transition: 0.3s;
&:hover {
background-color: $mainColor;
}
}
}
}
}
}//end of mainRND
}//end of section
.subBanner {
width: 100%;
height: 250px;//변경
background: url(../images/company.jpg);
background-repeat: no-repeat;
background-size: cover;
background-position: 50% 50%;
>.inner {
@include innerSet(100%, 0); // 1200px 0 auto
>.subBannerInfo {
>ul {
margin-top : 60px;//150px
float: inherit;;//right
text-align: center;//right
width: 100%;//600px
>li {
color: #fff;
line-height: 1.9em;
cursor: default;
&:nth-child(1) {
font-size: 30px;//50px
}
&:nth-child(2) {
position: relative;
font-size: 15px;
padding: 0 90px;// 추가
&:after {
position: absolute;
top: -10px;
right : 50%;// 0
transform: translateX(50%);//추가
width: 200px;
border: 1px solid #fff;
content : "";
}
}
}
}
}
}//end of subBanner > inner
}//end of subBanner
.siteIndex {
padding: 7.5px 0;
text-align: center;
border-bottom: 1px solid #dddddd;
font-size: 13px;
>.inner {
@include innerSet(100%, 0);//1200px 0 auto
}
}//end of siteIndex
.sitemapContainer {
@include innerSet(100%, 0); // 1200px auto
>ul {
width: 100%;
margin-top: 100px;
>li {
float: inherit; // left
&:nth-child(1) {
width: 100%;// 300px
margin: 100px 0; //추가
>dl{
text-align: center;//right
>dt {
font-size: 50px;
color: $mainColor;
}
>dd {
font-size: 25px;
color: #666;
}
}
}//left sitemap
&:nth-child(2) {
margin-top: 50px;// 추가
margin-bottom: 90px;
width: 100%;//900px
>dl {
position: relative;
float: left;
padding-left: 0px;//90px
width: 100%;//300px
height: 150px;
padding-bottom: 80px;
&:after {
position: absolute;
bottom: 40px;
left: 0px;//90px
content:"";
width: 100%;//300px
height: 4px;
background-color: #ddd;
}
&:nth-child(1) {
>dt {
&:after {
display: none;//추가
position: absolute;
top: 10px;
left: 100px;
font-size: 13px;
color: #777;
content:"Company";
}
}
} //회사소개 dl
&:nth-child(2) {
>dt {
&:after {
display: none;//추가
position: absolute;
top: 10px;
left: 100px;
font-size: 13px;
color: #777;
content:"Business";
}
}
} //산업분야 dl
&:nth-child(3) {
>dt {
&:after {
display: none;//추가
position: absolute;
top: 10px;
left: 100px;
font-size: 13px;
color: #777;
content:"Research and Development";
}
}
} //연구과제 dl
&:nth-child(4) {
>dt {
&:after {
display: none;//추가
position: absolute;
top: 10px;
left: 100px;
font-size: 13px;
color: #777;
content:"Contact Us";
}
}
} //기타 dl
dt {
position: relative;
text-align: center;//추가
margin-bottom: 20px;
font-size: 25px;
font-weight: 600;
color: #000;
&:after {
font-weight: 500;
}
&:before {
position: absolute;
top: 30px;
left: 0px;
width: 100%;// 300px
height: 3px;
background-color: $mainColor;
font-size: 50px;
content:"";
}
}
dd {
position: relative;
margin-left: 0px;//35px
text-align: center;//추가
line-height: 2em;
border-bottom: 1px solid #ddd;
>a {
color: #000;
}
}
}
}// sitemap menu
}//end of sitemapContainer ul li
}//end of sitemapContainer ul
}//end of sitemapContainer
}//end of mediaQuery