Files
sam-kd/css/drawingModule.css
hskwon aca1767eb9 초기 커밋: 5130 레거시 시스템
- URL 하드코딩 → .env APP_URL 기반 동적 URL로 변경
- DB 연결 하드코딩 → .env 기반으로 변경
- MySQL strict mode DATE 오류 수정
2025-12-10 20:14:31 +09:00

408 lines
7.0 KiB
CSS

/**
* Drawing Module CSS
* 독립적인 Canvas 그리기 모듈 스타일시트
*/
/* 모달 오버레이 */
.dm-modal {
display: none;
position: fixed;
z-index: 10000;
left: 0;
top: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.5);
animation: dmFadeIn 0.3s ease;
}
/* 모달 컨텐츠 */
.dm-modal-content {
position: relative;
background-color: #ffffff;
margin: 2% auto;
padding: 0;
width: 90%;
max-width: 1200px;
border-radius: 8px;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.08);
animation: dmSlideDown 0.3s ease;
}
/* 모달 헤더 */
.dm-modal-header {
padding: 15px 20px;
background-color: #f8f9fa;
border-bottom: 1px solid #dee2e6;
border-radius: 8px 8px 0 0;
display: flex;
justify-content: space-between;
align-items: center;
}
.dm-modal-header h3 {
margin: 0;
color: #333;
font-size: 1.25rem;
font-weight: 600;
}
/* 닫기 버튼 */
.dm-close {
color: #aaa;
font-size: 28px;
font-weight: bold;
cursor: pointer;
transition: color 0.3s;
line-height: 1;
}
.dm-close:hover,
.dm-close:focus {
color: #000;
text-decoration: none;
}
/* 모달 바디 */
.dm-modal-body {
padding: 20px;
max-height: 80vh;
overflow-y: auto;
}
/* 메인 컨테이너 */
.dm-container {
display: flex;
gap: 20px;
flex-wrap: wrap;
}
/* 캔버스 영역 */
.dm-canvas-area {
flex: 1;
min-width: 400px;
position: relative;
background-color: #f5f5f5;
border: 2px solid #ddd;
border-radius: 4px;
padding: 10px;
display: flex;
justify-content: center;
align-items: center;
}
#dmCanvas {
background-color: white;
border: 1px solid #ccc;
cursor: crosshair;
display: block;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
/* 컨트롤 패널 */
.dm-controls {
width: 280px;
background-color: #f8f9fa;
padding: 20px;
border-radius: 4px;
border: 1px solid #dee2e6;
}
.dm-controls h6 {
margin-top: 0;
margin-bottom: 20px;
color: #495057;
font-weight: 600;
}
/* 컨트롤 그룹 */
.dm-control-group {
margin-bottom: 20px;
}
.dm-control-group label {
display: block;
margin-bottom: 5px;
color: #495057;
font-size: 0.9rem;
font-weight: 500;
}
/* 셀렉트 박스 */
.dm-select {
width: 100%;
padding: 6px 10px;
border: 1px solid #ced4da;
border-radius: 4px;
background-color: white;
font-size: 0.9rem;
transition: border-color 0.15s ease-in-out;
}
.dm-select:focus {
outline: none;
border-color: #80bdff;
box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}
/* 컬러 피커 */
.dm-color-picker {
width: 100%;
height: 40px;
padding: 2px;
border: 1px solid #ced4da;
border-radius: 4px;
cursor: pointer;
}
/* 레인지 슬라이더 */
.dm-range {
width: 70%;
vertical-align: middle;
}
.dm-control-group span {
margin-left: 10px;
color: #6c757d;
font-size: 0.85rem;
}
/* 버튼 스타일 */
.dm-btn {
padding: 8px 16px;
border: 1px solid transparent;
border-radius: 4px;
font-size: 0.9rem;
font-weight: 500;
cursor: pointer;
transition: all 0.15s ease-in-out;
margin-right: 5px;
margin-bottom: 5px;
}
.dm-btn:hover {
transform: translateY(-1px);
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.dm-btn-primary {
background-color: #007bff;
color: white;
border-color: #007bff;
}
.dm-btn-primary:hover {
background-color: #0056b3;
border-color: #0056b3;
}
.dm-btn-success {
background-color: #28a745;
color: white;
border-color: #28a745;
}
.dm-btn-success:hover {
background-color: #218838;
border-color: #1e7e34;
}
.dm-btn-warning {
background-color: #ffc107;
color: #212529;
border-color: #ffc107;
}
.dm-btn-warning:hover {
background-color: #e0a800;
border-color: #d39e00;
}
.dm-btn-danger {
background-color: #dc3545;
color: white;
border-color: #dc3545;
}
.dm-btn-danger:hover {
background-color: #c82333;
border-color: #bd2130;
}
.dm-btn-secondary {
background-color: #6c757d;
color: white;
border-color: #6c757d;
}
.dm-btn-secondary:hover {
background-color: #5a6268;
border-color: #545b62;
}
/* 버튼 활성화 상태 */
.dm-btn.dm-active {
background-color: #343a40;
color: white;
border-color: #343a40;
}
/* 체크박스 스타일 */
.dm-checkbox {
display: flex;
align-items: center;
cursor: pointer;
}
.dm-checkbox input[type="checkbox"] {
margin-right: 8px;
cursor: pointer;
}
.dm-checkbox span {
color: #495057;
font-size: 0.9rem;
}
/* 버튼 그룹 */
.dm-button-group {
display: flex;
flex-wrap: wrap;
gap: 5px;
margin-top: 20px;
padding-top: 20px;
border-top: 1px solid #dee2e6;
}
/* 지우개 커서 */
.dm-eraser-cursor {
position: absolute;
border: 2px dashed #ff0000;
border-radius: 50%;
pointer-events: none !important;
z-index: 1000;
display: none;
user-select: none;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
}
/* 애니메이션 */
@keyframes dmFadeIn {
from {
opacity: 0;
}
to {
opacity: 1;
}
}
@keyframes dmSlideDown {
from {
transform: translateY(-50px);
opacity: 0;
}
to {
transform: translateY(0);
opacity: 1;
}
}
/* 반응형 디자인 */
@media (max-width: 768px) {
.dm-modal-content {
width: 95%;
margin: 5% auto;
}
.dm-container {
flex-direction: column;
}
.dm-canvas-area {
min-width: auto;
width: 100%;
}
.dm-controls {
width: 100%;
}
#dmCanvas {
max-width: 100%;
height: auto;
}
}
/* 스크롤바 스타일 */
.dm-modal-body::-webkit-scrollbar {
width: 8px;
}
.dm-modal-body::-webkit-scrollbar-track {
background: #f1f1f1;
border-radius: 4px;
}
.dm-modal-body::-webkit-scrollbar-thumb {
background: #888;
border-radius: 4px;
}
.dm-modal-body::-webkit-scrollbar-thumb:hover {
background: #555;
}
/* 로딩 상태 */
.dm-loading {
display: inline-block;
width: 20px;
height: 20px;
border: 3px solid rgba(0, 0, 0, 0.1);
border-radius: 50%;
border-top-color: #007bff;
animation: dmSpin 1s ease-in-out infinite;
}
@keyframes dmSpin {
to {
transform: rotate(360deg);
}
}
/* 툴팁 */
.dm-tooltip {
position: relative;
display: inline-block;
}
.dm-tooltip .dm-tooltiptext {
visibility: hidden;
width: 120px;
background-color: #555;
color: #fff;
text-align: center;
border-radius: 6px;
padding: 5px;
position: absolute;
z-index: 1;
bottom: 125%;
left: 50%;
margin-left: -60px;
opacity: 0;
transition: opacity 0.3s;
font-size: 0.8rem;
}
.dm-tooltip:hover .dm-tooltiptext {
visibility: visible;
opacity: 1;
}
/* 프린트 스타일 */
@media print {
.dm-modal {
display: none !important;
}
}