힘..힘들었다..😅😅
- 피그마 사용법을 잘 모르는 사람이 디자인 했을 때.jpg
- 픽셀처럼 보이고 싶어 네모 노가다를 했다..ㅎㅎ 그래도 완성된 모습을 보니 뿌듯했다..!!
- 완성된 로고 및 아이콘을 선택 후
Export Group
버튼을 클릭해 저장한다.
cursor 속성은 요소 위에 마우스 커서가 올라갔을 때 보여줄 모양을 지정한다.
여기에 내가 만든 마우스 디자인을 적용했다.
html {
cursor: url("img/아이콘_마우스3.png") 5 5, auto;
}
::-webkit-scrollbar 의사 요소는 설정된 경우 요소의 스크롤 막대 스타일에 영향을 준다.
::-webkit-scrollbar {
width: 26px; /* 스크롤바의 너비 */
}
::-webkit-scrollbar-thumb {
height: 20%; /* 스크롤바의 길이 */
background: #EABDE6; /* 스크롤바의 색상 */
background-image: url("img/scroll.png");
background-position: center; /* 이미지 정중앙 */
background-size: contain;
border: 4px solid rgba(255, 255, 255, 0.5);
margin: 0px -4px 0px 0px;
}
::-webkit-scrollbar-track {
background: rgba(255, 255, 255, 0.5); /*스크롤바 뒷 배경 색상*/
margin: -4px -4px -4px 0px;
}
::-webkit-scrollbar
: 전체 스크롤바::-webkit-scrollbar-thumb
: 드래그 가능한 스크롤 핸들::-webkit-scrollbar-track
: 흰색 막대 위에 회색 막대가 있는 스크롤 막대의 트랙(진행률 막대)이다.body {
display: flex;
background-image: url("img/배경화면.jpg");
width: 100vw;
height: 100vh;
justify-content: center;
align-items: center;
background-size: cover;
background-repeat: no-repeat;
flex-direction: column;
padding: 45px;
}
hover 했을 때와 active 했을 때 로고가 조금씩 움직이게 설정하였다.
img.agoraStates {
width: 700px;
}
img.agoraStates:hover {
position: relative;
top: 3px;
}
img.agoraStates:active {
position: relative;
top: 5px;
}
부모 클래스를 만들어 justify-content: space-between
속성으로 양 끝에 정렬하고
각 버튼에 이미지를 넣어준다.
.btn {
width: 20px;
height: 20px;
background-size: contain;
background-repeat: no-repeat;
background-color:transparent;
border: 0px solid #352B44;
margin: 0px 0px 0px 8px;
}
.min {
background-image: url("img/버튼_최소화.png");
}
.max {
background-image: url("img/버튼_최대화.png");
}
.close {
background-image: url("img/버튼_닫기.png");
}
background-position: center
속성이 있어 이를 해결할 수 있었다!이 등록 버튼은 커서를 올렸을 때와 클릭했을 때 모두 다른 색상를 주고싶어 각각 이벤트마다 다른 색깔을 적용했다.
input[type="submit"] {
display: flex;
background-color: rgba(234, 161, 216, 0.5);
background-image: url("img/submit.png");
background-position: center; /* 이미지 정중앙 */
background-size: auto;
background-repeat: no-repeat;
justify-content: center;
align-items: center;
font-size: 24px;
width: 360px;
height: 80px;
border: 3px solid #352B44;
border-radius: 20px;
padding: 10px;
color: rgb(255, 255, 255, 0);
}
input[type="submit"]:hover {
position: relative;
background-color: rgba(253, 233, 144, 0.5);
}
input[type="submit"]:active {
position: relative;
background-color: rgba(162, 180, 254, 0.5);
top: 5px;
margin-top: 5px;
}
const checked = document.createElement("img");
checked.className = "discussion__answered";
checked.textContent = obj.answer ? `${checked.src = "img/버튼_O.png"}` : `${checked.src = "img/버튼_X.png"}`;
position
속성과 z-index
속성을 이용해 창이 겹친 효과를 주었다.section.form__container{
position: relative;
z-index: 3;
flex-direction: column;
}
.imgBox {
position: absolute;
margin: 20px 0px 0px 20px;
opacity: 0.7; /* 투명도 */
}
요즘 픽셀아트에 빠져있는데 너무 예뻐요 원래 디자이너이신가요?