求職者支援訓練Webデザイン Webサイト制作科 白描

求職者支援訓練Webサイト制作科 補足メモ Web白描

Sass実践 CafeLeaf headerとfooter

Sass実践 CafeLeaf headerとfooter

f:id:web-0220:20190222232327p:plain

f:id:web-0220:20190222232340p:plain


/* header
----------------------------------------------- */
.header{
  padding: 12%;
  background: url(#{$IMG_PATH}bg_header.jpg) no-repeat center top;
  background-size: cover;
  position: relative;
    &:before{
      content: "";
      display: block;
      width: 33.75%;
      height: 55.5555%;
      max-width: 220px;
      max-height: 200px;
      background: url(#{$IMG_PATH}bg_race.png) no-repeat;
      background-size: contain;
      position: absolute;
      left: 0;
      top: 0;
    }
  @media screen and (min-width: 640px) {
    .header{
      padding: 80px 0;
    }
  }
}
/* footer
----------------------------------------------- */
.footer{
  padding: 20px 4% 30px;
  background: #d8c7a0;
    .footer-container {
      width: 100%;
    }
    .footer-wrap {
      display: flex;
      flex-wrap: wrap;
      justify-content: space-between;
      margin-bottom: 20px;
    }
    .footer-photo {
      width: 90%;
      margin: 0 auto 20px;
    }
    .footer-photo img {
      border: 6px solid $white;
      box-sizing: border-box;
    }
    .footer-info {
      width: 100%;
      margin: 0 auto;
    }
    .footer-info-title {
      width: 40%;
      margin: 0 0 10px 10px;
    }
    & .copy {
      text-align: left;
    }
}
.footer-info-list {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  flex-wrap: wrap;
    & dt {
      flex-shrink: 0;
      flex-basis: 6.1em;
      margin-bottom: 6px;
      line-height: 1.5;
      font-size: 1.4rem;
    }
    & dd {
      width: calc(100% - 6.1em);
      margin-bottom: 6px;
      line-height: 1.5;
      font-size: 1.4rem;
    }
}
@media screen and (min-width: 640px) {
  .footer {
    .footer-container {
      max-width: 960px;
      margin: 0 auto;
      padding: 0 10px;
      box-sizing: border-box;
    }
    .footer-wrap {
      display: flex;
      justify-content: space-between;
      align-items: flex-start;
    }
    .footer-photo {
      width: 40%;
      margin: 0;
    }
    .footer-info {
      width: 55%;
      margin: 0;
    }
    & .copy {
      text-align: center;
    }
  }
}
/* SNS
----------------------------------------------- */
.sns {
  display: flex;
  justify-content: flex-start;
  margin-bottom: 30px;
    & li a {
      display: block;
      width: 60px;
      height: 50px;
      margin-right: 10px;
      border-radius: 6px;
      background: $white;
      text-align: center;
      & .fa {
        font-size: 4.0rem;
        padding-top: 5px;
        color: #d8c7a0;
      }
    }
}
@media screen and (min-width: 640px) {
  .sns {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
      & li a {
        width: 50px;
        height: 50px;
        background: $white;
      }
  }
}