v7.0.0 release
This commit is contained in:
1 parent
0e7fa04b03
commit
c4ea9a6cd1
3582 files changed
+626189
-160151
No files matched your search
@@ -0,0 +1,404 @@
|
||||
/**
|
||||
* G7 Admin Template - Dashboard
|
||||
* Pure CSS 대시보드 전용 컴포넌트
|
||||
*/
|
||||
|
||||
/* ========================================
|
||||
* DASHBOARD LAYOUT
|
||||
* ======================================== */
|
||||
|
||||
.dashboard-content {
|
||||
max-width: 80rem; /* max-w-7xl */
|
||||
margin: 0 auto;
|
||||
}
|
||||
|
||||
/* ========================================
|
||||
* DASHBOARD GRIDS
|
||||
* ======================================== */
|
||||
|
||||
/* Stats Grid - 4 columns responsive */
|
||||
.dashboard-stats-grid {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr;
|
||||
gap: var(--spacing-5);
|
||||
margin-bottom: var(--spacing-8);
|
||||
}
|
||||
|
||||
@media (min-width: 768px) {
|
||||
.dashboard-stats-grid {
|
||||
grid-template-columns: repeat(2, 1fr);
|
||||
}
|
||||
}
|
||||
|
||||
@media (min-width: 1024px) {
|
||||
.dashboard-stats-grid {
|
||||
grid-template-columns: repeat(4, 1fr);
|
||||
}
|
||||
}
|
||||
|
||||
/* Main Grid - 5 columns (3+2) */
|
||||
.dashboard-main-grid {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr;
|
||||
gap: var(--spacing-6);
|
||||
}
|
||||
|
||||
@media (min-width: 1024px) {
|
||||
.dashboard-main-grid {
|
||||
grid-template-columns: repeat(5, 1fr);
|
||||
}
|
||||
}
|
||||
|
||||
.dashboard-column-left {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: var(--spacing-6);
|
||||
}
|
||||
|
||||
@media (min-width: 1024px) {
|
||||
.dashboard-column-left {
|
||||
grid-column: span 3;
|
||||
}
|
||||
}
|
||||
|
||||
.dashboard-column-right {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: var(--spacing-6);
|
||||
}
|
||||
|
||||
@media (min-width: 1024px) {
|
||||
.dashboard-column-right {
|
||||
grid-column: span 2;
|
||||
}
|
||||
}
|
||||
|
||||
/* ========================================
|
||||
* PROGRESS BAR
|
||||
* ======================================== */
|
||||
|
||||
.progress-bar-container {
|
||||
width: 100%;
|
||||
background-color: var(--color-slate-100);
|
||||
border-radius: var(--radius-full);
|
||||
height: 0.5rem;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.dark .progress-bar-container {
|
||||
background-color: var(--color-slate-700);
|
||||
}
|
||||
|
||||
.progress-bar-fill {
|
||||
height: 0.5rem;
|
||||
border-radius: var(--radius-full);
|
||||
transition: width var(--transition-normal) var(--ease-in-out);
|
||||
}
|
||||
|
||||
/* Progress Bar Colors */
|
||||
.progress-bar-emerald {
|
||||
background-color: var(--color-emerald-500);
|
||||
}
|
||||
|
||||
.progress-bar-blue {
|
||||
background-color: var(--color-blue-500);
|
||||
}
|
||||
|
||||
.progress-bar-slate {
|
||||
background-color: var(--color-slate-600);
|
||||
}
|
||||
|
||||
.dark .progress-bar-slate {
|
||||
background-color: var(--color-slate-500);
|
||||
}
|
||||
|
||||
/* ========================================
|
||||
* MODULE LIST
|
||||
* ======================================== */
|
||||
|
||||
.module-list {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: var(--spacing-3);
|
||||
}
|
||||
|
||||
.module-item {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
padding: var(--spacing-2) 0;
|
||||
}
|
||||
|
||||
.module-info {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.module-name {
|
||||
font-size: var(--text-sm);
|
||||
font-weight: var(--font-medium);
|
||||
color: var(--color-slate-900);
|
||||
}
|
||||
|
||||
.dark .module-name {
|
||||
color: white;
|
||||
}
|
||||
|
||||
.module-version {
|
||||
font-size: var(--text-xs);
|
||||
color: var(--color-slate-500);
|
||||
}
|
||||
|
||||
.dark .module-version {
|
||||
color: var(--color-slate-400);
|
||||
}
|
||||
|
||||
/* Module Badges */
|
||||
.module-badge-active {
|
||||
padding: var(--spacing-1) var(--spacing-2);
|
||||
font-size: var(--text-xs);
|
||||
font-weight: var(--font-medium);
|
||||
background-color: var(--color-green-100);
|
||||
color: var(--color-green-700);
|
||||
border-radius: var(--radius-full);
|
||||
}
|
||||
|
||||
.dark .module-badge-active {
|
||||
background-color: var(--color-green-900);
|
||||
color: var(--color-green-400);
|
||||
}
|
||||
|
||||
.module-badge-inactive {
|
||||
padding: var(--spacing-1) var(--spacing-2);
|
||||
font-size: var(--text-xs);
|
||||
font-weight: var(--font-medium);
|
||||
background-color: var(--color-slate-100);
|
||||
color: var(--color-slate-600);
|
||||
border-radius: var(--radius-full);
|
||||
}
|
||||
|
||||
.dark .module-badge-inactive {
|
||||
background-color: var(--color-slate-700);
|
||||
color: var(--color-slate-400);
|
||||
}
|
||||
|
||||
/* ========================================
|
||||
* ACTIVITY LIST
|
||||
* ======================================== */
|
||||
|
||||
.activity-list {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: var(--spacing-4);
|
||||
}
|
||||
|
||||
.activity-item {
|
||||
display: flex;
|
||||
align-items: flex-start;
|
||||
gap: var(--spacing-3);
|
||||
}
|
||||
|
||||
.activity-dot {
|
||||
width: 0.5rem;
|
||||
height: 0.5rem;
|
||||
margin-top: var(--spacing-2);
|
||||
border-radius: var(--radius-full);
|
||||
background-color: var(--color-blue-500);
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.activity-content {
|
||||
flex: 1;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.activity-title {
|
||||
font-size: var(--text-sm);
|
||||
font-weight: var(--font-medium);
|
||||
color: var(--color-slate-900);
|
||||
}
|
||||
|
||||
.dark .activity-title {
|
||||
color: white;
|
||||
}
|
||||
|
||||
.activity-desc {
|
||||
font-size: var(--text-sm);
|
||||
color: var(--color-slate-500);
|
||||
}
|
||||
|
||||
.dark .activity-desc {
|
||||
color: var(--color-slate-400);
|
||||
}
|
||||
|
||||
.activity-time {
|
||||
font-size: var(--text-xs);
|
||||
color: var(--color-slate-400);
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.dark .activity-time {
|
||||
color: var(--color-slate-500);
|
||||
}
|
||||
|
||||
/* ========================================
|
||||
* ALERT LIST
|
||||
* ======================================== */
|
||||
|
||||
.alert-list {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: var(--spacing-3);
|
||||
}
|
||||
|
||||
.alert-item {
|
||||
display: flex;
|
||||
align-items: flex-start;
|
||||
gap: var(--spacing-3);
|
||||
padding: var(--spacing-3);
|
||||
border-radius: var(--radius-lg);
|
||||
}
|
||||
|
||||
/* Alert Backgrounds */
|
||||
.alert-bg-info {
|
||||
background-color: var(--color-blue-50);
|
||||
}
|
||||
|
||||
.dark .alert-bg-info {
|
||||
background-color: var(--color-slate-800);
|
||||
}
|
||||
|
||||
.alert-bg-warning {
|
||||
background-color: var(--color-yellow-50);
|
||||
}
|
||||
|
||||
.dark .alert-bg-warning {
|
||||
background-color: var(--color-slate-800);
|
||||
}
|
||||
|
||||
.alert-bg-error {
|
||||
background-color: var(--color-red-50);
|
||||
}
|
||||
|
||||
.dark .alert-bg-error {
|
||||
background-color: var(--color-slate-800);
|
||||
}
|
||||
|
||||
.alert-bg-success {
|
||||
background-color: var(--color-green-50);
|
||||
}
|
||||
|
||||
.dark .alert-bg-success {
|
||||
background-color: var(--color-slate-800);
|
||||
}
|
||||
|
||||
/* Alert Dots */
|
||||
.alert-dot {
|
||||
width: 0.5rem;
|
||||
height: 0.5rem;
|
||||
margin-top: var(--spacing-2);
|
||||
border-radius: var(--radius-full);
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.alert-dot-info {
|
||||
background-color: var(--color-blue-500);
|
||||
}
|
||||
|
||||
.alert-dot-warning {
|
||||
background-color: var(--color-yellow-500);
|
||||
}
|
||||
|
||||
.alert-dot-error {
|
||||
background-color: var(--color-red-500);
|
||||
}
|
||||
|
||||
.alert-dot-success {
|
||||
background-color: var(--color-green-500);
|
||||
}
|
||||
|
||||
.alert-content {
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
.alert-title {
|
||||
font-size: var(--text-sm);
|
||||
font-weight: var(--font-medium);
|
||||
color: var(--color-slate-900);
|
||||
}
|
||||
|
||||
.dark .alert-title {
|
||||
color: white;
|
||||
}
|
||||
|
||||
.alert-time {
|
||||
font-size: var(--text-xs);
|
||||
color: var(--color-slate-500);
|
||||
margin-top: var(--spacing-1);
|
||||
}
|
||||
|
||||
.dark .alert-time {
|
||||
color: var(--color-slate-400);
|
||||
}
|
||||
|
||||
/* ========================================
|
||||
* DASHBOARD UTILITIES
|
||||
* ======================================== */
|
||||
|
||||
.text-subtitle {
|
||||
font-size: var(--text-sm);
|
||||
color: var(--color-slate-500);
|
||||
}
|
||||
|
||||
.dark .text-subtitle {
|
||||
color: var(--color-slate-400);
|
||||
}
|
||||
|
||||
.section-margin {
|
||||
margin-bottom: var(--spacing-6);
|
||||
}
|
||||
|
||||
.flex-between {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.flex-between-mb {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
margin-bottom: var(--spacing-2);
|
||||
}
|
||||
|
||||
/* Resource Usage Labels */
|
||||
.resource-label {
|
||||
font-size: var(--text-sm);
|
||||
font-weight: var(--font-medium);
|
||||
color: var(--color-slate-700);
|
||||
}
|
||||
|
||||
.dark .resource-label {
|
||||
color: var(--color-slate-300);
|
||||
}
|
||||
|
||||
.resource-value {
|
||||
font-size: var(--text-sm);
|
||||
font-weight: var(--font-medium);
|
||||
color: var(--color-slate-700);
|
||||
}
|
||||
|
||||
.dark .resource-value {
|
||||
color: var(--color-slate-300);
|
||||
}
|
||||
|
||||
/* Icon Sizes */
|
||||
.icon-stat {
|
||||
width: 1rem;
|
||||
height: 1rem;
|
||||
}
|
||||
|
||||
.icon-trend {
|
||||
width: 0.875rem;
|
||||
height: 0.875rem;
|
||||
}
|
||||
@@ -0,0 +1,214 @@
|
||||
/**
|
||||
* _admin_base 레이아웃 전용 컴포넌트 클래스
|
||||
*
|
||||
* `templates/_bundled/sirsoft-admin_basic/layouts/_admin_base.json` 의
|
||||
* 1회 등장 컴포넌트(공통 선언)의 인라인 Tailwind 토큰을 id 와 동일한
|
||||
* 시맨틱 클래스로 캡슐화한다.
|
||||
*
|
||||
* 원칙:
|
||||
* - 컴포넌트 id 와 클래스명 1:1 매칭 (underscore_case)
|
||||
* - responsive variant 는 .{id}_portable 별도 클래스 (JSON responsive.portable 와 짝)
|
||||
* - 상태 토글(_global.sidebarOpen 등) 은 .{id}_open 변형 클래스
|
||||
*
|
||||
* 주의 (Tailwind v4 제약):
|
||||
* - @apply 는 Tailwind utility 만 참조 가능. 사용자 정의 클래스
|
||||
* (.flex-between / .sidebar-scrollbar / .fas / .btn-icon) 는 @apply 불가
|
||||
* - 따라서 .flex-between 등이 필요한 경우 원자 토큰으로 풀어쓰며
|
||||
* FontAwesome / sidebar-scrollbar 같은 외부 클래스는 JSON 의 className 에
|
||||
* `{id} fa-* sidebar-scrollbar` 형태로 multi-class 병행
|
||||
*/
|
||||
|
||||
@layer components {
|
||||
/* ========================================
|
||||
* 1. ROOT / OVERLAY
|
||||
* ======================================== */
|
||||
|
||||
.admin_layout_root {
|
||||
@apply flex h-screen overflow-hidden bg-gray-50;
|
||||
@apply dark:bg-gray-900;
|
||||
}
|
||||
|
||||
.mobile_overlay {
|
||||
@apply fixed inset-0 z-40;
|
||||
background-color: rgba(0, 0, 0, 0.5);
|
||||
}
|
||||
|
||||
/* ========================================
|
||||
* 2. LEFT SIDEBAR AREA (with portable variant)
|
||||
* ======================================== */
|
||||
|
||||
.left_sidebar_area {
|
||||
@apply relative inset-y-0 left-0 z-50 w-64 flex flex-col bg-white;
|
||||
@apply dark:bg-gray-800;
|
||||
transition: width 0.3s ease;
|
||||
}
|
||||
|
||||
/*
|
||||
* 데스크톱 사이드바 접힘 변형 — 햄버거(menu_toggle_btn) 토글 시 _global.sidebarCollapsed
|
||||
* 가 true 가 되면 부여된다. 폭을 0 으로 줄이고 내용을 잘라 메인 영역(.right_content_area,
|
||||
* flex-1)이 자동으로 넓어지게 한다. 접힘 상태는 localStorage 로 영속되어 새로고침 후에도
|
||||
* 유지된다 (sidebarHandler.ts). 모바일은 별도 상태(.left_sidebar_area_portable)를 사용하므로
|
||||
* 본 변형은 데스크톱 전용이다.
|
||||
*/
|
||||
.left_sidebar_area_collapsed {
|
||||
@apply w-0 overflow-hidden;
|
||||
}
|
||||
|
||||
.left_sidebar_area_portable {
|
||||
@apply fixed inset-y-0 left-0 z-50 w-64 transition-transform duration-300 flex flex-col bg-white;
|
||||
@apply dark:bg-gray-800;
|
||||
transform: translateX(-100%);
|
||||
}
|
||||
|
||||
.left_sidebar_area_portable_open {
|
||||
transform: translateX(0);
|
||||
}
|
||||
|
||||
/* ========================================
|
||||
* 3. SIDEBAR HEADER (desktop) + LOGO
|
||||
* ======================================== */
|
||||
|
||||
.sidebar_header {
|
||||
@apply flex items-center justify-between h-16 px-4;
|
||||
}
|
||||
|
||||
.sidebar_logo {
|
||||
@apply flex items-center gap-2 min-w-0 flex-1 h-10;
|
||||
}
|
||||
|
||||
.logo_image {
|
||||
@apply max-h-10 w-auto object-contain;
|
||||
}
|
||||
|
||||
/* ========================================
|
||||
* 4. SIDEBAR MENU + EMPTY STATE
|
||||
*
|
||||
* sidebar-scrollbar 와 fas/fa-lock 은 JSON 의 className 에 함께 병행
|
||||
* (Tailwind v4 @apply 가 사용자 정의 클래스를 참조하지 못함)
|
||||
* ======================================== */
|
||||
|
||||
.admin_sidebar_menu {
|
||||
@apply flex-1 overflow-y-auto pt-4;
|
||||
box-shadow: inset 3px 2px 2px var(--tw-shadow-color, #0000000a);
|
||||
}
|
||||
|
||||
.admin_sidebar_menu_portable {
|
||||
@apply flex-1 overflow-y-auto pt-4;
|
||||
}
|
||||
|
||||
.admin_sidebar_empty {
|
||||
@apply px-4 py-8 text-center text-sm text-gray-400;
|
||||
@apply dark:text-gray-500;
|
||||
}
|
||||
|
||||
.admin_sidebar_empty_icon {
|
||||
@apply mb-2 text-lg text-gray-300;
|
||||
@apply dark:text-gray-600;
|
||||
}
|
||||
|
||||
/* ========================================
|
||||
* 5. RIGHT CONTENT WRAPPER + AREA
|
||||
* ======================================== */
|
||||
|
||||
.right_content_wrapper {
|
||||
@apply flex-1 flex flex-col min-w-0;
|
||||
}
|
||||
|
||||
.right_content_area {
|
||||
@apply flex-1 overflow-x-auto overflow-y-auto min-h-0 min-w-0;
|
||||
}
|
||||
|
||||
/* ========================================
|
||||
* 6. MAIN HEADER (desktop)
|
||||
* ======================================== */
|
||||
|
||||
/*
|
||||
* 헤더 z-index 는 콘텐츠 영역의 .sticky-tab-nav (z-40) 보다 높아야 한다.
|
||||
* 헤더가 z-10 이면 자체 stacking context 가 sticky-tab-nav 아래로 깔려
|
||||
* 헤더 내부 UserProfile 드롭다운(z-50) 도 함께 가려짐 (#399 Phase 1.3 회귀).
|
||||
*/
|
||||
.main_header {
|
||||
@apply h-16 flex items-center justify-between px-8 bg-white flex-shrink-0 relative z-50;
|
||||
@apply dark:bg-gray-800;
|
||||
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
|
||||
}
|
||||
|
||||
.header_left {
|
||||
@apply flex-1 flex items-center;
|
||||
}
|
||||
|
||||
.header_right {
|
||||
@apply flex items-center gap-2;
|
||||
}
|
||||
|
||||
.menu_toggle_btn {
|
||||
@apply p-2 -ml-2 text-slate-500 rounded-lg transition-colors;
|
||||
@apply hover:text-slate-900 hover:bg-slate-100;
|
||||
@apply dark:text-slate-400;
|
||||
@apply dark:hover:text-white dark:hover:bg-slate-700;
|
||||
}
|
||||
|
||||
.menu_toggle_btn_icon {
|
||||
@apply w-5 h-5;
|
||||
}
|
||||
|
||||
/* ========================================
|
||||
* 7. USER AVATAR / INFO
|
||||
* ======================================== */
|
||||
|
||||
.user_avatar_section {
|
||||
@apply relative flex items-center gap-3 cursor-pointer;
|
||||
}
|
||||
|
||||
.user_avatar {
|
||||
@apply w-9 h-9 rounded-full overflow-hidden bg-gray-200;
|
||||
@apply flex items-center justify-center;
|
||||
@apply dark:bg-gray-600;
|
||||
}
|
||||
|
||||
.user_avatar_img {
|
||||
@apply w-full h-full object-cover;
|
||||
}
|
||||
|
||||
.user_info {
|
||||
@apply hidden md:block;
|
||||
}
|
||||
|
||||
/* ========================================
|
||||
* 8. MOBILE HEADER (portable) + LOGO
|
||||
* ======================================== */
|
||||
|
||||
.mobile_header_portable {
|
||||
@apply flex items-center justify-between h-16 px-4 bg-white relative z-50;
|
||||
@apply dark:bg-gray-800;
|
||||
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
|
||||
}
|
||||
|
||||
.mobile_header_left {
|
||||
@apply flex items-center gap-3;
|
||||
}
|
||||
|
||||
.mobile_header_right {
|
||||
@apply flex items-center gap-2 flex-shrink-0;
|
||||
}
|
||||
|
||||
.mobile_logo {
|
||||
@apply flex items-center gap-2 min-w-0 flex-1;
|
||||
}
|
||||
|
||||
.mobile_logo_image {
|
||||
@apply h-8 w-auto max-w-full object-contain;
|
||||
}
|
||||
|
||||
/* ========================================
|
||||
* 9. MAIN CONTENT SLOT + WARNINGS
|
||||
* ======================================== */
|
||||
|
||||
.main_content {
|
||||
@apply min-h-fit;
|
||||
}
|
||||
|
||||
.layout_warnings {
|
||||
@apply px-4 py-2;
|
||||
}
|
||||
}
|
||||
File diff suppressed because it is too large.
Load diff
@@ -0,0 +1,2 @@
|
||||
<!-- Auto-generated safelist for Tailwind -->
|
||||
<div class="dark:bg-amber-900 dark:bg-amber-900/20 dark:bg-amber-900/30 dark:bg-amber-900/40 dark:bg-blue-500 dark:bg-blue-800 dark:bg-blue-900 dark:bg-blue-900/20 dark:bg-blue-900/30 dark:bg-blue-900/40 dark:bg-blue-900/50 dark:bg-gray-100 dark:bg-gray-600 dark:bg-gray-700 dark:bg-gray-700/50 dark:bg-gray-800 dark:bg-gray-900 dark:bg-gray-900/50 dark:bg-gray-950 dark:bg-green-900 dark:bg-green-900/20 dark:bg-green-900/30 dark:bg-indigo-500 dark:bg-indigo-900 dark:bg-orange-900 dark:bg-orange-900/20 dark:bg-purple-800/50 dark:bg-purple-900 dark:bg-purple-900/20 dark:bg-purple-900/30 dark:bg-purple-900/50 dark:bg-red-900 dark:bg-red-900/20 dark:bg-red-900/30 dark:bg-slate-500 dark:bg-slate-700 dark:bg-slate-700/50 dark:bg-slate-800 dark:bg-white dark:bg-yellow-900 dark:bg-yellow-900/20 dark:bg-yellow-900/30 dark:border-amber-700 dark:border-amber-800 dark:border-blue-700 dark:border-blue-800 dark:border-gray-600 dark:border-gray-700 dark:border-green-600 dark:border-green-700 dark:border-green-800 dark:border-orange-600 dark:border-orange-800 dark:border-purple-700 dark:border-red-500 dark:border-red-600 dark:border-red-700 dark:border-red-800 dark:border-slate-700 dark:border-yellow-600 dark:border-yellow-800 dark:disabled:bg-gray-800 dark:disabled:text-gray-500 dark:divide-gray-700 dark:divide-purple-800 dark:focus:ring-offset-gray-900 dark:from-blue-900 dark:hover:bg-blue-600 dark:hover:bg-gray-100 dark:hover:bg-gray-200 dark:hover:bg-gray-500 dark:hover:bg-gray-600 dark:hover:bg-gray-700 dark:hover:bg-indigo-600 dark:hover:bg-orange-900/30 dark:hover:bg-purple-900/30 dark:hover:bg-red-900/20 dark:hover:bg-red-900/30 dark:hover:text-blue-300 dark:hover:text-blue-400 dark:hover:text-gray-300 dark:hover:text-purple-300 dark:placeholder-gray-500 dark:shadow-purple-900/50 dark:text-amber-200 dark:text-amber-300 dark:text-amber-400 dark:text-blue-100 dark:text-blue-200 dark:text-blue-300 dark:text-blue-400 dark:text-gray-100 dark:text-gray-200 dark:text-gray-300 dark:text-gray-400 dark:text-gray-500 dark:text-gray-600 dark:text-gray-900 dark:text-green-100 dark:text-green-200 dark:text-green-300 dark:text-green-400 dark:text-indigo-200 dark:text-orange-200 dark:text-orange-400 dark:text-orange-500 dark:text-purple-100 dark:text-purple-200 dark:text-purple-300 dark:text-purple-400 dark:text-red-200 dark:text-red-300 dark:text-red-400 dark:text-red-500 dark:text-slate-300 dark:text-slate-400 dark:text-slate-500 dark:text-white dark:text-yellow-100 dark:text-yellow-200 dark:text-yellow-300 dark:text-yellow-400 dark:text-yellow-500 dark:to-indigo-900 disabled:bg-blue-400 disabled:bg-gray-100 disabled:cursor-not-allowed disabled:hover:bg-transparent disabled:opacity-50 disabled:text-gray-400 focus:border-blue-500 focus:border-indigo-500 focus:border-red-500 focus:border-transparent focus:outline-none focus:ring-2 focus:ring-blue-500 focus:ring-indigo-500 focus:ring-offset-2 focus:ring-red-500 hover:bg-amber-700 hover:bg-blue-700 hover:bg-gray-100 hover:bg-gray-50 hover:bg-gray-700 hover:bg-gray-800 hover:bg-gray-900 hover:bg-green-700 hover:bg-indigo-700 hover:bg-orange-50 hover:bg-purple-50 hover:bg-purple-700 hover:bg-red-100 hover:bg-red-50 hover:bg-red-700 hover:bg-yellow-700 hover:text-blue-500 hover:text-blue-600 hover:text-gray-600 hover:text-gray-700 hover:text-purple-900 hover:underline lg:col-span-2 lg:col-span-3 lg:grid-cols-2 lg:grid-cols-4 lg:grid-cols-5 lg:p-8 lg:px-8 max-h-[500px] max-h-[70vh] max-w-[200px] md:block md:col-span-2 md:grid-cols-2 md:grid-cols-3 md:grid-cols-4 md:w-48 md:w-64 md:w-80 min-h-[60vh] min-w-[200px] min-w-[80px] sm:flex-row sm:inline sm:p-6 sm:px-6 sm:text-2xl sm:text-3xl sm:text-sm text-[11px] text-[2rem]"></div>
|
||||
@@ -1,3 +1,197 @@
|
||||
dark:bg-amber-900
|
||||
dark:bg-amber-900/20
|
||||
dark:bg-amber-900/30
|
||||
dark:bg-amber-900/40
|
||||
dark:bg-blue-500
|
||||
dark:bg-blue-800
|
||||
dark:bg-blue-900
|
||||
dark:bg-blue-900/20
|
||||
dark:bg-blue-900/30
|
||||
dark:bg-blue-900/40
|
||||
dark:bg-blue-900/50
|
||||
dark:bg-gray-100
|
||||
dark:bg-gray-600
|
||||
dark:bg-gray-700
|
||||
dark:bg-gray-700/50
|
||||
dark:bg-gray-800
|
||||
dark:bg-gray-900
|
||||
dark:bg-gray-900/50
|
||||
dark:bg-gray-950
|
||||
dark:bg-green-900
|
||||
dark:bg-green-900/20
|
||||
dark:bg-green-900/30
|
||||
dark:bg-indigo-500
|
||||
dark:bg-indigo-900
|
||||
dark:bg-orange-900
|
||||
dark:bg-orange-900/20
|
||||
dark:bg-purple-800/50
|
||||
dark:bg-purple-900
|
||||
dark:bg-purple-900/20
|
||||
dark:bg-purple-900/30
|
||||
dark:bg-purple-900/50
|
||||
dark:bg-red-900
|
||||
dark:bg-red-900/20
|
||||
dark:bg-red-900/30
|
||||
dark:bg-slate-500
|
||||
dark:bg-slate-700
|
||||
dark:bg-slate-700/50
|
||||
dark:bg-slate-800
|
||||
dark:bg-white
|
||||
dark:bg-yellow-900
|
||||
dark:bg-yellow-900/20
|
||||
dark:bg-yellow-900/30
|
||||
dark:border-amber-700
|
||||
dark:border-amber-800
|
||||
dark:border-blue-700
|
||||
dark:border-blue-800
|
||||
dark:border-gray-600
|
||||
dark:border-gray-700
|
||||
dark:border-green-600
|
||||
dark:border-green-700
|
||||
dark:border-green-800
|
||||
dark:border-orange-600
|
||||
dark:border-orange-800
|
||||
dark:border-purple-700
|
||||
dark:border-red-500
|
||||
dark:border-red-600
|
||||
dark:border-red-700
|
||||
dark:border-red-800
|
||||
dark:border-slate-700
|
||||
dark:border-yellow-600
|
||||
dark:border-yellow-800
|
||||
dark:disabled:bg-gray-800
|
||||
dark:disabled:text-gray-500
|
||||
dark:divide-gray-700
|
||||
dark:divide-purple-800
|
||||
dark:divide-slate-700
|
||||
divide-slate-200
|
||||
dark:focus:ring-offset-gray-900
|
||||
dark:from-blue-900
|
||||
dark:hover:bg-blue-600
|
||||
dark:hover:bg-gray-100
|
||||
dark:hover:bg-gray-200
|
||||
dark:hover:bg-gray-500
|
||||
dark:hover:bg-gray-600
|
||||
dark:hover:bg-gray-700
|
||||
dark:hover:bg-indigo-600
|
||||
dark:hover:bg-orange-900/30
|
||||
dark:hover:bg-purple-900/30
|
||||
dark:hover:bg-red-900/20
|
||||
dark:hover:bg-red-900/30
|
||||
dark:hover:text-blue-300
|
||||
dark:hover:text-blue-400
|
||||
dark:hover:text-gray-300
|
||||
dark:hover:text-purple-300
|
||||
dark:placeholder-gray-500
|
||||
dark:shadow-purple-900/50
|
||||
dark:text-amber-200
|
||||
dark:text-amber-300
|
||||
dark:text-amber-400
|
||||
dark:text-blue-100
|
||||
dark:text-blue-200
|
||||
dark:text-blue-300
|
||||
dark:text-blue-400
|
||||
dark:text-gray-100
|
||||
dark:text-gray-200
|
||||
dark:text-gray-300
|
||||
dark:text-gray-400
|
||||
dark:text-gray-500
|
||||
dark:text-gray-600
|
||||
dark:text-gray-900
|
||||
dark:text-green-100
|
||||
dark:text-green-200
|
||||
dark:text-green-300
|
||||
dark:text-green-400
|
||||
dark:text-indigo-200
|
||||
dark:text-orange-200
|
||||
dark:text-orange-400
|
||||
dark:text-orange-500
|
||||
dark:text-purple-100
|
||||
dark:text-purple-200
|
||||
dark:text-purple-300
|
||||
dark:text-purple-400
|
||||
dark:text-red-200
|
||||
dark:text-red-300
|
||||
dark:text-red-400
|
||||
dark:text-red-500
|
||||
dark:text-slate-300
|
||||
dark:text-slate-400
|
||||
dark:text-slate-500
|
||||
dark:text-white
|
||||
dark:text-yellow-100
|
||||
dark:text-yellow-200
|
||||
dark:text-yellow-300
|
||||
dark:text-yellow-400
|
||||
dark:text-yellow-500
|
||||
dark:to-indigo-900
|
||||
disabled:bg-blue-400
|
||||
disabled:bg-gray-100
|
||||
disabled:cursor-not-allowed
|
||||
disabled:hover:bg-transparent
|
||||
disabled:opacity-50
|
||||
disabled:text-gray-400
|
||||
focus:border-blue-500
|
||||
focus:border-indigo-500
|
||||
focus:border-red-500
|
||||
focus:border-transparent
|
||||
focus:outline-none
|
||||
focus:ring-2
|
||||
focus:ring-blue-500
|
||||
focus:ring-indigo-500
|
||||
focus:ring-offset-2
|
||||
focus:ring-red-500
|
||||
hover:bg-amber-700
|
||||
hover:bg-blue-700
|
||||
hover:bg-gray-100
|
||||
hover:bg-gray-50
|
||||
hover:bg-gray-700
|
||||
hover:bg-gray-800
|
||||
hover:bg-gray-900
|
||||
hover:bg-green-700
|
||||
hover:bg-indigo-700
|
||||
hover:bg-orange-50
|
||||
hover:bg-purple-50
|
||||
hover:bg-purple-700
|
||||
hover:bg-red-100
|
||||
hover:bg-red-50
|
||||
hover:bg-red-700
|
||||
hover:bg-yellow-700
|
||||
hover:text-blue-500
|
||||
hover:text-blue-600
|
||||
hover:text-gray-600
|
||||
hover:text-gray-700
|
||||
hover:text-purple-900
|
||||
hover:underline
|
||||
lg:col-span-2
|
||||
lg:col-span-3
|
||||
lg:grid-cols-2
|
||||
lg:grid-cols-4
|
||||
lg:grid-cols-5
|
||||
lg:p-8
|
||||
lg:px-8
|
||||
max-h-[500px]
|
||||
max-h-[70vh]
|
||||
max-w-[200px]
|
||||
md:block
|
||||
md:col-span-2
|
||||
md:grid-cols-2
|
||||
md:grid-cols-3
|
||||
md:grid-cols-4
|
||||
md:w-48
|
||||
md:w-64
|
||||
md:w-80
|
||||
min-h-[60vh]
|
||||
min-w-[200px]
|
||||
min-w-[80px]
|
||||
sm:flex-row
|
||||
sm:inline
|
||||
sm:p-6
|
||||
sm:px-6
|
||||
sm:text-2xl
|
||||
sm:text-3xl
|
||||
sm:text-sm
|
||||
text-[11px]
|
||||
text-[2rem]
|
||||
/*
|
||||
* Tailwind CSS Safelist
|
||||
* 레이아웃 JSON에서 동적으로 사용되는 클래스들을 위한 safelist
|
||||
@@ -685,4 +879,4 @@ xl:items-start xl:items-end xl:items-center
|
||||
/* Important (!) Modifier - Text Override */
|
||||
!text-xs !text-sm !text-base !text-lg !text-xl !text-2xl !text-3xl !text-4xl
|
||||
!font-normal !font-medium !font-semibold !font-bold
|
||||
!text-left !text-center !text-right !text-justify
|
||||
!text-left !text-center !text-right !text-justify
|
||||
@@ -1,312 +0,0 @@
|
||||
/**
|
||||
* G7 Admin Template - Design Guide
|
||||
* Colors - 색상 관련 스타일
|
||||
*/
|
||||
|
||||
@layer components {
|
||||
/* ========================================
|
||||
* TEXT COLORS
|
||||
* ======================================== */
|
||||
|
||||
/* Text Colors */
|
||||
.text-primary {
|
||||
@apply text-gray-900;
|
||||
@apply dark:text-white;
|
||||
}
|
||||
.text-secondary {
|
||||
@apply text-gray-600;
|
||||
@apply dark:text-gray-400;
|
||||
}
|
||||
.text-muted {
|
||||
@apply text-gray-500;
|
||||
@apply dark:text-gray-500;
|
||||
}
|
||||
.text-tertiary {
|
||||
@apply text-xs text-gray-500;
|
||||
@apply dark:text-gray-500;
|
||||
}
|
||||
.text-label {
|
||||
@apply text-sm text-gray-600;
|
||||
@apply dark:text-gray-400;
|
||||
}
|
||||
.text-label-subtle {
|
||||
@apply text-sm text-gray-500;
|
||||
@apply dark:text-gray-400;
|
||||
}
|
||||
.text-heading {
|
||||
@apply text-sm font-medium text-gray-900;
|
||||
@apply dark:text-white;
|
||||
}
|
||||
|
||||
/* Icon Colors */
|
||||
.icon-muted {
|
||||
@apply text-gray-400;
|
||||
@apply dark:text-gray-500;
|
||||
}
|
||||
|
||||
/* ========================================
|
||||
* SEMANTIC BACKGROUND COLORS
|
||||
* ======================================== */
|
||||
|
||||
/* Success - 성공, 완료, 활성화 */
|
||||
.bg-success {
|
||||
@apply bg-green-100;
|
||||
@apply dark:bg-green-900;
|
||||
}
|
||||
.bg-success-light {
|
||||
@apply bg-green-50;
|
||||
@apply dark:bg-green-900/20;
|
||||
}
|
||||
.bg-success-solid {
|
||||
@apply bg-green-600;
|
||||
@apply dark:bg-green-500;
|
||||
}
|
||||
|
||||
/* Error/Danger - 오류, 위험, 삭제 */
|
||||
.bg-error {
|
||||
@apply bg-red-100;
|
||||
@apply dark:bg-red-900;
|
||||
}
|
||||
.bg-error-light {
|
||||
@apply bg-red-50;
|
||||
@apply dark:bg-red-900/20;
|
||||
}
|
||||
.bg-error-solid {
|
||||
@apply bg-red-600;
|
||||
@apply dark:bg-red-500;
|
||||
}
|
||||
|
||||
/* Warning - 경고, 주의 */
|
||||
.bg-warning {
|
||||
@apply bg-yellow-100;
|
||||
@apply dark:bg-yellow-900;
|
||||
}
|
||||
.bg-warning-light {
|
||||
@apply bg-yellow-50;
|
||||
@apply dark:bg-yellow-900/20;
|
||||
}
|
||||
.bg-warning-solid {
|
||||
@apply bg-yellow-600;
|
||||
@apply dark:bg-yellow-500;
|
||||
}
|
||||
|
||||
/* Info - 정보, 안내 */
|
||||
.bg-info {
|
||||
@apply bg-blue-100;
|
||||
@apply dark:bg-blue-900;
|
||||
}
|
||||
.bg-info-light {
|
||||
@apply bg-blue-50;
|
||||
@apply dark:bg-blue-900/20;
|
||||
}
|
||||
.bg-info-solid {
|
||||
@apply bg-blue-600;
|
||||
@apply dark:bg-blue-500;
|
||||
}
|
||||
|
||||
/* Ready - 배송준비 (cyan) */
|
||||
.bg-ready {
|
||||
@apply bg-cyan-100;
|
||||
@apply dark:bg-cyan-900;
|
||||
}
|
||||
.bg-ready-light {
|
||||
@apply bg-cyan-50;
|
||||
@apply dark:bg-cyan-900/20;
|
||||
}
|
||||
.bg-ready-solid {
|
||||
@apply bg-cyan-600;
|
||||
@apply dark:bg-cyan-400;
|
||||
}
|
||||
|
||||
/* Progress - 배송중 (indigo) */
|
||||
.bg-progress {
|
||||
@apply bg-indigo-100;
|
||||
@apply dark:bg-indigo-900;
|
||||
}
|
||||
.bg-progress-light {
|
||||
@apply bg-indigo-50;
|
||||
@apply dark:bg-indigo-900/20;
|
||||
}
|
||||
.bg-progress-solid {
|
||||
@apply bg-indigo-600;
|
||||
@apply dark:bg-indigo-400;
|
||||
}
|
||||
|
||||
/* Complete - 배송완료 (pink) */
|
||||
.bg-complete {
|
||||
@apply bg-pink-100;
|
||||
@apply dark:bg-pink-900;
|
||||
}
|
||||
.bg-complete-light {
|
||||
@apply bg-pink-50;
|
||||
@apply dark:bg-pink-900/20;
|
||||
}
|
||||
.bg-complete-solid {
|
||||
@apply bg-pink-600;
|
||||
@apply dark:bg-pink-400;
|
||||
}
|
||||
|
||||
/* Hold - 비활성, 대기 (gray) */
|
||||
.bg-hold {
|
||||
@apply bg-gray-100;
|
||||
@apply dark:bg-gray-800;
|
||||
}
|
||||
.bg-hold-light {
|
||||
@apply bg-gray-50;
|
||||
@apply dark:bg-gray-800/50;
|
||||
}
|
||||
.bg-hold-solid {
|
||||
@apply bg-gray-500;
|
||||
@apply dark:bg-gray-400;
|
||||
}
|
||||
|
||||
/* ========================================
|
||||
* SEMANTIC TEXT COLORS
|
||||
* ======================================== */
|
||||
|
||||
.text-success {
|
||||
@apply text-green-600;
|
||||
@apply dark:text-green-400;
|
||||
}
|
||||
|
||||
.text-error {
|
||||
@apply text-red-600;
|
||||
@apply dark:text-red-400;
|
||||
}
|
||||
|
||||
.text-warning {
|
||||
@apply text-yellow-600;
|
||||
@apply dark:text-yellow-400;
|
||||
}
|
||||
|
||||
.text-info {
|
||||
@apply text-blue-600;
|
||||
@apply dark:text-blue-400;
|
||||
}
|
||||
|
||||
/* Ready - 배송준비 (cyan) */
|
||||
.text-ready {
|
||||
@apply text-cyan-600;
|
||||
@apply dark:text-cyan-400;
|
||||
}
|
||||
|
||||
/* Progress - 배송중 (indigo) */
|
||||
.text-progress {
|
||||
@apply text-indigo-600;
|
||||
@apply dark:text-indigo-400;
|
||||
}
|
||||
|
||||
/* Complete - 배송완료 (pink) */
|
||||
.text-complete {
|
||||
@apply text-pink-600;
|
||||
@apply dark:text-pink-400;
|
||||
}
|
||||
|
||||
/* Hold - 비활성, 대기 (gray) */
|
||||
.text-hold {
|
||||
@apply text-gray-500;
|
||||
@apply dark:text-gray-400;
|
||||
}
|
||||
|
||||
/* Semantic Text Colors - Light variants (solid 배경 위 텍스트용) */
|
||||
.text-success-light {
|
||||
@apply text-white;
|
||||
@apply dark:text-green-900;
|
||||
}
|
||||
.text-error-light {
|
||||
@apply text-white;
|
||||
@apply dark:text-red-900;
|
||||
}
|
||||
.text-warning-light {
|
||||
@apply text-white;
|
||||
@apply dark:text-yellow-900;
|
||||
}
|
||||
.text-info-light {
|
||||
@apply text-white;
|
||||
@apply dark:text-blue-900;
|
||||
}
|
||||
.text-ready-light {
|
||||
@apply text-white;
|
||||
@apply dark:text-cyan-900;
|
||||
}
|
||||
.text-progress-light {
|
||||
@apply text-white;
|
||||
@apply dark:text-indigo-900;
|
||||
}
|
||||
.text-complete-light {
|
||||
@apply text-white;
|
||||
@apply dark:text-pink-900;
|
||||
}
|
||||
.text-hold-light {
|
||||
@apply text-white;
|
||||
@apply dark:text-gray-900;
|
||||
}
|
||||
|
||||
/* ========================================
|
||||
* SEMANTIC BORDER COLORS
|
||||
* ======================================== */
|
||||
|
||||
.border-success {
|
||||
@apply border-green-200;
|
||||
@apply dark:border-green-800;
|
||||
}
|
||||
|
||||
.border-error {
|
||||
@apply border-red-200;
|
||||
@apply dark:border-red-800;
|
||||
}
|
||||
|
||||
.border-warning {
|
||||
@apply border-yellow-200;
|
||||
@apply dark:border-yellow-800;
|
||||
}
|
||||
|
||||
.border-info {
|
||||
@apply border-blue-200;
|
||||
@apply dark:border-blue-800;
|
||||
}
|
||||
|
||||
.border-ready {
|
||||
@apply border-cyan-200;
|
||||
@apply dark:border-cyan-800;
|
||||
}
|
||||
|
||||
.border-progress {
|
||||
@apply border-indigo-200;
|
||||
@apply dark:border-indigo-800;
|
||||
}
|
||||
|
||||
.border-complete {
|
||||
@apply border-pink-200;
|
||||
@apply dark:border-pink-800;
|
||||
}
|
||||
|
||||
.border-hold {
|
||||
@apply border-gray-300;
|
||||
@apply dark:border-gray-600;
|
||||
}
|
||||
|
||||
/* ========================================
|
||||
* SEMANTIC BUTTONS
|
||||
* ======================================== */
|
||||
|
||||
.btn-success {
|
||||
@apply bg-green-600 text-white hover:bg-green-700;
|
||||
@apply dark:bg-green-500 dark:hover:bg-green-600;
|
||||
}
|
||||
|
||||
.btn-danger {
|
||||
@apply bg-red-600 text-white hover:bg-red-700;
|
||||
@apply dark:bg-red-500 dark:hover:bg-red-600;
|
||||
}
|
||||
|
||||
.btn-warning {
|
||||
@apply bg-yellow-600 text-white hover:bg-yellow-700;
|
||||
@apply dark:bg-yellow-500 dark:hover:bg-yellow-600;
|
||||
}
|
||||
|
||||
.btn-info {
|
||||
@apply bg-blue-600 text-white hover:bg-blue-700;
|
||||
@apply dark:bg-blue-500 dark:hover:bg-blue-600;
|
||||
}
|
||||
}
|
||||
@@ -1,835 +0,0 @@
|
||||
/**
|
||||
* G7 Admin Template - Design Guide
|
||||
* Components - 카드, 모달 등 복합 컴포넌트 스타일
|
||||
*/
|
||||
|
||||
@layer components {
|
||||
/* ========================================
|
||||
* 1. TABLES
|
||||
* ======================================== */
|
||||
|
||||
/* Table Container */
|
||||
.table-container {
|
||||
@apply border border-gray-200 rounded-lg overflow-hidden;
|
||||
@apply dark:border-gray-700;
|
||||
}
|
||||
|
||||
/* Table */
|
||||
.table {
|
||||
@apply w-full;
|
||||
}
|
||||
|
||||
/* Table Header */
|
||||
.table thead {
|
||||
@apply bg-gray-50;
|
||||
@apply dark:bg-gray-800;
|
||||
}
|
||||
.table th {
|
||||
@apply px-4 py-3 text-left text-sm font-medium text-gray-600 border-b border-gray-200;
|
||||
@apply dark:text-gray-400 dark:border-gray-700;
|
||||
}
|
||||
.table th.sortable {
|
||||
@apply cursor-pointer hover:bg-gray-100;
|
||||
@apply dark:hover:bg-gray-700;
|
||||
}
|
||||
|
||||
/* Table Body */
|
||||
.table tbody tr {
|
||||
@apply bg-white border-b border-gray-100;
|
||||
@apply dark:bg-gray-900 dark:border-gray-800;
|
||||
}
|
||||
.table tbody tr:hover {
|
||||
@apply bg-gray-50;
|
||||
@apply dark:bg-gray-800;
|
||||
}
|
||||
.table tbody tr.selected {
|
||||
@apply bg-blue-50;
|
||||
@apply dark:bg-blue-900/20;
|
||||
}
|
||||
.table td {
|
||||
@apply px-4 py-3 text-sm text-gray-900;
|
||||
@apply dark:text-gray-100;
|
||||
}
|
||||
|
||||
/* Table Actions */
|
||||
.table-actions {
|
||||
@apply flex items-center justify-between px-4 py-3 bg-white border-t border-gray-200;
|
||||
@apply dark:bg-gray-900 dark:border-gray-700;
|
||||
}
|
||||
|
||||
/* ----------------------------------------
|
||||
* Log Table - 로그/이력 테이블
|
||||
* 처리일시, 처리자, 이벤트 등 이력 표시용
|
||||
* ---------------------------------------- */
|
||||
|
||||
/* Log Table */
|
||||
.log-table {
|
||||
@apply w-full;
|
||||
}
|
||||
.log-table th {
|
||||
@apply px-4 py-3 text-left text-sm font-medium text-gray-500 border-b border-gray-200;
|
||||
@apply dark:text-gray-400 dark:border-gray-700;
|
||||
}
|
||||
.log-table td {
|
||||
@apply px-4 py-3 text-sm text-gray-900 border-b border-gray-100;
|
||||
@apply dark:text-gray-100 dark:border-gray-800;
|
||||
}
|
||||
.log-table tbody tr:last-child td {
|
||||
@apply border-b-0;
|
||||
}
|
||||
|
||||
/* Log Table - 처리자 뱃지 */
|
||||
.log-table-actor {
|
||||
@apply inline-flex items-center px-2.5 py-1 bg-gray-100 text-gray-700 rounded-md text-sm border border-gray-200;
|
||||
@apply dark:bg-gray-700 dark:text-gray-300 dark:border-gray-600;
|
||||
}
|
||||
|
||||
/* Log Card - 모바일용 */
|
||||
.log-card {
|
||||
@apply bg-white rounded-lg border border-gray-200 p-4;
|
||||
@apply dark:bg-gray-800 dark:border-gray-700;
|
||||
}
|
||||
.log-card-header {
|
||||
@apply flex items-center justify-between gap-3 mb-2;
|
||||
}
|
||||
.log-card-body {
|
||||
@apply text-sm text-gray-900;
|
||||
@apply dark:text-gray-100;
|
||||
}
|
||||
|
||||
/* ========================================
|
||||
* 2. MODALS
|
||||
* ======================================== */
|
||||
|
||||
/* Modal Overlay */
|
||||
.modal-overlay {
|
||||
@apply fixed inset-0 bg-black/50 flex items-center justify-center z-50;
|
||||
}
|
||||
|
||||
/* Modal Container */
|
||||
.modal {
|
||||
@apply bg-white rounded-xl shadow-xl w-full max-w-md mx-4 p-6;
|
||||
@apply dark:bg-gray-800;
|
||||
}
|
||||
.modal-lg {
|
||||
@apply max-w-lg;
|
||||
}
|
||||
.modal-xl {
|
||||
@apply max-w-xl;
|
||||
}
|
||||
|
||||
/* Modal Header */
|
||||
.modal-header {
|
||||
@apply flex items-start justify-between mb-4;
|
||||
}
|
||||
.modal-close {
|
||||
@apply p-1 text-gray-400 hover:text-gray-600 rounded-lg hover:bg-gray-100 cursor-pointer;
|
||||
@apply dark:text-gray-500 dark:hover:text-gray-300 dark:hover:bg-gray-700;
|
||||
}
|
||||
|
||||
/* Modal Body */
|
||||
.modal-body {
|
||||
@apply py-4;
|
||||
}
|
||||
|
||||
/* Modal Footer */
|
||||
.modal-footer {
|
||||
@apply flex justify-end gap-3 mt-6;
|
||||
}
|
||||
|
||||
/* ----------------------------------------
|
||||
* Danger Confirm Modal
|
||||
* 삭제 등 위험한 작업 확인용 모달 스타일
|
||||
* ---------------------------------------- */
|
||||
|
||||
/* Danger Confirm Modal Icon */
|
||||
.danger-confirm-icon {
|
||||
@apply w-12 h-12 mx-auto mb-4 flex items-center justify-center rounded-full bg-red-100;
|
||||
@apply dark:bg-red-900/30;
|
||||
}
|
||||
.danger-confirm-icon svg,
|
||||
.danger-confirm-icon .icon {
|
||||
@apply w-6 h-6 text-red-600;
|
||||
@apply dark:text-red-400;
|
||||
}
|
||||
|
||||
/* Danger Confirm Modal Title */
|
||||
.danger-confirm-title {
|
||||
@apply text-lg font-semibold text-gray-900 text-center mb-2;
|
||||
@apply dark:text-white;
|
||||
}
|
||||
|
||||
/* Danger Confirm Modal Message */
|
||||
.danger-confirm-message {
|
||||
@apply text-sm text-gray-600 text-center mb-4;
|
||||
@apply dark:text-gray-400;
|
||||
}
|
||||
|
||||
/* Danger Confirm Modal Warning Box */
|
||||
.danger-confirm-warning {
|
||||
@apply bg-yellow-50 border border-yellow-200 rounded-lg p-4 mb-4;
|
||||
@apply dark:bg-yellow-900/20 dark:border-yellow-700;
|
||||
}
|
||||
.danger-confirm-warning-title {
|
||||
@apply text-sm font-semibold text-yellow-800 mb-2;
|
||||
@apply dark:text-yellow-300;
|
||||
}
|
||||
.danger-confirm-warning-list {
|
||||
@apply text-sm text-yellow-700 list-disc list-inside space-y-1;
|
||||
@apply dark:text-yellow-400;
|
||||
}
|
||||
|
||||
/* Danger Confirm Modal Alert (되돌릴 수 없음 경고) */
|
||||
.danger-confirm-alert {
|
||||
@apply text-sm text-red-600 text-center;
|
||||
@apply dark:text-red-400;
|
||||
}
|
||||
|
||||
/* Danger Confirm Modal Footer */
|
||||
.danger-confirm-footer {
|
||||
@apply flex justify-center gap-3 mt-6;
|
||||
}
|
||||
|
||||
/* ========================================
|
||||
* 3. CARDS
|
||||
* ======================================== */
|
||||
|
||||
/* Basic Card - 기본적으로 가로 100% */
|
||||
.card {
|
||||
@apply w-full bg-white rounded-xl border border-gray-200 p-6;
|
||||
@apply dark:bg-gray-800 dark:border-gray-700;
|
||||
}
|
||||
|
||||
/* Card Header */
|
||||
.card-header {
|
||||
@apply mb-6;
|
||||
}
|
||||
|
||||
/* Card Section Title - 구분선이 있는 섹션 제목 (카드 전체 너비로 확장) */
|
||||
.card-section-title {
|
||||
@apply text-lg font-semibold text-gray-900 pb-4 mb-6 border-b border-gray-200 -mx-6 px-6;
|
||||
@apply dark:text-white dark:border-gray-700;
|
||||
}
|
||||
|
||||
/* Account Card (무통장 계좌) */
|
||||
.card-account {
|
||||
@apply bg-gray-50 rounded-lg p-4 relative;
|
||||
@apply dark:bg-gray-900;
|
||||
}
|
||||
.card-account-default {
|
||||
@apply absolute top-3 left-3;
|
||||
}
|
||||
.card-account-delete {
|
||||
@apply absolute top-3 right-3;
|
||||
}
|
||||
|
||||
/* Accordion Card */
|
||||
.card-accordion {
|
||||
@apply w-full bg-white rounded-xl border border-gray-200 overflow-hidden;
|
||||
@apply dark:bg-gray-800 dark:border-gray-700;
|
||||
}
|
||||
|
||||
/* Accordion Header - 클릭 가능한 헤더 */
|
||||
.card-accordion-header {
|
||||
@apply flex items-center justify-between p-4 cursor-pointer;
|
||||
@apply hover:bg-gray-50;
|
||||
@apply dark:hover:bg-gray-700;
|
||||
}
|
||||
|
||||
/* Accordion Title */
|
||||
.card-accordion-title {
|
||||
@apply text-base font-medium text-gray-900;
|
||||
@apply dark:text-white;
|
||||
}
|
||||
|
||||
/* Accordion Toggle Icon */
|
||||
.card-accordion-icon {
|
||||
@apply w-5 h-5 text-gray-400 transition-transform duration-200;
|
||||
@apply dark:text-gray-500;
|
||||
}
|
||||
.card-accordion-icon.open {
|
||||
@apply rotate-180;
|
||||
}
|
||||
|
||||
/* Accordion Body */
|
||||
.card-accordion-body {
|
||||
@apply px-4 pb-4 pt-2 border-t border-gray-100;
|
||||
@apply dark:border-gray-700;
|
||||
}
|
||||
.card-accordion-body.hidden {
|
||||
@apply hidden;
|
||||
}
|
||||
|
||||
/* Accordion Toggle Button Only (제목 없는 버전) */
|
||||
.card-accordion-toggle {
|
||||
@apply flex items-center justify-center p-2 cursor-pointer text-gray-400;
|
||||
@apply hover:text-gray-600 hover:bg-gray-50;
|
||||
@apply dark:text-gray-500 dark:hover:text-gray-300 dark:hover:bg-gray-700;
|
||||
}
|
||||
|
||||
/* ========================================
|
||||
* 4. TABS
|
||||
* ======================================== */
|
||||
|
||||
/* Tab Container */
|
||||
.tabs {
|
||||
@apply bg-gray-100 rounded-lg p-1 inline-flex;
|
||||
@apply dark:bg-gray-800;
|
||||
}
|
||||
|
||||
/* Tab Button */
|
||||
.tab {
|
||||
@apply px-6 py-2 rounded-md text-sm font-medium text-gray-500 cursor-pointer transition-colors;
|
||||
@apply hover:text-gray-700;
|
||||
@apply dark:text-gray-400 dark:hover:text-gray-300;
|
||||
}
|
||||
.tab.active {
|
||||
@apply bg-white text-gray-900 shadow-sm;
|
||||
@apply dark:bg-gray-700 dark:text-white;
|
||||
}
|
||||
|
||||
/* ========================================
|
||||
* 5. TOAST
|
||||
* ======================================== */
|
||||
|
||||
/* Toast Container */
|
||||
.toast {
|
||||
@apply fixed bottom-4 right-4 z-50;
|
||||
}
|
||||
|
||||
/* Toast Item */
|
||||
.toast-item {
|
||||
@apply flex items-center gap-3 bg-gray-900 text-white px-4 py-3 rounded-lg shadow-lg;
|
||||
@apply dark:bg-white dark:text-gray-900;
|
||||
}
|
||||
.toast-icon {
|
||||
@apply flex-shrink-0;
|
||||
}
|
||||
|
||||
/* ========================================
|
||||
* 6. DROPDOWN MENU
|
||||
* ======================================== */
|
||||
|
||||
/* Dropdown Container */
|
||||
.dropdown {
|
||||
@apply relative inline-block;
|
||||
}
|
||||
|
||||
/* Dropdown Menu */
|
||||
.dropdown-menu {
|
||||
@apply absolute right-0 mt-2 min-w-48 bg-white rounded-lg shadow-lg border border-gray-200 py-1 z-50;
|
||||
@apply dark:bg-gray-800 dark:border-gray-700;
|
||||
}
|
||||
|
||||
/* Dropdown Item */
|
||||
.dropdown-item {
|
||||
@apply flex items-center gap-2 px-4 py-2 text-sm text-gray-700 cursor-pointer;
|
||||
@apply hover:bg-gray-50;
|
||||
@apply dark:text-gray-300 dark:hover:bg-gray-700;
|
||||
}
|
||||
.dropdown-item-icon {
|
||||
@apply text-gray-400;
|
||||
@apply dark:text-gray-500;
|
||||
}
|
||||
|
||||
/* Dropdown Divider */
|
||||
.dropdown-divider {
|
||||
@apply border-t border-gray-100 my-1;
|
||||
@apply dark:border-gray-700;
|
||||
}
|
||||
|
||||
/* ========================================
|
||||
* 7. DRAG LIST
|
||||
* ======================================== */
|
||||
|
||||
/* Drag Item */
|
||||
.drag-item {
|
||||
@apply bg-white border border-gray-200 rounded-lg p-4 flex items-center gap-4;
|
||||
@apply hover:shadow-sm;
|
||||
@apply dark:bg-gray-800 dark:border-gray-700;
|
||||
}
|
||||
|
||||
/* Drag Handle */
|
||||
.drag-handle {
|
||||
@apply cursor-grab text-gray-400;
|
||||
@apply dark:text-gray-500;
|
||||
}
|
||||
.drag-handle:active {
|
||||
@apply cursor-grabbing;
|
||||
}
|
||||
|
||||
/* ========================================
|
||||
* 8. MOBILE CARD VIEW (테이블 대체)
|
||||
* 시안 기반: 엑셀다운로드 관리 모바일 카드
|
||||
* ======================================== */
|
||||
|
||||
/* Mobile Card Container - 데스크탑에서 숨김 */
|
||||
.table-mobile-cards {
|
||||
@apply hidden;
|
||||
}
|
||||
|
||||
/* Excel Download Card - 시안 기반 */
|
||||
.excel-card {
|
||||
@apply bg-white rounded-xl border border-gray-200 p-4;
|
||||
@apply dark:bg-gray-800 dark:border-gray-700;
|
||||
}
|
||||
|
||||
/* Card Header: 타이틀 + 상태 뱃지 */
|
||||
.excel-card-header {
|
||||
@apply flex items-start justify-between gap-3 mb-4 pb-3 border-b border-gray-100;
|
||||
@apply dark:border-gray-700;
|
||||
}
|
||||
.excel-card-title {
|
||||
@apply text-base font-semibold text-gray-900;
|
||||
@apply dark:text-white;
|
||||
}
|
||||
|
||||
/* Card Body: 레이블-값 쌍 */
|
||||
.excel-card-body {
|
||||
@apply space-y-2;
|
||||
}
|
||||
.excel-card-row {
|
||||
@apply flex justify-between items-center py-1 text-sm;
|
||||
}
|
||||
.excel-card-label {
|
||||
@apply text-gray-500 flex-shrink-0;
|
||||
@apply dark:text-gray-400;
|
||||
}
|
||||
.excel-card-value {
|
||||
@apply text-gray-900 text-right;
|
||||
@apply dark:text-white;
|
||||
}
|
||||
|
||||
/* Card Footer: 생성자 + 다운로드 버튼 */
|
||||
.excel-card-footer {
|
||||
@apply mt-4 pt-3 border-t border-gray-100 flex items-center justify-between;
|
||||
@apply dark:border-gray-700;
|
||||
}
|
||||
.excel-card-creator {
|
||||
@apply text-sm text-gray-700;
|
||||
@apply dark:text-gray-300;
|
||||
}
|
||||
.excel-card-creator-label {
|
||||
@apply text-gray-500 mr-2;
|
||||
@apply dark:text-gray-400;
|
||||
}
|
||||
|
||||
/* ========================================
|
||||
* 9. CUSTOM SELECT (Select.tsx 구조 호환)
|
||||
* 구조: div.select-custom > button.select-trigger > span + svg
|
||||
* div.select-dropdown > button.select-option
|
||||
* ======================================== */
|
||||
|
||||
/* Custom Select Container */
|
||||
.select-custom {
|
||||
@apply relative inline-block;
|
||||
}
|
||||
|
||||
/* Select Trigger Button */
|
||||
.select-trigger {
|
||||
@apply w-full h-9 bg-gray-100 text-gray-700 px-4 rounded-xl text-sm;
|
||||
@apply flex items-center justify-between gap-2 cursor-pointer;
|
||||
@apply border-0 focus:ring-2 focus:ring-blue-500 focus:outline-none;
|
||||
@apply dark:bg-gray-700 dark:text-gray-200;
|
||||
@apply disabled:opacity-50 disabled:cursor-not-allowed;
|
||||
}
|
||||
|
||||
/* Select Trigger Text */
|
||||
.select-trigger span {
|
||||
@apply truncate;
|
||||
}
|
||||
|
||||
/* Select Trigger Icon (SVG) */
|
||||
.select-trigger-icon {
|
||||
@apply w-4 h-4 text-gray-400 transition-transform duration-200 flex-shrink-0;
|
||||
@apply dark:text-gray-500;
|
||||
}
|
||||
.select-trigger-icon.open {
|
||||
@apply rotate-180;
|
||||
}
|
||||
|
||||
/* Select Dropdown */
|
||||
.select-dropdown {
|
||||
@apply absolute z-50 w-full mt-2 bg-white rounded-2xl shadow-lg border border-gray-200 overflow-hidden;
|
||||
@apply dark:bg-gray-800 dark:border-gray-600;
|
||||
}
|
||||
.select-dropdown.hidden {
|
||||
@apply hidden;
|
||||
}
|
||||
|
||||
/* Select Dropdown Inner Container */
|
||||
.select-dropdown-inner {
|
||||
@apply py-2 max-h-60 overflow-auto;
|
||||
}
|
||||
|
||||
/* Select Option */
|
||||
.select-option {
|
||||
@apply w-full px-4 py-3 text-left text-sm text-gray-700 cursor-pointer;
|
||||
@apply flex items-center;
|
||||
@apply hover:bg-gray-100 transition-colors;
|
||||
@apply dark:text-gray-200 dark:hover:bg-gray-700;
|
||||
}
|
||||
.select-option.selected {
|
||||
@apply text-blue-600 font-medium;
|
||||
@apply dark:text-blue-400;
|
||||
}
|
||||
.select-option:disabled {
|
||||
@apply opacity-50 cursor-not-allowed;
|
||||
}
|
||||
|
||||
/* Select Option Check Icon */
|
||||
.select-option-check {
|
||||
@apply w-5 h-5 text-blue-600 ml-auto flex-shrink-0;
|
||||
@apply dark:text-blue-400;
|
||||
}
|
||||
|
||||
/* ========================================
|
||||
* 9-2. MULTI SELECT (체크박스 드롭다운)
|
||||
* 구조: div.multi-select > button.multi-select-trigger
|
||||
* div.multi-select-dropdown > div.multi-select-item
|
||||
* ======================================== */
|
||||
|
||||
/* Multi Select Container */
|
||||
.multi-select {
|
||||
@apply relative inline-block;
|
||||
}
|
||||
|
||||
/* Multi Select Trigger - outline 스타일 버튼 */
|
||||
.multi-select-trigger {
|
||||
@apply inline-flex items-center gap-2 px-4 py-2 text-sm font-medium;
|
||||
@apply bg-transparent text-gray-700 border border-gray-300 rounded-lg;
|
||||
@apply cursor-pointer hover:bg-gray-50;
|
||||
@apply dark:text-gray-300 dark:border-gray-600 dark:hover:bg-gray-700;
|
||||
}
|
||||
|
||||
/* Multi Select Count Badge */
|
||||
.multi-select-count {
|
||||
@apply text-gray-500;
|
||||
@apply dark:text-gray-400;
|
||||
}
|
||||
|
||||
/* Multi Select Dropdown */
|
||||
.multi-select-dropdown {
|
||||
@apply absolute z-50 mt-2 min-w-64 bg-white rounded-xl shadow-lg border border-gray-200;
|
||||
@apply dark:bg-gray-800 dark:border-gray-700;
|
||||
}
|
||||
.multi-select-dropdown.hidden {
|
||||
@apply hidden;
|
||||
}
|
||||
|
||||
/* Multi Select Header */
|
||||
.multi-select-header {
|
||||
@apply px-4 py-3 text-sm font-medium text-gray-900 border-b border-gray-100;
|
||||
@apply dark:text-white dark:border-gray-700;
|
||||
}
|
||||
.multi-select-hint {
|
||||
@apply text-xs text-gray-500 font-normal;
|
||||
@apply dark:text-gray-400;
|
||||
}
|
||||
|
||||
/* Multi Select Items Container */
|
||||
.multi-select-items {
|
||||
@apply py-2 max-h-80 overflow-auto;
|
||||
}
|
||||
|
||||
/* Multi Select Item */
|
||||
.multi-select-item {
|
||||
@apply flex items-center gap-3 px-4 py-2.5 text-sm text-gray-700 cursor-pointer;
|
||||
@apply hover:bg-gray-50;
|
||||
@apply dark:text-gray-300 dark:hover:bg-gray-700;
|
||||
}
|
||||
.multi-select-item.disabled {
|
||||
@apply opacity-50 cursor-not-allowed;
|
||||
}
|
||||
.multi-select-item.disabled:hover {
|
||||
@apply bg-transparent;
|
||||
@apply dark:bg-transparent;
|
||||
}
|
||||
|
||||
/* ========================================
|
||||
* 9-3. GHOST SELECT (배경 없는 셀렉트)
|
||||
* 구조: div.select-ghost > button.select-ghost-trigger
|
||||
* div.select-ghost-dropdown > button.select-ghost-option
|
||||
* ======================================== */
|
||||
|
||||
/* Ghost Select Container */
|
||||
.select-ghost {
|
||||
@apply relative inline-block;
|
||||
}
|
||||
|
||||
/* Ghost Select Trigger - 투명 배경 */
|
||||
.select-ghost-trigger {
|
||||
@apply inline-flex items-center gap-1 px-2 py-1.5 text-sm font-medium;
|
||||
@apply bg-transparent text-gray-700 rounded-lg cursor-pointer;
|
||||
@apply hover:bg-gray-100;
|
||||
@apply dark:text-gray-300 dark:hover:bg-gray-700;
|
||||
}
|
||||
|
||||
/* Ghost Select Dropdown */
|
||||
.select-ghost-dropdown {
|
||||
@apply absolute z-50 mt-1 min-w-32 bg-white rounded-lg shadow-lg border border-gray-200 py-1;
|
||||
@apply dark:bg-gray-800 dark:border-gray-700;
|
||||
}
|
||||
.select-ghost-dropdown.hidden {
|
||||
@apply hidden;
|
||||
}
|
||||
|
||||
/* Ghost Select Option */
|
||||
.select-ghost-option {
|
||||
@apply w-full flex items-center justify-between px-3 py-2 text-sm text-gray-700 cursor-pointer;
|
||||
@apply hover:bg-gray-50;
|
||||
@apply dark:text-gray-300 dark:hover:bg-gray-700;
|
||||
}
|
||||
.select-ghost-option.selected {
|
||||
@apply text-blue-600 font-medium;
|
||||
@apply dark:text-blue-400;
|
||||
}
|
||||
|
||||
/* Ghost Select Check Icon */
|
||||
.select-ghost-check {
|
||||
@apply w-4 h-4 text-blue-600;
|
||||
@apply dark:text-blue-400;
|
||||
}
|
||||
|
||||
/* ========================================
|
||||
* 9-4. SEARCHABLE DROPDOWN (검색 가능한 드롭다운)
|
||||
* 구조: div.searchable-dropdown > button.searchable-dropdown-trigger
|
||||
* div.searchable-dropdown-dropdown > div.searchable-dropdown-search + div.searchable-dropdown-items
|
||||
* ======================================== */
|
||||
|
||||
/* Searchable Dropdown Container */
|
||||
.searchable-dropdown {
|
||||
@apply relative inline-block;
|
||||
}
|
||||
|
||||
/* Searchable Dropdown Trigger */
|
||||
.searchable-dropdown-trigger {
|
||||
@apply min-w-[200px] px-4 py-2.5 bg-gray-100 text-gray-700 rounded-xl text-sm font-medium;
|
||||
@apply flex items-center justify-between gap-2 cursor-pointer;
|
||||
@apply border-0 focus:ring-2 focus:ring-blue-500 focus:outline-none;
|
||||
@apply dark:bg-gray-700 dark:text-gray-200;
|
||||
@apply disabled:opacity-50 disabled:cursor-not-allowed;
|
||||
}
|
||||
|
||||
/* Searchable Dropdown Trigger Icon */
|
||||
.searchable-dropdown-trigger-icon {
|
||||
@apply w-4 h-4 text-gray-400 transition-transform duration-200 flex-shrink-0;
|
||||
@apply dark:text-gray-500;
|
||||
}
|
||||
.searchable-dropdown-trigger-icon.open {
|
||||
@apply rotate-180;
|
||||
}
|
||||
|
||||
/* Searchable Dropdown Panel */
|
||||
.searchable-dropdown-dropdown {
|
||||
@apply absolute z-50 w-full mt-2 min-w-[280px] bg-white rounded-2xl shadow-lg border border-gray-200 overflow-hidden;
|
||||
@apply dark:bg-gray-800 dark:border-gray-600;
|
||||
}
|
||||
.searchable-dropdown-dropdown.hidden {
|
||||
@apply hidden;
|
||||
}
|
||||
|
||||
/* Searchable Dropdown Search Section */
|
||||
.searchable-dropdown-search {
|
||||
@apply p-3 border-b border-gray-200;
|
||||
@apply dark:border-gray-700;
|
||||
}
|
||||
|
||||
/* Searchable Dropdown Search Input */
|
||||
.searchable-dropdown-search-input {
|
||||
@apply w-full px-3 py-2 bg-gray-50 text-gray-900 rounded-lg text-sm;
|
||||
@apply border border-gray-200 placeholder-gray-400;
|
||||
@apply focus:ring-2 focus:ring-blue-500 focus:border-transparent focus:outline-none;
|
||||
@apply dark:bg-gray-700 dark:text-white dark:border-gray-600 dark:placeholder-gray-500;
|
||||
}
|
||||
|
||||
/* Searchable Dropdown Items Container */
|
||||
.searchable-dropdown-items {
|
||||
@apply py-2 max-h-80 overflow-auto;
|
||||
}
|
||||
|
||||
/* Searchable Dropdown Option */
|
||||
.searchable-dropdown-option {
|
||||
@apply w-full px-4 py-3 text-left cursor-pointer;
|
||||
@apply flex items-start gap-3;
|
||||
@apply hover:bg-gray-100 transition-colors;
|
||||
@apply dark:hover:bg-gray-700;
|
||||
}
|
||||
.searchable-dropdown-option:disabled {
|
||||
@apply opacity-50 cursor-not-allowed;
|
||||
}
|
||||
|
||||
/* Searchable Dropdown Option Check Icon Area */
|
||||
.searchable-dropdown-check-area {
|
||||
@apply w-5 h-5 flex-shrink-0 mt-0.5;
|
||||
}
|
||||
|
||||
/* Searchable Dropdown Option Check Icon */
|
||||
.searchable-dropdown-check {
|
||||
@apply w-5 h-5 text-blue-600;
|
||||
@apply dark:text-blue-400;
|
||||
}
|
||||
|
||||
/* Searchable Dropdown Option Content */
|
||||
.searchable-dropdown-option-content {
|
||||
@apply flex-1 min-w-0;
|
||||
}
|
||||
|
||||
/* Searchable Dropdown Option Label */
|
||||
.searchable-dropdown-option-label {
|
||||
@apply font-medium text-gray-900;
|
||||
@apply dark:text-blue-400;
|
||||
}
|
||||
.searchable-dropdown-option.selected .searchable-dropdown-option-label {
|
||||
@apply text-blue-600;
|
||||
@apply dark:text-blue-400;
|
||||
}
|
||||
|
||||
/* Searchable Dropdown Option Description */
|
||||
.searchable-dropdown-option-description {
|
||||
@apply text-sm text-gray-500 mt-0.5;
|
||||
@apply dark:text-gray-400;
|
||||
}
|
||||
|
||||
/* Searchable Dropdown Message (No Results / Initial) */
|
||||
.searchable-dropdown-message {
|
||||
@apply px-4 py-6 text-center text-gray-500;
|
||||
@apply dark:text-gray-400;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/* ========================================
|
||||
* MEDIA QUERIES
|
||||
* ======================================== */
|
||||
|
||||
/* Mobile Card View - 768px 이하에서 표시 */
|
||||
@media (max-width: 768px) {
|
||||
.table-mobile-cards {
|
||||
display: block;
|
||||
}
|
||||
.table-mobile-cards > * + * {
|
||||
margin-top: 1rem;
|
||||
}
|
||||
.table-desktop {
|
||||
display: none !important;
|
||||
}
|
||||
}
|
||||
|
||||
/* Modal Responsive */
|
||||
@media (max-width: 640px) {
|
||||
.modal {
|
||||
margin-left: 1rem;
|
||||
margin-right: 1rem;
|
||||
max-width: calc(100% - 2rem);
|
||||
max-height: calc(100vh - 2rem);
|
||||
overflow-y: auto;
|
||||
}
|
||||
.modal-overlay {
|
||||
padding: 1rem;
|
||||
align-items: flex-start;
|
||||
padding-top: 2rem;
|
||||
}
|
||||
.modal-footer {
|
||||
flex-direction: column;
|
||||
gap: 0.5rem;
|
||||
}
|
||||
.modal-footer .btn {
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
/* Card Account - 오버플로우 방지 */
|
||||
@media (max-width: 640px) {
|
||||
.card-account {
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
/* ========================================
|
||||
* 10. CATEGORY TREE
|
||||
* 카테고리 관리 트리 구조 스타일
|
||||
* ======================================== */
|
||||
|
||||
/* Tree Container */
|
||||
.tree {
|
||||
@apply space-y-1;
|
||||
}
|
||||
|
||||
/* Tree Item Row */
|
||||
.tree-item {
|
||||
@apply flex items-center gap-2 p-2 rounded-lg cursor-pointer;
|
||||
@apply hover:bg-gray-50;
|
||||
@apply dark:hover:bg-gray-800;
|
||||
}
|
||||
.tree-item.selected {
|
||||
@apply bg-blue-50;
|
||||
@apply dark:bg-blue-900/20;
|
||||
}
|
||||
|
||||
/* Tree Item Content (icon + label) */
|
||||
.tree-item-content {
|
||||
@apply flex items-center gap-2 flex-1 min-w-0;
|
||||
}
|
||||
.tree-item-icon {
|
||||
@apply w-4 h-4 text-gray-400 flex-shrink-0;
|
||||
@apply dark:text-gray-500;
|
||||
}
|
||||
.tree-item-label {
|
||||
@apply text-sm text-gray-700 truncate;
|
||||
@apply dark:text-gray-300;
|
||||
}
|
||||
|
||||
/* Tree Expand/Collapse Button */
|
||||
.tree-expand-btn {
|
||||
@apply w-6 h-6 flex items-center justify-center text-gray-400 rounded;
|
||||
@apply hover:bg-gray-100;
|
||||
@apply dark:text-gray-500 dark:hover:bg-gray-700;
|
||||
}
|
||||
.tree-expand-btn.hidden {
|
||||
@apply invisible;
|
||||
}
|
||||
|
||||
/* Tree Children Container - 계층별 들여쓰기 */
|
||||
.tree-children {
|
||||
@apply ml-6 pl-4 border-l border-gray-200;
|
||||
@apply dark:border-gray-700;
|
||||
}
|
||||
|
||||
/* 레벨별 들여쓰기 (CSS 변수 또는 별도 클래스) */
|
||||
.tree-level-1 { @apply ml-0 pl-0 border-l-0; }
|
||||
.tree-level-2 { @apply ml-6 pl-4 border-l border-gray-200 dark:border-gray-700; }
|
||||
.tree-level-3 { @apply ml-6 pl-4 border-l border-gray-200 dark:border-gray-700; }
|
||||
.tree-level-4 { @apply ml-6 pl-4 border-l border-gray-200 dark:border-gray-700; }
|
||||
|
||||
/* ========================================
|
||||
* 11. CATEGORY SELECTOR (상품 등록/수정 폼용)
|
||||
* data-selected 속성으로 선택 상태 관리
|
||||
* 성능 최적화: 동적 className 대신 CSS 선택자 사용
|
||||
* ======================================== */
|
||||
|
||||
/* 데스크톱 카테고리 아이템 - 기본 상태 */
|
||||
.category-item {
|
||||
@apply px-3 py-2 text-sm cursor-pointer flex justify-between items-center;
|
||||
@apply text-gray-900 dark:text-white;
|
||||
@apply hover:bg-gray-50 dark:hover:bg-gray-700;
|
||||
}
|
||||
|
||||
/* 데스크톱 카테고리 아이템 - 선택 상태 */
|
||||
.category-item[data-selected="true"] {
|
||||
@apply bg-blue-600 text-white;
|
||||
}
|
||||
.category-item[data-selected="true"]:hover {
|
||||
@apply bg-blue-700;
|
||||
}
|
||||
|
||||
/* 모바일 카테고리 아이템 - 기본 상태 */
|
||||
.category-item-mobile {
|
||||
@apply px-3 py-2 text-sm cursor-pointer;
|
||||
@apply text-gray-900 dark:text-white;
|
||||
}
|
||||
|
||||
/* 모바일 카테고리 아이템 - 선택 상태 */
|
||||
.category-item-mobile[data-selected="true"] {
|
||||
@apply bg-blue-50 dark:bg-blue-900/30;
|
||||
}
|
||||
@@ -1,11 +0,0 @@
|
||||
/**
|
||||
* G7 Admin Template - Design Guide
|
||||
* 카테고리별 스타일 통합 import
|
||||
*/
|
||||
|
||||
@import "./colors.css";
|
||||
@import "./typography.css";
|
||||
@import "./ui-elements.css";
|
||||
@import "./components.css";
|
||||
@import "./layout.css";
|
||||
@import "./other.css";
|
||||
@@ -1,97 +0,0 @@
|
||||
/**
|
||||
* G7 Admin Template - Design Guide
|
||||
* Layout - 페이지 헤더, 그리드 등 레이아웃 스타일
|
||||
*/
|
||||
|
||||
@layer components {
|
||||
/* ========================================
|
||||
* 1. PAGE HEADER
|
||||
* ======================================== */
|
||||
|
||||
/* Page Header */
|
||||
.page-header {
|
||||
@apply flex items-center justify-between mb-6;
|
||||
}
|
||||
.page-actions {
|
||||
@apply flex items-center gap-3;
|
||||
}
|
||||
|
||||
/* ========================================
|
||||
* 2. RESPONSIVE UTILITIES
|
||||
* ======================================== */
|
||||
|
||||
/* Responsive Grid */
|
||||
.responsive-grid {
|
||||
@apply grid grid-cols-1 gap-4;
|
||||
}
|
||||
|
||||
/* ========================================
|
||||
* 3. RESPONSIVE GRID COLUMNS
|
||||
* ======================================== */
|
||||
|
||||
/* Grid Container - 3 columns on lg */
|
||||
.grid-cols-1-lg-3 {
|
||||
@apply grid grid-cols-1 gap-6;
|
||||
}
|
||||
|
||||
/* Grid Column Spans */
|
||||
.col-span-1-lg {
|
||||
@apply col-span-1;
|
||||
}
|
||||
|
||||
.col-span-2-lg {
|
||||
@apply col-span-1;
|
||||
}
|
||||
}
|
||||
|
||||
/* ========================================
|
||||
* MEDIA QUERIES
|
||||
* ======================================== */
|
||||
|
||||
/* Responsive Grid - sm breakpoint */
|
||||
@media (min-width: 640px) {
|
||||
.responsive-grid {
|
||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||
}
|
||||
}
|
||||
|
||||
/* Responsive Grid - lg breakpoint */
|
||||
@media (min-width: 1024px) {
|
||||
.responsive-grid {
|
||||
grid-template-columns: repeat(3, minmax(0, 1fr));
|
||||
}
|
||||
|
||||
/* Grid 3 columns on lg */
|
||||
.grid-cols-1-lg-3 {
|
||||
grid-template-columns: repeat(3, minmax(0, 1fr));
|
||||
}
|
||||
|
||||
/* Column spans on lg */
|
||||
.col-span-1-lg {
|
||||
grid-column: span 1 / span 1;
|
||||
}
|
||||
|
||||
.col-span-2-lg {
|
||||
grid-column: span 2 / span 2;
|
||||
}
|
||||
}
|
||||
|
||||
/* Page Header Responsive - 오버플로우 방지 */
|
||||
@media (max-width: 640px) {
|
||||
.page-header {
|
||||
flex-direction: column;
|
||||
align-items: flex-start;
|
||||
gap: 1rem;
|
||||
}
|
||||
.page-actions {
|
||||
width: 100%;
|
||||
justify-content: flex-start;
|
||||
}
|
||||
}
|
||||
|
||||
/* Responsive Grid - 오버플로우 방지 (이미지3) */
|
||||
@media (max-width: 480px) {
|
||||
.responsive-grid {
|
||||
grid-template-columns: 1fr !important;
|
||||
}
|
||||
}
|
||||
@@ -1,63 +0,0 @@
|
||||
/**
|
||||
* G7 Admin Template - Design Guide
|
||||
* Other - 페이지네이션, 디바이더, 이미지, 아바타 등 기타 스타일
|
||||
*/
|
||||
|
||||
@layer components {
|
||||
/* ========================================
|
||||
* 1. PAGINATION
|
||||
* ======================================== */
|
||||
|
||||
/* Pagination Container */
|
||||
.pagination {
|
||||
@apply flex items-center gap-1;
|
||||
}
|
||||
|
||||
/* Pagination Button */
|
||||
.pagination-btn {
|
||||
@apply w-8 h-8 flex items-center justify-center rounded-lg border border-gray-200 text-sm text-gray-600 cursor-pointer;
|
||||
@apply hover:bg-gray-50;
|
||||
@apply dark:border-gray-700 dark:text-gray-400 dark:hover:bg-gray-700;
|
||||
}
|
||||
.pagination-btn.active {
|
||||
@apply bg-gray-900 text-white border-gray-900;
|
||||
@apply dark:bg-white dark:text-gray-900 dark:border-white;
|
||||
}
|
||||
.pagination-btn:disabled {
|
||||
@apply text-gray-300 cursor-not-allowed hover:bg-transparent;
|
||||
@apply dark:text-gray-600;
|
||||
}
|
||||
|
||||
/* ========================================
|
||||
* 2. MISCELLANEOUS
|
||||
* ======================================== */
|
||||
|
||||
/* Divider */
|
||||
.divider {
|
||||
@apply border-t border-gray-200;
|
||||
@apply dark:border-gray-700;
|
||||
}
|
||||
|
||||
/* Product Image */
|
||||
.product-image {
|
||||
@apply w-12 h-12 rounded-lg object-cover bg-gray-100;
|
||||
@apply dark:bg-gray-800;
|
||||
}
|
||||
|
||||
/* User Avatar */
|
||||
.avatar {
|
||||
@apply w-8 h-8 rounded-full bg-gray-200 flex items-center justify-center text-sm font-medium text-gray-600;
|
||||
@apply dark:bg-gray-700 dark:text-gray-300;
|
||||
}
|
||||
}
|
||||
|
||||
/* ========================================
|
||||
* MEDIA QUERIES
|
||||
* ======================================== */
|
||||
|
||||
/* Card Account - 오버플로우 방지 */
|
||||
@media (max-width: 640px) {
|
||||
.card-account {
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
@@ -1,66 +0,0 @@
|
||||
/**
|
||||
* G7 Admin Template - Design Guide
|
||||
* Typography - 타이포그래피 스타일
|
||||
*/
|
||||
|
||||
@layer components {
|
||||
/* ========================================
|
||||
* FORM TYPOGRAPHY
|
||||
* ======================================== */
|
||||
|
||||
.form-label {
|
||||
@apply block text-sm font-medium text-gray-700;
|
||||
@apply dark:text-gray-300;
|
||||
}
|
||||
.form-hint {
|
||||
@apply text-xs text-gray-500;
|
||||
@apply dark:text-gray-400;
|
||||
}
|
||||
|
||||
/* ========================================
|
||||
* CARD TYPOGRAPHY
|
||||
* ======================================== */
|
||||
|
||||
.card-title {
|
||||
@apply text-base font-semibold text-gray-900;
|
||||
@apply dark:text-white;
|
||||
}
|
||||
.card-description {
|
||||
@apply text-sm text-gray-500 mt-1;
|
||||
@apply dark:text-gray-400;
|
||||
}
|
||||
|
||||
/* ========================================
|
||||
* PAGE HEADER TYPOGRAPHY
|
||||
* ======================================== */
|
||||
|
||||
.page-title {
|
||||
@apply text-xl font-semibold text-gray-900;
|
||||
@apply dark:text-white;
|
||||
}
|
||||
.page-description {
|
||||
@apply text-sm text-gray-500 mt-1;
|
||||
@apply dark:text-gray-400;
|
||||
}
|
||||
|
||||
/* ========================================
|
||||
* MODAL TYPOGRAPHY
|
||||
* ======================================== */
|
||||
|
||||
.modal-title {
|
||||
@apply text-lg font-semibold text-gray-900;
|
||||
@apply dark:text-white;
|
||||
}
|
||||
.modal-description {
|
||||
@apply text-sm text-gray-500 mt-1;
|
||||
@apply dark:text-gray-400;
|
||||
}
|
||||
|
||||
/* ========================================
|
||||
* TOAST TYPOGRAPHY
|
||||
* ======================================== */
|
||||
|
||||
.toast-message {
|
||||
@apply text-sm;
|
||||
}
|
||||
}
|
||||
@@ -1,435 +0,0 @@
|
||||
/**
|
||||
* G7 Admin Template - Design Guide
|
||||
* UI Elements - 버튼, 인풋, 뱃지 등 기본 UI 스타일
|
||||
*/
|
||||
|
||||
@layer components {
|
||||
/* ========================================
|
||||
* 1. BUTTONS
|
||||
* ======================================== */
|
||||
|
||||
/* Base Button */
|
||||
.btn {
|
||||
@apply inline-flex items-center justify-center gap-2 px-4 py-2 text-sm font-medium rounded-lg transition-colors duration-200 cursor-pointer disabled:opacity-50 disabled:cursor-not-allowed;
|
||||
}
|
||||
|
||||
/* Primary Button (다운로드, 저장) */
|
||||
.btn-primary {
|
||||
@apply bg-gray-900 text-white hover:bg-gray-800;
|
||||
@apply dark:bg-white dark:text-gray-900 dark:hover:bg-gray-100;
|
||||
}
|
||||
|
||||
/* Secondary Button (취소) */
|
||||
.btn-secondary {
|
||||
@apply bg-white text-gray-700 border border-gray-300 hover:bg-gray-50;
|
||||
@apply dark:bg-gray-800 dark:text-gray-300 dark:border-gray-600 dark:hover:bg-gray-700;
|
||||
}
|
||||
|
||||
/* Outline Button (검색 편집, 프리셋 관리) */
|
||||
.btn-outline {
|
||||
@apply bg-transparent text-gray-700 border border-gray-300 hover:bg-gray-50;
|
||||
@apply dark:text-gray-300 dark:border-gray-600 dark:hover:bg-gray-700;
|
||||
}
|
||||
|
||||
/* Ghost Button */
|
||||
.btn-ghost {
|
||||
@apply bg-transparent text-gray-600 hover:bg-gray-100;
|
||||
@apply dark:text-gray-400 dark:hover:bg-gray-700;
|
||||
}
|
||||
|
||||
/* Icon Button */
|
||||
.btn-icon {
|
||||
@apply p-2 rounded-lg text-gray-500 hover:bg-gray-100;
|
||||
@apply dark:text-gray-400 dark:hover:bg-gray-700;
|
||||
}
|
||||
|
||||
/* Preset Button (오늘 결제완료, 무통장 입금대기) */
|
||||
.btn-preset {
|
||||
@apply bg-gray-100 text-gray-700 px-4 py-1.5 rounded-full text-sm font-medium;
|
||||
@apply dark:bg-gray-700 dark:text-gray-300;
|
||||
}
|
||||
|
||||
/* Date Quick Select Button */
|
||||
.btn-date {
|
||||
@apply bg-white text-gray-600 border border-gray-200 px-3 py-1.5 rounded-lg text-sm;
|
||||
@apply dark:bg-gray-800 dark:text-gray-400 dark:border-gray-700;
|
||||
}
|
||||
.btn-date.active {
|
||||
@apply bg-gray-900 text-white border-gray-900;
|
||||
@apply dark:bg-white dark:text-gray-900 dark:border-white;
|
||||
}
|
||||
|
||||
/* Badge/Filter Button (주문상태 필터) */
|
||||
.btn-badge {
|
||||
@apply bg-white text-gray-600 border border-gray-200 px-3 py-1.5 rounded-full text-sm font-medium;
|
||||
@apply dark:bg-gray-800 dark:text-gray-400 dark:border-gray-700;
|
||||
}
|
||||
.btn-badge.active {
|
||||
@apply border-gray-900 text-gray-900;
|
||||
@apply dark:border-white dark:text-blue-400;
|
||||
}
|
||||
|
||||
/* Button Group (언어 선택, 상태 선택) */
|
||||
.btn-group {
|
||||
@apply inline-flex rounded-lg overflow-hidden border border-gray-200;
|
||||
@apply dark:border-gray-700;
|
||||
}
|
||||
.btn-group-item {
|
||||
@apply px-3 py-1.5 text-sm font-medium bg-white text-gray-600 border-r border-gray-200 transition-colors;
|
||||
@apply hover:bg-gray-50;
|
||||
@apply dark:bg-gray-800 dark:text-gray-400 dark:border-gray-700 dark:hover:bg-gray-700;
|
||||
}
|
||||
.btn-group-item:last-child {
|
||||
@apply border-r-0;
|
||||
}
|
||||
.btn-group-item.active {
|
||||
@apply bg-gray-900 text-white;
|
||||
@apply dark:bg-white dark:text-gray-900;
|
||||
}
|
||||
|
||||
/* Badge Button Color Variants (선택 상태) */
|
||||
.btn-badge-green {
|
||||
@apply bg-green-50 border-green-500 text-green-600;
|
||||
@apply dark:bg-green-900/20 dark:border-green-400 dark:text-green-400;
|
||||
}
|
||||
.btn-badge-blue {
|
||||
@apply bg-blue-50 border-blue-500 text-blue-600;
|
||||
@apply dark:bg-blue-900/20 dark:border-blue-400 dark:text-blue-400;
|
||||
}
|
||||
.btn-badge-cyan {
|
||||
@apply bg-cyan-50 border-cyan-500 text-cyan-600;
|
||||
@apply dark:bg-cyan-900/20 dark:border-cyan-400 dark:text-cyan-400;
|
||||
}
|
||||
.btn-badge-indigo {
|
||||
@apply bg-indigo-50 border-indigo-500 text-indigo-600;
|
||||
@apply dark:bg-indigo-900/20 dark:border-indigo-400 dark:text-indigo-400;
|
||||
}
|
||||
.btn-badge-pink {
|
||||
@apply bg-pink-50 border-pink-500 text-pink-600;
|
||||
@apply dark:bg-pink-900/20 dark:border-pink-400 dark:text-pink-400;
|
||||
}
|
||||
.btn-badge-red {
|
||||
@apply bg-red-50 border-red-500 text-red-600;
|
||||
@apply dark:bg-red-900/20 dark:border-red-400 dark:text-red-400;
|
||||
}
|
||||
.btn-badge-gray {
|
||||
@apply bg-gray-50 border-gray-300 text-gray-600;
|
||||
@apply dark:bg-gray-800 dark:border-gray-600 dark:text-gray-400;
|
||||
}
|
||||
.btn-badge-yellow {
|
||||
@apply bg-yellow-50 border-yellow-500 text-yellow-600;
|
||||
@apply dark:bg-yellow-900/20 dark:border-yellow-400 dark:text-yellow-400;
|
||||
}
|
||||
.btn-badge-orange {
|
||||
@apply bg-orange-50 border-orange-500 text-orange-600;
|
||||
@apply dark:bg-orange-900/20 dark:border-orange-400 dark:text-orange-400;
|
||||
}
|
||||
|
||||
/* ========================================
|
||||
* 2. INPUTS (테두리 없음, 배경색만)
|
||||
* ======================================== */
|
||||
|
||||
/* Base Input */
|
||||
.input {
|
||||
@apply w-full h-9 bg-gray-100 text-gray-900 px-3 rounded-lg text-sm;
|
||||
@apply placeholder-gray-400 focus:ring-2 focus:ring-blue-500 focus:outline-none;
|
||||
@apply dark:bg-gray-700 dark:text-gray-100 dark:placeholder-gray-500;
|
||||
}
|
||||
|
||||
/* Search Input Container */
|
||||
.input-search-container {
|
||||
@apply flex items-center bg-gray-100 rounded-lg overflow-hidden;
|
||||
@apply dark:bg-gray-700;
|
||||
}
|
||||
.input-search-container .input-search-icon {
|
||||
@apply pl-3 text-gray-400;
|
||||
@apply dark:text-gray-500;
|
||||
}
|
||||
.input-search-container input {
|
||||
@apply flex-1 bg-transparent px-3 py-2 text-sm text-gray-900 placeholder-gray-400 focus:outline-none;
|
||||
@apply dark:text-gray-100 dark:placeholder-gray-500;
|
||||
}
|
||||
.input-search-container .input-search-dropdown {
|
||||
@apply px-3 py-2 text-sm text-gray-600 border-l border-gray-200 cursor-pointer hover:bg-gray-50;
|
||||
@apply dark:text-gray-400 dark:border-gray-700 dark:hover:bg-gray-700;
|
||||
}
|
||||
|
||||
/* Select/Dropdown */
|
||||
.select {
|
||||
@apply w-full bg-gray-100 text-gray-900 px-3 py-2 rounded-lg text-sm appearance-none cursor-pointer;
|
||||
@apply focus:ring-2 focus:ring-blue-500 focus:outline-none;
|
||||
@apply dark:bg-gray-700 dark:text-gray-100;
|
||||
background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
|
||||
background-position: right 0.5rem center;
|
||||
background-repeat: no-repeat;
|
||||
background-size: 1.5em 1.5em;
|
||||
padding-right: 2.5rem;
|
||||
}
|
||||
.dark .select {
|
||||
background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%239ca3af' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
|
||||
}
|
||||
|
||||
/* Split Input Container (사업자번호, 전화번호) */
|
||||
.input-split {
|
||||
@apply flex items-center gap-2;
|
||||
}
|
||||
.input-split input {
|
||||
@apply bg-gray-100 text-gray-900 px-3 py-2 rounded-lg text-sm text-center;
|
||||
@apply focus:ring-2 focus:ring-blue-500 focus:outline-none;
|
||||
@apply dark:bg-gray-700 dark:text-gray-100;
|
||||
}
|
||||
.input-split .input-split-separator {
|
||||
@apply text-gray-400;
|
||||
@apply dark:text-gray-500;
|
||||
}
|
||||
|
||||
/* Tag Input */
|
||||
.tag-input-container {
|
||||
@apply flex flex-wrap items-center gap-2;
|
||||
}
|
||||
.tag {
|
||||
@apply inline-flex items-center gap-1 bg-gray-100 text-gray-700 px-3 py-1 rounded-full text-sm;
|
||||
@apply dark:bg-gray-700 dark:text-gray-300;
|
||||
}
|
||||
.tag .tag-remove {
|
||||
@apply text-gray-400 hover:text-gray-600 cursor-pointer;
|
||||
@apply dark:text-gray-500 dark:hover:text-gray-300;
|
||||
}
|
||||
|
||||
/* ========================================
|
||||
* 3. FORM ELEMENTS
|
||||
* ======================================== */
|
||||
|
||||
/* Form Group */
|
||||
.form-group {
|
||||
@apply space-y-1.5;
|
||||
}
|
||||
|
||||
/* Textarea Size Variants */
|
||||
.textarea-sm {
|
||||
min-height: 5rem; /* 80px */
|
||||
}
|
||||
.textarea-md {
|
||||
min-height: 8rem; /* 128px */
|
||||
}
|
||||
.textarea-lg {
|
||||
min-height: 12rem; /* 192px */
|
||||
}
|
||||
|
||||
/* Input Validation States */
|
||||
.input-error {
|
||||
@apply border border-red-500 focus:ring-red-500;
|
||||
@apply dark:border-red-500;
|
||||
}
|
||||
.input-success {
|
||||
@apply border border-green-500 focus:ring-green-500;
|
||||
@apply dark:border-green-500;
|
||||
}
|
||||
|
||||
/* FormField error state - 자식 input/select/textarea에 적색 테두리 자동 적용 */
|
||||
.form-field-error .input,
|
||||
.form-field-error input[type],
|
||||
.form-field-error select,
|
||||
.form-field-error textarea {
|
||||
@apply border border-red-500 focus:ring-red-500;
|
||||
@apply dark:border-red-500;
|
||||
}
|
||||
|
||||
/* Form Error/Success Messages */
|
||||
.form-error {
|
||||
@apply text-sm text-red-500;
|
||||
@apply dark:text-red-400;
|
||||
}
|
||||
.form-success {
|
||||
@apply text-sm text-green-600;
|
||||
@apply dark:text-green-400;
|
||||
}
|
||||
|
||||
/* Checkbox - 시안 기반: primary 버튼 색상과 동일 */
|
||||
.checkbox {
|
||||
@apply w-4 h-4 rounded border-gray-300 text-gray-900 focus:ring-gray-500 cursor-pointer;
|
||||
@apply dark:border-gray-600 dark:bg-gray-800 dark:text-blue-400;
|
||||
}
|
||||
.checkbox:checked {
|
||||
@apply bg-gray-900 border-gray-900;
|
||||
@apply dark:bg-white dark:border-white;
|
||||
}
|
||||
|
||||
/* Radio Button - 시안 기반: primary 버튼 색상과 동일 */
|
||||
.radio {
|
||||
@apply w-4 h-4 border-gray-300 text-gray-900 focus:ring-gray-500 cursor-pointer;
|
||||
@apply dark:border-gray-600 dark:bg-gray-800 dark:text-blue-400;
|
||||
}
|
||||
.radio:checked {
|
||||
@apply border-gray-900;
|
||||
@apply dark:border-white;
|
||||
}
|
||||
|
||||
/* Toggle/Switch */
|
||||
.toggle {
|
||||
@apply relative inline-flex h-6 w-11 items-center rounded-full cursor-pointer transition-colors;
|
||||
}
|
||||
.toggle-track {
|
||||
@apply absolute inset-0 rounded-full bg-gray-200 transition-colors;
|
||||
@apply dark:bg-gray-700;
|
||||
}
|
||||
.toggle.active .toggle-track {
|
||||
@apply bg-blue-600;
|
||||
}
|
||||
.toggle-handle {
|
||||
@apply absolute left-0.5 h-5 w-5 rounded-full bg-white shadow transition-transform;
|
||||
}
|
||||
.toggle.active .toggle-handle {
|
||||
@apply translate-x-5;
|
||||
}
|
||||
|
||||
/* ========================================
|
||||
* 4. STATUS BADGES
|
||||
* ======================================== */
|
||||
|
||||
/* Base Badge */
|
||||
.badge {
|
||||
@apply inline-flex items-center gap-1 px-2 py-0.5 rounded-md text-xs font-medium;
|
||||
}
|
||||
|
||||
/* Order Status Badges */
|
||||
.badge-green {
|
||||
@apply bg-green-100 text-green-700 border border-green-200;
|
||||
@apply dark:bg-green-900/30 dark:text-green-400 dark:border-green-800;
|
||||
}
|
||||
.badge-blue {
|
||||
@apply bg-blue-100 text-blue-700 border border-blue-200;
|
||||
@apply dark:bg-blue-900/30 dark:text-blue-400 dark:border-blue-800;
|
||||
}
|
||||
.badge-cyan {
|
||||
@apply bg-cyan-100 text-cyan-700 border border-cyan-200;
|
||||
@apply dark:bg-cyan-900/30 dark:text-cyan-400 dark:border-cyan-800;
|
||||
}
|
||||
.badge-indigo {
|
||||
@apply bg-indigo-100 text-indigo-700 border border-indigo-200;
|
||||
@apply dark:bg-indigo-900/30 dark:text-indigo-400 dark:border-indigo-800;
|
||||
}
|
||||
.badge-pink {
|
||||
@apply bg-pink-100 text-pink-700 border border-pink-200;
|
||||
@apply dark:bg-pink-900/30 dark:text-pink-400 dark:border-pink-800;
|
||||
}
|
||||
.badge-red {
|
||||
@apply bg-red-100 text-red-700 border border-red-200;
|
||||
@apply dark:bg-red-900/30 dark:text-red-400 dark:border-red-800;
|
||||
}
|
||||
.badge-gray {
|
||||
@apply bg-gray-100 text-gray-600 border border-gray-200;
|
||||
@apply dark:bg-gray-800 dark:text-gray-400 dark:border-gray-700;
|
||||
}
|
||||
.badge-yellow {
|
||||
@apply bg-yellow-100 text-yellow-700 border border-yellow-200;
|
||||
@apply dark:bg-yellow-900/30 dark:text-yellow-400 dark:border-yellow-800;
|
||||
}
|
||||
|
||||
/* Status Badges (엑셀 다운로드) */
|
||||
.badge-status {
|
||||
@apply inline-flex items-center gap-1.5 px-2.5 py-1 rounded-full text-xs font-medium;
|
||||
}
|
||||
.badge-status-success {
|
||||
@apply bg-green-50 text-green-600;
|
||||
@apply dark:bg-green-900/20 dark:text-green-400;
|
||||
}
|
||||
.badge-status-processing {
|
||||
@apply bg-blue-50 text-blue-600;
|
||||
@apply dark:bg-blue-900/20 dark:text-blue-400;
|
||||
}
|
||||
.badge-status-error {
|
||||
@apply bg-red-50 text-red-600;
|
||||
@apply dark:bg-red-900/20 dark:text-red-400;
|
||||
}
|
||||
.badge-status-expired {
|
||||
@apply bg-gray-50 text-gray-500;
|
||||
@apply dark:bg-gray-800 dark:text-gray-400;
|
||||
}
|
||||
|
||||
/* ========================================
|
||||
* 5. SEARCH BAR
|
||||
* 검색 셀렉트 + 검색 입력 + 초기화 버튼 조합
|
||||
* ======================================== */
|
||||
|
||||
/* Search Bar Container */
|
||||
.search-bar {
|
||||
@apply flex flex-col gap-3;
|
||||
@apply md:flex-row md:flex-wrap md:items-center;
|
||||
}
|
||||
|
||||
/* Search Bar Select - 고정 너비 (native select) */
|
||||
.search-bar-select {
|
||||
@apply w-full h-9 bg-gray-100 text-gray-900 px-3 rounded-lg text-sm;
|
||||
@apply placeholder-gray-400 focus:ring-2 focus:ring-blue-500 focus:outline-none;
|
||||
@apply dark:bg-gray-700 dark:text-gray-100 dark:placeholder-gray-500;
|
||||
@apply md:w-32 md:shrink-0;
|
||||
}
|
||||
|
||||
/* Search Bar Select - Custom Select 용 */
|
||||
.search-bar-select-custom {
|
||||
@apply w-full;
|
||||
@apply md:w-32 md:shrink-0;
|
||||
}
|
||||
|
||||
/* Search Bar Input - 가변 너비 */
|
||||
.search-bar-input {
|
||||
@apply w-full h-9 bg-gray-100 text-gray-900 px-3 rounded-lg text-sm;
|
||||
@apply placeholder-gray-400 focus:ring-2 focus:ring-blue-500 focus:outline-none;
|
||||
@apply dark:bg-gray-700 dark:text-gray-100 dark:placeholder-gray-500;
|
||||
@apply md:flex-1 md:min-w-64;
|
||||
}
|
||||
|
||||
/* Search Bar Reset Button */
|
||||
.search-bar-reset {
|
||||
@apply inline-flex items-center justify-center gap-2 px-4 py-2 text-sm font-medium rounded-lg transition-colors duration-200 cursor-pointer;
|
||||
@apply bg-transparent text-gray-700 border border-gray-300 hover:bg-gray-50;
|
||||
@apply dark:text-gray-300 dark:border-gray-600 dark:hover:bg-gray-700;
|
||||
@apply w-full shrink-0 gap-1.5;
|
||||
@apply md:w-auto;
|
||||
}
|
||||
|
||||
/* ========================================
|
||||
* 6. FILTER ROW
|
||||
* 필터 라벨 + 필터 버튼 그룹 조합
|
||||
* ======================================== */
|
||||
|
||||
/* Filter Row Container */
|
||||
.filter-row {
|
||||
@apply flex flex-col gap-2 mb-4;
|
||||
@apply md:flex-row md:items-center;
|
||||
}
|
||||
|
||||
/* Filter Row - no margin bottom (마지막 행용) */
|
||||
.filter-row-last {
|
||||
@apply flex flex-col gap-2;
|
||||
@apply md:flex-row md:items-center;
|
||||
}
|
||||
|
||||
/* Filter Label - 세로 중앙 정렬 */
|
||||
.filter-label {
|
||||
@apply text-sm text-gray-600 block mb-2;
|
||||
@apply dark:text-gray-400;
|
||||
@apply md:mb-0 md:w-14 md:shrink-0 md:flex md:items-center;
|
||||
}
|
||||
|
||||
/* Filter Buttons Container */
|
||||
.filter-buttons {
|
||||
@apply flex flex-wrap items-center gap-2;
|
||||
}
|
||||
}
|
||||
|
||||
/* ========================================
|
||||
* MEDIA QUERIES
|
||||
* ======================================== */
|
||||
|
||||
/* Input Split Responsive */
|
||||
@media (max-width: 640px) {
|
||||
.input-split {
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
.input-split input {
|
||||
flex: 1;
|
||||
min-width: 0;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user