[TIL] 220212

Lee SyongΒ·2022λ…„ 2μ›” 12일
0

TIL

λͺ©λ‘ 보기
177/204
post-thumbnail

πŸ“ 였늘 ν•œ 것

  1. scss practice

  2. ν•΄μ‹œ ν…Œμ΄λΈ”(ν•΄μ‹œ 좩돌) κ΅¬ν˜„ (λ”°λ‘œ 정리)


πŸ“š 배운 것

1. scss practice

(1) background: linear-gradient

.article {
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.1) 5%,
    transparent,
    transparent,
    transparent,
    transparent
  )
  $color-red;
}

top to bottom λ°©ν–₯으둜 κ²€μ •μ—μ„œ 투λͺ…μœΌλ‘œ 색이 μ„œμ„œνžˆ λ³€ν•œλ‹€. 배경색은 red이닀.
transparentλ₯Ό μ—¬λŸ¬ 개 μ“°λ©΄ κ²€μ • λΆ€λΆ„μ˜ μ˜μ—­μ΄ 그만큼 쀄어든닀.

β€» 이전에 κ΅¬ν˜„ν–ˆλ˜ λ™μ˜μƒ ν”Œλ ˆμ΄μ–΄ μ½”λ“œ μˆ˜μ • (유튜브처럼 )

(2) κ³ μ • header μˆ˜μ •

html,
body {
  height: 100%;
}
// 메인 헀더 CSS
.header__main {
  position: fixed;
  top: 0;
  left: 0;
  width: 40%;
  height: 100vh;
  padding: 10% 5%;
  background-color: $color-light-grey;
  overflow-y: auto;
}
// μ„Ήμ…˜ CSS
.articles {
  height: 100%;
  margin-top: 100px;
  margin-left: 50%;
  background-color: $color-red;
  .articles-header__fixed {
    // μ„Ήμ…˜ 헀더 배치
    position: fixed;
    top: 0;
    left: 50%;
    right: 0;
    height: 100px;
    // μ„Ήμ…˜ 헀더 μŠ€νƒ€μΌ 및 색상
    border-bottom: 1px solid $color-grey;
    background-color: inherit;
    // 폰트 μŠ€νƒ€μΌ 및 μ •λ ¬
    color: $color-white;
    font-weight: bold;
    display: flex;
    justify-content: center;
    align-items: center;
  }
}

✨ 내일 ν•  것

  1. ν•΄μ‹œ ν…Œμ΄λΈ” λ‹€μ‹œ κ΅¬ν˜„ν•΄λ³΄κΈ°

  2. μ½”λ“œ 리뷰 정리

profile
λŠ₯λ™μ μœΌλ‘œ μ‚΄μž, ν–‰λ³΅ν•˜κ²ŒπŸ˜

0개의 λŒ“κΈ€