Kercode/tutti_gruppi

View on GitHub
app/assets/stylesheets/sass/components/_footer.scss

Summary

Maintainability
Test Coverage
.footer {
  background-color: $color-pagination-bg;
  padding: 1rem;
  font-size: 1.4rem;
  color: $color-btns;
  width: 100%;
  position: sticky;

  @include respond(tab-port) {
    padding: 8rem 0;
  }
  @include respond(tab-land) {
    padding: 1rem 0;
  }

  &__logo-box {
    text-align: center;
    margin-bottom: 3rem;
    margin-top: 2rem;

    @include respond(tab-port) {
      //margin-bottom: 6rem;
    }
  }

  &__logo {
    width: 15rem;
    height: auto;
  }

  &__navigation {
    border-top: 1px solid $color-btns-hover;
    padding-top: 2rem;
    display: inline-block;
    
    @include respond(tab-port) {
      width: 100%;
      text-align: center;
    }
  }

  &__list {
    list-style: none;
  }

  &__item {
    display: inline-block;

    &:not(:last-child) {
      margin-right: 1.5rem;
    }
  }

  &__link {
    font-size: 1.1rem;

    &:link,
    &:visited {
      color: $color-btns;
      background-color: $color-pagination-bg;
      text-decoration: none;
      text-transform: uppercase;
      display: inline-block;
      transition: all .2s;
    }

    &:hover,
    &:active {
      color: $color-white;
      text-shadow: 0 1rem 1rem rgba($color-black, .4);
      transform: rotate(1deg) scale(1.1);
    }

    &--lowcase {
      text-transform: none;

      &:link,
      &:visited {
        color: $color-btns;
        background-color: $color-pagination-bg;
        text-decoration: none;
        // text-transform: uppercase;
        display: inline-block;
        transition: all .2s;
      }

      &:hover,
      &:active {
        color: $color-white;
        //box-shadow: 0 1rem 2rem rgba($color-black, .4);
        transform: rotate(1deg) scale(1.3);
      }
    }
  }

  &__copyright {
    border-top: 1px solid $color-btns-hover;
    padding-top: 2rem;
    width: 75%;
    float: right;
    text-align: center;
    font-size: 1.1rem;

    @include respond(tab-port) {
      width: 100%;
      float: none;
    }
  }

  img {
    width: 15rem;

    @include respond(phone) {
      width: 35%;
    }

    @include respond(tab-port) {
      width: 30%;
    }
  }
}