Skip to content

Commit 6e6e6d2

Browse files
committed
Optimize side bar and modal titles
1 parent 9aa8d1c commit 6e6e6d2

File tree

2 files changed

+20
-5
lines changed

2 files changed

+20
-5
lines changed

djangocms_simple_admin_style/static/djangocms_simple_admin_style/css/djangocms-simple-admin.min.css

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

private/djangocms-simple-admin.css

+19-4
Original file line numberDiff line numberDiff line change
@@ -278,6 +278,7 @@ form .aligned ul {
278278

279279
.button, input[type=submit], input[type=button], .submit-row input, a.button {
280280
border: 1px solid var(--dca-gray-lighter, #ddd);
281+
font-size: 14px;
281282
}
282283

283284
a.btn {
@@ -287,7 +288,7 @@ a.btn {
287288

288289
input[type="text"], input[type="url"], input[type="email"], .vLargeTextField, .vXMLLargeTextField, .vTextField, .vUUIDField,
289290
.colM .aligned .vLargeTextField, .colM .aligned .vXMLLargeTextField, .vURLField,
290-
.flex-container textarea {
291+
textarea {
291292
width: calc(100% - 10px);
292293
}
293294

@@ -360,15 +361,29 @@ body.cms-admin-sideframe #content > h1 {
360361
display: none;
361362
}
362363

363-
body.cms-admin-modal .content {
364-
margin-top: 36px;
364+
body.cms-admin-sideframe .object-tools {
365+
margin-right: 92px; /* Space for cms navigation butons */
365366
}
367+
366368
body.cms-admin-modal .breadcrumbs,
367369
body.cms-admin-modal #toggle-nav-sidebar,
368-
body.cms-admin-modal #nav-sidebar {
370+
body.cms-admin-modal #nav-sidebar,
371+
body.cms-admin-modal .hide-in-modal,
372+
body.cms-admin-modal #content > h2 {
369373
display: none;
370374
}
371375

376+
/* Remove space reserved for (hidden) sidebar */
377+
body.cms-admin-modal .main > #nav-sidebar + .content,
378+
body.cms-admin-modal .main.shifted > #nav-sidebar + .content {
379+
max-width: 100%;
380+
}
381+
382+
.main.shifted > #nav-sidebar + .content {
383+
max-width: calc(100% - 299px);
384+
}
385+
386+
372387
body.cms-admin-sideframe.djangocms-simple-admin-style {
373388
margin-top: 0;
374389
}

0 commit comments

Comments
 (0)