본문 바로가기

coding/css

0609 / responsive web design (rwd) 반응형웹 (smartphone_vertical)

 * b_smartphone_vertical

@media screen and (max-width:479px) {

  /* vw단위 기준 : 320px  */

  html,  body {

    width:100%;

    min-width:320px;

  }

 

  #wrap {

    height500px;

    background-color#0cf;

  }

  /* headBox ============================= */

  #headBox {

    positionfixedtop:0left:50%z-index:1500;

    transform:translateX(-50%);

    width:100%

    height:40pxheight:2.5remheight:12.5vw/* 원수치로 환산시 : 12.5/100*320 */

    /* overflow-x:visible;

    overflow-x:auto; */

    min-height:40pxmin-height:2.5rem;

    padding:10px 1rembox-sizingborder-box;

    background-color#333;

  }

 

  .headBox_innerwrap {

    /* position: relative; */

    width:100%height:auto;

    /* min-width:320px; */

  }

 

  h1 {

    float:left;

    width100pxheight30px;

    background-color#33b88f;

  }

  #navBox {

    float:right;

    width60pxheight25px;

    background-color#fff;

  }

  .search_area {

    float:left;

    width24pxheight25px;

    box-sizing:border-box;

    background-color#33b88f;

  }

  .search_open_btn {

    width100%height100%;

  }

  .search_open_btn > button {

    width:inheritheight:inherit;

  }

  .search_part { 

    display:none;

    positionfixedz-index:100;

    top:0left:0;

    width100%height:100px;

    padding:1rembox-sizingborder-box;

    background-colorrgba(0,255,255,0.95);

   }

   .search_part.act {

     displayblock;

   }

 

  .gnb_area {

    float:right;

    width30pxheight25px;

    background-color#33b88f;

  }

 

  .gnb_btn { width:100%height100%;}

  .gnb_btn > button { width:100%height100%;}

 

  .gnb_nav { 

    display:none

    position:absolutetop:0right:0z-index:0;

    width100%heightautomin-height:300px;

    padding:1rembox-sizing:border-box;

    color:#fff;

    background-color#aaa;

  }

 

  .gnb_nav.act { display:block; }

 

  .gnb_close_btn {

    positionabsolutetop:0right:0;

    color:#ffffont-size:0.7rem;

    background-color#333;

  }

  .gnb_close_btn button {

    width100%height100%;

    color:inherit;

  }



  /* viewBox ============================ */

  #viewBox {

    width100%;

    height480pxheight:30remheight:150vwmin-height:30rem;

    padding-top:12.5vwbox-sizing:border-box;

    background-color#bbaa77;

  }

  .indicator { display:none; }

  

  .view_area { 

    padding94px 24px 40px;

    padding5.875rem 1.5rem 2.5rem;

    padding29.375vw 7.5vw 12.5vw;

    box-sizing:border-box;

  }

 

  .view_guide {

    width100%height100%;

    border:1px solid #333;

    box-sizingborder-box;

    overflow-y:hidden;

  }

 

  .view_inner {

    width100%heightauto;

    background-color#adf;

    /* overflow-y:hidden; */

  }

  .view_inner > li {

    width100vw;

    height60px

    height:3.75rem

    height:18.75vw;

    margin-bottom:20px;

    margin-bottom:1.25rem;

    margin-bottom:6.25vw;

    background-color#fff;

    /* overflow-y:hidden; */

  }

  .view_inner > li:last-child {

    margin-bottom:0;

  }

 

  /* contentBox ========================= */

  #contentBox {

    height:auto;

    min-height:30rem;

  }

    .content_area {

      width100%height:150vw

      background-color#fff;

    }



  /* infoBox ============================ */

  #infoBox {

    width:100%height:auto;

    background-color#33b88f;

  }

    .new_area {

      width100%height480px;

      background-color#957de9;

    }

    .notice_area.more_content { display:none; }

 

  /* footBox ============================ */

  #footBox {

    width:100%height:40px;

    background-color#333;

  }

}

/* @media screen and (max-width:479px) */