Media Query
변수 사용
$break-small: 320px;
$break-large: 1200px;
.profile-pic {
float: left;
width: 250px;
@media screen and (max-width: $break-small) {
width: 100px;
float: none;
}
@media screen and (min-width: $break-large) {
float: right;
}
}전체 쿼리를 포함한 변수 사용
$information-phone: "only screen and (max-width : 320px)";
@media #{$information-phone} {
background: red;
}콜론 사용
조건을 미리 정의해두고 사용
Last updated