방구석 개발자의 놀이터

  • 홈
  • 태그
  • 방명록

Front-End/SCSS 2

[SCSS] 반복되는 SCSS 코드 활용하는 법

&.blue{ background: $blue; &:hover{ background: lighten($blue, 10%); } &:active{ background: darken($color: $blue, $amount: 10%); } } &.gray{ background: $gray; &:hover{ background: lighten($gray, 10%); } &:active{ background: darken($color: $gray, $amount: 10%); } } &.pink{ background: $pink; &:hover{ background: lighten($pink, 10%); } &:active{ background: darken($color: $pink, $amount: 10%); ..

Front-End/SCSS 2020.12.27

[CSS] 상속(Inherit)의 개념

1. 상속이란 ? - 조상 요소로부터 하위요소로 CSS의 요소가 상속이 될 수 있다. .ecosystem{ color:red; } 생태계 동물 호랑이 사자 코끼리 식물 .ecosystem에 적용된 색상이 하위 요소들에게도 적용됨 2. 상속되는 속성 font color text-align text-indent text-decoration letter-spacing opacity 등 3. 강제 속성 - 상속되지 않는 속성도 inherit 이라는 값을 사용하여 '부모'에서 '자식'으로 강제 상속 시킬 수 있다. '자식'을 제외한 '후손'에게는 적용되지 않으며, 모든 속성이 강제 상속을 사용할 수 있는 것은 아님 .parent{ position: absolute; /* 상속되지 않는 속성과 값*/ } .chil..

Front-End/SCSS 2020.12.13
이전
1
다음
더보기
프로필사진

게으른 사람들에게 편리함을 제공해 줄 수 있을 때 가장 기쁜 개발자

250x250
  • 분류 전체보기 (102)
    • JAVA (2)
    • Spring (17)
    • Python (14)
    • 회고록 (4)
    • Flutter (3)
    • Git (1)
    • Spring Boot (15)
    • Algorithm (3)
    • AWS (1)
    • Front-End (34)
      • HTML (1)
      • CSS (1)
      • SCSS (2)
      • JavaScript (12)
      • React (13)
      • React-query (1)
      • NextJS (0)
      • Test (1)
    • OpenSource (3)
    • 독서 (0)
    • 강의 (1)
    • Error (4)

Tag

opensource, aspect, react-router-dom, frontend, PYTHON, lombok, springboot, 회고록, spring boot, front-end, CSS, spring, 프론트엔드, 개발자, flutter, springframework, react, javascript, component, es6,

최근글과 인기글

  • 최근글
  • 인기글

최근댓글

공지사항

페이스북 트위터 플러그인

  • Facebook
  • Twitter

Archives

Calendar

«   2025/06   »
일 월 화 수 목 금 토
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30

방문자수Total

  • Today :
  • Yesterday :

Copyright © Kakao Corp. All rights reserved.

티스토리툴바