_body.scss 1.92 KB
Newer Older
Valera Trubachev's avatar
Valera Trubachev committed
1 2 3 4 5 6 7 8 9
main {
  background: white;
  margin-bottom: 8em;
  padding: 2em 0;

  h2 {
    font-size: 2em;
  }

10 11 12 13
  section + section {
    padding-top: 2em;
  }

Valera Trubachev's avatar
Valera Trubachev committed
14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41
  @include mqw-min(40rem) {
    .content-block {
      display: flex;

      article {
        flex: 0 1 auto;
      }

      .skills {
        flex: 0 0 17em;
        max-width: 33%;
        margin-left: 1em;
        margin-top: -1.75em;
        border-left: solid 1px #e0e0e0;
      }
    }
  }

  .skills {
    h4 {
      margin-top: 0;
      margin-bottom: 0.5em;
      margin-left: 2em;
    }

    ul {
      padding-left: 2em;
      list-style: disc;
42 43
      font-size: 1.125em;
      line-height: 1.5;
Valera Trubachev's avatar
Valera Trubachev committed
44
    }
Valera Trubachev's avatar
Valera Trubachev committed
45 46 47 48 49 50
  }

  ul.showcase {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
Valera Trubachev's avatar
Valera Trubachev committed
51
    justify-content: space-evenly;
Valera Trubachev's avatar
Valera Trubachev committed
52
    align-items: center;
Valera Trubachev's avatar
Valera Trubachev committed
53 54
    max-width: 75em;
    margin: 0 auto;
Valera Trubachev's avatar
Valera Trubachev committed
55 56 57 58 59 60 61 62

    li {
      max-width: 15em;
      flex: 1 0 10em;
      margin: 1em;
      position: relative;
      transition: transform .125s ease-in-out;
      box-shadow: 2px 2px 4px 1px rgba(black, .5);
Valera Trubachev's avatar
Valera Trubachev committed
63
      cursor: pointer;
Valera Trubachev's avatar
Valera Trubachev committed
64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99

      &:hover {
        transform: scale(1.05);
      }

      &.expand {
        position: fixed;
        transition: top .25s linear, left .25s linear, bottom .25s linear, right .25s linear;

        &--expanded {
          top: 10%;
          left: 10%;
          bottom: 10%;
          right: 10%;
        }
      }

      label {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        background: rgba(black, .5);
        color: white;
        text-align: center;
        padding: 0.25em;
      }

      img {
        max-width: 100%;
        max-height: 100%;
        display: block;
      }
    }
  }
}
Valera Trubachev's avatar
Valera Trubachev committed
100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118

#experience, #showcase {
  .wrapper:nth-child(even) {
    background: #f6f6f6;
  }
}

#learning {
  .content-block {
    display: block;

    .skills {
      width: 100%;
      max-width: none;
      margin-top: 0;
      border-left: 0;
    }
  }
}