[TIL] 211227

Lee Syong·2021년 12ė›” 27ėž
0

TIL

ëŠĐ록 ëģīęļ°
131/204
post-thumbnail

📝 ė˜Ī늘 한 ęēƒ

  1. ëģĩėŠĩ - SCSS (grid / form)

📚 ë°°ėšī ęēƒ (ëģĩėŠĩ)

ė‹Īė œ ė―”드는 githubė— ė˜ŽëĶž(wetube_v2)

ęļ°ëģļ ė„Īė • / header / footer / video mixin / home / forms(join, login, edit profile, change pw, upload) / shared.scss

7. STYLES

ðŸ’Ą grid

header {
  ul {
    display: grid;
    grid-auto-flow: column;
    justify-content: space-between;
    grid-gap: 2rem;
  }
}
#home {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  justify-content: space-evenly;
  grid-gap: 1.7rem;
}

ðŸ’Ą fomrs.scss

.form-container {
  width: 70%;
  min-width: 350px;
  max-width: 450px;
  margin: 0 auto;
  padding: 2rem 0;
  border: 1px solid $color-light-white;
  border-radius: $border-radius-lg;
  box-shadow: inset 0px 0px 5px 0px $color-white;
  hr {
    width: 80%;
    border-color: $color-light-white;
    margin: 2rem auto;
  }
}

form {
  display: flex;
  width: 80%;
  flex-direction: column;
  align-items: center;
  margin: 0 auto;
}

input::placeholder {
  color: $color-white;
}

input:not(input[type="file"], input[type="submit"]) {
  width: 90%;
  height: 3rem;
  border-style: unset;
  border: 1px solid $color-white;
  border-radius: $border-radius-sm;
  box-shadow: inset 0px 0px 5px 0px $color-white;
  margin: 0.3rem 0;
  padding: 0 1rem;
  font-size: $font-regular;
  background-color: transparent;
  color: $color-dark-white;
}

input:focus:not(input[type="file"], input[type="submit"]) {
  outline: none;
  border-width: 2px;
  background-color: $color-light-black;
}

input[type="submit"] {
  width: 100%;
  height: 2rem;
  border-style: unset;
  border: 1px solid $color-white;
  border-radius: $border-radius-sm;
  box-shadow: inset 0px 0px 5px 0px $color-white;
  margin-top: 0.8rem;
  font-size: $font-regular;
  font-weight: bold;
  background-color: $color-dark-white;
  color: $bg;
  cursor: pointer;
}

.form__additional {
  text-align: center;
  text-decoration: underline;
  text-underline-position: under;
  a:hover,
  a:active {
    color: $color-light-blue;
  }
}

ðŸ’Ą ę·ļëĶŽë“œ ė•„ėī템(⊃ ėīëŊļė§€) ëđ„ėœĻ ėœ ė§€í•˜ëĐīė„œ 큎ęļ° 늘ëĶŽęģ  ėĪ„ėīęļ°

grid / background-image ėīėšĐ

#home {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  justify-content: space-evenly;
  grid-gap: 1.7rem;
}

.video-mixin__thumb {
  height: 15rem;
  background-image: url("https://photo.coolenjoy.net/data/editor/1911/Bimg_f7cdb829996ca7f5750765329fef7f92_gguy.jpg");
  background-size: cover;
  background-position: center;
  border-radius: $border-radius-lg;
}

âœĻ ë‚īėž 할 ęēƒ

  1. ëģĩėŠĩ ęģ„ė†í•˜ęļ° - CSS ėŠĪ타ėžë§
profile
ëŠĨ동ė ėœžëĄœ ė‚īėž, 행ëģĩ하ęēŒðŸ˜

0개ė˜ 댓ęļ€