-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy path_content.scss
More file actions
34 lines (27 loc) · 1 KB
/
_content.scss
File metadata and controls
34 lines (27 loc) · 1 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
$ui-02: $eccgui-color-workspace-background !default;
@import "~@carbon/react/scss/components/ui-shell/content/index";
// tweack original layout
.#{$prefix}--content {
min-height: 100vh;
padding: $eccgui-size-block-whitespace;
transform: none; // prevent problems with fixed positions of children, @see https://www.darrenlester.com/blog/why-fixed-position-element-not-relative-to-viewport
}
.#{$prefix}--header ~ .#{$prefix}--content {
box-sizing: content-box;
min-height: calc(100vh - #{mini-units(8)} - #{2 * $eccgui-size-block-whitespace});
padding-top: calc(#{mini-units(8)} + #{$eccgui-size-block-whitespace});
margin-top: 0;
}
.#{$prefix}--side-nav ~ .#{$prefix}--content,
.#{$eccgui}-application__content--withsidebar {
margin-left: mini-units(40);
}
.#{$eccgui}-application__content--railsidebar {
margin-left: mini-units(8);
}
@media print {
.#{$eccgui}-application__content {
padding: $eccgui-size-block-whitespace 0 0 0 !important;
margin: 0;
}
}