scss programowanie

mail@pastecode.io avatar
unknown
scss
a year ago
3.1 kB
2
Indexable
Never
@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,700&family=Montserrat&display=swap');

*,
*::before,
*::after {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

html {
  min-height: 100vh;
}

body {
  font-family: 'Montserrat', sans-serif;
  background-image: linear-gradient(-225deg, #FF057C 0%, #8D0B93 50%, #321575 100%);
}

.box {
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  flex-direction: column;
  height: 100vh;
  margin-top: 30px;
#clock {
 
  border-radius: 50%;
  background: none;
  border: 1px solid #eaeaea;
}

  &__stopwatch {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding: 2rem 0;
    height: 500px;
    width: 100%;
    max-width: 500px;

    &__display {
      font-size: 6rem;
      width: 50vw;
      max-width: 450px;
      color: #eaeaea;
    }

    &__buttons {
      display: flex;
      flex-direction: row;
      gap: 30px;
      padding: 1rem 0;

      button {
        background: none;
        color: #eaeaea;
        border: 2px solid #eaeaea;
        border-radius: 10px;
        font-size: 3rem;
        padding: 1rem 2rem;
        &:hover {
  background: linear-gradient(to right, #ff00cc, #333399); /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
        }
      }
    }
  }

  &__clock {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
    color: #eaeaea;
    letter-spacing: 10px;

    &__time {
      font-size: 8rem;
    }

    &__date {
      font-size: 3rem;
    }

    &_timezone {
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      gap: 2rem;
      margin-bottom: 5rem;

      label {
        font-size: 3rem;
      }
      select {
        background: none;
        border: 1px solid #eaeaea;
        color: #eaeaea;
        border-radius: 10px;
        text-align: center;
        padding: 2rem 0;
        width: 100%;
        max-width: 666px;
        font-size: 3rem;
      }
    }
  }

  @media (min-width: 767px) {
    &__stopwatch {
   
    &__display {
      font-size: 3rem;
      width: 80vw;
      max-width: 225px;
    }

    &__buttons {
      display: flex;
      flex-direction: row;
      gap: 30px;
      padding: 1rem 0;

      button {
        background: none;
        color: #eaeaea;
        border: 2px solid #eaeaea;
        border-radius: 10px;
        font-size: 1.5rem;
        padding: .5rem 2rem;
      }
    }
  }
    &__clock {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
    color: #eaeaea;
    letter-spacing: 10px;

    &__time {
      font-size: 5rem;
    }

    &__date {
      font-size: 2rem;
    }
    &_timezone {
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      gap: 2rem;
      margin-bottom: 5rem;

      label {
        font-size: 2rem;
      }
      select {
        font-size: 1.5rem;
      }
    }
  }

  }

}