194 lines
3.5 KiB
CSS
194 lines
3.5 KiB
CSS
/* 기본 바디 설정 */
|
|
body {
|
|
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
|
|
margin: 20px;
|
|
background-color: #f8f9fa;
|
|
color: #2c3e50;
|
|
max-width: 1440px;
|
|
margin: 0 auto;
|
|
padding: 1rem 1rem 9rem 1rem;
|
|
}
|
|
|
|
/* 사이트 제목 */
|
|
#site-title {
|
|
font-size: 2rem;
|
|
margin-bottom: 10px;
|
|
cursor: pointer;
|
|
color: #34495e;
|
|
}
|
|
|
|
#site-title:hover {
|
|
color: #2ecc71;
|
|
}
|
|
|
|
/* 소개글 */
|
|
body>div {
|
|
margin: 5px 0;
|
|
font-size: 1rem;
|
|
line-height: 1.5;
|
|
}
|
|
|
|
/* 섹션 제목 */
|
|
h2 {
|
|
margin-top: 30px;
|
|
margin-bottom: 10px;
|
|
color: #2ecc71;
|
|
}
|
|
|
|
/* 색상 컨테이너: 표 형태 */
|
|
.color-container {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
|
|
width: 100%;
|
|
gap: 0.5rem;
|
|
border-collapse: separate;
|
|
border-spacing: 10px 5px;
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
/* 한 줄(row) */
|
|
.color-row {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: flex-start;
|
|
gap: 10px;
|
|
padding: 4px 8px;
|
|
}
|
|
|
|
/* 셀 스타일 */
|
|
.color-name,
|
|
.color-block {
|
|
display: table-cell;
|
|
vertical-align: middle;
|
|
padding: 10px;
|
|
}
|
|
|
|
.color-block {
|
|
position: relative;
|
|
transition: transform 0.2s ease, box-shadow 0.2s ease;
|
|
}
|
|
|
|
.color-block.selected::after {
|
|
content: "선택됨";
|
|
position: absolute;
|
|
right: 0.25rem;
|
|
bottom: 0.25rem;
|
|
font-size: 10px;
|
|
color: white;
|
|
background-color: rgba(0, 0, 0, 0.6);
|
|
padding: 2px 4px;
|
|
border-radius: 3px;
|
|
pointer-events: none;
|
|
}
|
|
|
|
/* hover 시 살짝 커짐 + 그림자 */
|
|
.color-block:hover {
|
|
transform: scale(1.2);
|
|
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
|
|
}
|
|
|
|
/* 색상 이름 */
|
|
.color-name {
|
|
flex: 1;
|
|
cursor: pointer;
|
|
font-weight: 500;
|
|
font-size: 1rem;
|
|
user-select: none;
|
|
transition: color 0.2s;
|
|
text-align: center;
|
|
}
|
|
|
|
.color-name:hover {
|
|
color: #2ecc71;
|
|
text-decoration: underline;
|
|
}
|
|
|
|
/* 색상 블록 */
|
|
.color-block {
|
|
width: 50px;
|
|
height: 30px;
|
|
border-radius: 5px;
|
|
display: inline-block;
|
|
cursor: grab;
|
|
border: 2px solid #ecf0f1;
|
|
transition: transform 0.2s, box-shadow 0.2s;
|
|
margin-left: auto;
|
|
/* span과 색상 블록 사이 공간 확보 후 블록 오른쪽으로 배치 */
|
|
}
|
|
|
|
.color-block:active {
|
|
cursor: grabbing;
|
|
transform: scale(1.1);
|
|
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
|
|
}
|
|
|
|
/* 테이블 스타일링 */
|
|
.color-row:nth-child(odd) {
|
|
background-color: #ecf0f1;
|
|
border-radius: 5px;
|
|
}
|
|
|
|
.color-row:nth-child(even) {
|
|
background-color: #ffffff;
|
|
border-radius: 5px;
|
|
}
|
|
|
|
/* 반응형: 좁은 화면에서는 세로 정렬 */
|
|
@media (max-width: 479px) {
|
|
.color-row {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
}
|
|
|
|
.color-name,
|
|
.color-block {
|
|
display: block;
|
|
text-align: left;
|
|
}
|
|
|
|
.color-block {
|
|
margin-top: 5px;
|
|
}
|
|
}
|
|
|
|
@media (min-width: 672px) {
|
|
.line-container {
|
|
display: grid;
|
|
grid-template-columns: 1fr 1fr;
|
|
gap: 1.5rem;
|
|
}
|
|
}
|
|
|
|
.ads_coupang {
|
|
position: fixed;
|
|
width: 100%;
|
|
bottom: 0;
|
|
}
|
|
.ads_coupang iframe {
|
|
max-height: 96px;
|
|
}
|
|
|
|
@media screen and (min-width: 640px) {
|
|
.ads_coupang {
|
|
max-width: 100%;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.ads_coupang iframe {
|
|
max-height: 128px;
|
|
}
|
|
}
|
|
|
|
.section-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
gap: 2rem;
|
|
align-items: end;
|
|
}
|
|
|
|
.section-header img {
|
|
width: 36px;
|
|
margin-top: 30px;
|
|
margin-bottom: 10px;
|
|
} |