Skip to content

Commit 6c60e12

Browse files
committed
Self-contained structure mode css
1 parent fd2e9be commit 6c60e12

File tree

2 files changed

+13
-2
lines changed

2 files changed

+13
-2
lines changed

cms/static/cms/sass/components/_toolbar.scss

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@
8585
z-index: 30;
8686

8787
@at-root .cms-structure-mode-structure & {
88-
right: $toolbar-height;
88+
inset-inline-end: $toolbar-height;
8989
}
9090
}
9191
.cms-toolbar .cms-btn-action {
@@ -365,6 +365,17 @@
365365
}
366366
}
367367

368+
@at-root .cms-structure-mode-endpoint.cms-structure-mode-structure & {
369+
.cms-toolbar-item-cms-mode-switcher {
370+
display: none;
371+
}
372+
.cms-toolbar-right {
373+
padding-inline-end: 0;
374+
}
375+
.cms-toolbar::after, .cms-debug-bar {
376+
inset-inline-end: 0;
377+
}
378+
}
368379
//###########################################################
369380
// #TOOLBAR/dialog#
370381
.cms-messages {

cms/templates/cms/toolbar/structure.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{% load cms_tags cms_js_tags i18n sekizai_tags %}
22
<!DOCTYPE html>
3-
<html class="cms-overflow">
3+
<html class="cms-overflow cms-structure-mode-endpoint">
44
<head>
55
<meta charset="UTF-8">
66
<title>{{ object.title }}</title>

0 commit comments

Comments
 (0)