2018년 9월 1일

오늘 한 일:

내일 할 일

PrestoMusic

마크업

BEM 적용

BEM과 Sass의 nesting기능을 함께 사용하니 가독성과 유지보수가 쉬워졌다.

Block:

Element

Modifier:

Sass

nesting의 depth를 너무 깊게 만들지 않기 위해 속성을 block과 element단위로 나눠서 작성

학습 키워드

$my-width: 100px

// not working
.e { width: calc(100% - $my-width) }
    
// good
.e { width: calc(100% - #{$my-width}) }

css

선 화살표 만들기:

line-arrow {
    width: 12px; height: 12px; 
    border-right: 1px solid #000;
    border-bottom: 1px solid #000;
    transform: skew(10deg);
}

면 화살표 만들기:

arrow {
    width: 0; height: 0;
	border-left: 5px solid transparent;
	border-right: 5px solid transparent;
	border-bottom: 10px solid #000;
}