Skip to content

Commit 7532ae0

Browse files
authored
Merge pull request #7 from omnisend/grouping
Grouping
2 parents 3eecd83 + 33102c7 commit 7532ae0

File tree

5 files changed

+1258
-171
lines changed

5 files changed

+1258
-171
lines changed

assets/css/admin.css

+197
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,203 @@
5252
display: block;
5353
}
5454

55+
/* Content Groups */
56+
.stl-content-groups {
57+
margin-top: 20px;
58+
}
59+
60+
.stl-content-group {
61+
margin-bottom: 15px;
62+
border: 1px solid #ddd;
63+
border-radius: 4px;
64+
overflow: hidden;
65+
background: #fff;
66+
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
67+
}
68+
69+
.stl-group-header {
70+
display: flex;
71+
align-items: center;
72+
padding: 15px;
73+
background: #f8f8f8;
74+
border-bottom: 1px solid #ddd;
75+
}
76+
77+
.stl-group-header h4 {
78+
flex: 1;
79+
margin: 0 10px;
80+
font-size: 14px;
81+
}
82+
83+
.stl-group-header .stl-change-type {
84+
margin-left: 10px;
85+
padding: 3px 8px;
86+
border-radius: 3px;
87+
font-size: 12px;
88+
font-weight: normal;
89+
}
90+
91+
.stl-type-added {
92+
background-color: #e7f9e7;
93+
color: #0a6b0a;
94+
}
95+
96+
.stl-type-modified {
97+
background-color: #fff8e5;
98+
color: #95700d;
99+
}
100+
101+
.stl-type-deleted {
102+
background-color: #ffeaea;
103+
color: #c62828;
104+
}
105+
106+
.stl-group-content {
107+
padding: 15px;
108+
}
109+
110+
.stl-group-content h5 {
111+
margin: 15px 0 10px;
112+
padding-bottom: 5px;
113+
border-bottom: 1px solid #eee;
114+
font-size: 13px;
115+
text-transform: uppercase;
116+
}
117+
118+
.stl-group-content h5:first-child {
119+
margin-top: 0;
120+
}
121+
122+
.stl-group-table {
123+
margin-top: 10px;
124+
margin-bottom: 20px;
125+
}
126+
127+
/* Attachment display */
128+
.stl-attachments-grid {
129+
display: grid;
130+
grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
131+
gap: 15px;
132+
margin-bottom: 20px;
133+
}
134+
135+
.stl-attachment-item {
136+
border: 1px solid #ddd;
137+
border-radius: 4px;
138+
overflow: hidden;
139+
background: white;
140+
}
141+
142+
.stl-attachment-preview {
143+
height: 120px;
144+
background: #f1f1f1;
145+
display: flex;
146+
align-items: center;
147+
justify-content: center;
148+
overflow: hidden;
149+
position: relative;
150+
}
151+
152+
.stl-attachment-preview img {
153+
max-width: 100%;
154+
max-height: 100%;
155+
object-fit: contain;
156+
}
157+
158+
.stl-attachment-icon {
159+
font-size: 48px;
160+
color: #bbb;
161+
}
162+
163+
.stl-attachment-details {
164+
padding: 10px;
165+
border-top: 1px solid #eee;
166+
position: relative;
167+
}
168+
169+
.stl-attachment-details label {
170+
display: block;
171+
margin-bottom: 5px;
172+
font-weight: 600;
173+
padding-right: 65px;
174+
overflow: hidden;
175+
text-overflow: ellipsis;
176+
white-space: nowrap;
177+
}
178+
179+
.stl-attachment-details .stl-change-type {
180+
position: absolute;
181+
top: 10px;
182+
right: 10px;
183+
font-size: 10px;
184+
}
185+
186+
.stl-attachment-details .button {
187+
width: 100%;
188+
text-align: center;
189+
margin-top: 5px;
190+
}
191+
192+
/* Child Posts display */
193+
.stl-child-posts {
194+
margin-bottom: 20px;
195+
}
196+
197+
.stl-child-post-item {
198+
border: 1px solid #ddd;
199+
border-radius: 4px;
200+
margin-bottom: 10px;
201+
background: white;
202+
overflow: hidden;
203+
}
204+
205+
.stl-child-post-header {
206+
display: flex;
207+
align-items: center;
208+
justify-content: space-between;
209+
padding: 10px 15px;
210+
border-bottom: 1px solid #f0f0f0;
211+
background: #f9f9f9;
212+
position: relative;
213+
}
214+
215+
.stl-child-post-header label {
216+
display: flex;
217+
align-items: center;
218+
margin: 0;
219+
font-weight: 600;
220+
flex: 1;
221+
}
222+
223+
.stl-child-post-title {
224+
margin-left: 8px;
225+
overflow: hidden;
226+
text-overflow: ellipsis;
227+
white-space: nowrap;
228+
max-width: 300px;
229+
}
230+
231+
.stl-child-post-type {
232+
display: inline-block;
233+
margin-left: 8px;
234+
padding: 2px 6px;
235+
border-radius: 3px;
236+
background: #e7e7e7;
237+
font-size: 11px;
238+
font-weight: normal;
239+
color: #555;
240+
}
241+
242+
.stl-child-post-actions {
243+
padding: 10px 15px;
244+
background: white;
245+
text-align: right;
246+
}
247+
248+
.stl-child-post-actions .button {
249+
margin-left: 5px;
250+
}
251+
55252
/* Tables */
56253
.stl-changes-table {
57254
margin-top: 20px;

0 commit comments

Comments
 (0)