24web/10620 황동화/styles.css
jombee 11bc847641 갤러리
ajr..더럽다..






THE LOVE
2024-06-25 07:01:02 +00:00

162 lines
3.6 KiB
CSS
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/* styles.css */
body {
font-family: 'Montserrat', sans-serif;
margin: 0;
padding: 0;
background-color: #f0f0f0;
overflow-x: hidden;
background-image: linear-gradient(to bottom right, #b6dfff, #ffffff); /* AJR 스타일의 배경 그라데이션 */
transition: background-color 0.5s ease; /* 배경색 전환 트랜지션 */
}
header {
background-color: rgba(255, 151, 151, 0.8); /* 헤더 배경색 설정 */
color: white;
text-align: center;
padding: 1em 0;
font-size: 3em;
font-weight: 700;
letter-spacing: 2px;
margin-bottom: 20px;
text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5); /* 텍스트 그림자 설정 */
}
main {
padding: 20px;
}
.controls {
display: flex;
align-items: center;
justify-content: center; /* 중앙 정렬 */
margin-bottom: 20px;
}
#imageInput {
display: none; /* 파일 업로드 버튼 숨기기 */
}
.custom-file-upload {
background-color: #00cec9; /* 파일 업로드 버튼 배경색 */
color: white;
border: none;
padding: 10px 20px;
cursor: pointer;
border-radius: 6px;
font-size: 1.2em;
font-weight: 700;
text-transform: uppercase;
letter-spacing: 1px;
margin-right: 10px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* 버튼 그림자 */
}
.custom-file-upload:hover {
background-color: #00b894; /* 호버 상태 배경색 */
}
#fileName {
flex-grow: 1;
margin-right: 10px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
border: 1px solid #ccc;
padding: 10px;
border-radius: 6px;
background-color: #fff;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
#addImageButton {
background-color: #00cec9; /* 이미지 추가 버튼 배경색 */
color: white;
border: none;
padding: 10px 20px;
cursor: pointer;
border-radius: 6px;
font-size: 1.2em;
font-weight: 700;
text-transform: uppercase;
letter-spacing: 1px;
transition: background-color 0.3s ease;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* 버튼 그림자 */
}
#addImageButton:hover {
background-color: #00b894; /* 호버 상태 배경색 */
}
.gallery {
display: flex;
flex-wrap: wrap;
justify-content: center; /* 중앙 정렬 */
gap: 20px;
}
.gallery-item {
width: 300px; /* 갤러리 아이템 너비 */
height: 300px; /* 갤러리 아이템 높이 */
background-color: white; /* 갤러리 아이템 배경색 */
border-radius: 8px;
overflow: hidden;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* 그림자 */
transition: transform 0.2s;
}
.gallery-item:hover {
transform: translateY(-5px);
box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}
.gallery-item img {
width: 100%;
height: 100%;
object-fit: cover;
}
.delete-button {
position: absolute;
top: 10px;
right: 10px;
background: rgba(255, 0, 0, 0.7);
color: white;
border: none;
padding: 5px 10px;
cursor: pointer;
border-radius: 5px;
font-size: 1em;
z-index: 1;
transition: background 0.2s;
}
.delete-button:before {
content: '×';
font-size: 1.2em;
}
.delete-button:hover {
background: rgba(255, 0, 0, 1);
}
/* Lightbox 스타일 */
#lightbox {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.8);
display: flex;
align-items: center;
justify-content: center;
z-index: 1000;
}
#lightbox img {
max-width: 90%;
max-height: 90%;
border-radius: 8px;
}