-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocument_manager.css
More file actions
150 lines (135 loc) · 3.2 KB
/
document_manager.css
File metadata and controls
150 lines (135 loc) · 3.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
/* Custom styles for Document Manager to complement cat.css */
/* Custom logo color handling */
[data-theme="dark"] .header-logo .cls {
fill: #F4F4F5;
}
[data-theme="light"] .header-logo .cls {
fill: #383938;
}
.header-logo {
width: 2.5rem; /* size-10 */
height: 2.5rem;
display: none;
}
@media (min-width: 768px) { /* md:block */
.header-logo {
display: block;
}
}
.main-container {
padding: 2rem 5%;
}
.documents-grid {
display: flex;
flex-direction: column;
gap: 1rem;
}
.doc-card {
display: flex;
gap: 1rem;
padding: 1rem;
background-color: oklch(var(--b1));
border-radius: 0.75rem; /* rounded-xl */
box-shadow: var(--tw-shadow, 0 0 #0000), var(--tw-shadow-colored, 0 0 #0000), var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1); /* shadow-md */
}
.doc-icon {
width: 80px;
height: 80px;
flex-shrink: 0;
border-radius: 0.5rem; /* rounded-lg */
display: flex;
align-items: center;
justify-content: center;
font-size: 1.5rem;
font-weight: 700;
color: #fff;
}
.doc-content-wrapper {
flex-grow: 1;
display: flex;
justify-content: space-between;
gap: 1rem;
overflow: hidden;
}
.doc-info {
flex-grow: 1;
overflow: hidden;
}
.doc-title {
font-size: 1.25rem;
font-weight: 700;
}
.doc-preview {
font-size: 0.875rem;
color: oklch(var(--bc) / 0.7);
margin-top: 0.25rem;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.doc-actions {
display: flex;
flex-direction: column;
justify-content: space-between;
align-items: flex-end;
flex-shrink: 0;
}
/* Side Panel */
.panel-overlay {
position: fixed;
top: 0;
right: 0;
bottom: 0;
left: 0;
z-index: 40;
background-color: rgba(0,0,0,0.5);
opacity: 0;
transition: opacity 0.3s ease-in-out;
pointer-events: none;
}
.panel-overlay.visible {
opacity: 1;
pointer-events: auto;
}
.side-panel {
position: fixed;
top: 0;
right: 0;
width: 100%;
max-width: 500px;
height: 100%;
background-color: oklch(var(--b3));
box-shadow: var(--shadow-xl);
transform: translateX(100%);
transition: transform 0.3s ease-in-out;
display: flex;
flex-direction: column;
}
.side-panel.visible {
transform: translateX(0);
}
.side-panel-header {
display: flex;
justify-content: space-between;
align-items: center;
padding: 1rem 1.5rem;
border-bottom: 1px solid oklch(var(--b1));
flex-shrink: 0;
}
.side-panel-body {
padding: 1.5rem;
overflow-y: auto;
flex-grow: 1;
}
.info-section { margin-bottom: 1.5rem; }
.info-section h4 { font-weight: 600; color: oklch(var(--p)); margin-bottom: 0.5rem; }
.info-section p, .info-section ul { background-color: oklch(var(--b2)); padding: 1rem; border-radius: 0.5rem; word-wrap: break-word; }
.info-section ul { list-style: none; }
.info-section li { padding: 0.25rem 0; }
.info-section li strong { opacity: 0.9; }
/* States & Notifications */
.state-container { padding: 4rem; text-align: center; opacity: 0.7; }
#confirmOverlay.show,
#confirmWrapper.show {
display: block;
}